From 035295ba2e297385274f0ab16675f01e9bf7e1bf Mon Sep 17 00:00:00 2001 From: lastlink Date: Sun, 23 Jun 2024 20:41:17 -0400 Subject: [PATCH] working uml generation from ts and openapi --- .github/workflows/tests.yaml | 1 + dist/nosql.js | 97 ++++----- dist/nosql.min.js | 378 +++++++++++++++++++++++++++++++++++ src/nosql.ts | 80 +++----- 4 files changed, 458 insertions(+), 98 deletions(-) create mode 100644 dist/nosql.min.js diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 40755cb..ed10d11 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -20,4 +20,5 @@ jobs: - run: npm ci - run: npm test - run: npm run build:client + - run: npm run build:client:nosql:legacy - run: npm run build:client:nosql diff --git a/dist/nosql.js b/dist/nosql.js index 6939c06..f6786ed 100644 --- a/dist/nosql.js +++ b/dist/nosql.js @@ -200828,10 +200828,11 @@ Draw.loadPlugin(function (ui) { mxUtils.br(divGenSQL); divGenSQL.appendChild(sqlInputGenSQL); const theMenuExportAs = ui.menus.get("exportAs"); - let buttonLabel = "tonosql=To TS"; + let buttonLabel = "tonosql=To NoSQL"; // vscode extension support + // FIXME: not compatible with vscode getting unexpected syntax error if (!(theMenuExportAs && !window.VsCodeApi)) { - buttonLabel = "tonosql=Export As TS"; + buttonLabel = "tonosql=Export As NoSQL"; } // Extends Extras menu mxResources.parse(buttonLabel); @@ -201087,7 +201088,7 @@ Draw.loadPlugin(function (ui) { const parser = new generate_sql_ddl_1.DbParser(type, db); // generate sql let sql = parser.getSQLDataDefinition(); - sql = `/*\n\tGenerated in drawio\n\tDatabase: ${type}\n\tPlugin: sql\n\tVersion: ${pluginVersion}\n*/\n\n` + sql; + sql = `/*\n\tGenerated in drawio\n\tDatabase: ${type}\n\tPlugin: nosql\n\tVersion: ${pluginVersion}\n*/\n\n` + sql; sql = sql.trim(); // update sql value in text area sqlInputGenSQL.value = sql; @@ -201137,7 +201138,7 @@ Draw.loadPlugin(function (ui) { const sqlInputFromNOSQL = document.createElement("textarea"); sqlInputFromNOSQL.style.height = "200px"; sqlInputFromNOSQL.style.width = "100%"; - const defaultReset = `/*\n\tDrawio default value\n\tPlugin: sql\n\tVersion: ${pluginVersion}\n*/\n\n + const defaultReset = `/*\n\tDrawio default value\n\tPlugin: nosql\n\tVersion: ${pluginVersion}\n*/\n\n export interface WeatherForecast { /** @format date-time */ date?: string; @@ -201146,8 +201147,8 @@ export interface WeatherForecast { /** @format int32 */ temperatureF?: number; summary?: string | null; - nestedProp: string[] - child[]?: Child + nestedProp: string[]; + children?: Child[]; } export interface Child { @@ -201158,8 +201159,8 @@ export interface Child { { "openapi": "3.0.0", "info": { - "title": "My API", - "version": "1.0.0", + "title": "nosql plugin sample", + "version": ${pluginVersion}, "x-comment": "Generated by core-types-json-schema (https://github.com/grantila/core-types-json-schema)" }, "paths": {}, @@ -201230,7 +201231,7 @@ export interface Child { divFromNOSQL.appendChild(sqlInputFromNOSQL); var graph = ui.editor.graph; // Extends Extras menu - mxResources.parse("fromNoSql=From TS"); + mxResources.parse("fromNoSql=From NoSQL"); const wndFromNOSQL = new mxWindow(mxResources.get("fromNoSql"), divFromNOSQL, document.body.offsetWidth - 480, 140, 320, 320, true, true); wndFromNOSQL.destroyOnClose = false; wndFromNOSQL.setMaximizable(false); @@ -201259,61 +201260,38 @@ export interface Child { } ; function parseFromInput(text, type) { - var _a; + var _a, _b, _c; // reset values cells = []; tableCell = null; rowCell = null; - // load parser - // const parser = new SqlSimpleParser(type); - // const user: object = JSON.parse(text); - debugger; - // const reader = getTypeScriptReader( ); - // const writer = getOpenApiWriter( { format: "json", title: "My API", version: "v1" } ); - // // getTypeScriptWriter - // // getOpenApiReader - // const { convert } = makeConverter( reader, writer ); - // convert({ data: text }) - // .then( ( { data } ) => { - // debugger; - // const models: any | null = null; - // if(models){ - // foreignKeyList = models.ForeignKeyList; - // primaryKeyList = models.PrimaryKeyList; - // tableList = models.TableList; - // exportedTables = tableList.length; - // } - // //Create Table in UI - // CreateTableUI(type); - // }); try { let openApi = null; const openApiOptions = { - title: "nosql", + title: "nosql default options", version: pluginVersion }; if (type == "openapi") { + // should already be a json, but going to serialize to openapi for validation const data = JSON.parse(text); const { data: doc } = (0, core_types_json_schema_1.convertOpenApiToCoreTypes)(data); const { data: jsonSchema } = (0, core_types_json_schema_1.convertCoreTypesToJsonSchema)(doc); openApi = (0, core_types_json_schema_1.jsonSchemaDocumentToOpenApi)(jsonSchema, openApiOptions); } else if (type == "ts") { + // serialize typescript classes to openapi spec const { data: doc } = (0, ts_to_core_types_1.convertTypeScriptToCoreTypes)(text); const { data: jsonSchema } = (0, core_types_json_schema_1.convertCoreTypesToJsonSchema)(doc); openApi = (0, core_types_json_schema_1.jsonSchemaDocumentToOpenApi)(jsonSchema, openApiOptions); } - debugger; const schemas = (_a = openApi === null || openApi === void 0 ? void 0 : openApi.components) === null || _a === void 0 ? void 0 : _a.schemas; if (schemas) { - const stringOpen = JSON.stringify(openApi, null, 2); const models = { Dialect: "nosql", TableList: [], PrimaryKeyList: [], ForeignKeyList: [], }; - // const schemas = openApi.components?.schemas; for (const key in schemas) { if (Object.prototype.hasOwnProperty.call(schemas, key)) { const schema = schemas[key]; @@ -201321,25 +201299,47 @@ export interface Child { Name: key, Properties: [], }; - // const properties = (.properties; for (const propertyKey in schema.properties) { if (Object.prototype.hasOwnProperty.call(schema.properties, propertyKey)) { const property = schema.properties[propertyKey]; const propertyModel = GeneratePropertyModel(key, propertyKey, property); - // { - // Name: propertyKey, - // IsPrimaryKey: false, - // IsForeignKey: false, - // ColumnProperties: property.type ?? "string", - // TableName: key, - // ForeignKey: [], - // }; tableModel.Properties.push(propertyModel); + if (propertyModel.ColumnProperties.includes("object") || + propertyModel.ColumnProperties.includes("array")) { + let refName = null; + if (property.$ref) { + refName = property.$ref.split("/").pop(); + } + else if (property.items && typeof property.items == "object") { + refName = (_b = property.items.$ref) === null || _b === void 0 ? void 0 : _b.split("/").pop(); + } + if (refName) { + const foreignKeyModel = { + ReferencesTableName: key, + PrimaryKeyTableName: refName, + ReferencesPropertyName: propertyKey, + // should just point to first property in uml table + PrimaryKeyName: "", + IsDestination: true + }; + models.ForeignKeyList.push(foreignKeyModel); + } + } } } models.TableList.push(tableModel); } } + for (let i = 0; i < models.ForeignKeyList.length; i++) { + const fk = models.ForeignKeyList[i]; + if (!fk.PrimaryKeyName) { + // match to first entry + const property = (_c = models.TableList.find(t => t.Name == fk.PrimaryKeyTableName)) === null || _c === void 0 ? void 0 : _c.Properties[0]; + if (property) { + models.ForeignKeyList[i].PrimaryKeyName = property.Name; + } + } + } foreignKeyList = models.ForeignKeyList; primaryKeyList = models.PrimaryKeyList; tableList = models.TableList; @@ -201450,14 +201450,14 @@ export interface Child { } ; mxUtils.br(divFromNOSQL); - const resetBtnFromNOSQL = mxUtils.button(mxResources.get("reset"), function () { + const resetBtnFromNOSQL = mxUtils.button(mxResources.get("Reset TS"), function () { sqlInputFromNOSQL.value = defaultReset; }); resetBtnFromNOSQL.style.marginTop = "8px"; resetBtnFromNOSQL.style.marginRight = "4px"; resetBtnFromNOSQL.style.padding = "4px"; divFromNOSQL.appendChild(resetBtnFromNOSQL); - const resetOpenAPIBtnFromNOSQL = mxUtils.button(mxResources.get("resetOpenAPI"), function () { + const resetOpenAPIBtnFromNOSQL = mxUtils.button("Reset OpenAPI", function () { sqlInputFromNOSQL.value = defaultResetOpenApi; }); resetOpenAPIBtnFromNOSQL.style.marginTop = "8px"; @@ -201515,9 +201515,10 @@ export interface Child { } } }); +// TODO: may need to make recursive for when schema property items is array function GeneratePropertyModel(tableName, propertyName, property) { var _a; - let columnProperties = ((_a = property.type) !== null && _a !== void 0 ? _a : "string").toString(); + let columnProperties = ((_a = property.type) !== null && _a !== void 0 ? _a : "object").toString(); if (property.nullable) { columnProperties += " nullable"; } diff --git a/dist/nosql.min.js b/dist/nosql.min.js new file mode 100644 index 0000000..7aecbad --- /dev/null +++ b/dist/nosql.min.js @@ -0,0 +1,378 @@ +!function n(i,a,o){function s(t,e){if(!a[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=a[t]={exports:{}},i[t][0].call(r.exports,function(e){return s(i[t][1][e]||e)},r,r.exports,n,i,a,o)}return a[t].exports}for(var c="function"==typeof require&&require,e=0;ee.entityB==t);if(0(0,i.ensureArray)(t).map(e=>"@see "+e).join("\n");if(e&&null!=t&&t.length)return e+"\n\n"+r();return e||r()}(e.description,e.see):void 0;return{...t,...e.title?{title:e.title}:{},...r?{description:r}:{},...e.default?{default:e.default}:{},...e.examples?{examples:e.examples}:{},...e.comment?{$comment:e.comment}:{}}},r.annotateCoreTypes=function(e,t){var{description:r,see:n}=function(e){var t=(null!=e?e:"").split("\n"),r=[];for(;0c(e)),e=(0,o.annotateJsonSchema)(e,{anyOf:t});return 1{return e=e,!(1===(e=Object.keys(e).sort()).length&&"type"===e[0]||2===e.length&&"title"===e[0]&&"type"===e[1])})&&(delete e.anyOf,e.type=t.map(({type:e})=>e)),e}function c(t){if("any"===t.type)return(0,o.annotateJsonSchema)(t,l(t,{}));if("null"===t.type)return(0,o.annotateJsonSchema)(t,{type:"null"});if("boolean"===t.type)return(0,o.annotateJsonSchema)(t,l(t,{type:"boolean"}));if("string"===t.type)return(0,o.annotateJsonSchema)(t,l(t,{type:"string"}));if("number"===t.type)return(0,o.annotateJsonSchema)(t,l(t,{type:"number"}));if("integer"===t.type)return(0,o.annotateJsonSchema)(t,l(t,{type:"integer"}));if("and"===t.type)return(0,o.annotateJsonSchema)(t,{allOf:t.and.map(e=>c(e))});if("or"===t.type)return s(t);var e,r,n;if("object"===t.type)return r=(e=Object.keys(t.properties)).filter(e=>t.properties[e].required),n=Object.fromEntries(e.map(e=>[e,c(t.properties[e].node)])),(0,o.annotateJsonSchema)(t,l(t,{type:"object",...0c(e)),...!0===t.additionalItems?{}:t.additionalItems?{additionalItems:c(t.additionalItems)}:{additionalItems:!1},minItems:t.minItems}));if("ref"===t.type)return(0,o.annotateJsonSchema)(t,l(t,{$ref:(0,i.encodeRefNameJsonSchema)(t.ref)}));throw new a.UnsupportedError(`core-types node of type ${t.type} not supported`,t)}function l(e,t){return void 0!==e.const?{...t,const:e.const}:e.enum?{...t,enum:e.enum}:t}r.decorateSchema=n,r.convertCoreTypesToJsonSchema=function(e,t){var{version:e,types:r}=e;if(1!==e)throw new a.UnsupportedError(`core-types version ${e} not supported`);return n(e={definitions:Object.fromEntries(r.map(e=>[e.name,c(e)]))},null!=t?t:{}),{data:e,convertedTypes:r.map(({name:e})=>e),notConvertedTypes:[]}}},{"./annotations":4,"core-types":8,"openapi-json-schema":20}],6:[function(e,t,_){Object.defineProperty(_,"__esModule",{value:!0}),_.complexProps=_.convertJsonSchemaToCoreTypes=void 0;let a=e("jsonpos"),u=e("openapi-json-schema"),b=e("core-types"),d=e("./annotations"),p=(e,t)=>({...e,path:[...e.path,t]});function f(r,s){if("boolean"==typeof r)s.throwUnsupportedError("Boolean JSON Schema definition not supported",{blob:{schema:r}});else if("object"==typeof(e=r)&&Object.keys(e).some(e=>_.complexProps.has(e))){e=function(t,r){let{$ref:n,type:o,enum:s,const:c,items:l,additionalItems:_,required:u,properties:d,additionalProperties:p,then:e,else:i,allOf:a,anyOf:f,oneOf:m}=t;var g=a&&"object"==typeof a?a.filter(e=>e&&"object"==typeof e):null,h=f&&"object"==typeof f?f.filter(e=>e&&"object"==typeof e):null,y=m&&"object"==typeof m?m.filter(e=>e&&"object"==typeof e):null;let v=(e,i)=>{var a=(e,t)=>!(e&&t&&!(0,b.isEqual)(e,t));if(a(n,i.$ref)||r.throwUnsupportedError(`Cannot have $ref in a node *and* in its '${e}'`,{blob:t}),a(o,i.type)||r.throwUnsupportedError(`Cannot have 'type' in a node *and* in its '${e}'`,{blob:t}),s)if(i.enum){var a=(0,b.intersection)(s,i.enum);if(0===a.length)throw new b.MalformedTypeError("Cannot merge types with non-intersecting enums",{path:r.path,blob:{child:[...r.path,e]}});i.enum=a}else i.enum=s;if(void 0!==c)if(void 0!==i.const){if((0,b.isEqual)(c,i.const))throw new b.MalformedTypeError("Cannot merge types with mismatching const",{path:r.path,blob:{child:[...r.path,e]}})}else i.const=c;if(i.items=null!=(a=i.items)?a:l,i.additionalItems=null!=(e=i.additionalItems)?e:_,void 0===u&&void 0===i.required||(i.required=(0,b.union)(null!=(a=i.required)?a:[],null!==u&&void 0!==u?u:[])),void 0===d!=(void 0===i.properties))null!=i.properties||(i.properties=d);else if(void 0!==d){let t=d,r=i.properties;e=Object.keys(t),a=Object.keys(r),e=(0,b.union)(e,a);let n={};e.forEach(e=>{void 0!==t[e]?n[e]=r[e]:void 0!==r[e]?n[e]=t[e]:n[e]={allOf:[t[e],r[e]]}})}void 0===p!=(void 0===i.additionalProperties)?null==i.additionalProperties&&(i.additionalProperties=p):void 0!==p&&(i.additionalProperties={allOf:[i.additionalProperties,p]})};return e&&"object"==typeof e&&v("then",e),i&&"object"==typeof i&&v("else",i),g&&"object"==typeof g&&g.forEach(e=>v("allOf",e)),h&&"object"==typeof h&&h.forEach(e=>v("anyOf",e)),y&&"object"==typeof y&&y.forEach(e=>v("oneOf",e)),{...e&&"object"==typeof e?{then:e}:{},...i&&"object"==typeof i?{else:i}:{},...g&&"object"==typeof g?{allOf:g}:{},...h&&"object"==typeof h?{anyOf:h}:{},...y&&"object"==typeof y?{oneOf:y}:{}}}(r,s);var n=s;var{then:e,else:t,allOf:i,anyOf:a,oneOf:o}=e,e=[...e?[[p(n,"then"),e]]:[],...t?[[p(n,"else"),t]]:[]],t=[...a?a.map((e,t)=>[p(p(n,"anyOf"),t),e]):[],...o?o.map((e,t)=>[p(p(n,"oneOf"),t),e]):[]],a=[...i?i.map((e,t)=>[p(p(n,"allOf"),t),e]):[]];return{type:"and",and:[{type:"or",or:e.map(([e,t])=>f(t,e))},{type:"or",or:t.map(([e,t])=>f(t,e))},{type:"and",and:a.map(([e,t])=>f(t,e))}]};return}void 0===r&&s.throwUnsupportedError("Internal error",{blob:{schema:r}});let c=e=>({type:"ref",ref:(0,u.decodeRefNameJsonSchema)(e)});var o=e=>void 0===r.$ref?e:{type:"and",and:[e,c(r.$ref)]},{const:i,enum:e}=r;let l={...void 0!==i?{const:i}:{},...void 0!==e?{enum:e}:{}};return void 0===r.type?r.$ref?{...c(r.$ref),...l}:{type:"any",...l}:1===(t=(0,b.ensureArray)(r.type).map(e=>{var t,n=r,i=l,a=s;if(m(e))return"null"===e?(0,d.annotateCoreTypes)({type:"null"},n):(0,d.annotateCoreTypes)({type:e,...i},n);if("array"===e)return Array.isArray(n.items)?(0,d.annotateCoreTypes)({type:"tuple",elementTypes:n.items.map(e=>f(e,p(a,"items"))),additionalItems:void 0===n.additionalItems||("boolean"==typeof n.additionalItems?n.additionalItems:f(n.additionalItems,p(a,"additionalItems"))),minItems:null!=(o=n.minItems)?o:0,...i},n):!1===n.items?(0,d.annotateCoreTypes)({type:"tuple",elementTypes:[],additionalItems:!1,minItems:0,...i},n):(0,d.annotateCoreTypes)({type:"array",elementType:void 0===n.items||!0===n.items?{type:"any"}:f(n.items,p(a,"items")),...i},n);if("object"===e){let r=new Set(null!=(o=n.required)?o:[]);var o=null!=(o=n.additionalProperties)?o:a.defaultAdditionalProperties;return(0,d.annotateCoreTypes)({type:"object",properties:Object.fromEntries(Object.entries(null!=(t=n.properties)?t:{}).map(([e,t])=>[e,{node:f(t,p(p(a,"properties"),e)),required:r.has(e)}])),additionalProperties:"boolean"==typeof o?o:f(o,p(a,"additionalProperties")),...i},n)}a.throwUnsupportedError(`Unsupported JSON Schema type "${e}"`,{blob:{schema:n}})})).length?o(t[0]):o({type:"or",or:t})}_.convertJsonSchemaToCoreTypes=function(e,r={}){let n=("string"==typeof e?(0,a.getAstByString):(0,a.getAstByObject))(e),i=(e=n.json)["definitions"];return{data:e={version:1,types:Object.keys(null!==i&&void 0!==i?i:{}).map(e=>{var t;return{...f((null!==i&&void 0!==i?i:{})[e],{locByPath(){return{path:this.path,loc:(0,a.getLocation)(n,{dataPath:this.path,markIdentifier:!0})}},path:["definitions",e],throwUnsupportedError(e,t){throw(t={...t}).path||(t.path=this.path),t.loc||(t.loc=(0,a.getLocation)(n,{dataPath:this.path,markIdentifier:!0})),new b.UnsupportedError(e,t)},defaultAdditionalProperties:null==(t=r.defaultAdditionalProperties)||t}),name:e}})},convertedTypes:e.types.map(({name:e})=>e),notConvertedTypes:[]}},_.complexProps=new Set(["anyOf","allOf","oneOf","then","else"]);let m=e=>["string","number","integer","boolean","null"].includes(e)},{"./annotations":4,"core-types":8,jsonpos:42,"openapi-json-schema":20}],7:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertOpenApiToCoreTypes=r.convertCoreTypesToOpenApi=void 0;let i=e("openapi-json-schema"),a=e("./core-types-to-json-schema"),n=e("./json-schema-to-core-types");r.convertCoreTypesToOpenApi=function(e,t){let{data:r,...n}=(0,a.convertCoreTypesToJsonSchema)(e,t);return{...n,data:(0,i.jsonSchemaDocumentToOpenApi)(r,t)}},r.convertOpenApiToCoreTypes=function(e){return e="string"==typeof e?JSON.parse(e):e,e=(0,i.openApiToJsonSchema)(e),(0,n.convertJsonSchemaToCoreTypes)(e)}},{"./core-types-to-json-schema":5,"./json-schema-to-core-types":6,"openapi-json-schema":20}],8:[function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.traverse=r.some=r.mergeLocations=r.getPositionOffset=r.locationToLineColumn=r.positionToLineColumn=r.decorateError=r.decorateErrorMeta=r.isCoreTypesError=r.throwRelatedError=r.throwUnsupportedError=r.RelatedError=r.UnsupportedError=r.MissingReferenceError=r.MalformedTypeError=r.formatSee=r.formatDefault=r.formatExamples=r.stringify=r.stripAnnotations=r.stringifyAnnotations=r.extractAnnotations=r.mergeAnnotations=r.isNonNullable=r.union=r.intersection=r.isEqual=r.hasConstEnum=r.isPrimitiveType=r.ensureArray=r.validate=r.simplify=void 0,i(e("./lib/types"),r),e("./lib/simplify")),o=(Object.defineProperty(r,"simplify",{enumerable:!0,get:function(){return a.simplify}}),e("./lib/validate")),s=(Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return o.validate}}),e("./lib/util")),c=(Object.defineProperty(r,"ensureArray",{enumerable:!0,get:function(){return s.ensureArray}}),Object.defineProperty(r,"isPrimitiveType",{enumerable:!0,get:function(){return s.isPrimitiveType}}),Object.defineProperty(r,"hasConstEnum",{enumerable:!0,get:function(){return s.hasConstEnum}}),Object.defineProperty(r,"isEqual",{enumerable:!0,get:function(){return s.isEqual}}),Object.defineProperty(r,"intersection",{enumerable:!0,get:function(){return s.intersection}}),Object.defineProperty(r,"union",{enumerable:!0,get:function(){return s.union}}),Object.defineProperty(r,"isNonNullable",{enumerable:!0,get:function(){return s.isNonNullable}}),e("./lib/annotation")),l=(Object.defineProperty(r,"mergeAnnotations",{enumerable:!0,get:function(){return c.mergeAnnotations}}),Object.defineProperty(r,"extractAnnotations",{enumerable:!0,get:function(){return c.extractAnnotations}}),Object.defineProperty(r,"stringifyAnnotations",{enumerable:!0,get:function(){return c.stringifyAnnotations}}),Object.defineProperty(r,"stripAnnotations",{enumerable:!0,get:function(){return c.stripAnnotations}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(r,"formatExamples",{enumerable:!0,get:function(){return c.formatExamples}}),Object.defineProperty(r,"formatDefault",{enumerable:!0,get:function(){return c.formatDefault}}),Object.defineProperty(r,"formatSee",{enumerable:!0,get:function(){return c.formatSee}}),e("./lib/error")),_=(Object.defineProperty(r,"MalformedTypeError",{enumerable:!0,get:function(){return l.MalformedTypeError}}),Object.defineProperty(r,"MissingReferenceError",{enumerable:!0,get:function(){return l.MissingReferenceError}}),Object.defineProperty(r,"UnsupportedError",{enumerable:!0,get:function(){return l.UnsupportedError}}),Object.defineProperty(r,"RelatedError",{enumerable:!0,get:function(){return l.RelatedError}}),Object.defineProperty(r,"throwUnsupportedError",{enumerable:!0,get:function(){return l.throwUnsupportedError}}),Object.defineProperty(r,"throwRelatedError",{enumerable:!0,get:function(){return l.throwRelatedError}}),Object.defineProperty(r,"isCoreTypesError",{enumerable:!0,get:function(){return l.isCoreTypesError}}),Object.defineProperty(r,"decorateErrorMeta",{enumerable:!0,get:function(){return l.decorateErrorMeta}}),Object.defineProperty(r,"decorateError",{enumerable:!0,get:function(){return l.decorateError}}),e("./lib/location")),u=(Object.defineProperty(r,"positionToLineColumn",{enumerable:!0,get:function(){return _.positionToLineColumn}}),Object.defineProperty(r,"locationToLineColumn",{enumerable:!0,get:function(){return _.locationToLineColumn}}),Object.defineProperty(r,"getPositionOffset",{enumerable:!0,get:function(){return _.getPositionOffset}}),Object.defineProperty(r,"mergeLocations",{enumerable:!0,get:function(){return _.mergeLocations}}),e("./lib/traverse"));Object.defineProperty(r,"some",{enumerable:!0,get:function(){return u.some}}),Object.defineProperty(r,"traverse",{enumerable:!0,get:function(){return u.traverse}})},{"./lib/annotation":9,"./lib/error":10,"./lib/location":11,"./lib/simplify":15,"./lib/traverse":16,"./lib/types":17,"./lib/util":18,"./lib/validate":19}],9:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.stringify=r.formatSee=r.formatDefault=r.formatExamples=r.arrayOrSingle=r.stripAnnotations=r.stringifyAnnotations=r.wrapWhitespace=r.extractAnnotations=r.mergeAnnotations=void 0;let _=e("./location"),u=e("./util");function s(e){return e.includes("\n")?["*",e.split("\n").map(e=>" * "+e).join("\n")," "].join("\n"):e.startsWith(" ")?e:" "+e}function d(e){return 1===e.length?e[0]:e}function c(e){return e.map(e=>"@example\n"+i(n(e).split("\n"),4)).join("\n").trim()}function l(e){return["@default",i(n(e).split("\n"),4)].join("\n").trim()}function p(e){return e.map(e=>"@see "+n(e)).join("\n").trim()}function n(e){return"string"==typeof e?e:JSON.stringify(e,null,2)}function i(e,r,n=!1){return e.map((e,t)=>{return(0===t&&n?" ".repeat(r-2)+"* ":" ".repeat(r))+e}).join("\n")}r.mergeAnnotations=function(e){let t,r=e=>!!e;var n=(e,t="\n")=>(0,u.uniq)(e.filter(r)).join(t).trim(),i=null==(t=e.find(e=>e.name))?void 0:t.name,a=n(e.map(e=>e.title),", "),o=n(e.map(e=>e.description)),s=(0,u.uniq)([].concat(...e.map(e=>(0,u.ensureArray)(e.examples))).filter(r)),c=n(e.map(e=>e.default)),l=(0,u.uniq)([].concat(...e.map(e=>(0,u.ensureArray)(e.see))).filter(r)),n=n(e.map(e=>e.comment)),e=(0,_.mergeLocations)(e.map(e=>e.loc));return{...i?{name:i}:{},...a?{title:a}:{},...o?{description:o}:{},...0e).join("\n\n").trim().replace(/\*\//g,"*\\/");return r&&e?s(e):e},r.stripAnnotations=function t(e,r=!0){let{comment:n,description:i,default:a,examples:o,see:s,title:c,...l}=e,_=l;if(r){if("and"===_.type)return{..._,and:_.and.map(e=>t(e,!0))};if("or"===_.type)return{..._,or:_.or.map(e=>t(e,!0))};if("array"===_.type)return{..._,elementType:t(_.elementType,!0)};if("tuple"===_.type)return{..._,elementTypes:_.elementTypes.map(e=>t(e,!0)),additionalItems:"object"==typeof _.additionalItems?t(_.additionalItems,!0):_.additionalItems};if("object"===_.type)return{..._,properties:Object.fromEntries(Object.keys(_.properties).map(e=>[e,{..._.properties[e],node:t(_.properties[e].node,!0)}])),additionalProperties:"object"==typeof _.additionalProperties?t(_.additionalProperties,!0):_.additionalProperties}}return _},r.arrayOrSingle=d,r.formatExamples=c,r.formatDefault=l,r.formatSee=p,r.stringify=n},{"./location":11,"./util":18}],10:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decorateError=r.decorateErrorMeta=r.isCoreTypesError=r.throwRelatedError=r.throwUnsupportedError=r.RelatedError=r.UnsupportedError=r.MissingReferenceError=r.MalformedTypeError=r.CoreTypesError=void 0;class n extends Error{constructor(e,t={}){super(e),Object.setPrototypeOf(this,n.prototype),this.blob=t.blob,this.path=t.path,this.loc=t.loc,this.source=t.source,this.filename=t.filename,this.relatedError=t.relatedError}}r.CoreTypesError=n;class i extends n{constructor(e,t={}){super(e,t),Object.setPrototypeOf(this,i.prototype)}}r.MalformedTypeError=i;class a extends n{constructor(e,t={}){super(`Reference to missing type "${e}"`,t),Object.setPrototypeOf(this,a.prototype)}}r.MissingReferenceError=a;class o extends n{constructor(e,t={}){super(e,t),Object.setPrototypeOf(this,o.prototype)}}r.UnsupportedError=o;class s extends n{constructor(e,t={}){super(e.message,{...t,relatedError:e}),Object.setPrototypeOf(this,s.prototype)}}function c(e){return e instanceof n}function l(e,t){return t.blob&&null==e.blob&&(e.blob=t.blob),t.path&&null==e.path&&(e.path=t.path),t.loc&&null==e.loc&&(e.loc=t.loc),t.source&&null==e.source&&(e.source=t.source),t.filename&&null==e.filename&&(e.filename=t.filename),e}r.RelatedError=s,r.throwUnsupportedError=function(e,t,r){throw new o(e,{blob:t,...t.loc?{loc:t.loc}:{},...r?{path:r}:{}})},r.throwRelatedError=function(e,t){throw new s(e,t)},r.isCoreTypesError=c,r.decorateErrorMeta=l,r.decorateError=function(e,t){return c(e)&&l(e,t),e}},{}],11:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeLocations=r.getPositionOffset=r.locationToLineColumn=r.positionToLineColumn=void 0;let c=e("./util");function n(e,t){var r=e.slice(0,t).split("\n").length,e=e.lastIndexOf("\n",t);return-1===e?{offset:t,line:r,column:t}:{offset:t,line:r,column:t-e}}r.positionToLineColumn=n,r.locationToLineColumn=function(e,t){return"object"==typeof t.start?t:{start:void 0===t.start?void 0:n(e,t.start),...null==t.end?{}:{end:n(e,t.end)}}},r.getPositionOffset=function(e){return void 0===e||"number"==typeof e?e:e.offset},r.mergeLocations=function(e){let t,r,n,i,a,o=e=>"number"==typeof e?e:null==e?void 0:e.offset;e.filter(c.isNonNullable).forEach(({start:e,end:t})=>{var r=o(e),n=o(t);void 0!==r&&(!i||"number"==typeof i.location&&i.location===r||i.offset>r)&&(i={location:e,offset:r}),void 0!==n&&(!a||"number"==typeof a.location&&a.location===r||a.offseta(e))).some(e=>0===e.length)?[]:(0,n.uniq)([].concat(...e))},r.combineConstAndEnum=a},{"../util":18}],13:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.intersectConstEnum=void 0;let n=e("../annotation"),i=e("../util");r.intersectConstEnum=function(e){if(0===e.length)throw new Error("Cannot intersect const and enum from an empty array of nodes");var t;return 1===e.length?e[0]:(t=(t=e.map(e=>void 0!==e.const?[e.const]:void 0!==e.enum?e.enum:void 0).filter(e=>!!e)).slice(1).reduce((e,t)=>(0,i.intersection)(e,t),t[0]),{type:e[0].type,...1===t.length?{const:t[0]}:{},...1!==t.length?{enum:t}:{},...(0,n.mergeAnnotations)(e)})}},{"../annotation":9,"../util":18}],14:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.simplifySingle=void 0;let n=e("./const-enum");r.simplifySingle=function(e){return"boolean"===e.type||"integer"===e.type||"number"===e.type||"string"===e.type?(0,n.simplifyEnumAndConst)(e):e}},{"./const-enum":12}],15:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.simplify=void 0;let o=e("./simplifications/single"),s=e("./simplifications/const-enum"),i=e("./simplifications/intersect-const-enum"),a=e("./error"),c=e("./annotation"),l=e("./util"),_=["any","string","number","integer","boolean"];r.simplify=function n(t){if(Array.isArray(t))return t.map(e=>n(e));if((0,l.isNodeDocument)(t))return{...t,types:n(t.types)};var e,r=e=>(0,l.copyName)(t,e);if("tuple"===t.type)return{...t,elementTypes:t.elementTypes.map(e=>n(e)),...t.additionalItems&&"object"==typeof t.additionalItems?{additionalItems:n(t.additionalItems)}:{}};if("array"===t.type)return{...t,elementType:n(t.elementType)};if("object"===t.type)return{...t,properties:Object.fromEntries(Object.entries(t.properties).map(([e,{node:t,required:r}])=>[e,{node:n(t),required:r}])),...t.additionalProperties&&"object"==typeof t.additionalProperties?{additionalProperties:n(t.additionalProperties)}:{}};if("and"!==t.type&&"or"!==t.type)return r((0,o.simplifySingle)(t));if("and"===t.type)return 1===(e=function(e){if(0<(e=(0,l.splitTypes)(e)).any.length){if(0===e.and.length&&0===e.or.length&&0===e.ref.length&&0===e.null.length&&0===e.string.length&&0===e.number.length&&0===e.integer.length&&0===e.boolean.length&&0===e.object.length&&0===e.array.length&&0===e.tuple.length)return[{type:"any",...(0,c.mergeAnnotations)(e.any.map(({node:e})=>e))}];e.any=[]}var t=e=>e.map(({node:e})=>e);return 1e),...t(e.any)]),order:(0,l.firstSplitTypeIndex)(e.boolean)}]),1e),...t(e.any)]),order:(0,l.firstSplitTypeIndex)(e.string)}]),0e),...t(e.integer),...t(e.any)]),order:(0,l.firstSplitTypeIndex)(e.number)}],e.integer=[]):1e),...t(e.any)]),order:(0,l.firstSplitTypeIndex)(e.number)}]:1e),...t(e.any)]),order:(0,l.firstSplitTypeIndex)(e.integer)}]),000(e=n(e)).and||[e])))).length?r({...e[0],...(0,c.mergeAnnotations)([(0,c.extractAnnotations)(t),e[0]])}):r({type:"and",and:e,...(0,c.extractAnnotations)(t)});if("or"===t.type)return 1===(e=function(e){var t,r,n,i,a=(0,l.splitTypes)(e);if(0e)).length)return[{type:"any",...(0,c.mergeAnnotations)(a.any.map(({node:e})=>e))}];for([t,r]of Object.entries(a))_.includes(t)&&r.length&&(n=r.map(({node:e})=>e),0===(i=(0,s.mergeConstEnumUnion)(n)).length?a[t]=[{node:{type:t,...(0,c.mergeAnnotations)(n)},order:(0,l.firstSplitTypeIndex)(r)}]:a[t]=[{node:(0,o.simplifySingle)({type:t,enum:i,...(0,c.mergeAnnotations)(n)}),order:(0,l.firstSplitTypeIndex)(r)}]);return 000(e=n(e)).or||[e])))).length?r({...e[0],...(0,c.mergeAnnotations)([(0,c.extractAnnotations)(t),e[0]])}):r({type:"or",or:e,...(0,c.extractAnnotations)(t)});throw new a.MalformedTypeError("Invalid node",t)}},{"./annotation":9,"./error":10,"./simplifications/const-enum":12,"./simplifications/intersect-const-enum":13,"./simplifications/single":14,"./util":18}],16:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.some=r.traverse=void 0;class n extends Error{}function i(e,t){function o(e,t,r,n,i,a){var a=void 0!==a?a:void 0===n?t[r]:t[r][n],o=[...e.path,r,...void 0===n?[]:[n]];return Object.assign({},e,{node:a,path:o,parentNode:t,parentProperty:r,index:n,required:i})}!function r(n,i){i(n);let a=n.node;if("array"===a.type)r(o(n,a,"elementType"),i);else if("tuple"===a.type)a.elementTypes.forEach((e,t)=>r(o(n,a,"elementTypes",t),i)),"object"==typeof a.additionalItems&&r(o(n,a,"additionalItems"),i);else if("object"===a.type){for(var e of Object.keys(a.properties))r(o(n,a,"properties",e,a.properties[e].required,a.properties[e].node),i);"object"==typeof a.additionalProperties&&r(o(n,a,"additionalProperties"),i)}else"and"===a.type?a.and.forEach((e,t)=>r(o(n,a,"and",t),i)):"or"===a.type&&a.or.forEach((e,t)=>r(o(n,a,"or",t),i))}({node:e,rootNode:e,path:[]},t)}r.traverse=i,r.some=function(e,t){try{i(e,e=>{if(t(e))throw new n})}catch(e){if(e instanceof n)return!0;throw e}return!1}},{}],17:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})},{}],18:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isNodeDocument=r.isNonNullable=r.copyName=r.firstSplitTypeIndex=r.flattenSplitTypeValues=r.splitTypes=r.union=r.intersection=r.isEqual=r.hasConstEnum=r.constEnumTypes=r.isPrimitiveType=r.ensureArray=r.uniq=void 0,r.uniq=function(n){return n.filter((t,r)=>{for(let e=0;e["null","string","number","integer","boolean"].includes(e.type),r.constEnumTypes=new Set(["any","string","number","integer","boolean","object","array","tuple","ref"]);function i(t,r){var e;return typeof t==typeof r&&!(null===t!=(null===r)||null!==t&&(Array.isArray(t)&&Array.isArray(r)?t.length!==r.length||t.some((e,t)=>!i(e,r[t])):Array.isArray(t)!==Array.isArray(r)||("object"==typeof t?!i(e=Object.keys(t).sort(),Object.keys(r).sort())||e.some(e=>!i(t[e],r[e])):t!==r)))}r.hasConstEnum=e=>r.constEnumTypes.has(e.type),r.isEqual=i,r.intersection=function(e,r){let n=[];return e.forEach(t=>{r.forEach(e=>{i(t,e)&&n.push(t)})}),n},r.union=function(e,t){let r=[...e];return t.forEach(t=>{e.some(e=>i(t,e))||r.push(t)}),r},r.splitTypes=function(e){let r={and:[],or:[],ref:[],any:[],null:[],string:[],number:[],integer:[],boolean:[],object:[],array:[],tuple:[]};return e.forEach((e,t)=>{("and"!==e.type&&"or"!==e.type||"and"===e.type&&0e.order-t.order).map(({node:e})=>e))},r.firstSplitTypeIndex=function(e){return Math.min(...e.map(({order:e})=>e))},r.copyName=function(e,t){return void 0===e.name?t:{...t,name:e.name}},r.isNonNullable=function(e){return null!=e},r.isNodeDocument=function(e){return Array.isArray(e.types)}},{}],19:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validate=void 0;let n=e("./error"),i=e("./util");r.validate=function t(e){if((0,i.hasConstEnum)(e)){var r=e;if(r.enum&&0===r.enum.length)throw new n.MalformedTypeError("Empty enum is not allowed",r);if(r.enum&&void 0!==r.const&&!r.enum.some(e=>(0,i.isEqual)(e,r.const)))throw new n.MalformedTypeError("Enum and const are both set, but enum doesn't contain const",r)}"and"===e.type&&e.and.forEach(e=>t(e)),"or"===e.type&&e.or.forEach(e=>t(e))}},{"./error":10,"./util":18}],20:[function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./lib"),r),i(e("./lib/types"),r),i(e("./lib/utils"),r)},{"./lib":21,"./lib/types":24,"./lib/utils":25}],21:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.openApiToJsonSchema=r.jsonSchemaDocumentToOpenApi=r.decorateOpenApi=void 0;let i=e("./json-schema-to-openapi"),n=e("./openapi-to-json-schema");function a(e,{title:t,version:r,schemaVersion:n="3.0.0"}){t={title:t,version:r};return e.$id&&(t["x-id"]=e.$id,delete e.$id),e.$comment&&(t["x-comment"]=e.$comment,delete e.$comment),delete e.$schema,{openapi:n,info:t,paths:{},...e}}r.decorateOpenApi=a,r.jsonSchemaDocumentToOpenApi=function(e,t){let{definitions:r={},...n}=e;return a({...n,components:{schemas:Object.fromEntries(Object.entries(r).map(([e,t])=>[e,(0,i.jsonSchemaTypeToOpenApi)(t)]))}},t)},r.openApiToJsonSchema=function(e){let t=e.components.schemas;return{definitions:Object.fromEntries(Object.keys(t).map(e=>[e,(0,n.openApiToJsonSchemaType)(t[e])]))}}},{"./json-schema-to-openapi":22,"./openapi-to-json-schema":23}],22:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.jsonSchemaTypeToOpenApi=void 0;let n=e("./utils");r.jsonSchemaTypeToOpenApi=function e(t){var r;return"boolean"==typeof t?t:(t=function(e){if(void 0===e.type)return e;let{type:t,...r}=e,n=Array.isArray(t)?t.includes("null"):"null"===t;var i=Array.isArray(t)?t.filter(e=>"null"!==e):"null"===t?void 0:t;let a=(e,t)=>"any"!==t&&t?{...e,type:t}:e;return void 0!==e.const&&(r.enum=[e.const],delete r.const),e=e=>n?{...e,nullable:n}:e,Array.isArray(i)?0===i.length?e(r):1===i.length?a(e(r),i[0]):{...e(r),anyOf:i.map(e=>a({},e))}:a(e(r),i)}(t),t=(r=t).$ref?{...r,$ref:(0,n.encodeRefNameOpenApi)((0,n.decodeRefNameJsonSchema)(r.$ref))}:r,(0,n.recurseSchema)(t,e))}},{"./utils":25}],23:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.openApiToJsonSchemaType=void 0;let o=e("./utils");r.openApiToJsonSchemaType=function e(t){if("boolean"==typeof t)return t;let{type:r,nullable:n,...i}=t;var a,t=function(e,t){if(void 0!==e&&"any"!==e)return Array.isArray(e)?e.includes("any")?void 0:(!e.includes("null")&&t&&e.push("null"),1===e.length?e[0]:e):"null"!==e&&t?[e,"null"]:e}(r,n),t={...i,...t?{type:t}:{}},t=(a=t).$ref?{...a,$ref:(0,o.encodeRefNameJsonSchema)((0,o.decodeRefNameOpenApi)(a.$ref))}:a;return(0,o.recurseSchema)(t,e)}},{"./utils":25}],24:[function(e,t,r){arguments[4][17][0].apply(r,arguments)},{dup:17}],25:[function(e,t,r){function n(e){return encodeURIComponent(e)}function i(e){return decodeURIComponent(e)}function a(e){return e&&0r(e))}:{items:r(n.items)},..."object"!=typeof n.additionalItems?{}:{additionalItems:r(n.additionalItems)},..."object"!=typeof n.contains?{}:{contains:r(n.contains)},...a(n.properties)?{properties:Object.fromEntries(Object.keys(n.properties).map(e=>{var t;return[e,r(null==(t=n.properties)?void 0:t[e])]}))}:{},...a(n.patternProperties)?{patternProperties:Object.fromEntries(Object.keys(n.patternProperties).map(e=>{var t;return[e,r(null==(t=n.patternProperties)?void 0:t[e])]}))}:{},..."object"!=typeof n.additionalProperties?{}:{additionalProperties:r(n.additionalProperties)},...a(n.dependencies)?{dependencies:Object.fromEntries(Object.keys(n.dependencies).map(e=>{var t;return[e,r(null==(t=n.dependencies)?void 0:t[e])]}))}:{},..."object"!=typeof n.propertyNames?{}:{propertyNames:r(n.propertyNames)},..."object"!=typeof n.if?{}:{if:r(n.if)},..."object"!=typeof n.then?{}:{then:r(n.then)},..."object"!=typeof n.else?{}:{else:r(n.else)},..."object"==typeof n.allOf&&n.allOf.length?{allOf:n.allOf.map(e=>r(e))}:{},..."object"==typeof n.anyOf&&n.anyOf.length?{anyOf:n.anyOf.map(e=>r(e))}:{},..."object"==typeof n.oneOf&&n.oneOf.length?{oneOf:n.oneOf.map(e=>r(e))}:{},..."object"!=typeof n.not?{}:{not:r(n.not)},...a(n.definitions)?{definitions:Object.fromEntries(Object.keys(n.definitions).map(e=>{var t;return[e,r(null==(t=n.definitions)?void 0:t[e])]}))}:{}}}},{}],26:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decorateNode=void 0;let n=e("typescript"),i=e("core-types");function a(e){let r=(e,t)=>{return e?n.isArrayTypeNode(e)&&e.parent&&n.isRestTypeNode(e.parent)||n.isRestTypeNode(e)||n.isOptionalTypeNode(e)||n.isUnionTypeNode(e)||n.isParenthesizedTypeNode(e)||n.isTypeLiteralNode(e)?r(e.parent,e):n.isArrayTypeNode(e)?["[]",...r(e.parent,e)]:n.isTupleTypeNode(e)?[...-1===(t=e.elements.indexOf(t))?[]:[""+t],...r(e.parent,e)]:(t=n.isTypeAliasDeclaration(e)||n.isInterfaceDeclaration(e)||n.isPropertySignature(e)?e.name.getText():"")?[t,...r(e.parent,e)]:(t=e).parent&&(n.isArrayTypeNode(t.parent)||n.isTupleTypeNode(t.parent)||n.isOptionalTypeNode(t.parent)||n.isRestTypeNode(t.parent)||n.isUnionTypeNode(t.parent))?r(e.parent,e):[]:[]};e=r(e,void 0);return e.length?{title:e.reverse().join(".")}:{}}function c(e){return void 0===e||"string"==typeof e?e:e.map(({text:e})=>e).join(" ")}function o(e){let i=[],a=[],o=[],s=[];return e.forEach(e=>{var t,r,n;e.comment&&("example"===e.tagName.text?a.push(null!=(r=null==(r=c(e.comment))?void 0:r.trim())?r:""):"default"===e.tagName.text?o.push(null!=(r=null==(r=c(e.comment))?void 0:r.trim())?r:""):"see"===e.tagName.text?s.push(null!==(r=((r=e).name?(null==(n=r.name)?void 0:n.getText())+" ":"")+(null==(n=c(r.comment))?void 0:n.trim()))?r:""):(t=null!=(t=null==(n=c(e.comment))?void 0:n.trim())?t:"",i.push(`@${e.tagName.text} `+t)))}),{...0===i.length?{}:{description:i.join("\n")},...0===a.length?{}:{examples:a},...0===o.length?{}:{default:o.join("\n")},...0===s.length?{}:{see:s}}}r.decorateNode=function(e,t){var{includeJsDoc:t=!0}=null!=t?t:{},r=e["jsDoc"],e=a(e);return t&&r&&r.length?(t=r[0],(0,i.mergeAnnotations)([(r=c(t.comment))?{description:r}:{},e,o(null!=(r=t.tags)?r:[])])):e}},{"core-types":29,typescript:46}],27:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createCodeHeader=r.isExportedDeclaration=r.toLocation=r.tsStripOptionalType=r.generateCode=r.makeGenericComment=r.wrapAnnotations=r.safeName=r.tsUnknownTypeAnnotation=void 0;let n=e("typescript"),i=e("core-types"),a=n["factory"];function c(e,t=!1){var e=Array.isArray(e)?e:e.trim().split("\n");return 1===e.length&&""===e[0]?void 0:(e=`* +${e=e,e.map(e=>" * "+e).join("\n")} + `,t?e:`/*${e}*/`)}r.tsUnknownTypeAnnotation=function(){return a.createToken(n.SyntaxKind.UnknownKeyword)},r.safeName=function(e){return e.match(/^[a-zA-Z$][a-zA-Z0-9_$]*$/)?a.createIdentifier(e):a.createStringLiteral(e)},r.wrapAnnotations=function(e,t,r=!0){return(t=(0,i.stringifyAnnotations)(t,{formatWhitespace:r}).trim())?r?n.addSyntheticLeadingComment(e,n.SyntaxKind.MultiLineCommentTrivia,t.includes("\n")?t+` + `:`* ${t} `,!0):t.split("\n").reduce((e,t)=>n.addSyntheticLeadingComment(e,n.SyntaxKind.SingleLineCommentTrivia," "+t,!0),e):e},r.makeGenericComment=c,r.generateCode=function(e){var t=n.createPrinter({newLine:n.NewLineKind.LineFeed}),r=n.createSourceFile("output.ts","",n.ScriptTarget.ES2017,!1,n.ScriptKind.TS);return t.printNode(n.EmitHint.Unspecified,e,r)},r.tsStripOptionalType=function(e){return n.isOptionalTypeNode(e)?e.type:e},r.toLocation=function(e){return{start:e.pos,...null==e?{}:{end:e.end}}},r.isExportedDeclaration=function(e){return!(null==(e=e.modifiers)||!e.some(e=>e.kind===n.SyntaxKind.ExportKeyword))},r.createCodeHeader=function({filename:e,sourceFilename:t,userPackage:r,userPackageUrl:n,noDisableLintHeader:i=!1,noDescriptiveHeader:a=!1,createdByPackage:o,createdByUrl:s}){return i&&a?"":[i?"":"/* tslint:disable */\n/* eslint-disable */",a?"":c([(e?"The file "+e:"This file")+` is generated${t?" from "+t:""} by `+o+(r?" on behalf of "+r:"")+", DO NOT EDIT.","For more information, see:",` - {@link ${s}}`,...(i=n?` - {@link ${n}}`:"")?[i]:[]])].join("\n")+"\n\n"}},{"core-types":29,typescript:46}],28:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertTypeScriptToCoreTypes=void 0;let f=e("typescript"),m=e("core-types"),g=e("./ts-helpers"),c=e("./ts-annotations"),l={type:"any"};function _(e){var t;return null!=(t=e.typeArguments)&&t.length||null!=(t=e.typeParameters)&&t.length}function u(e,t){return t.handleError(t.getUnsupportedError("Generic types are not supported",e))}function h(e,t){var r;if(_(e))return u(e,t);if(f.isTypeAliasDeclaration(e))return{name:e.name.getText(),...(0,c.decorateNode)(e),...null!=(r=p(e.type,t))?r:l};if(f.isInterfaceDeclaration(e))return{name:e.name.getText(),type:"object",...d(e,t),...(0,c.decorateNode)(e)};throw new Error("Internal error")}function d(e,n){let i={properties:{},additionalProperties:!1};return e.members.forEach(e=>{var t,r;f.isPropertySignature(e)&&e.type?(r=e.name.getText(),i.properties[r]={required:!((null==(r=(r=e).questionToken)?void 0:r.kind)===f.SyntaxKind.QuestionToken),node:{...null!=(r=p(e.type,n))?r:l,...(0,c.decorateNode)(e)}}):f.isIndexSignatureDeclaration(e)&&((null==(t=(r=e.parameters[0]).type)?void 0:t.kind)!==f.SyntaxKind.StringKeyword?n.options.warn("Will not convert non-string index signature",{blob:r,loc:(0,g.toLocation)(r)}):i.additionalProperties=null!=(t=p(e.type,n))?t:l)}),i}function p(o,s,e){var{peekOnly:e=!1}=null!=e?e:{};if(f.isUnionTypeNode(o))return{type:"or",or:o.types.map(e=>p(e,s)).filter(m.isNonNullable),...(0,c.decorateNode)(o)};if(f.isIntersectionTypeNode(o))return{type:"and",and:o.types.map(e=>p(e,s)).filter(m.isNonNullable),...(0,c.decorateNode)(o)};if(f.isParenthesizedTypeNode(o))return(null==(n=(r=[...o.getChildren()])[0])?void 0:n.kind)===f.SyntaxKind.OpenParenToken&&r.shift(),(null==(n=r[r.length-1])?void 0:n.kind)===f.SyntaxKind.CloseParenToken&&r.pop(),1===r.length&&f.isTypeNode(r[0])?p(r[0],s):s.handleError(s.getUnsupportedError("Parenthesis type not understood",o));if(o.kind===f.SyntaxKind.AnyKeyword)return{type:"any",...(0,c.decorateNode)(o)};if(o.kind===f.SyntaxKind.UnknownKeyword)return{type:"any",...(0,c.decorateNode)(o)};if(o.kind===f.SyntaxKind.StringKeyword)return{type:"string",...(0,c.decorateNode)(o)};if(o.kind===f.SyntaxKind.NumberKeyword)return{type:"number",...(0,c.decorateNode)(o)};if(o.kind===f.SyntaxKind.BooleanKeyword)return{type:"boolean",...(0,c.decorateNode)(o)};if(o.kind===f.SyntaxKind.ObjectKeyword)return{type:"object",properties:{},additionalProperties:!0,...(0,c.decorateNode)(o)};if(f.isArrayTypeNode(o))return{type:"array",elementType:null!=(n=p(o.elementType,s))?n:l,...(0,c.decorateNode)(o)};if(f.isTypeReferenceNode(o)){if(o.typeName.kind===f.SyntaxKind.QualifiedName)return s.handleError(s.getUnsupportedError("Qualified reference names not supported",o));if("Array"===o.typeName.text)return{type:"array",elementType:(r=o.typeArguments)&&null!=(n=p(r[0],s))?n:l,...(0,c.decorateNode)(o)};let i=o.typeName.text,a=e=>{if(s.cyclicState.has(e))throw new m.MalformedTypeError("Cyclic type found when trying to inline type "+e,{blob:o,loc:(0,g.toLocation)(o)});s.cyclicState.add(e)};var r=()=>{var e,t,r=null!=(r=o.typeArguments)?r:[],n=r[0],r=r[1],r=void 0===r?void 0:(r=r,f.isLiteralTypeNode(r)&&f.isStringLiteral(r.literal)?[r.literal.text]:!f.isUnionTypeNode(r)||(e=r.types.map(e=>f.isLiteralTypeNode(e)&&f.isStringLiteral(e.literal)?e.literal.text:void 0)).some(e=>void 0===e)?s.handleError(s.getUnsupportedError("Expected string union kind",r)):e);return void 0===n||void 0===(e=p(n,s,{peekOnly:!0}))?s.handleError(s.getUnsupportedError(i+"<> of non-objects are not supported",o)):"ref"===e.type?(n=n.getText(),(t=s.typeMap.get(n))&&(f.isTypeLiteralNode(t.declaration)||f.isInterfaceDeclaration(t.declaration))?(a(n),{members:d(t.declaration,s),secondNames:r}):s.handleError(s.getUnsupportedError(i+"<> of non-objects are not supported",o))):"object"===e.type?{members:e,secondNames:r}:s.handleError(s.getUnsupportedError(i+"<> of non-objects are not supported",o))};if("Omit"===i){var n=r();if(!n)return;let{members:e,secondNames:t}=n;return void 0===t?void 0:{type:"object",...{...e,properties:Object.fromEntries(Object.entries(e.properties).filter(([e])=>!t.includes(e)))},...(0,c.decorateNode)(o,{includeJsDoc:!1})}}if("Pick"===i){var n=r();if(!n)return;let{members:e,secondNames:t}=n;return void 0===t?void 0:{type:"object",...{...e,properties:Object.fromEntries(Object.entries(e.properties).filter(([e])=>t.includes(e)))},...(0,c.decorateNode)(o,{includeJsDoc:!1})}}if("Partial"===i)return(n=r())?(r=n["members"],{type:"object",...{...r,properties:Object.fromEntries(Object.entries(r.properties).map(([e,t])=>[e,{...t,required:!1}]))},...(0,c.decorateNode)(o,{includeJsDoc:!1})}):void 0;if(_(o))return u(o,s);n=s.typeMap.get(i);if(n&&!n.exported&&!e)if("include-if-referenced"===s.options.nonExported)s.includeExtra.add(i);else if("inline"===s.options.nonExported)return a(i),h(n.declaration,s);return{type:"ref",ref:i,...(0,c.decorateNode)(o)}}return f.isTupleTypeNode(o)?{type:"tuple",...function(e,t){if(0===e.elements.length)return{elementTypes:[],additionalItems:!1,minItems:0};var r=f.isRestTypeNode(e.elements[e.elements.length-1]),[r,e]=r?[e.elements.slice(0,e.elements.length-1),e.elements[e.elements.length-1]]:[[...e.elements],void 0],n=r.map(e=>{return null!=(e=p((0,g.tsStripOptionalType)(e),t))?e:l}),e=!!e&&(null!=(e=p(e.type.elementType,t))?e:l),i=r.findIndex(e=>f.isOptionalTypeNode(e)),r=-1===i?r.length:i;return{elementTypes:n,...e&&"any"===e.type?{additionalItems:!0}:{additionalItems:e},minItems:r}}(o,s),...(0,c.decorateNode)(o)}:f.isLiteralTypeNode(o)?f.isNumericLiteral(o.literal)?{type:"number",const:Number(o.literal.text),...(0,c.decorateNode)(o)}:f.isStringLiteral(o.literal)?{type:"string",const:o.literal.text,...(0,c.decorateNode)(o)}:o.literal.kind===f.SyntaxKind.TrueKeyword?{type:"boolean",const:!0,...(0,c.decorateNode)(o)}:o.literal.kind===f.SyntaxKind.FalseKeyword?{type:"boolean",const:!1,...(0,c.decorateNode)(o)}:o.literal.kind===f.SyntaxKind.NullKeyword?{type:"null",...(0,c.decorateNode)(o)}:o.literal.kind===f.SyntaxKind.PrefixUnaryExpression?"operand"in o.literal&&o.literal.operator===f.SyntaxKind.MinusToken?{type:"number",const:-Number(o.literal.operand.getText()),...(0,c.decorateNode)(o)}:s.handleError(s.getUnsupportedError("Prefix unary expressions is only supported for MinusToken",o.literal)):s.handleError(s.getUnsupportedError("Literal type not understood",o.literal)):f.isTypeLiteralNode(o)?{type:"object",...d(o,s),...(0,c.decorateNode)(o)}:s.handleError(s.getUnsupportedError(`Unimplemented type (kind=${o.kind})`,o))}r.convertTypeScriptToCoreTypes=function(n,e){let{warn:t=(o=n,(e,t)=>{var r,t=null!=(r=null==t?void 0:t.loc)&&r.start?[t.loc,o.slice((0,m.getPositionOffset)(null==(r=t.loc)?void 0:r.start),(0,m.getPositionOffset)(null==(r=t.loc)?void 0:r.end))]:[];console.warn(e,...t)}),namespaces:i="ignore",nonExported:r="include-if-referenced",unsupported:a="ignore"}=null!=e?e:{};var o;let s=new Set,c=(e=f.createSourceFile("filename.ts",n,f.ScriptTarget.Latest,!0),e=>f.isTypeAliasDeclaration(e)||f.isInterfaceDeclaration(e)),l=(t,e)=>[...e.filter(e=>f.isModuleDeclaration(e)).flatMap(e=>e.body.kind!==f.SyntaxKind.ModuleBlock?[]:l([...t,e.name.getText()],e.body.statements)),...e.filter(c).map(e=>{if(!(0!!e)],_=e=>{var{declaration:e,namespaceParents:t}=e,t=[...t,e.name.getText()].join(".");s.add(t)},u=({declaration:e,namespaceParents:t})=>{var r=e.name.getText();let n="hoist"===i||"ignore"===i?r:[...t,r].join("join-dot"===i?".":"_");t=f.factory.createIdentifier(n);return t.getText=e=>n,e.name=t,e},d=(e=l([],e.statements),e=("hoist"===i?(e=>{let i=new Map;return e.forEach(e=>{var{declaration:t,namespaceParents:r}=e,t=t.name.getText(),n=i.get(t);n?n.namespaceParents.length>r.length?(i.set(t,e),_(n)):_(e):i.set(t,e)}),[...i.values()]})(e):e).map(u),{options:{warn:t,namespaces:i,nonExported:r,unsupported:a},typeMap:new Map(e.map(e=>[e.name.getText(),{declaration:e,exported:(0,g.isExportedDeclaration)(e)}])),includeExtra:new Set,cyclicState:new Set,getUnsupportedError(e,t){var r=(0,m.locationToLineColumn)(n,(0,g.toLocation)(t));return new m.UnsupportedError(e,{blob:t,loc:r,source:n})},handleError(e){if("warn"===d.options.unsupported)d.options.warn(e.message,e);else if("error"===d.options.unsupported)throw e}}),p=("fail"===d.options.nonExported&&e.filter(e=>!(0,g.isExportedDeclaration)(e)).forEach(e=>{throw new m.MalformedTypeError("Found non-exported type when 'nonExported' is 'fail'",{blob:e,path:[e.name.getText()],loc:(0,g.toLocation)(e)})}),e=>{d.cyclicState=new Set;var t=h(e,d);return t||s.add(e.name.getText()),t});return(e=e.filter(e=>"include"===d.options.nonExported||(0,g.isExportedDeclaration)(e)).map(e=>p(e)).filter(e=>!!e)).push(...[...d.includeExtra.values()].map(e=>{e=d.typeMap.get(e);if(e)return p(e.declaration);throw new Error("Internal error on exporting non-exported type")}).filter(e=>!!e)),{data:{version:1,types:e},convertedTypes:e.map(({name:e})=>e),notConvertedTypes:[...s]}}},{"./ts-annotations":26,"./ts-helpers":27,"core-types":29,typescript:46}],29:[function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&("get"in i?t.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.traverse=r.some=r.mergeLocations=r.getPositionOffset=r.locationToLineColumn=r.positionToLineColumn=r.decorateError=r.decorateErrorMeta=r.isCoreTypesError=r.throwRelatedError=r.throwUnsupportedError=r.RelatedError=r.UnsupportedError=r.MissingReferenceError=r.MalformedTypeError=r.formatSee=r.formatDefault=r.formatExamples=r.stringify=r.stripAnnotations=r.stringifyAnnotations=r.extractAnnotations=r.mergeAnnotations=r.isNonNullable=r.union=r.intersection=r.isEqual=r.hasConstEnum=r.isPrimitiveType=r.ensureArray=r.validate=r.simplify=void 0,i(e("./lib/types"),r),e("./lib/simplify")),o=(Object.defineProperty(r,"simplify",{enumerable:!0,get:function(){return a.simplify}}),e("./lib/validate")),s=(Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return o.validate}}),e("./lib/util")),c=(Object.defineProperty(r,"ensureArray",{enumerable:!0,get:function(){return s.ensureArray}}),Object.defineProperty(r,"isPrimitiveType",{enumerable:!0,get:function(){return s.isPrimitiveType}}),Object.defineProperty(r,"hasConstEnum",{enumerable:!0,get:function(){return s.hasConstEnum}}),Object.defineProperty(r,"isEqual",{enumerable:!0,get:function(){return s.isEqual}}),Object.defineProperty(r,"intersection",{enumerable:!0,get:function(){return s.intersection}}),Object.defineProperty(r,"union",{enumerable:!0,get:function(){return s.union}}),Object.defineProperty(r,"isNonNullable",{enumerable:!0,get:function(){return s.isNonNullable}}),e("./lib/annotation")),l=(Object.defineProperty(r,"mergeAnnotations",{enumerable:!0,get:function(){return c.mergeAnnotations}}),Object.defineProperty(r,"extractAnnotations",{enumerable:!0,get:function(){return c.extractAnnotations}}),Object.defineProperty(r,"stringifyAnnotations",{enumerable:!0,get:function(){return c.stringifyAnnotations}}),Object.defineProperty(r,"stripAnnotations",{enumerable:!0,get:function(){return c.stripAnnotations}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(r,"formatExamples",{enumerable:!0,get:function(){return c.formatExamples}}),Object.defineProperty(r,"formatDefault",{enumerable:!0,get:function(){return c.formatDefault}}),Object.defineProperty(r,"formatSee",{enumerable:!0,get:function(){return c.formatSee}}),e("./lib/error")),_=(Object.defineProperty(r,"MalformedTypeError",{enumerable:!0,get:function(){return l.MalformedTypeError}}),Object.defineProperty(r,"MissingReferenceError",{enumerable:!0,get:function(){return l.MissingReferenceError}}),Object.defineProperty(r,"UnsupportedError",{enumerable:!0,get:function(){return l.UnsupportedError}}),Object.defineProperty(r,"RelatedError",{enumerable:!0,get:function(){return l.RelatedError}}),Object.defineProperty(r,"throwUnsupportedError",{enumerable:!0,get:function(){return l.throwUnsupportedError}}),Object.defineProperty(r,"throwRelatedError",{enumerable:!0,get:function(){return l.throwRelatedError}}),Object.defineProperty(r,"isCoreTypesError",{enumerable:!0,get:function(){return l.isCoreTypesError}}),Object.defineProperty(r,"decorateErrorMeta",{enumerable:!0,get:function(){return l.decorateErrorMeta}}),Object.defineProperty(r,"decorateError",{enumerable:!0,get:function(){return l.decorateError}}),e("./lib/location")),u=(Object.defineProperty(r,"positionToLineColumn",{enumerable:!0,get:function(){return _.positionToLineColumn}}),Object.defineProperty(r,"locationToLineColumn",{enumerable:!0,get:function(){return _.locationToLineColumn}}),Object.defineProperty(r,"getPositionOffset",{enumerable:!0,get:function(){return _.getPositionOffset}}),Object.defineProperty(r,"mergeLocations",{enumerable:!0,get:function(){return _.mergeLocations}}),e("./lib/traverse"));Object.defineProperty(r,"some",{enumerable:!0,get:function(){return u.some}}),Object.defineProperty(r,"traverse",{enumerable:!0,get:function(){return u.traverse}})},{"./lib/annotation":30,"./lib/error":31,"./lib/location":32,"./lib/simplify":36,"./lib/traverse":37,"./lib/types":38,"./lib/util":39,"./lib/validate":40}],30:[function(e,t,r){arguments[4][9][0].apply(r,arguments)},{"./location":32,"./util":39,dup:9}],31:[function(e,t,r){arguments[4][10][0].apply(r,arguments)},{dup:10}],32:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeLocations=r.getPositionOffset=r.locationToLineColumn=r.positionToLineColumn=void 0;let n=e("./util");function i(e,t){var r=e.slice(0,t).split("\n").length,e=e.lastIndexOf("\n",t);return-1===e?{offset:t,line:r,column:t}:{offset:t,line:r,column:t-e}}r.positionToLineColumn=i,r.locationToLineColumn=function(e,t){return"object"==typeof t.start?t:{start:void 0===t.start?void 0:i(e,t.start),...null==t.end?{}:{end:i(e,t.end)}}},r.getPositionOffset=function(e){return void 0===e||"number"==typeof e?e:e.offset},r.mergeLocations=function(e){let t,i,a,o=e=>"number"==typeof e?e:null==e?void 0:e.offset;e.filter(n.isNonNullable).forEach(({start:e,end:t})=>{var r=o(e),n=o(t);void 0!==r&&(!i||"number"==typeof i.location&&i.location===r||i.offset>r)&&(i={location:e,offset:r}),void 0!==n&&(!a||"number"==typeof a.location&&a.location===r||a.offset=e.length-1))for(var r,n=c(s(e,t)),i=[],a=t+1;a=r)return n.substr(0,r);while(r>n.length&&t>1){if(t&1)n+=e;t>>=1;e+=e}n+=e;n=n.substr(0,r);return n}"use strict";var s=function e(t,r,n){if(t==null||r==null)return t;var i=String(t);var a=typeof r==="number"?r:parseInt(r,10);if(isNaN(a)||!isFinite(a))return i;var o=i.length;if(o>=a)return i;var s=n==null?"":String(n);if(s==="")s=" ";var c=a-o;while(s.lengthc?s.substr(0,c):s;return l+i},f=Object.assign||function(e){for(var t=1;t at "+r.filter(Boolean).join(":")}},c={unexpectedSymbol:function(e){for(var t=arguments.length,r=Array(1 at "+r.filter(Boolean).join(":")}},p={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},i={"{":p.LEFT_BRACE,"}":p.RIGHT_BRACE,"[":p.LEFT_BRACKET,"]":p.RIGHT_BRACKET,":":p.COLON,",":p.COMMA},f={true:p.TRUE,false:p.FALSE,null:p.NULL},m={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},g={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},h={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function y(e){return"1"<=e&&e<="9"}function v(e){return"0"<=e&&e<="9"}function b(e){return"e"===e||"E"===e}function x(e,t,r,n){var i=e.charAt(t);if("\r"===i)r++,n=1,"\n"===e.charAt(++t)&&t++;else if("\n"===i)t++,r++,n=1;else{if("\t"!==i&&" "!==i)return null;t++,n++}return{index:t,line:r,column:n}}function S(e,t,r,n){e=e.charAt(t);return e in i?{type:i[e],line:r,column:n+1,index:t+1,value:null}:null}function k(e,t,r,n){for(var i in f)if(f.hasOwnProperty(i)&&e.substr(t,i.length)===i)return{type:f[i],line:r,column:n+i.length,index:t+i.length,value:i};return null}function T(e,t,r,n){for(var i=t,a=m._START_;te),s=e=>{return e=e,"."+o.slice(0,e).join(".")+` [query: ${o.join(".")}]`};return{start:null==(t=o.reduce((e,t,r)=>{if("Object"===e.type){var n,i=e.children.find(e=>e.key.value===t);if(i)return{key:i,value:n}=i,a&&r===o.length-1?i:n;throw new Error(`No such property ${t} in `+s(r))}if("Array"!==e.type)return e;i=Number(t);if(isNaN(i))throw new Error(`Invalid non-numeric array index "${t}" `+"in array at "+s(r));if(i<0||i>=e.children.length)throw new RangeError(`Index ${i} out-of-bounds in array of `+`size ${e.children.length} at `+s(r));return e.children,e.children[Number(t)]},e).loc)?void 0:t.start,end:null==t?void 0:t.end}}},{}],44:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getAstByObject=r.getAstByString=void 0;let n=e("json-to-ast");function i(e,t){var r=n(e,{loc:!0});return{json:t||JSON.parse(e),jsonString:e,jsonAST:r}}r.getAstByString=i,r.getAstByObject=function(e,t=4){return i(JSON.stringify(e,null,t))}},{"json-to-ast":41}],45:[function(e,t,r){var n,i,t=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return(n=setTimeout)(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var c,l=[],_=!1,u=-1;function d(){_&&c&&(_=!1,c.length?l=c.concat(l):u=-1,l.length)&&p()}function p(){if(!_){for(var e=s(d),t=(_=!0,l.length);t;){for(c=l,l=[];++u{for(var r in t)i(e,r,{get:t[r],enumerable:!0})}),mr=(r(Toe={},{ANONYMOUS:()=>D$,AccessFlags:()=>vn,AssertionLevel:()=>ge,AssignmentDeclarationKind:()=>En,AssignmentKind:()=>yu,Associativity:()=>Hu,BreakpointResolver:()=>Qre,BuilderFileEmit:()=>_z,BuilderProgramKind:()=>Fz,BuilderState:()=>$J,CallHierarchy:()=>Yre,CharacterCodes:()=>Vn,CheckFlags:()=>ln,CheckMode:()=>ej,ClassificationType:()=>UW,ClassificationTypeNames:()=>qW,CommentDirectiveType:()=>Ur,Comparison:()=>a,CompletionInfoFlags:()=>LW,CompletionTriggerKind:()=>NW,Completions:()=>Cue,ContainerFlags:()=>cL,ContextFlags:()=>Zr,Debug:()=>Y4,DiagnosticCategory:()=>Pn,Diagnostics:()=>eT,DocumentHighlights:()=>jX,ElementFlags:()=>yn,EmitFlags:()=>Gn,EmitHint:()=>Yn,EmitOnly:()=>Kr,EndOfLineState:()=>MW,ExitStatus:()=>$r,ExportKind:()=>wX,Extension:()=>Wn,ExternalEmitHelpers:()=>Qn,FileIncludeKind:()=>Wr,FilePreprocessingDiagnosticsKind:()=>Hr,FileSystemEntryKind:()=>Li,FileWatcherEventKind:()=>si,FindAllReferences:()=>ope,FlattenLevel:()=>TR,FlowFlags:()=>qr,ForegroundColorEscapeSequences:()=>QB,FunctionFlags:()=>ju,GeneratedIdentifierFlags:()=>fn,GetLiteralTextFlags:()=>Wl,GoToDefinition:()=>mfe,HighlightSpanKind:()=>EW,IdentifierNameMap:()=>eR,IdentifierNameMultiMap:()=>tR,ImportKind:()=>CX,ImportsNotUsedAsValues:()=>Mn,IndentStyle:()=>PW,IndexFlags:()=>bn,IndexKind:()=>Tn,InferenceFlags:()=>Nn,InferencePriority:()=>wn,InlayHintKind:()=>DW,InlayHints:()=>Dfe,InternalEmitFlags:()=>$n,InternalSymbolName:()=>_n,IntersectionFlags:()=>Yr,InvalidatedProjectKind:()=>TU,JSDocParsingMode:()=>ii,JsDoc:()=>Ofe,JsTyping:()=>QV,JsxEmit:()=>Rn,JsxFlags:()=>Mr,JsxReferenceKind:()=>xn,LanguageFeatureMinimumTarget:()=>Xn,LanguageServiceMode:()=>kW,LanguageVariant:()=>qn,LexicalEnvironmentFlags:()=>ei,ListFormat:()=>ti,LogLevel:()=>Qe,MapCode:()=>Vfe,MemberOverrideStatus:()=>Xr,ModifierFlags:()=>Rr,ModuleDetectionKind:()=>In,ModuleInstanceState:()=>aL,ModuleKind:()=>k3,ModuleResolutionKind:()=>An,ModuleSpecifierEnding:()=>Lm,NavigateTo:()=>dY,NavigationBar:()=>kY,NewLineKind:()=>Bn,NodeBuilderFlags:()=>en,NodeCheckFlags:()=>un,NodeFactoryFlags:()=>Dg,NodeFlags:()=>jr,NodeResolutionFeatures:()=>aO,ObjectFlags:()=>gn,OperationCanceledException:()=>Vr,OperatorPrecedence:()=>Qu,OrganizeImports:()=>Gfe,OrganizeImportsMode:()=>wW,OuterExpressionKinds:()=>Zn,OutliningElementsCollector:()=>fme,OutliningSpanKind:()=>jW,OutputFileType:()=>RW,PackageJsonAutoImportPreference:()=>SW,PackageJsonDependencyGroup:()=>xW,PatternMatchKind:()=>hQ,PollingInterval:()=>ci,PollingWatchKind:()=>jn,PragmaKindFlags:()=>ri,PrivateIdentifierKind:()=>Sh,ProcessLevel:()=>HR,ProgramUpdateLevel:()=>NB,QuotePreference:()=>aG,RegularExpressionFlags:()=>Jr,RelationComparisonResult:()=>Br,Rename:()=>kme,ScriptElementKind:()=>JW,ScriptElementKindModifier:()=>zW,ScriptKind:()=>Jn,ScriptSnapshot:()=>hW,ScriptTarget:()=>zn,SemanticClassificationFormat:()=>CW,SemanticMeaning:()=>WW,SemicolonPreference:()=>FW,SignatureCheckMode:()=>tj,SignatureFlags:()=>kn,SignatureHelp:()=>Dme,SignatureInfo:()=>XJ,SignatureKind:()=>Sn,SmartSelectionRange:()=>zme,SnippetKind:()=>Kn,StatisticType:()=>dV,StructureIsReused:()=>Gr,SymbolAccessibility:()=>nn,SymbolDisplay:()=>Hme,SymbolDisplayPartKind:()=>OW,SymbolFlags:()=>cn,SymbolFormatFlags:()=>rn,SyntaxKind:()=>Lr,SyntheticSymbolKind:()=>an,Ternary:()=>Dn,ThrottledCancellationToken:()=>qre,TokenClass:()=>BW,TokenFlags:()=>zr,TransformFlags:()=>Hn,TypeFacts:()=>YL,TypeFlags:()=>mn,TypeFormatFlags:()=>tn,TypeMapKind:()=>Cn,TypePredicateKind:()=>on,TypeReferenceSerializationKind:()=>sn,UnionReduction:()=>Qr,UpToDateStatusType:()=>Xq,VarianceFlags:()=>hn,Version:()=>Tr,VersionRange:()=>Ot,WatchDirectoryFlags:()=>Un,WatchDirectoryKind:()=>Ln,WatchFileKind:()=>On,WatchLogLevel:()=>jB,WatchType:()=>Oq,accessPrivateIdentifier:()=>xR,addDisposableResourceHelper:()=>e0,addEmitFlags:()=>Hg,addEmitHelper:()=>lh,addEmitHelpers:()=>_h,addInternalEmitFlags:()=>Gg,addNodeFactoryPatcher:()=>Pg,addObjectAllocatorPatcher:()=>gf,addRange:()=>BT,addRelatedInfo:()=>JD,addSyntheticLeadingComment:()=>RE,addSyntheticTrailingComment:()=>ah,addToSeen:()=>sf,advancedAsyncSuperHelper:()=>n0,affectsDeclarationPathOptionDeclarations:()=>L4,affectsEmitOptionDeclarations:()=>O4,allKeysStartWithDot:()=>OO,altDirectorySeparator:()=>Ui,and:()=>g3,append:()=>Q4,appendIfUnique:()=>zT,arrayFrom:()=>ZT,arrayIsEqualTo:()=>hr,arrayIsHomogeneous:()=>YD,arrayIsSorted:()=>w,arrayOf:()=>YT,arrayReverseIterator:()=>P,arrayToMap:()=>Q,arrayToMultiMap:()=>e3,arrayToNumericMap:()=>Y,arraysEqual:()=>CT,assertType:()=>He,assign:()=>U,assignHelper:()=>Fh,asyncDelegator:()=>Oh,asyncGeneratorHelper:()=>Ih,asyncSuperHelper:()=>r0,asyncValues:()=>Lh,attachFileToDiagnostics:()=>Sf,awaitHelper:()=>Ah,awaiterHelper:()=>Rh,base64decode:()=>yp,base64encode:()=>hp,binarySearch:()=>XT,binarySearchKey:()=>j,bindSourceFile:()=>uL,breakIntoCharacterSpans:()=>AQ,breakIntoWordSpans:()=>IQ,buildLinkParts:()=>UG,buildOpts:()=>V4,buildOverload:()=>U0e,bundlerModuleNameResolver:()=>sO,canBeConvertedToAsync:()=>tY,canHaveDecorators:()=>m9,canHaveExportModifier:()=>uE,canHaveFlowNode:()=>sw,canHaveIllegalDecorators:()=>u9,canHaveIllegalModifiers:()=>d9,canHaveIllegalType:()=>jy,canHaveIllegalTypeParameters:()=>Ry,canHaveJSDoc:()=>cw,canHaveLocals:()=>_7,canHaveModifiers:()=>f9,canHaveSymbol:()=>l7,canIncludeBindAndCheckDiagnsotics:()=>WD,canJsonReportNoInputFiles:()=>RA,canProduceDiagnostics:()=>wM,canUsePropertyAccess:()=>pE,canWatchAffectingLocation:()=>Zz,canWatchAtTypes:()=>Xz,canWatchDirectoryOrFile:()=>$z,cartesianProduct:()=>b3,cast:()=>s3,chainBundle:()=>Gj,chainDiagnosticMessages:()=>gD,changeAnyExtension:()=>ha,changeCompilerHostLikeToUseCache:()=>KB,changeExtension:()=>Vm,changeFullExtension:()=>ya,changesAffectModuleResolution:()=>_l,changesAffectingProgramStructure:()=>dl,characterToRegularExpressionFlag:()=>Ya,childIsDecorated:()=>V_,classElementOrClassElementParameterIsDecorated:()=>m8,classHasClassThisAssignment:()=>LR,classHasDeclaredOrExplicitlyAssignedName:()=>qR,classHasExplicitlyAssignedName:()=>zR,classOrConstructorParameterIsDecorated:()=>f8,classPrivateFieldGetHelper:()=>Qh,classPrivateFieldInHelper:()=>Zh,classPrivateFieldSetHelper:()=>Yh,classicNameResolver:()=>YO,classifier:()=>mne,cleanExtendedConfigCache:()=>PB,clear:()=>DT,clearMap:()=>Zp,clearSharedExtendedConfigFileWatcher:()=>EB,climbPastPropertyAccess:()=>aH,climbPastPropertyOrElementAccess:()=>oH,clone:()=>ee,cloneCompilerOptions:()=>EK,closeFileWatcher:()=>$p,closeFileWatcherOf:()=>BB,codefix:()=>hne,collapseTextChangeRangesAcrossMultipleVersions:()=>ns,collectExternalModuleInfo:()=>Yj,combine:()=>A,combinePaths:()=>E3,commandLineOptionOfCustomType:()=>q4,commentPragmas:()=>ni,commonOptionsWithBuild:()=>D4,commonPackageFolders:()=>nm,compact:()=>je,compareBooleans:()=>Fe,compareDataObjects:()=>Yp,compareDiagnostics:()=>yD,compareDiagnosticsSkipRelatedInformation:()=>Cf,compareEmitHelpers:()=>Th,compareNumberOfDirectorySeparators:()=>Jm,comparePaths:()=>F3,comparePathsCaseInsensitive:()=>Sa,comparePathsCaseSensitive:()=>xa,comparePatternKeys:()=>jO,compareProperties:()=>Pe,compareStringsCaseInsensitive:()=>be,compareStringsCaseInsensitiveEslintCompatible:()=>xe,compareStringsCaseSensitive:()=>Se,compareStringsCaseSensitiveUI:()=>Ee,compareTextSpans:()=>ye,compareValues:()=>l3,compileOnSaveCommandLineOption:()=>k4,compilerOptionsAffectDeclarationPath:()=>Kf,compilerOptionsAffectEmit:()=>Hf,compilerOptionsAffectSemanticDiagnostics:()=>Wf,compilerOptionsDidYouMeanDiagnostics:()=>O9,compilerOptionsIndicateEsModules:()=>ZK,compose:()=>me,computeCommonSourceDirectoryOfFilenames:()=>qB,computeLineAndCharacterOfPosition:()=>no,computeLineOfPosition:()=>io,computeLineStarts:()=>Za,computePositionOfLineAndCharacter:()=>to,computeSignature:()=>Lz,computeSignatureWithDiagnostics:()=>Oz,computeSuggestionDiagnostics:()=>WQ,computedOptions:()=>Of,concatenate:()=>LT,concatenateDiagnosticMessageChains:()=>hD,configDirTemplateSubstitutionOptions:()=>J4,configDirTemplateSubstitutionWatchOptions:()=>z4,consumesNodeCoreModules:()=>G$,contains:()=>TT,containsIgnoredPath:()=>lg,containsObjectRestOrSpread:()=>Tv,containsParseError:()=>z7,containsPath:()=>ka,convertCompilerOptionsForTelemetry:()=>uI,convertCompilerOptionsFromJson:()=>qA,convertJsonOption:()=>XA,convertToBase64:()=>gp,convertToJson:()=>uA,convertToObject:()=>_A,convertToOptionsWithAbsolutePaths:()=>xA,convertToRelativePath:()=>Na,convertToTSConfig:()=>pA,convertTypeAcquisitionFromJson:()=>UA,copyComments:()=>d$,copyEntries:()=>M7,copyLeadingComments:()=>h$,copyProperties:()=>re,copyTrailingAsLeadingComments:()=>v$,copyTrailingComments:()=>y$,couldStartTrivia:()=>fo,countWhere:()=>wT,createAbstractBuilder:()=>Hz,createAccessorPropertyBackingField:()=>yv,createAccessorPropertyGetRedirector:()=>vv,createAccessorPropertySetRedirector:()=>bv,createBaseNodeFactory:()=>xg,createBinaryExpressionTrampoline:()=>p9,createBindingHelper:()=>Hh,createBuildInfo:()=>fB,createBuilderProgram:()=>jz,createBuilderProgramUsingProgramBuildInfo:()=>zz,createBuilderStatusReporter:()=>iU,createCacheWithRedirects:()=>zI,createCacheableExportInfoMap:()=>NX,createCachedDirectoryStructureHost:()=>wB,createClassNamedEvaluationHelperBlock:()=>BR,createClassThisAssignmentBlock:()=>IR,createClassifier:()=>LX,createCommentDirectivesMap:()=>Rl,createCompilerDiagnostic:()=>mD,createCompilerDiagnosticForInvalidCustomType:()=>C9,createCompilerDiagnosticFromMessageChain:()=>kf,createCompilerHost:()=>UB,createCompilerHostFromProgramHost:()=>jq,createCompilerHostWorker:()=>HB,createDetachedDiagnostic:()=>dD,createDiagnosticCollection:()=>iN,createDiagnosticForFileFromMessageChain:()=>b5,createDiagnosticForNode:()=>aT,createDiagnosticForNodeArray:()=>h5,createDiagnosticForNodeArrayFromMessageChain:()=>v5,createDiagnosticForNodeFromMessageChain:()=>y5,createDiagnosticForNodeInSourceFile:()=>c_,createDiagnosticForRange:()=>u_,createDiagnosticMessageChainFromDiagnostic:()=>x5,createDiagnosticReporter:()=>_q,createDocumentPositionMapper:()=>Uj,createDocumentRegistry:()=>sQ,createDocumentRegistryInternal:()=>cQ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>Wz,createEmitHelperFactory:()=>kh,createEmptyExports:()=>i9,createEvaluator:()=>PE,createExpressionForJsxElement:()=>iy,createExpressionForJsxFragment:()=>ay,createExpressionForObjectLiteralElementLike:()=>_y,createExpressionForPropertyName:()=>ly,createExpressionFromEntityName:()=>cy,createExternalHelpersImportDeclarationIfNeeded:()=>ky,createFileDiagnostic:()=>pD,createFileDiagnosticFromMessageChain:()=>__,createFlowNode:()=>lL,createForOfBindingStatement:()=>oy,createFutureSourceFile:()=>TX,createGetCanonicalFileName:()=>ze,createGetIsolatedDeclarationErrors:()=>EM,createGetSourceFile:()=>VB,createGetSymbolAccessibilityDiagnosticForNode:()=>DM,createGetSymbolAccessibilityDiagnosticForNodeName:()=>NM,createGetSymbolWalker:()=>hL,createIncrementalCompilerHost:()=>Hq,createIncrementalProgram:()=>Kq,createJsxFactoryExpression:()=>ny,createLanguageService:()=>Wre,createLanguageServiceSourceFile:()=>Mre,createMemberAccessForPropertyName:()=>ey,createModeAwareCache:()=>HI,createModeAwareCacheKey:()=>WI,createModuleNotFoundChain:()=>J7,createModuleResolutionCache:()=>QI,createModuleResolutionLoader:()=>vJ,createModuleResolutionLoaderUsingGlobalCache:()=>sq,createModuleSpecifierResolutionHost:()=>eG,createMultiMap:()=>n3,createNameResolver:()=>IE,createNodeConverters:()=>Tg,createNodeFactory:()=>Fg,createOptionNameMap:()=>S9,createOverload:()=>q0e,createPackageJsonImportFilter:()=>K$,createPackageJsonInfo:()=>H$,createParenthesizerRules:()=>Sg,createPatternMatcher:()=>vQ,createPrinter:()=>SB,createPrinterWithDefaults:()=>yB,createPrinterWithRemoveComments:()=>vB,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>bB,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xB,createProgram:()=>BJ,createProgramHost:()=>Bq,createPropertyNameNodeForIdentifierOrLiteral:()=>cE,createQueue:()=>ae,createRange:()=>wp,createRedirectedBuilderProgram:()=>Uz,createResolutionCache:()=>cq,createRuntimeTypeSerializer:()=>eM,createScanner:()=>M3,createSemanticDiagnosticsBuilderProgram:()=>Vz,createSet:()=>oe,createSolutionBuilder:()=>cU,createSolutionBuilderHost:()=>oU,createSolutionBuilderWithWatch:()=>lU,createSolutionBuilderWithWatchHost:()=>sU,createSortedArray:()=>x,createSourceFile:()=>Qv,createSourceMapGenerator:()=>Cj,createSourceMapSource:()=>qg,createSuperAccessVariableStatement:()=>iM,createSymbolTable:()=>I7,createSymlinkCache:()=>Xf,createSyntacticTypeNodeBuilder:()=>$V,createSystemWatchFunctions:()=>Mi,createTextChange:()=>zK,createTextChangeFromStartLength:()=>JK,createTextChangeRange:()=>ts,createTextRangeFromNode:()=>RK,createTextRangeFromSpan:()=>BK,createTextSpan:()=>Qo,createTextSpanFromBounds:()=>Yo,createTextSpanFromNode:()=>LK,createTextSpanFromRange:()=>MK,createTextSpanFromStringLiteralLikeContent:()=>jK,createTextWriter:()=>cN,createTokenRange:()=>Ap,createTypeChecker:()=>lj,createTypeReferenceDirectiveResolutionCache:()=>YI,createTypeReferenceResolutionLoader:()=>SJ,createWatchCompilerHost:()=>Gq,createWatchCompilerHostOfConfigFile:()=>qq,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Uq,createWatchFactory:()=>Lq,createWatchHost:()=>Iq,createWatchProgram:()=>$q,createWatchStatusReporter:()=>fq,createWriteFileMeasuringIO:()=>WB,declarationNameToString:()=>d5,decodeMappings:()=>Oj,decodedTextSpanIntersectsWith:()=>Go,decorateHelper:()=>wh,deduplicate:()=>RT,defaultIncludeSpec:()=>NA,defaultInitCompilerOptions:()=>T9,defaultMaximumTruncationLength:()=>E7,diagnosticCategoryName:()=>Fn,diagnosticToString:()=>hX,diagnosticsEqualityComparer:()=>wf,directoryProbablyExists:()=>Sp,directorySeparator:()=>qi,displayPart:()=>EG,displayPartsToString:()=>Ire,disposeEmitNodes:()=>Vg,disposeResourcesHelper:()=>t0,documentSpansEqual:()=>vG,dumpTracingLegend:()=>Or,elementAt:()=>Re,elideNodes:()=>pv,emitComments:()=>Kd,emitDetachedComments:()=>Gd,emitFiles:()=>pB,emitFilesAndReportErrors:()=>Eq,emitFilesAndReportErrorsAndGetExitStatus:()=>Pq,emitModuleKindIsNonNodeESM:()=>ED,emitNewLineBeforeLeadingCommentOfPosition:()=>Hd,emitNewLineBeforeLeadingComments:()=>Vd,emitNewLineBeforeLeadingCommentsOfPosition:()=>Wd,emitResolverSkipsTypeChecking:()=>dB,emitSkippedWithNoDiagnostics:()=>JJ,emptyArray:()=>H4,emptyFileSystemEntries:()=>Qm,emptyMap:()=>p,emptyOptions:()=>TW,emptySet:()=>s,endsWith:()=>u3,ensurePathIsNonModuleName:()=>ga,ensureScriptKind:()=>ym,ensureTrailingDirectorySeparator:()=>ma,entityNameToString:()=>g5,enumerateInsertsAndDeletes:()=>Ke,equalOwnProperties:()=>X,equateStringsCaseInsensitive:()=>xr,equateStringsCaseSensitive:()=>Sr,equateValues:()=>c3,esDecorateHelper:()=>Eh,escapeJsxAttributeString:()=>gd,escapeLeadingUnderscores:()=>$3,escapeNonAsciiString:()=>ud,escapeSnippetText:()=>ug,escapeString:()=>aN,escapeTemplateSubstitution:()=>td,evaluatorResult:()=>EE,every:()=>vT,executeCommandLine:()=>EV,expandPreOrPostfixIncrementOrDecrementExpression:()=>uy,explainFiles:()=>kq,explainIfFileIsRedirectAndImpliedFormat:()=>Tq,exportAssignmentIsAlias:()=>Aw,exportStarHelper:()=>Xh,expressionResultIsUnused:()=>rE,extend:()=>te,extendsHelper:()=>Mh,extensionFromPath:()=>$m,extensionIsTS:()=>Gm,extensionsNotSupportingExtensionlessResolution:()=>Pm,externalHelpersModuleNameText:()=>D7,factory:()=>cT,fileExtensionIs:()=>w3,fileExtensionIsOneOf:()=>N3,fileIncludeReasonToDiagnostics:()=>Nq,fileShouldUseJavaScriptRequire:()=>SX,filter:()=>NT,filterMutate:()=>d,filterSemanticDiagnostics:()=>qJ,find:()=>bT,findAncestor:()=>tT,findBestPatternMatch:()=>p3,findChildOfKind:()=>MH,findComputedPropertyNameCacheAssignment:()=>xv,findConfigFile:()=>JB,findConstructorDeclaration:()=>AE,findContainingList:()=>BH,findDiagnosticForNode:()=>Q$,findFirstNonJsxWhitespaceToken:()=>eK,findIndex:()=>ST,findLast:()=>xT,findLastIndex:()=>kT,findListItemInfo:()=>jH,findMap:()=>_,findModifier:()=>mG,findNextToken:()=>rK,findPackageJson:()=>V$,findPackageJsons:()=>U$,findPrecedingMatchingToken:()=>pK,findPrecedingToken:()=>nK,findSuperStatementIndexPath:()=>sR,findTokenOnLeftOfPosition:()=>tK,findUseStrictPrologue:()=>a9,first:()=>WT,firstDefined:()=>yT,firstDefinedIterator:()=>gr,firstIterator:()=>HT,firstOrOnly:()=>rX,firstOrUndefined:()=>UT,firstOrUndefinedIterator:()=>VT,fixupCompilerOptions:()=>uY,flatMap:()=>FT,flatMapIterator:()=>f,flatMapToMutable:()=>y,flatten:()=>PT,flattenCommaList:()=>kv,flattenDestructuringAssignment:()=>CR,flattenDestructuringBinding:()=>DR,flattenDiagnosticMessageText:()=>lJ,forEach:()=>G4,forEachAncestor:()=>fl,forEachAncestorDirectory:()=>Pa,forEachChild:()=>h9,forEachChildRecursively:()=>y9,forEachEmittedFile:()=>KM,forEachEnclosingBlockScopeContainer:()=>u5,forEachEntry:()=>j7,forEachExternalModuleToImportFrom:()=>EX,forEachImportClauseDeclaration:()=>_u,forEachKey:()=>R7,forEachLeadingCommentRange:()=>So,forEachNameInAccessChainWalkingLeft:()=>uf,forEachNameOfDefaultExport:()=>OX,forEachPropertyAssignment:()=>L_,forEachResolvedProjectReference:()=>TJ,forEachReturnStatement:()=>L5,forEachRight:()=>O,forEachTrailingCommentRange:()=>ko,forEachTsConfigPropArray:()=>B_,forEachUnique:()=>xG,forEachYieldExpression:()=>j5,forSomeAncestorDirectory:()=>nf,formatColorAndReset:()=>aJ,formatDiagnostic:()=>XB,formatDiagnostics:()=>$B,formatDiagnosticsWithColorAndContext:()=>cJ,formatGeneratedName:()=>hv,formatGeneratedNamePart:()=>mv,formatLocation:()=>sJ,formatMessage:()=>fD,formatStringFromArgs:()=>yf,formatting:()=>Dge,fullTripleSlashAMDReferencePathRegEx:()=>D_,fullTripleSlashReferencePathRegEx:()=>C_,generateDjb2Hash:()=>ai,generateTSConfig:()=>bA,generatorHelper:()=>Wh,getAdjustedReferenceLocation:()=>GH,getAdjustedRenameLocation:()=>$H,getAliasDeclarationFromName:()=>Pw,getAllAccessorDeclarations:()=>qd,getAllDecoratorsOfClass:()=>fR,getAllDecoratorsOfClassElement:()=>mR,getAllJSDocTags:()=>pC,getAllJSDocTagsOfKind:()=>qs,getAllKeys:()=>z,getAllProjectOutputs:()=>lB,getAllSuperTypeNodes:()=>Cu,getAllowJSCompilerOption:()=>Jf,getAllowSyntheticDefaultImports:()=>TD,getAncestor:()=>Bw,getAnyExtensionFromPath:()=>ia,getAreDeclarationMapsEnabled:()=>Bf,getAssignedExpandoInitializer:()=>j8,getAssignedName:()=>hs,getAssignedNameOfIdentifier:()=>RR,getAssignmentDeclarationKind:()=>V8,getAssignmentDeclarationPropertyAccessKind:()=>$8,getAssignmentTargetKind:()=>hw,getAutomaticTypeDirectiveNames:()=>RI,getBaseFileName:()=>ra,getBinaryOperatorPrecedence:()=>Zu,getBuildInfo:()=>gB,getBuildInfoFileVersionMap:()=>qz,getBuildInfoText:()=>mB,getBuildOrderFromAnyBuildOrder:()=>nU,getBuilderCreationParameters:()=>Az,getBuilderFileEmit:()=>uz,getCanonicalDiagnostic:()=>S5,getCheckFlags:()=>tD,getClassExtendsHeritageElement:()=>jw,getClassLikeDeclarationOfSymbol:()=>oD,getCombinedLocalAndExportSymbolFlags:()=>nD,getCombinedModifierFlags:()=>W3,getCombinedNodeFlags:()=>H3,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>cs,getCommentRange:()=>th,getCommonSourceDirectory:()=>sB,getCommonSourceDirectoryOfConfig:()=>cB,getCompilerOptionValue:()=>Gf,getCompilerOptionsDiffValue:()=>yA,getConditions:()=>LI,getConfigFileParsingDiagnostics:()=>LJ,getConstantValue:()=>sh,getContainerFlags:()=>mL,getContainerNode:()=>bH,getContainingClass:()=>Q5,getContainingClassExcludingClassDecorators:()=>e8,getContainingClassStaticBlock:()=>Y5,getContainingFunction:()=>X5,getContainingFunctionDeclaration:()=>J_,getContainingFunctionOrClassStaticBlock:()=>Z5,getContainingNodeArray:()=>_g,getContainingObjectLiteralElement:()=>Kre,getContextualTypeFromParent:()=>S$,getContextualTypeFromParentOrAncestorTypeNode:()=>UH,getCurrentTime:()=>tU,getDeclarationDiagnostics:()=>PM,getDeclarationEmitExtensionForPath:()=>Ed,getDeclarationEmitOutputFilePath:()=>Nd,getDeclarationEmitOutputFilePathWorker:()=>Dd,getDeclarationFileExtension:()=>f4,getDeclarationFromName:()=>Su,getDeclarationModifierFlagsFromSymbol:()=>rD,getDeclarationOfKind:()=>F7,getDeclarationsOfKind:()=>A7,getDeclaredExpandoInitializer:()=>L8,getDecorators:()=>rC,getDefaultCompilerOptions:()=>Ore,getDefaultFormatCodeSettings:()=>AW,getDefaultLibFileName:()=>zo,getDefaultLibFilePath:()=>$re,getDefaultLikeExportInfo:()=>AX,getDefaultLikeExportNameFromDeclaration:()=>oX,getDiagnosticText:()=>z9,getDiagnosticsWithinSpan:()=>Y$,getDirectoryPath:()=>D3,getDirectoryToWatchFailedLookupLocation:()=>eq,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>nq,getDocumentPositionMapper:()=>qQ,getDocumentSpansEqualityComparer:()=>bG,getESModuleInterop:()=>kD,getEditsForFileRename:()=>uQ,getEffectiveBaseTypeNode:()=>Lw,getEffectiveConstraintOfTypeParameter:()=>gC,getEffectiveContainerForJSDocTemplateTag:()=>_w,getEffectiveImplementsTypeNodes:()=>Rw,getEffectiveInitializer:()=>O8,getEffectiveJSDocHost:()=>pw,getEffectiveModifierFlags:()=>ON,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Zd,getEffectiveModifierFlagsNoCache:()=>np,getEffectiveReturnTypeNode:()=>yN,getEffectiveSetAccessorTypeAnnotationNode:()=>bN,getEffectiveTypeAnnotationNode:()=>hN,getEffectiveTypeParameterDeclarations:()=>mC,getEffectiveTypeRoots:()=>EI,getElementOrPropertyAccessArgumentExpressionOrName:()=>iu,getElementOrPropertyAccessName:()=>G8,getElementsOfBindingOrAssignmentPattern:()=>Oy,getEmitDeclarations:()=>wD,getEmitFlags:()=>$7,getEmitHelpers:()=>dh,getEmitModuleDetectionKind:()=>Lf,getEmitModuleKind:()=>bD,getEmitModuleResolutionKind:()=>xD,getEmitScriptTarget:()=>vD,getEmitStandardClassFields:()=>AD,getEnclosingBlockScopeContainer:()=>_5,getEnclosingContainer:()=>l5,getEncodedSemanticClassifications:()=>JX,getEncodedSyntacticClassifications:()=>VX,getEndLinePosition:()=>Tl,getEntityNameFromTypeNode:()=>u8,getEntrypointsFromPackageJsonInfo:()=>wO,getErrorCountForSummary:()=>gq,getErrorSpanForNode:()=>C5,getErrorSummaryText:()=>bq,getEscapedTextOfIdentifierOrLiteral:()=>Gw,getEscapedTextOfJsxAttributeName:()=>bE,getEscapedTextOfJsxNamespacedName:()=>SE,getExpandoInitializer:()=>R8,getExportAssignmentExpression:()=>Iw,getExportInfoMap:()=>FX,getExportNeedsImportStarHelper:()=>$j,getExpressionAssociativity:()=>Ku,getExpressionPrecedence:()=>$u,getExternalHelpersModuleName:()=>xy,getExternalModuleImportEqualsDeclarationExpression:()=>S8,getExternalModuleName:()=>ew,getExternalModuleNameFromDeclaration:()=>Td,getExternalModuleNameFromPath:()=>Cd,getExternalModuleNameLiteral:()=>wy,getExternalModuleRequireArgument:()=>k8,getFallbackOptions:()=>MB,getFileEmitOutput:()=>GJ,getFileMatcherPatterns:()=>mm,getFileNamesFromConfigSpecs:()=>nI,getFileWatcherEventKind:()=>Ei,getFilesInErrorForSummary:()=>hq,getFirstConstructorWithBody:()=>_N,getFirstIdentifier:()=>VN,getFirstNonSpaceCharacterPosition:()=>r$,getFirstProjectOutput:()=>uB,getFixableErrorSpanExpression:()=>eX,getFormatCodeSettingsForWriting:()=>yX,getFullWidth:()=>ml,getFunctionFlags:()=>zw,getHeritageClause:()=>wu,getHostSignatureFromJSDoc:()=>dw,getIdentifierAutoGenerate:()=>bh,getIdentifierGeneratedImportReference:()=>JE,getIdentifierTypeArguments:()=>BE,getImmediatelyInvokedFunctionExpression:()=>o8,getImpliedNodeFormatForFile:()=>jJ,getImpliedNodeFormatForFileWorker:()=>RJ,getImportNeedsImportDefaultHelper:()=>Qj,getImportNeedsImportStarHelper:()=>Xj,getIndentSize:()=>vd,getIndentString:()=>yd,getInferredLibraryNameResolveFrom:()=>NJ,getInitializedVariables:()=>Hp,getInitializerOfBinaryExpression:()=>X8,getInitializerOfBindingOrAssignmentElement:()=>Dy,getInterfaceBaseTypeNodes:()=>Mw,getInternalEmitFlags:()=>Vl,getInvokedExpression:()=>d8,getIsolatedModules:()=>SD,getJSDocAugmentsTag:()=>ks,getJSDocClassTag:()=>oC,getJSDocCommentRanges:()=>T_,getJSDocCommentsAndTags:()=>fu,getJSDocDeprecatedTag:()=>sC,getJSDocDeprecatedTagNoCache:()=>Os,getJSDocEnumTag:()=>cC,getJSDocHost:()=>fw,getJSDocImplementsTags:()=>Ts,getJSDocOverloadTags:()=>uw,getJSDocOverrideTagNoCache:()=>Is,getJSDocParameterTags:()=>iC,getJSDocParameterTagsNoCache:()=>vs,getJSDocPrivateTag:()=>Ns,getJSDocPrivateTagNoCache:()=>Ds,getJSDocProtectedTag:()=>Es,getJSDocProtectedTagNoCache:()=>Ps,getJSDocPublicTag:()=>Cs,getJSDocPublicTagNoCache:()=>ws,getJSDocReadonlyTag:()=>Fs,getJSDocReadonlyTagNoCache:()=>As,getJSDocReturnTag:()=>Ls,getJSDocReturnType:()=>Ms,getJSDocRoot:()=>mw,getJSDocSatisfiesExpressionType:()=>yE,getJSDocSatisfiesTag:()=>Rs,getJSDocTags:()=>dC,getJSDocTagsNoCache:()=>Js,getJSDocTemplateTag:()=>js,getJSDocThisTag:()=>lC,getJSDocType:()=>uC,getJSDocTypeAliasName:()=>Ly,getJSDocTypeAssertionType:()=>c9,getJSDocTypeParameterDeclarations:()=>vN,getJSDocTypeParameterTags:()=>xs,getJSDocTypeParameterTagsNoCache:()=>Ss,getJSDocTypeTag:()=>_C,getJSXImplicitImportBase:()=>OD,getJSXRuntimeImport:()=>LD,getJSXTransformEnabled:()=>ID,getKeyForCompilerOptions:()=>JI,getLanguageVariant:()=>Ef,getLastChild:()=>of,getLeadingCommentRanges:()=>No,getLeadingCommentRangesOfNode:()=>k_,getLeftmostAccessExpression:()=>_D,getLeftmostExpression:()=>df,getLibraryNameFromLibFileName:()=>DJ,getLineAndCharacterOfPosition:()=>O3,getLineInfo:()=>Ej,getLineOfLocalPosition:()=>Md,getLineOfLocalPositionFromLineMap:()=>Bd,getLineStartPositionForPosition:()=>TH,getLineStarts:()=>ro,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Vp,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Up,getLinesBetweenPositions:()=>ao,getLinesBetweenRangeEndAndRangeStart:()=>Mp,getLinesBetweenRangeEndPositions:()=>Bp,getLiteralText:()=>Hl,getLocalNameForExternalImport:()=>Cy,getLocalSymbolForExportDefault:()=>fp,getLocaleSpecificMessage:()=>xf,getLocaleTimeString:()=>pq,getMappedContextSpan:()=>CG,getMappedDocumentSpan:()=>TG,getMappedLocation:()=>kG,getMatchedFileSpec:()=>Cq,getMatchedIncludeSpec:()=>wq,getMeaningFromDeclaration:()=>HW,getMeaningFromLocation:()=>KW,getMembersOfDeclaration:()=>M5,getModeForFileReference:()=>_J,getModeForResolutionAtIndex:()=>uJ,getModeForUsageLocation:()=>pJ,getModifiedTime:()=>_i,getModifiers:()=>nC,getModuleInstanceState:()=>oL,getModuleNameStringLiteralAt:()=>KJ,getModuleSpecifierEndingPreference:()=>Rm,getModuleSpecifierResolverHost:()=>tG,getNameForExportedSymbol:()=>iX,getNameFromImportAttribute:()=>DE,getNameFromIndexInfo:()=>p5,getNameFromPropertyName:()=>XK,getNameOfAccessExpression:()=>lf,getNameOfCompilerOptionValue:()=>mA,getNameOfDeclaration:()=>tC,getNameOfExpando:()=>B8,getNameOfJSDocTypedef:()=>ms,getNameOfScriptTarget:()=>Vf,getNameOrArgument:()=>nu,getNameTable:()=>Hre,getNamesForExportedSymbol:()=>nX,getNamespaceDeclarationNode:()=>tw,getNewLineCharacter:()=>Cp,getNewLineKind:()=>gX,getNewLineOrDefaultFromHost:()=>WG,getNewTargetContainer:()=>i8,getNextJSDocCommentLocation:()=>gu,getNodeChildren:()=>Q1,getNodeForGeneratedName:()=>fv,getNodeId:()=>oj,getNodeKind:()=>xH,getNodeModifiers:()=>xK,getNodeModulePathParts:()=>dg,getNonAssignedNameOfDeclaration:()=>gs,getNonAssignmentOperatorForCompoundAssignment:()=>aR,getNonAugmentationDeclaration:()=>a5,getNonDecoratorTokenPosOfNode:()=>Bl,getNormalizedAbsolutePath:()=>P3,getNormalizedAbsolutePathWithoutRoot:()=>da,getNormalizedPathComponents:()=>_a,getObjectFlags:()=>sT,getOperator:()=>Xu,getOperatorAssociativity:()=>Gu,getOperatorPrecedence:()=>Yu,getOptionFromName:()=>j9,getOptionsForLibraryResolution:()=>ZI,getOptionsNameMap:()=>k9,getOrCreateEmitNode:()=>Ug,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Ty,getOrUpdate:()=>IT,getOriginalNode:()=>K3,getOriginalNodeId:()=>Wj,getOriginalSourceFile:()=>Wu,getOutputDeclarationFileName:()=>eB,getOutputDeclarationFileNameWorker:()=>tB,getOutputExtension:()=>YM,getOutputFileNames:()=>_B,getOutputJSFileNameWorker:()=>nB,getOutputPathsFor:()=>XM,getOutputPathsForBundle:()=>$M,getOwnEmitOutputFilePath:()=>wd,getOwnKeys:()=>J,getOwnValues:()=>q,getPackageJsonInfo:()=>PO,getPackageJsonTypesVersionsPaths:()=>DI,getPackageJsonsVisibleToFile:()=>W$,getPackageNameFromTypesPackageName:()=>$O,getPackageScopeForPath:()=>DO,getParameterSymbolFromJSDoc:()=>lw,getParameterTypeNode:()=>pg,getParentNodeInSpan:()=>fG,getParseTreeNode:()=>G3,getParsedCommandLineOfConfigFile:()=>q9,getPathComponents:()=>aa,getPathComponentsRelativeTo:()=>Ca,getPathFromPathComponents:()=>oa,getPathUpdater:()=>dQ,getPathsBasePath:()=>Fd,getPatternFromSpec:()=>dm,getPendingEmitKind:()=>dz,getPositionOfLineAndCharacter:()=>eo,getPossibleGenericSignatures:()=>gK,getPossibleOriginalInputExtensionForExtension:()=>Pd,getPossibleTypeArgumentsInfo:()=>hK,getPreEmitDiagnostics:()=>GB,getPrecedingNonSpaceCharacterPosition:()=>n$,getPrivateIdentifier:()=>vR,getProperties:()=>cR,getProperty:()=>M,getPropertyArrayElementValue:()=>j_,getPropertyAssignmentAliasLikeExpression:()=>Ow,getPropertyNameForPropertyNameNode:()=>Ww,getPropertyNameForUniqueESSymbol:()=>Bu,getPropertyNameFromType:()=>CE,getPropertyNameOfBindingOrAssignmentElement:()=>Fy,getPropertySymbolFromBindingElement:()=>pG,getPropertySymbolsFromContextualType:()=>Gre,getQuoteFromPreference:()=>cG,getQuotePreference:()=>sG,getRangesWhere:()=>at,getRefactorContextSpan:()=>Z$,getReferencedFileLocation:()=>IJ,getRegexFromPattern:()=>gm,getRegularExpressionForWildcard:()=>lm,getRegularExpressionsForWildcards:()=>_m,getRelativePathFromDirectory:()=>wa,getRelativePathFromFile:()=>Da,getRelativePathToDirectoryOrUrl:()=>Ea,getRenameLocation:()=>g$,getReplacementSpanForContextToken:()=>OK,getResolutionDiagnostic:()=>WJ,getResolutionModeOverride:()=>mJ,getResolveJsonModule:()=>CD,getResolvePackageJsonExports:()=>jf,getResolvePackageJsonImports:()=>Rf,getResolvedExternalModuleName:()=>Sd,getRestIndicatorOfBindingOrAssignmentElement:()=>Py,getRestParameterElementType:()=>R5,getRightMostAssignedExpression:()=>Z_,getRootDeclaration:()=>eN,getRootDirectoryOfResolutionCache:()=>iq,getRootLength:()=>ta,getRootPathSplitLength:()=>aq,getScriptKind:()=>ZG,getScriptKindFromFileName:()=>vm,getScriptTargetFeatures:()=>X7,getSelectedEffectiveModifierFlags:()=>IN,getSelectedSyntacticModifierFlags:()=>Qd,getSemanticClassifications:()=>MX,getSemanticJsxChildren:()=>nN,getSetAccessorTypeAnnotationNode:()=>Jd,getSetAccessorValueParameter:()=>uN,getSetExternalModuleIndicator:()=>If,getShebang:()=>Eo,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>du,getSingleVariableOfVariableStatement:()=>ow,getSnapshotText:()=>KK,getSnippetElement:()=>fh,getSourceFileOfModule:()=>q7,getSourceFileOfNode:()=>iT,getSourceFilePathInNewDir:()=>Od,getSourceFilePathInNewDirWorker:()=>Ld,getSourceFileVersionAsHashFromText:()=>Rq,getSourceFilesToEmit:()=>Ad,getSourceMapRange:()=>$g,getSourceMapper:()=>zQ,getSourceTextOfNodeFromSourceFile:()=>Jl,getSpanOfTokenAtPosition:()=>k5,getSpellingSuggestion:()=>_3,getStartPositionOfLine:()=>Sl,getStartPositionOfRange:()=>qp,getStartsOnNewLine:()=>Zg,getStaticPropertiesAndClassStaticBlock:()=>_R,getStrictOptionValue:()=>FD,getStringComparer:()=>ke,getSubPatternFromSpec:()=>pm,getSuperCallFromStatement:()=>oR,getSuperContainer:()=>a8,getSupportedCodeFixes:()=>Lre,getSupportedExtensions:()=>Fm,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Am,getSwitchedType:()=>N$,getSymbolId:()=>sj,getSymbolNameForPrivateIdentifier:()=>$w,getSymbolParentOrFail:()=>sX,getSymbolTarget:()=>e$,getSyntacticClassifications:()=>UX,getSyntacticModifierFlags:()=>ep,getSyntacticModifierFlagsNoCache:()=>ip,getSynthesizedDeepClone:()=>i$,getSynthesizedDeepCloneWithReplacements:()=>a$,getSynthesizedDeepClones:()=>s$,getSynthesizedDeepClonesWithReplacements:()=>c$,getSyntheticLeadingComments:()=>rh,getSyntheticTrailingComments:()=>nh,getTargetLabel:()=>sH,getTargetOfBindingOrAssignmentElement:()=>Ey,getTemporaryModuleResolutionState:()=>NO,getTextOfConstantValue:()=>Kl,getTextOfIdentifierOrLiteral:()=>Kw,getTextOfJSDocComment:()=>fC,getTextOfJsxAttributeName:()=>xE,getTextOfJsxNamespacedName:()=>gg,getTextOfNode:()=>K7,getTextOfNodeFromSourceText:()=>ql,getTextOfPropertyName:()=>m5,getThisContainer:()=>t8,getThisParameter:()=>dN,getTokenAtPosition:()=>YH,getTokenPosOfNode:()=>Ml,getTokenSourceMapRange:()=>Qg,getTouchingPropertyName:()=>XH,getTouchingToken:()=>QH,getTrailingCommentRanges:()=>Do,getTrailingSemicolonDeferringWriter:()=>lN,getTransformFlagsSubtreeExclusions:()=>Mg,getTransformers:()=>RM,getTsBuildInfoEmitOutputFilePath:()=>GM,getTsConfigObjectLiteralExpression:()=>R_,getTsConfigPropArrayElementValue:()=>M_,getTypeAnnotationNode:()=>Ud,getTypeArgumentOrTypeParameterList:()=>SK,getTypeKeywordOfTypeOnlyImport:()=>hG,getTypeNode:()=>yh,getTypeNodeIfAccessible:()=>E$,getTypeParameterFromJsDoc:()=>gw,getTypeParameterOwner:()=>is,getTypesPackageName:()=>KO,getUILocale:()=>Ne,getUniqueName:()=>m$,getUniqueSymbolId:()=>t$,getUseDefineForClassFields:()=>DD,getWatchErrorSummaryDiagnosticMessage:()=>yq,getWatchFactory:()=>RB,group:()=>t3,groupBy:()=>Z,guessIndentation:()=>ol,handleNoEmitOptions:()=>zJ,handleWatchOptionsConfigDirTemplateSubstitution:()=>EA,hasAbstractModifier:()=>DN,hasAccessorModifier:()=>PN,hasAmbientModifier:()=>EN,hasChangesInResolutions:()=>xl,hasChildOfKind:()=>RH,hasContextSensitiveParameters:()=>nE,hasDecorators:()=>AN,hasDocComment:()=>vK,hasDynamicName:()=>Uw,hasEffectiveModifier:()=>kN,hasEffectiveModifiers:()=>xN,hasEffectiveReadonlyModifier:()=>FN,hasExtension:()=>C3,hasIndexSignature:()=>w$,hasInferredType:()=>OE,hasInitializer:()=>b7,hasInvalidEscape:()=>nd,hasJSDocNodes:()=>y7,hasJSDocParameterTags:()=>aC,hasJSFileExtension:()=>Im,hasJsonModuleEmitEnabled:()=>PD,hasOnlyExpressionInitializer:()=>x7,hasOverrideModifier:()=>NN,hasPossibleExternalModuleReference:()=>c5,hasProperty:()=>Si,hasPropertyAccessExpressionWithName:()=>cH,hasQuestionToken:()=>rw,hasRecordedExternalHelpers:()=>Sy,hasResolutionModeOverride:()=>NE,hasRestParameter:()=>C7,hasScopeMarker:()=>i7,hasStaticModifier:()=>wN,hasSyntacticModifier:()=>TN,hasSyntacticModifiers:()=>SN,hasTSFileExtension:()=>Om,hasTabstop:()=>fg,hasTrailingDirectorySeparator:()=>Yi,hasType:()=>v7,hasTypeArguments:()=>hu,hasZeroOrOneAsteriskCharacter:()=>$f,helperString:()=>Ch,hostGetCanonicalFileName:()=>xd,hostUsesCaseSensitiveFileNames:()=>bd,idText:()=>rT,identifierIsThisKeyword:()=>zd,identifierToKeywordKind:()=>Q3,identity:()=>Ti,identitySourceMapConsumer:()=>Vj,ignoreSourceNewlines:()=>gh,ignoredPaths:()=>Pi,importDefaultHelper:()=>$h,importFromModuleSpecifier:()=>su,importStarHelper:()=>Gh,indexOfAnyCharCode:()=>u,indexOfNode:()=>G7,indicesOf:()=>jT,inferredTypesContainingFile:()=>wJ,injectClassNamedEvaluationHelperBlockIfMissing:()=>UR,injectClassThisAssignmentIfMissing:()=>jR,insertImports:()=>gG,insertLeadingStatement:()=>sy,insertSorted:()=>B,insertStatementAfterCustomPrologue:()=>Ol,insertStatementAfterStandardPrologue:()=>Il,insertStatementsAfterCustomPrologue:()=>Al,insertStatementsAfterStandardPrologue:()=>Fl,intersperse:()=>c,intrinsicTagNameToString:()=>kE,introducesArgumentsExoticObject:()=>W5,inverseJsxOptionMap:()=>T4,isAbstractConstructorSymbol:()=>rf,isAbstractModifier:()=>E0,isAccessExpression:()=>lD,isAccessibilityModifier:()=>DK,isAccessor:()=>UC,isAccessorModifier:()=>F0,isAliasSymbolDeclaration:()=>Tu,isAliasableExpression:()=>Fw,isAmbientModule:()=>Z7,isAmbientPropertyDeclaration:()=>Zl,isAnonymousFunctionDefinition:()=>Uu,isAnyDirectorySeparator:()=>Hi,isAnyImportOrBareOrAccessedRequire:()=>i_,isAnyImportOrReExport:()=>o_,isAnyImportOrRequireStatement:()=>a_,isAnyImportSyntax:()=>n_,isAnySupportedFileExtension:()=>Xm,isApplicableVersionedTypesKey:()=>BO,isArgumentExpressionOfElementAccess:()=>mH,isArray:()=>i3,isArrayBindingElement:()=>kc,isArrayBindingOrAssignmentElement:()=>Pc,isArrayBindingOrAssignmentPattern:()=>Ec,isArrayBindingPattern:()=>CP,isArrayLiteralExpression:()=>NP,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>PK,isArrayTypeNode:()=>L0,isArrowFunction:()=>LP,isAsExpression:()=>G0,isAssertClause:()=>p1,isAssertEntry:()=>f1,isAssertionExpression:()=>r7,isAssertsKeyword:()=>C0,isAssignmentDeclaration:()=>I8,isAssignmentExpression:()=>zN,isAssignmentOperator:()=>BN,isAssignmentPattern:()=>$C,isAssignmentTarget:()=>yw,isAsteriskToken:()=>g0,isAsyncFunction:()=>Ru,isAsyncModifier:()=>T0,isAutoAccessorPropertyDeclaration:()=>VC,isAwaitExpression:()=>RP,isAwaitKeyword:()=>w0,isBigIntLiteral:()=>a0,isBinaryExpression:()=>pT,isBinaryOperatorToken:()=>Gy,isBindableObjectDefinePropertyCall:()=>W8,isBindableStaticAccessExpression:()=>ru,isBindableStaticElementAccessExpression:()=>H8,isBindableStaticNameExpression:()=>K8,isBindingElement:()=>wP,isBindingElementOfBareOrAccessedRequire:()=>F8,isBindingName:()=>fc,isBindingOrAssignmentElement:()=>Cc,isBindingOrAssignmentPattern:()=>wc,isBindingPattern:()=>GC,isBlock:()=>KP,isBlockLike:()=>kX,isBlockOrCatchScoped:()=>Q7,isBlockScope:()=>e_,isBlockScopedContainerTopLevel:()=>r5,isBooleanLiteral:()=>BC,isBreakOrContinueStatement:()=>$s,isBreakStatement:()=>n1,isBuild:()=>DV,isBuildInfoFile:()=>HM,isBuilderProgram:()=>xq,isBundle:()=>N1,isCallChain:()=>yC,isCallExpression:()=>PP,isCallExpressionTarget:()=>$W,isCallLikeExpression:()=>ZC,isCallLikeOrFunctionLikeExpression:()=>YC,isCallOrNewExpression:()=>e7,isCallOrNewExpressionTarget:()=>QW,isCallSignatureDeclaration:()=>iP,isCallToHelper:()=>i0,isCaseBlock:()=>u1,isCaseClause:()=>C1,isCaseKeyword:()=>I0,isCaseOrDefaultClause:()=>tl,isCatchClause:()=>PF,isCatchClauseVariableDeclaration:()=>aE,isCatchClauseVariableDeclarationOrBindingElement:()=>Y7,isCheckJsEnabledForFile:()=>BD,isChildOfNodeWithKind:()=>A_,isCircularBuildOrder:()=>rU,isClassDeclaration:()=>nF,isClassElement:()=>zC,isClassExpression:()=>JP,isClassInstanceProperty:()=>WC,isClassLike:()=>qC,isClassMemberModifier:()=>pc,isClassNamedEvaluationHelperBlock:()=>JR,isClassOrTypeElement:()=>xc,isClassStaticBlockDeclaration:()=>eP,isClassThisAssignmentBlock:()=>OR,isCollapsedRange:()=>Fp,isColonToken:()=>v0,isCommaExpression:()=>hy,isCommaListExpression:()=>Q0,isCommaSequence:()=>o9,isCommaToken:()=>p0,isComment:()=>kK,isCommonJsExportPropertyAssignment:()=>U5,isCommonJsExportedExpression:()=>q5,isCompoundAssignment:()=>iR,isComputedNonLiteralName:()=>f5,isComputedPropertyName:()=>HE,isConciseBody:()=>Bc,isConditionalExpression:()=>W0,isConditionalTypeNode:()=>gP,isConstAssertion:()=>FE,isConstTypeReference:()=>kC,isConstructSignatureDeclaration:()=>aP,isConstructorDeclaration:()=>tP,isConstructorTypeNode:()=>lP,isContextualKeyword:()=>Pu,isContinueStatement:()=>r1,isCustomPrologue:()=>v_,isDebuggerStatement:()=>_1,isDeclaration:()=>u7,isDeclarationBindingElement:()=>Tc,isDeclarationFileName:()=>x9,isDeclarationName:()=>Dw,isDeclarationNameOfEnumOrNamespace:()=>Wp,isDeclarationReadonly:()=>P5,isDeclarationStatement:()=>Gc,isDeclarationWithTypeParameterChildren:()=>r_,isDeclarationWithTypeParameters:()=>t_,isDecorator:()=>$E,isDecoratorTarget:()=>ZW,isDefaultClause:()=>w1,isDefaultImport:()=>lu,isDefaultModifier:()=>k0,isDefaultedExpandoInitializer:()=>M8,isDeleteExpression:()=>q0,isDeleteTarget:()=>ww,isDeprecatedDeclaration:()=>fX,isDestructuringAssignment:()=>up,isDiagnosticWithLocation:()=>X$,isDiskPathRoot:()=>$i,isDoStatement:()=>e1,isDocumentRegistryEntry:()=>oQ,isDotDotDotToken:()=>d0,isDottedName:()=>WN,isDynamicName:()=>Vw,isESSymbolIdentifier:()=>zu,isEffectiveExternalModule:()=>o5,isEffectiveModuleDeclaration:()=>Xl,isEffectiveStrictModeSourceFile:()=>Yl,isElementAccessChain:()=>Ws,isElementAccessExpression:()=>EP,isEmittedFileOfProgram:()=>LB,isEmptyArrayLiteral:()=>pp,isEmptyBindingElement:()=>os,isEmptyBindingPattern:()=>as,isEmptyObjectLiteral:()=>dp,isEmptyStatement:()=>Z0,isEmptyStringLiteral:()=>W_,isEntityName:()=>OC,isEntityNameExpression:()=>UN,isEnumConst:()=>E5,isEnumDeclaration:()=>oF,isEnumMember:()=>OF,isEqualityOperatorKind:()=>T$,isEqualsGreaterThanToken:()=>x0,isExclamationToken:()=>h0,isExcludedFile:()=>iI,isExclusivelyTypeOnlyImportOrExport:()=>dJ,isExpandoPropertyDeclaration:()=>wE,isExportAssignment:()=>gF,isExportDeclaration:()=>hF,isExportModifier:()=>S0,isExportName:()=>fy,isExportNamespaceAsDefaultDeclaration:()=>zl,isExportOrDefaultModifier:()=>uv,isExportSpecifier:()=>vF,isExportsIdentifier:()=>z8,isExportsOrModuleExportsOrAlias:()=>fL,isExpression:()=>nT,isExpressionNode:()=>h8,isExpressionOfExternalModuleImportEqualsDeclaration:()=>vH,isExpressionOfOptionalChainRoot:()=>xC,isExpressionStatement:()=>$P,isExpressionWithTypeArguments:()=>qP,isExpressionWithTypeArgumentsInClassExtendsClause:()=>qN,isExternalModule:()=>b9,isExternalModuleAugmentation:()=>i5,isExternalModuleImportEqualsDeclaration:()=>x8,isExternalModuleIndicator:()=>o7,isExternalModuleNameRelative:()=>B3,isExternalModuleReference:()=>bF,isExternalModuleSymbol:()=>L7,isExternalOrCommonJsModule:()=>N5,isFileLevelReservedGeneratedIdentifier:()=>_c,isFileLevelUniqueName:()=>Cl,isFileProbablyExternalModule:()=>Dv,isFirstDeclarationOfSymbolParameter:()=>wG,isFixablePromiseHandler:()=>$Q,isForInOrOfStatement:()=>s7,isForInStatement:()=>YP,isForInitializer:()=>zc,isForOfStatement:()=>ZP,isForStatement:()=>QP,isFullSourceFile:()=>H_,isFunctionBlock:()=>O_,isFunctionBody:()=>Jc,isFunctionDeclaration:()=>rF,isFunctionExpression:()=>OP,isFunctionExpressionOrArrowFunction:()=>oE,isFunctionLike:()=>jC,isFunctionLikeDeclaration:()=>MC,isFunctionLikeKind:()=>gc,isFunctionLikeOrClassStaticBlockDeclaration:()=>RC,isFunctionOrConstructorTypeNode:()=>Sc,isFunctionOrModuleBlock:()=>JC,isFunctionSymbol:()=>ou,isFunctionTypeNode:()=>cP,isFutureReservedKeyword:()=>Au,isGeneratedIdentifier:()=>PC,isGeneratedPrivateIdentifier:()=>lc,isGetAccessor:()=>h7,isGetAccessorDeclaration:()=>rP,isGetOrSetAccessorDeclaration:()=>hC,isGlobalDeclaration:()=>dX,isGlobalScopeAugmentation:()=>n5,isGlobalSourceFile:()=>w5,isGrammarError:()=>wl,isHeritageClause:()=>EF,isHoistedFunction:()=>b_,isHoistedVariableStatement:()=>S_,isIdentifier:()=>uT,isIdentifierANonContextualKeyword:()=>Ou,isIdentifierName:()=>ku,isIdentifierOrThisTypeNode:()=>By,isIdentifierPart:()=>Fo,isIdentifierStart:()=>Po,isIdentifierText:()=>R3,isIdentifierTypePredicate:()=>G5,isIdentifierTypeReference:()=>QD,isIfStatement:()=>XP,isIgnoredFileFromWildCardWatching:()=>IB,isImplicitGlob:()=>um,isImportAttribute:()=>m1,isImportAttributeName:()=>cc,isImportAttributes:()=>pF,isImportCall:()=>A5,isImportClause:()=>dF,isImportDeclaration:()=>uF,isImportEqualsDeclaration:()=>_F,isImportKeyword:()=>VE,isImportMeta:()=>h_,isImportOrExportSpecifier:()=>NC,isImportOrExportSpecifierName:()=>YG,isImportSpecifier:()=>mF,isImportTypeAssertionContainer:()=>d1,isImportTypeNode:()=>kP,isImportableFile:()=>DX,isInComment:()=>yK,isInCompoundLikeAssignment:()=>vw,isInExpressionContext:()=>y8,isInJSDoc:()=>N8,isInJSFile:()=>oT,isInJSXText:()=>uK,isInJsonFile:()=>w8,isInNonReferenceComment:()=>AK,isInReferenceComment:()=>FK,isInRightSideOfInternalImportEqualsDeclaration:()=>GW,isInString:()=>sK,isInTemplateString:()=>_K,isInTopLevelContext:()=>n8,isInTypeQuery:()=>mN,isIncrementalCompilation:()=>Mf,isIndexSignatureDeclaration:()=>O0,isIndexedAccessTypeNode:()=>bP,isInferTypeNode:()=>M0,isInfinityOrNaNString:()=>iE,isInitializedProperty:()=>uR,isInitializedVariable:()=>Kp,isInsideJsxElement:()=>dK,isInsideJsxElementOrAttribute:()=>cK,isInsideNodeModules:()=>$$,isInsideTemplateLiteral:()=>NK,isInstanceOfExpression:()=>YN,isInstantiatedModule:()=>cj,isInterfaceDeclaration:()=>iF,isInternalDeclaration:()=>cl,isInternalModuleImportEqualsDeclaration:()=>T8,isInternalName:()=>dy,isIntersectionTypeNode:()=>R0,isIntrinsicJsxName:()=>sN,isIterationStatement:()=>n7,isJSDoc:()=>A1,isJSDocAllType:()=>BF,isJSDocAugmentsTag:()=>GF,isJSDocAuthorTag:()=>I1,isJSDocCallbackTag:()=>$F,isJSDocClassTag:()=>O1,isJSDocCommentContainingNode:()=>rl,isJSDocConstructSignature:()=>nw,isJSDocDeprecatedTag:()=>J1,isJSDocEnumTag:()=>q1,isJSDocFunctionType:()=>VF,isJSDocImplementsTag:()=>H1,isJSDocImportTag:()=>n9,isJSDocIndexSignature:()=>D8,isJSDocLikeText:()=>Nv,isJSDocLink:()=>D1,isJSDocLinkCode:()=>E1,isJSDocLinkLike:()=>T7,isJSDocLinkPlain:()=>P1,isJSDocMemberName:()=>MF,isJSDocNameReference:()=>RF,isJSDocNamepathType:()=>F1,isJSDocNamespaceBody:()=>Vc,isJSDocNode:()=>m7,isJSDocNonNullableType:()=>qF,isJSDocNullableType:()=>zF,isJSDocOptionalParameter:()=>fE,isJSDocOptionalType:()=>UF,isJSDocOverloadTag:()=>XF,isJSDocOverrideTag:()=>B1,isJSDocParameterTag:()=>QF,isJSDocPrivateTag:()=>j1,isJSDocPropertyLikeTag:()=>TC,isJSDocPropertyTag:()=>t9,isJSDocProtectedTag:()=>R1,isJSDocPublicTag:()=>L1,isJSDocReadonlyTag:()=>M1,isJSDocReturnTag:()=>U1,isJSDocSatisfiesExpression:()=>hE,isJSDocSatisfiesTag:()=>r9,isJSDocSeeTag:()=>z1,isJSDocSignature:()=>KF,isJSDocTag:()=>nl,isJSDocTemplateTag:()=>ZF,isJSDocThisTag:()=>YF,isJSDocThrowsTag:()=>K1,isJSDocTypeAlias:()=>iw,isJSDocTypeAssertion:()=>s9,isJSDocTypeExpression:()=>jF,isJSDocTypeLiteral:()=>HF,isJSDocTypeTag:()=>V1,isJSDocTypedefTag:()=>e9,isJSDocUnknownTag:()=>W1,isJSDocUnknownType:()=>JF,isJSDocVariadicType:()=>WF,isJSXTagName:()=>g8,isJsonEqual:()=>eg,isJsonSourceFile:()=>D5,isJsxAttribute:()=>CF,isJsxAttributeLike:()=>p7,isJsxAttributeName:()=>mg,isJsxAttributes:()=>wF,isJsxChild:()=>Zc,isJsxClosingElement:()=>x1,isJsxClosingFragment:()=>k1,isJsxElement:()=>xF,isJsxExpression:()=>T1,isJsxFragment:()=>S1,isJsxNamespacedName:()=>DF,isJsxOpeningElement:()=>kF,isJsxOpeningFragment:()=>TF,isJsxOpeningLikeElement:()=>f7,isJsxOpeningLikeElementTagName:()=>eH,isJsxSelfClosingElement:()=>SF,isJsxSpreadAttribute:()=>NF,isJsxTagNameExpression:()=>Yc,isJsxText:()=>o0,isJumpStatementTarget:()=>lH,isKeyword:()=>Nu,isKeywordOrPunctuation:()=>Eu,isKnownSymbol:()=>Xw,isLabelName:()=>uH,isLabelOfLabeledStatement:()=>_H,isLabeledStatement:()=>s1,isLateVisibilityPaintedStatement:()=>s5,isLeftHandSideExpression:()=>t7,isLeftHandSideOfAssignment:()=>_p,isLet:()=>g_,isLineBreak:()=>L3,isLiteralComputedPropertyDeclarationName:()=>Ew,isLiteralExpression:()=>CC,isLiteralExpressionOfObject:()=>wC,isLiteralImportTypeNode:()=>I5,isLiteralKind:()=>rc,isLiteralLikeAccess:()=>eu,isLiteralLikeElementAccess:()=>tu,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>yH,isLiteralTypeLikeExpression:()=>Uy,isLiteralTypeLiteral:()=>jc,isLiteralTypeNode:()=>SP,isLocalName:()=>py,isLogicalOperator:()=>op,isLogicalOrCoalescingAssignmentExpression:()=>cp,isLogicalOrCoalescingAssignmentOperator:()=>sp,isLogicalOrCoalescingBinaryExpression:()=>MN,isLogicalOrCoalescingBinaryOperator:()=>RN,isMappedTypeNode:()=>xP,isMemberName:()=>Us,isMetaProperty:()=>WP,isMethodDeclaration:()=>ZE,isMethodOrAccessor:()=>hc,isMethodSignature:()=>YE,isMinusToken:()=>m0,isMissingDeclaration:()=>y1,isMissingPackageJsonInfo:()=>BI,isModifier:()=>IC,isModifierKind:()=>uc,isModifierLike:()=>vc,isModuleAugmentationExternal:()=>Ql,isModuleBlock:()=>cF,isModuleBody:()=>qc,isModuleDeclaration:()=>sF,isModuleExportsAccessExpression:()=>U8,isModuleIdentifier:()=>q8,isModuleName:()=>qy,isModuleOrEnumDeclaration:()=>c7,isModuleReference:()=>Qc,isModuleSpecifierLike:()=>uG,isModuleWithStringLiteralName:()=>e5,isNameOfFunctionDeclaration:()=>hH,isNameOfModuleDeclaration:()=>gH,isNamedClassElement:()=>yc,isNamedDeclaration:()=>eC,isNamedEvaluation:()=>Vu,isNamedEvaluationSource:()=>Qw,isNamedExportBindings:()=>Xs,isNamedExports:()=>yF,isNamedImportBindings:()=>Wc,isNamedImports:()=>h1,isNamedImportsOrExports:()=>_f,isNamedTupleMember:()=>pP,isNamespaceBody:()=>Uc,isNamespaceExport:()=>fF,isNamespaceExportDeclaration:()=>lF,isNamespaceImport:()=>g1,isNamespaceReexportDeclaration:()=>b8,isNewExpression:()=>FP,isNewExpressionTarget:()=>XW,isNoSubstitutionTemplateLiteral:()=>c0,isNode:()=>Qs,isNodeArray:()=>tc,isNodeArrayMultiLine:()=>Jp,isNodeDescendantOf:()=>Nw,isNodeKind:()=>Ys,isNodeLikeSystem:()=>Xe,isNodeModulesDirectory:()=>Fa,isNodeWithPossibleHoistedDeclaration:()=>bu,isNonContextualKeyword:()=>Fu,isNonExportDefaultModifier:()=>dv,isNonGlobalAmbientModule:()=>$l,isNonGlobalDeclaration:()=>pX,isNonNullAccess:()=>gE,isNonNullChain:()=>Gs,isNonNullExpression:()=>VP,isNonStaticMethodOrAccessorWithPrivateName:()=>dR,isNotEmittedOrPartiallyEmittedNode:()=>Rc,isNotEmittedStatement:()=>v1,isNullishCoalesce:()=>Hs,isNumber:()=>ce,isNumericLiteral:()=>zE,isNumericLiteralName:()=>sE,isObjectBindingElementWithoutPropertyName:()=>dG,isObjectBindingOrAssignmentElement:()=>Dc,isObjectBindingOrAssignmentPattern:()=>Nc,isObjectBindingPattern:()=>TP,isObjectLiteralElement:()=>il,isObjectLiteralElementLike:()=>HC,isObjectLiteralExpression:()=>DP,isObjectLiteralMethod:()=>H5,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>K5,isObjectTypeDeclaration:()=>cf,isOctalDigit:()=>po,isOmittedExpression:()=>zP,isOptionalChain:()=>vC,isOptionalChainRoot:()=>bC,isOptionalDeclaration:()=>mE,isOptionalJSDocPropertyLikeTag:()=>dE,isOptionalTypeNode:()=>fP,isOuterExpression:()=>yy,isOutermostOptionalChain:()=>SC,isOverrideModifier:()=>P0,isPackageJsonInfo:()=>MI,isPackedArrayLiteral:()=>cg,isParameter:()=>GE,isParameterPropertyDeclaration:()=>U3,isParameterPropertyModifier:()=>dc,isParenthesizedExpression:()=>IP,isParenthesizedTypeNode:()=>hP,isParseTreeNode:()=>ds,isPartOfParameterDeclaration:()=>Zw,isPartOfTypeNode:()=>O5,isPartOfTypeQuery:()=>v8,isPartiallyEmittedExpression:()=>X0,isPatternMatch:()=>We,isPinnedComment:()=>jl,isPlainJsFile:()=>U7,isPlusToken:()=>f0,isPossiblyTypeArgumentPosition:()=>mK,isPostfixUnaryExpression:()=>V0,isPrefixUnaryExpression:()=>MP,isPrimitiveLiteralValue:()=>vg,isPrivateIdentifier:()=>UE,isPrivateIdentifierClassElementDeclaration:()=>FC,isPrivateIdentifierPropertyAccessExpression:()=>AC,isPrivateIdentifierSymbol:()=>Ju,isProgramBundleEmitBuildInfo:()=>Ez,isProgramUptoDate:()=>OJ,isPrologueDirective:()=>y_,isPropertyAccessChain:()=>Vs,isPropertyAccessEntityNameExpression:()=>HN,isPropertyAccessExpression:()=>dT,isPropertyAccessOrQualifiedName:()=>QC,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>XC,isPropertyAssignment:()=>FF,isPropertyDeclaration:()=>QE,isPropertyName:()=>LC,isPropertyNameLiteral:()=>Hw,isPropertySignature:()=>XE,isProtoSetter:()=>qu,isPrototypeAccess:()=>GN,isPrototypePropertyAssignment:()=>Q8,isPunctuation:()=>Du,isPushOrUnshiftIdentifier:()=>Yw,isQualifiedName:()=>WE,isQuestionDotToken:()=>b0,isQuestionOrExclamationToken:()=>My,isQuestionOrPlusOrMinusToken:()=>zy,isQuestionToken:()=>y0,isRawSourceMap:()=>Aj,isReadonlyKeyword:()=>N0,isReadonlyKeywordOrPlusOrMinusToken:()=>Jy,isRecognizedTripleSlashComment:()=>Ll,isReferenceFileLocation:()=>AJ,isReferencedFile:()=>FJ,isRegularExpressionLiteral:()=>s0,isRequireCall:()=>E8,isRequireVariableStatement:()=>Q_,isRestParameter:()=>w7,isRestTypeNode:()=>mP,isReturnStatement:()=>i1,isReturnStatementWithFixablePromiseHandler:()=>GQ,isRightSideOfAccessExpression:()=>XN,isRightSideOfInstanceofExpression:()=>ZN,isRightSideOfPropertyAccess:()=>fH,isRightSideOfQualifiedName:()=>pH,isRightSideOfQualifiedNameOrPropertyAccess:()=>$N,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>QN,isRootedDiskPath:()=>Gi,isSameEntityName:()=>J8,isSatisfiesExpression:()=>UP,isScopeMarker:()=>Mc,isSemicolonClassElement:()=>Y0,isSetAccessor:()=>g7,isSetAccessorDeclaration:()=>nP,isShebangTrivia:()=>vo,isShiftOperatorOrHigher:()=>Vy,isShorthandAmbientModuleSymbol:()=>t5,isShorthandPropertyAssignment:()=>AF,isSignedNumericLiteral:()=>Mu,isSimpleCopiableExpression:()=>rR,isSimpleInlineableExpression:()=>nR,isSimpleParameter:()=>SR,isSimpleParameterList:()=>kR,isSingleOrDoubleQuote:()=>A8,isSourceFile:()=>LF,isSourceFileFromLibrary:()=>bX,isSourceFileJS:()=>C8,isSourceFileNotJS:()=>K_,isSourceFileNotJson:()=>G_,isSourceMapping:()=>jj,isSpecialPropertyDeclaration:()=>au,isSpreadAssignment:()=>IF,isSpreadElement:()=>BP,isStatement:()=>d7,isStatementButNotDeclaration:()=>$c,isStatementOrBlock:()=>Xc,isStatementWithLocals:()=>V7,isStatic:()=>CN,isStaticModifier:()=>D0,isString:()=>a3,isStringAKeyword:()=>Iu,isStringANonContextualKeyword:()=>Jw,isStringAndEmptyAnonymousObjectIntersection:()=>wK,isStringDoubleQuoted:()=>Y_,isStringLiteral:()=>qE,isStringLiteralLike:()=>k7,isStringLiteralOrJsxExpression:()=>el,isStringLiteralOrTemplate:()=>C$,isStringOrNumericLiteralLike:()=>qw,isStringOrRegularExpressionOrTemplateLiteral:()=>TK,isStringTextContainingNode:()=>sc,isSuperCall:()=>F5,isSuperKeyword:()=>A0,isSuperOrSuperProperty:()=>z_,isSuperProperty:()=>s8,isSupportedSourceFileName:()=>Mm,isSwitchStatement:()=>o1,isSyntaxList:()=>G1,isSyntheticExpression:()=>$0,isSyntheticReference:()=>b1,isTagName:()=>dH,isTaggedTemplateExpression:()=>AP,isTaggedTemplateTag:()=>YW,isTemplateExpression:()=>H0,isTemplateHead:()=>l0,isTemplateLiteral:()=>Fc,isTemplateLiteralKind:()=>nc,isTemplateLiteralToken:()=>ic,isTemplateLiteralTypeNode:()=>J0,isTemplateLiteralTypeSpan:()=>B0,isTemplateMiddle:()=>_0,isTemplateMiddleOrTemplateTail:()=>ac,isTemplateSpan:()=>HP,isTemplateTail:()=>u0,isTextWhiteSpaceLike:()=>SG,isThis:()=>SH,isThisContainerOrFunctionBlock:()=>r8,isThisIdentifier:()=>fN,isThisInTypeQuery:()=>gN,isThisInitializedDeclaration:()=>l8,isThisInitializedObjectBindingExpression:()=>_8,isThisProperty:()=>c8,isThisTypeNode:()=>yP,isThisTypeParameter:()=>lE,isThisTypePredicate:()=>$5,isThrowStatement:()=>c1,isToken:()=>ec,isTokenKind:()=>Zs,isTraceEnabled:()=>fI,isTransientSymbol:()=>O7,isTrivia:()=>Lu,isTryStatement:()=>l1,isTupleTypeNode:()=>dP,isTypeAlias:()=>aw,isTypeAliasDeclaration:()=>aF,isTypeAssertionExpression:()=>z0,isTypeDeclaration:()=>_E,isTypeElement:()=>bc,isTypeKeyword:()=>UK,isTypeKeywordToken:()=>VK,isTypeKeywordTokenOrIdentifier:()=>WK,isTypeLiteralNode:()=>uP,isTypeNode:()=>KC,isTypeNodeKind:()=>cD,isTypeOfExpression:()=>jP,isTypeOnlyExportDeclaration:()=>oc,isTypeOnlyImportDeclaration:()=>DC,isTypeOnlyImportOrExportDeclaration:()=>EC,isTypeOperatorNode:()=>vP,isTypeParameterDeclaration:()=>KE,isTypePredicateNode:()=>oP,isTypeQueryNode:()=>_P,isTypeReferenceNode:()=>sP,isTypeReferenceType:()=>S7,isTypeUsableAsPropertyName:()=>TE,isUMDExportSymbol:()=>sD,isUnaryExpression:()=>Ic,isUnaryExpressionWithWrite:()=>Lc,isUnicodeIdentifierStart:()=>Ka,isUnionTypeNode:()=>j0,isUrl:()=>Ki,isValidBigIntString:()=>$D,isValidESSymbolDeclaration:()=>V5,isValidTypeOnlyAliasUseSite:()=>XD,isValueSignatureDeclaration:()=>bw,isVarAwaitUsing:()=>d_,isVarConst:()=>f_,isVarConstLike:()=>m_,isVarUsing:()=>p_,isVariableDeclaration:()=>eF,isVariableDeclarationInVariableStatement:()=>z5,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>P8,isVariableDeclarationInitializedToRequire:()=>$_,isVariableDeclarationList:()=>tF,isVariableLike:()=>B5,isVariableLikeOrAccessor:()=>J5,isVariableStatement:()=>GP,isVoidExpression:()=>U0,isWatchSet:()=>Gp,isWhileStatement:()=>t1,isWhiteSpaceLike:()=>oo,isWhiteSpaceSingleLine:()=>so,isWithStatement:()=>a1,isWriteAccess:()=>aD,isWriteOnlyAccess:()=>iD,isYieldExpression:()=>K0,jsxModeNeedsExplicitImport:()=>vX,keywordPart:()=>FG,last:()=>GT,lastOrUndefined:()=>KT,length:()=>K4,libMap:()=>w4,libs:()=>C4,lineBreakPart:()=>HG,linkNamePart:()=>zG,linkPart:()=>qG,linkTextPart:()=>JG,listFiles:()=>Sq,loadModuleFromGlobalCache:()=>tL,loadWithModeAwareCache:()=>kJ,makeIdentifierFromModuleName:()=>Gl,makeImport:()=>nG,makeStringLiteral:()=>iG,mangleScopedPackageName:()=>GO,map:()=>$4,mapAllOrFail:()=>T,mapDefined:()=>AT,mapDefinedEntries:()=>h,mapDefinedIterator:()=>g,mapEntries:()=>C,mapIterator:()=>k,mapOneOrMany:()=>tX,mapToDisplayParts:()=>KG,matchFiles:()=>hm,matchPatternOrExact:()=>Ym,matchedText:()=>Ue,matchesExclude:()=>oI,maybeBind:()=>r3,maybeSetLocalizedDiagnosticMessages:()=>bf,memoize:()=>Ci,memoizeCached:()=>fe,memoizeOne:()=>wi,memoizeWeak:()=>pe,metadataHelper:()=>Nh,min:()=>ve,minAndMax:()=>zD,missingFileModifiedTime:()=>li,modifierToFlag:()=>jN,modifiersToFlags:()=>LN,moduleOptionDeclaration:()=>P4,moduleResolutionIsEqualTo:()=>hl,moduleResolutionNameAndModeGetter:()=>yJ,moduleResolutionOptionDeclarations:()=>j4,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Uf,moduleResolutionUsesNodeModules:()=>rG,moduleSpecifierToValidIdentifier:()=>lX,moduleSpecifiers:()=>yL,moduleSymbolToValidIdentifier:()=>cX,moveEmitHelpers:()=>ph,moveRangeEnd:()=>Np,moveRangePastDecorators:()=>Ep,moveRangePastModifiers:()=>Pp,moveRangePos:()=>Dp,moveSyntheticComments:()=>oh,mutateMap:()=>tf,mutateMapSkippingNewValues:()=>ef,needsParentheses:()=>x$,needsScopeMarker:()=>a7,newCaseClauseTracker:()=>xX,newPrivateEnvironment:()=>yR,noEmitNotification:()=>qM,noEmitSubstitution:()=>zM,noTransformers:()=>jM,noTruncationMaximumTruncationLength:()=>P7,nodeCanBeDecorated:()=>p8,nodeHasName:()=>Z3,nodeIsDecorated:()=>q_,nodeIsMissing:()=>W7,nodeIsPresent:()=>H7,nodeIsSynthesized:()=>rN,nodeModuleNameResolver:()=>cO,nodeModulesPathPart:()=>fO,nodeNextJsonConfigResolver:()=>lO,nodeOrChildIsDecorated:()=>U_,nodeOverlapsWithStartEnd:()=>AH,nodePosToString:()=>kl,nodeSeenTracker:()=>HK,nodeStartsNewLexicalEnvironment:()=>tN,nodeToDisplayParts:()=>QG,noop:()=>yr,noopFileWatcher:()=>Fq,normalizePath:()=>ua,normalizeSlashes:()=>sa,not:()=>y3,notImplemented:()=>de,notImplementedResolver:()=>hB,nullNodeConverters:()=>wg,nullParenthesizerRules:()=>kg,nullTransformationContext:()=>VM,objectAllocator:()=>uD,operatorPart:()=>IG,optionDeclarations:()=>A4,optionMapToObject:()=>fA,optionsAffectingProgramStructure:()=>M4,optionsForBuild:()=>U4,optionsForWatch:()=>N4,optionsHaveChanges:()=>pl,optionsHaveModuleResolutionChanges:()=>ul,or:()=>h3,orderedRemoveItem:()=>Oe,orderedRemoveItemAt:()=>d3,packageIdToPackageName:()=>yl,packageIdToString:()=>vl,paramHelper:()=>Dh,parameterIsThisKeyword:()=>pN,parameterNamePart:()=>OG,parseBaseNodeFactory:()=>Cv,parseBigInt:()=>tg,parseBuildCommand:()=>J9,parseCommandLine:()=>L9,parseCommandLineWorker:()=>F9,parseConfigFileTextToJson:()=>V9,parseConfigFileWithSystem:()=>mq,parseConfigHostFromCompilerHostLike:()=>UJ,parseCustomTypeOption:()=>N9,parseIsolatedEntityName:()=>v9,parseIsolatedJSDocComment:()=>e2,parseJSDocTypeExpressionForTests:()=>t2,parseJsonConfigFileContent:()=>SA,parseJsonSourceFileConfigFileContent:()=>kA,parseJsonText:()=>Yv,parseListTypeOption:()=>D9,parseNodeFactory:()=>g9,parseNodeModuleFromPath:()=>gO,parsePackageName:()=>IO,parsePseudoBigInt:()=>HD,parseValidBigInt:()=>GD,pasteEdits:()=>O0e,patchWriteFileEnsuringDirectory:()=>Bi,pathContainsNodeModules:()=>mO,pathIsAbsolute:()=>Xi,pathIsBareSpecifier:()=>Qi,pathIsRelative:()=>T3,patternText:()=>qe,perfLogger:()=>er,performIncrementalCompilation:()=>Vq,performance:()=>tr,plainJSErrors:()=>MJ,positionBelongsToNode:()=>OH,positionIsASICandidate:()=>L$,positionIsSynthesized:()=>Km,positionsAreOnSameLine:()=>zp,preProcessFile:()=>BQ,probablyUsesSemicolons:()=>j$,processCommentPragmas:()=>m4,processPragmasIntoFields:()=>g4,processTaggedTemplateExpression:()=>KR,programContainsEsModules:()=>YK,programContainsModules:()=>QK,projectReferenceIsEqualTo:()=>gl,propKeyHelper:()=>qh,propertyNamePart:()=>LG,pseudoBigIntToString:()=>KD,punctuationPart:()=>AG,pushIfUnique:()=>JT,quote:()=>k$,quotePreferenceFromString:()=>oG,rangeContainsPosition:()=>NH,rangeContainsPositionExclusive:()=>DH,rangeContainsRange:()=>CH,rangeContainsRangeExclusive:()=>wH,rangeContainsStartEnd:()=>PH,rangeEndIsOnSameLineAsRangeStart:()=>Rp,rangeEndPositionsAreOnSameLine:()=>Lp,rangeEquals:()=>qT,rangeIsOnSingleLine:()=>Ip,rangeOfNode:()=>qD,rangeOfTypeParameters:()=>UD,rangeOverlapsWithStartEnd:()=>FH,rangeStartIsOnSameLineAsRangeEnd:()=>jp,rangeStartPositionsAreOnSameLine:()=>Op,readBuilderProgram:()=>Wq,readConfigFile:()=>U9,readHelper:()=>Jh,readJson:()=>bp,readJsonConfigFile:()=>W9,readJsonOrUndefined:()=>vp,reduceEachLeadingCommentRange:()=>To,reduceEachTrailingCommentRange:()=>Co,reduceLeft:()=>QT,reduceLeftIterator:()=>m,reducePathComponents:()=>ca,refactor:()=>uZ,regExpEscape:()=>em,regularExpressionFlagToCharacter:()=>Qa,relativeComplement:()=>MT,removeAllComments:()=>Wg,removeEmitHelper:()=>uh,removeExtension:()=>jD,removeFileExtension:()=>qm,removeIgnoredPath:()=>Kz,removeMinAndVersionNumbers:()=>Ie,removeOptionality:()=>fK,removePrefix:()=>m3,removeSuffix:()=>kr,removeTrailingDirectorySeparator:()=>fa,repeatString:()=>GK,replaceElement:()=>$T,replaceFirstStar:()=>yg,resolutionExtensionIsTSOrJson:()=>RD,resolveConfigFileProjectName:()=>Qq,resolveJSModule:()=>iO,resolveLibrary:()=>eO,resolveModuleName:()=>rO,resolveModuleNameFromCache:()=>tO,resolvePackageNameToPackageJson:()=>jI,resolvePath:()=>la,resolveProjectReferencePath:()=>VJ,resolveTripleslashReference:()=>zB,resolveTypeReferenceDirective:()=>II,resolvingEmptyArray:()=>N7,restHelper:()=>jh,returnFalse:()=>vr,returnNoopFileWatcher:()=>Aq,returnTrue:()=>ki,returnUndefined:()=>le,returnsPromise:()=>KQ,runInitializersHelper:()=>Ph,sameFlatMap:()=>bi,sameMap:()=>ET,sameMapping:()=>Lj,scanShebangTrivia:()=>bo,scanTokenAtPosition:()=>T5,scanner:()=>VW,screenStartingMessageCodes:()=>dq,semanticDiagnosticsOptionDeclarations:()=>I4,serializeCompilerOptions:()=>gA,server:()=>Lve,servicesVersion:()=>vre,setCommentRange:()=>LE,setConfigFileInOptions:()=>TA,setConstantValue:()=>ch,setEachParent:()=>ag,setEmitFlags:()=>_T,setFunctionNameHelper:()=>Uh,setGetSourceFileAsHashVersioned:()=>Mq,setIdentifierAutoGenerate:()=>vh,setIdentifierGeneratedImportReference:()=>xh,setIdentifierTypeArguments:()=>ME,setInternalEmitFlags:()=>Kg,setLocalizedDiagnosticMessages:()=>vf,setModuleDefaultHelper:()=>Kh,setNodeChildren:()=>Y1,setNodeFlags:()=>eE,setObjectAllocator:()=>hf,setOriginalNode:()=>lT,setParent:()=>tE,setParentRecursive:()=>og,setPrivateIdentifier:()=>bR,setSnippetElement:()=>mh,setSourceMapRange:()=>Xg,setStackTraceLimit:()=>oi,setStartsOnNewLine:()=>eh,setSyntheticLeadingComments:()=>jE,setSyntheticTrailingComments:()=>ih,setSys:()=>zi,setSysLog:()=>Ii,setTextRange:()=>fT,setTextRangeEnd:()=>ng,setTextRangePos:()=>rg,setTextRangePosEnd:()=>ZD,setTextRangePosWidth:()=>ig,setTokenSourceMapRange:()=>Yg,setTypeNode:()=>hh,setUILocale:()=>De,setValueDeclaration:()=>Y8,shouldAllowImportingTsExtension:()=>eL,shouldPreserveConstEnums:()=>ND,shouldUseUriStyleNodeCoreModules:()=>mX,showModuleSpecifier:()=>af,signatureHasLiteralTypes:()=>fj,signatureHasRestParameter:()=>pj,signatureToDisplayParts:()=>XG,single:()=>F,singleElementArray:()=>v3,singleIterator:()=>v,singleOrMany:()=>Me,singleOrUndefined:()=>xi,skipAlias:()=>Xp,skipAssertions:()=>vy,skipConstraint:()=>$K,skipOuterExpressions:()=>l9,skipParentheses:()=>Cw,skipPartiallyEmittedExpressions:()=>Ks,skipTrivia:()=>j3,skipTypeChecking:()=>VD,skipTypeParentheses:()=>Tw,skipWhile:()=>$e,sliceAfter:()=>Zm,some:()=>X4,sort:()=>E,sortAndDeduplicate:()=>S,sortAndDeduplicateDiagnostics:()=>Jo,sourceFileAffectingCompilerOptions:()=>R4,sourceFileMayBeEmitted:()=>Id,sourceMapCommentRegExp:()=>Nj,sourceMapCommentRegExpDontCareLineStart:()=>wj,spacePart:()=>PG,spanMap:()=>Le,spreadArrayHelper:()=>zh,stableSort:()=>dn,startEndContainsRange:()=>EH,startEndOverlapsWithStartEnd:()=>IH,startOnNewLine:()=>by,startTracing:()=>Ir,startsWith:()=>f3,startsWithDirectory:()=>Ta,startsWithUnderscore:()=>uX,startsWithUseStrict:()=>gy,stringContainsAt:()=>_X,stringToToken:()=>$a,stripQuotes:()=>oN,supportedDeclarationExtensions:()=>Dm,supportedJSExtensions:()=>Tm,supportedJSExtensionsFlat:()=>Cm,supportedLocaleDirectories:()=>_s,supportedTSExtensions:()=>bm,supportedTSExtensionsFlat:()=>xm,supportedTSImplementationExtensions:()=>Em,suppressLeadingAndTrailingTrivia:()=>l$,suppressLeadingTrivia:()=>_$,suppressTrailingTrivia:()=>u$,symbolEscapedNameNoDefault:()=>_G,symbolName:()=>Y3,symbolNameNoDefault:()=>lG,symbolPart:()=>DG,symbolToDisplayParts:()=>$G,syntaxMayBeASICandidate:()=>O$,syntaxRequiresTrailingSemicolonOrASI:()=>I$,sys:()=>Ji,sysLog:()=>Ai,tagNamesAreEquivalent:()=>x4,takeWhile:()=>Ge,targetOptionDeclaration:()=>E4,templateObjectHelper:()=>Bh,testFormatSettings:()=>IW,textChangeRangeIsUnchanged:()=>es,textChangeRangeNewSpan:()=>Zo,textChanges:()=>I,textOrKeywordPart:()=>jG,textPart:()=>RG,textRangeContainsPositionInclusive:()=>q3,textSpanContainsPosition:()=>z3,textSpanContainsTextSpan:()=>Uo,textSpanEnd:()=>J3,textSpanIntersection:()=>Xo,textSpanIntersectsWith:()=>Ko,textSpanIntersectsWithPosition:()=>$o,textSpanIntersectsWithTextSpan:()=>Ho,textSpanIsEmpty:()=>qo,textSpanOverlap:()=>Wo,textSpanOverlapsWith:()=>Vo,textSpansEqual:()=>yG,textToKeywordObj:()=>Oa,timestamp:()=>$t,toArray:()=>se,toBuilderFileEmit:()=>Bz,toBuilderStateFileInfoForMultiEmit:()=>Mz,toEditorSettings:()=>Fre,toFileNameLowerCase:()=>br,toLowerCase:()=>_e,toPath:()=>pa,toProgramEmitPending:()=>Jz,tokenIsIdentifierOrKeyword:()=>Aa,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Ia,tokenToString:()=>I3,trace:()=>pI,tracing:()=>Z4,tracingEnabled:()=>nr,transform:()=>Xre,transformClassFields:()=>YR,transformDeclarations:()=>AM,transformECMAScriptModule:()=>TM,transformES2015:()=>vM,transformES2016:()=>hM,transformES2017:()=>nM,transformES2018:()=>aM,transformES2019:()=>oM,transformES2020:()=>sM,transformES2021:()=>cM,transformESDecorators:()=>rM,transformESNext:()=>lM,transformGenerators:()=>bM,transformJsx:()=>mM,transformLegacyDecorators:()=>tM,transformModule:()=>xM,transformNamedEvaluation:()=>WR,transformNodeModule:()=>CM,transformNodes:()=>UM,transformSystemModule:()=>kM,transformTypeScript:()=>QR,transpile:()=>_Y,transpileDeclaration:()=>iY,transpileModule:()=>nY,transpileOptionValueCompilerOptions:()=>B4,tryAddToSet:()=>OT,tryAndIgnoreErrors:()=>z$,tryCast:()=>o3,tryDirectoryExists:()=>J$,tryExtractTSExtension:()=>eD,tryFileExists:()=>B$,tryGetClassExtendingExpressionWithTypeArguments:()=>lp,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>JN,tryGetDirectories:()=>R$,tryGetExtensionFromPath:()=>MD,tryGetImportFromModuleSpecifier:()=>cu,tryGetJSDocSatisfiesTypeNode:()=>vE,tryGetModuleNameFromFile:()=>Ny,tryGetModuleSpecifierFromDeclaration:()=>Z8,tryGetNativePerformanceHooks:()=>Gt,tryGetPropertyAccessOrIdentifierToString:()=>KN,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Ay,tryGetSourceMappingURL:()=>Pj,tryGetTextOfPropertyName:()=>s_,tryIOAndConsumeErrors:()=>q$,tryParseJson:()=>xp,tryParsePattern:()=>Wm,tryParsePatterns:()=>Hm,tryParseRawSourceMap:()=>Ij,tryReadDirectory:()=>M$,tryReadFile:()=>H9,tryRemoveDirectoryPrefix:()=>Yf,tryRemoveExtension:()=>Um,tryRemovePrefix:()=>Ve,tryRemoveSuffix:()=>Ae,typeAcquisitionDeclarations:()=>W4,typeAliasNamePart:()=>MG,typeDirectiveIsEqualTo:()=>bl,typeKeywords:()=>qK,typeParameterNamePart:()=>BG,typeToDisplayParts:()=>GG,unchangedPollThresholds:()=>fi,unchangedTextChangeRange:()=>rs,unescapeLeadingUnderscores:()=>X3,unmangleScopedPackageName:()=>XO,unorderedRemoveItem:()=>Je,unorderedRemoveItemAt:()=>Be,unreachableCodeIsError:()=>zf,unsetNodeChildren:()=>Z1,unusedLabelIsError:()=>qf,unwrapInnermostStatementOfLabel:()=>I_,unwrapParenthesizedExpression:()=>bg,updateErrorForNoInputFiles:()=>MA,updateLanguageServiceSourceFile:()=>Bre,updateMissingFilePathsWatch:()=>FB,updateResolutionField:()=>kI,updateSharedExtendedConfigFileWatcher:()=>DB,updateSourceFile:()=>Zv,updateWatchingWildcardDirectories:()=>AB,usesExtensionsOnImports:()=>jm,usingSingleLineStringWriter:()=>B7,utf16EncodeAsString:()=>Lo,validateLocaleAndSetLanguage:()=>us,valuesHelper:()=>Vh,version:()=>L,versionMajorMinor:()=>mr,visitArray:()=>gj,visitCommaListElements:()=>Sj,visitEachChild:()=>hT,visitFunctionBody:()=>bj,visitIterationBody:()=>xj,visitLexicalEnvironment:()=>yj,visitNode:()=>mT,visitNodes:()=>gT,visitParameterList:()=>vj,walkUpBindingElementsAndPatterns:()=>V3,walkUpLexicalEnvironments:()=>hR,walkUpOuterExpressions:()=>_9,walkUpParenthesizedExpressions:()=>Sw,walkUpParenthesizedTypes:()=>xw,walkUpParenthesizedTypesAndGetParentAndChild:()=>kw,whitespaceOrMapCommentRegExp:()=>Dj,writeCommentRange:()=>$d,writeFile:()=>jd,writeFileEnsuringDirectories:()=>Rd,zipWith:()=>l}),o.exports=Toe,"5.5"),L="5.5.2",a=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(a||{}),H4=[],p=new Map,s=new Set;function K4(e){return e?e.length:0}function G4(t,r){if(t)for(let e=0;en(e,r[t]))}function u(t,r,n){for(let e=n||0;e{var t=n(t,e);void 0!==t&&([e,t]=t,void 0!==e)&&void 0!==t&&r.set(e,t)}),r}}function IT(e,t,r){return e.has(t)?e.get(t):(r=r(),e.set(t,r),r)}function OT(e,t){return!e.has(t)&&(e.add(t),!0)}function*v(e){yield e}function Le(i,a,o){let s;if(i){s=[];var c,l=i.length;let e,t,r=0,n=0;for(;r{var[t,e]=n(t,e);r.set(t,e)}),r}}function X4(e,t){if(e){if(!t)return 0i[e])}var t=r,_,u=[];for(_ of n=e)JT(u,_,t);return u}}function x(){return[]}function B(e,t,r,n,i){if(0===e.length)return e.push(t),!0;r=XT(e,t,Ti,r);if(r<0){if(n&&!i){var a=~r;if(0o&&Y4.assertGreaterThanOrEqual(i(r[e],r[e-1]),0),i(n[t],r[e])){case-1:a.push(n[t]);continue e;case 0:continue e;case 1:continue}}return a}function Q4(e,t){if(void 0!==t){if(void 0===e)return[t];e.push(t)}return e}function A(e,t){return void 0===e?t:void 0===t?e:i3(e)?(i3(t)?LT:Q4)(e,t):i3(t)?Q4(t,e):[e,t]}function N(e,t){return t<0?e.length+t:t}function BT(t,r,n,i){if(void 0!==r&&0!==r.length){if(void 0===t)return r.slice(n,i);n=void 0===n?0:N(r,n),i=void 0===i?r.length:N(r,i);for(let e=n;en(r[e],r[t])||l3(e,t))}function E(e,t){return 0===e.length?e:e.slice().sort(t)}function*P(t){for(let e=t.length-1;0<=e;e--)yield t[e]}function dn(t,e){var r=jT(t);return D(t,r,e),r.map(e=>t[e])}function qT(e,t,r,n){for(;rnull==e?void 0:e.at(t):(e,t)=>{if(e&&(t=N(e,t))>1);switch(n(r(e[s],s),t)){case-1:a=s+1;break;case 0:return s;case 1:o=s-1}}return~a}function QT(r,n,i,a,o){if(r&&0s-1?s-1:e+o;let t;for(arguments.length<=2?(t=r[e],e++):t=i;e<=c;)t=n(t,r[e],e),e++;return t}}return i}var R=Object.prototype.hasOwnProperty;function Si(e,t){return R.call(e,t)}function M(e,t){return R.call(e,t)?e[t]:void 0}function J(e){var t,r=[];for(t in e)R.call(e,t)&&r.push(t);return r}function z(e){var t,r=[];do{for(t of Object.getOwnPropertyNames(e))JT(r,t)}while(e=Object.getPrototypeOf(e));return r}function q(e){var t,r=[];for(t in e)R.call(e,t)&&r.push(e[t]);return r}function YT(t,r){var n=new Array(t);for(let e=0;er.length>>1&&(e=r.length-n,r.copyWithin(0,n),r.length=e,n=0),t},isEmpty:i}}function oe(i,a){let o=new Map,s=0;function*t(){for(var e of o.values())i3(e)?yield*e:yield e}let n={has(e){var t=i(e);if(o.has(t)){var r,t=o.get(t);if(!i3(t))return a(t,e);for(r of t)if(a(r,e))return!0}return!1},add(e){var t,r=i(e);return o.has(r)?i3(t=o.get(r))?TT(t,e,a)||(t.push(e),s++):a(t=t,e)||(o.set(r,[t,e]),s++):(o.set(r,e),s++),this},delete(t){var r=i(t);if(o.has(r)){var n=o.get(r);if(i3(n)){for(let e=0;et(),[Symbol.toStringTag]:o[Symbol.toStringTag]};return n}function i3(e){return Array.isArray(e)}function se(e){return i3(e)?e:[e]}function a3(e){return"string"==typeof e}function ce(e){return"number"==typeof e}function o3(e,t){return void 0!==e&&t(e)?e:void 0}function s3(e,t){return void 0!==e&&t(e)?e:Y4.fail(`Invalid cast. The supplied value ${e} did not pass the test '${Y4.getFunctionName(t)}'.`)}function yr(e){}function vr(){return!1}function ki(){return!0}function le(){}function Ti(e){return e}function _e(e){return e.toLowerCase()}var ue=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function br(e){return ue.test(e)?e.replace(ue,_e):e}function de(){throw new Error("Not implemented")}function Ci(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function wi(n){let i=new Map;return e=>{var t=typeof e+":"+e;let r=i.get(t);return void 0!==r||i.has(t)||(r=n(e),i.set(t,r)),r}}function pe(r){let n=new WeakMap;return e=>{let t=n.get(e);return void 0!==t||n.has(e)||(t=r(e),n.set(e,t)),t}}function fe(r,n){return(...e)=>{let t=n.get(e);return void 0!==t||n.has(e)||(t=r(...e),n.set(e,t)),t}}function me(t,r,n,i,e){if(e){let t=[];for(let e=0;eQT(t,(e,t)=>t(e),e)}return i?e=>i(n(r(t(e)))):n?e=>n(r(t(e))):r?e=>r(t(e)):t?e=>t(e):e=>e}var ge=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(ge||{});function c3(e,t){return e===t}function xr(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function Sr(e,t){return e===t}function he(e,t){return e===t?0:void 0===e||void 0!==t&&e-1===r(e,t)?e:t)}function be(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:t{return function(e){let n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(e,t)=>{var r=n;return e===t?0:void 0===e?-1:void 0===t?1:(r=r(e,t))<0?-1:0e?r-e:1),_=Math.floor(i.length>e+r?e+r:i.length);let t=o[0]=r;for(let e=1;ee)return;var d=a;a=o,o=d}var t=a[i.length];return ee===t;for(let e=0;ei&&(i=o.prefix.length,n=a)}return n}function f3(e,t,r){return r?xr(e.slice(0,t.length),t):0===e.lastIndexOf(t,0)}function m3(e,t){return f3(e,t)?e.substr(t.length):e}function Ve(e,t,r=Ti){return f3(r(e),r(t))?e.substring(t.length):void 0}function We({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&f3(r,e)&&u3(r,t)}function g3(t,r){return e=>t(e)&&r(e)}function h3(...n){return(...e)=>{let t;for(var r of n)if(t=r(...e))return t;return t}}function y3(t){return(...e)=>!t(...e)}function He(e){}function v3(e){return void 0===e?void 0:[e]}function Ke(e,t,r,n,i,a){a=a||yr;let o=0,s=0;var c=e.length,l=t.length;let _=!1;for(;o(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))(Qe||{});{var Ye=Y4=Y4||{};let n=0;function Ze(e){return Ye.currentLogLevel<=e}function et(e,t){Ye.loggingHost&&Ze(e)&&Ye.loggingHost.log(e,t)}function tt(e){et(3,e)}Ye.currentLogLevel=2,Ye.isDebugging=!1,Ye.shouldLog=Ze,Ye.log=tt,(o=Ye.log||(Ye.log={})).error=function(e){et(1,e)},o.warn=function(e){et(2,e)},o.log=function(e){et(3,e)},o.trace=function(e){et(4,e)};let i={};function rt(e){return n>=e}function nt(e,t){if(rt(e))return 1;i[t]={level:e,assertion:Ye[t]},Ye[t]=yr}function it(e,t){e=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(e,t||it),e}function ot(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),it(t,n||ot))}function st(e,t,r){null==e&&it(t,r||st)}function ct(e,t,r){for(var n of e)st(n,t,r||ct)}function lt(e,t="Illegal value:",r){return it(t+" "+("object"==typeof e&&Si(e,"kind")&&Si(e,"pos")?"SyntaxKind: "+pt(e.kind):JSON.stringify(e)),r||lt)}function _t(e){}function ut(e){return"function"!=typeof e?"":Si(e,"name")?e.name:(e=Function.prototype.toString.call(e),(e=/^function\s+([\w$]+)\s*\(/.exec(e))?e[1]:"")}function dt(t=0,r,e){r=function(e){var t=c.get(e);if(t)return t;var r=[];for(var n in e){var i=e[n];"number"==typeof i&&r.push([i,n])}t=dn(r,(e,t)=>l3(e[0],t[0]));return c.set(e,t),t}(r);if(0===t)return 0t)break;0!==n&&n&t&&(a.push(i),e&=~n)}if(0===e)return a.join("|")}else for(var[o,s]of r)if(o===t)return s;return t.toString()}Ye.getAssertionLevel=function(){return n},Ye.setAssertionLevel=function(e){if(n<(n=e))for(var t of J(i)){var r=i[t];void 0!==r&&Ye[t]!==r.assertion&&e>=r.level&&(Ye[t]=r,i[t]=void 0)}},Ye.shouldAssert=rt,Ye.fail=it,Ye.failBadSyntaxKind=function e(t,r,n){return it(`${r||"Unexpected node."}\r +Node ${pt(t.kind)} was unexpected.`,n||e)},Ye.assert=ot,Ye.assertEqual=function e(t,r,n,i,a){t!==r&&it(`Expected ${t} === ${r}. `+(n?i?n+" "+i:n:""),a||e)},Ye.assertLessThan=function e(t,r,n,i){r<=t&&it(`Expected ${t} < ${r}. `+(n||""),i||e)},Ye.assertLessThanOrEqual=function e(t,r,n){r= `+r,n||e)},Ye.assertIsDefined=st,Ye.checkDefined=function e(t,r,n){return st(t,r,n||e),t},Ye.assertEachIsDefined=ct,Ye.checkEachDefined=function e(t,r,n){return ct(t,r,n||e),t},Ye.assertNever=lt,Ye.assertEachNode=function e(t,r,n,i){nt(1,"assertEachNode")&&ot(void 0===r||vT(t,r),n||"Unexpected node.",()=>`Node array did not pass test '${ut(r)}'.`,i||e)},Ye.assertNode=function e(t,r,n,i){nt(1,"assertNode")&&ot(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",()=>`Node ${pt(null==t?void 0:t.kind)} did not pass test '${ut(r)}'.`,i||e)},Ye.assertNotNode=function e(t,r,n,i){nt(1,"assertNotNode")&&ot(void 0===t||void 0===r||!r(t),n||"Unexpected node.",()=>`Node ${pt(t.kind)} should not have passed test '${ut(r)}'.`,i||e)},Ye.assertOptionalNode=function e(t,r,n,i){nt(1,"assertOptionalNode")&&ot(void 0===r||void 0===t||r(t),n||"Unexpected node.",()=>`Node ${pt(null==t?void 0:t.kind)} did not pass test '${ut(r)}'.`,i||e)},Ye.assertOptionalToken=function e(t,r,n,i){nt(1,"assertOptionalToken")&&ot(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",()=>`Node ${pt(null==t?void 0:t.kind)} was not a '${pt(r)}' token.`,i||e)},Ye.assertMissingNode=function e(t,r,n){nt(1,"assertMissingNode")&&ot(void 0===t,r||"Unexpected node.",()=>`Node ${pt(t.kind)} was unexpected'.`,n||e)},Ye.type=_t,Ye.getFunctionName=ut,Ye.formatSymbol=function(e){return`{ name: ${X3(e.escapedName)}; flags: ${yt(e.flags)}; declarations: ${$4(e.declarations,e=>pt(e.kind))} }`},Ye.formatEnum=dt;let c=new Map;function pt(e){return dt(e,Lr,!1)}function ft(e){return dt(e,jr,!0)}function mt(e){return dt(e,Rr,!0)}function gt(e){return dt(e,Hn,!0)}function ht(e){return dt(e,Gn,!0)}function yt(e){return dt(e,cn,!0)}function vt(e){return dt(e,mn,!0)}function bt(e){return dt(e,kn,!0)}function xt(e){return dt(e,gn,!0)}function St(e){return dt(e,qr,!0)}Ye.formatSyntaxKind=pt,Ye.formatSnippetKind=function(e){return dt(e,Kn,!1)},Ye.formatScriptKind=function(e){return dt(e,Jn,!1)},Ye.formatNodeFlags=ft,Ye.formatNodeCheckFlags=function(e){return dt(e,un,!0)},Ye.formatModifierFlags=mt,Ye.formatTransformFlags=gt,Ye.formatEmitFlags=ht,Ye.formatSymbolFlags=yt,Ye.formatTypeFlags=vt,Ye.formatSignatureFlags=bt,Ye.formatObjectFlags=xt,Ye.formatFlowFlags=St,Ye.formatRelationComparisonResult=function(e){return dt(e,Br,!0)},Ye.formatCheckMode=function(e){return dt(e,ej,!0)},Ye.formatSignatureCheckMode=function(e){return dt(e,tj,!0)};let r=!(Ye.formatTypeFacts=function(e){return dt(e,YL,!0)}),t;function kt(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){var 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?` (${St(t)})`:"")}},__debugFlowFlags:{get(){return dt(this.flags,qr,!0)}},__debugToString:{value(){return Ct(this)}}})}Ye.attachFlowNodeDebugInfo=function(e){return r&&("function"==typeof Object.setPrototypeOf?(t||kt(t=Object.create(Object.prototype)),Object.setPrototypeOf(e,t)):kt(e)),e};let a;function Tt(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(e){return"NodeArray "+(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"))}}})}Ye.attachNodeArrayDebugInfo=function(e){r&&("function"==typeof Object.setPrototypeOf?(a||Tt(a=Object.create(Array.prototype)),Object.setPrototypeOf(e,a)):Tt(e))},Ye.enableDebugInfo=function(){if(!r){let t=new WeakMap,i=new WeakMap;var e;Object.defineProperties(uD.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){var e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return e+` '${Y3(this)}'`+(t?` (${yt(t)})`:"")}},__debugFlags:{get(){return yt(this.flags)}}}),Object.defineProperties(uD.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){var 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?` '${Y3(this.symbol)}'`:"")+(t?` (${xt(t)})`:"")}},__debugFlags:{get(){return vt(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?xt(this.objectFlags):""}},__debugTypeToString:{value(){let e=t.get(this);return void 0===e&&(e=this.checker.typeToString(this),t.set(this,e)),e}}}),Object.defineProperties(uD.getSignatureConstructor().prototype,{__debugFlags:{get(){return bt(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});for(e of[uD.getNodeConstructor(),uD.getIdentifierConstructor(),uD.getTokenConstructor(),uD.getSourceFileConstructor()])Si(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return""+(PC(this)?"GeneratedIdentifier":uT(this)?`Identifier '${rT(this)}'`:UE(this)?`PrivateIdentifier '${rT(this)}'`:qE(this)?"StringLiteral "+JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"..."):zE(this)?"NumericLiteral "+this.text:a0(this)?`BigIntLiteral ${this.text}n`:KE(this)?"TypeParameterDeclaration":GE(this)?"ParameterDeclaration":tP(this)?"ConstructorDeclaration":rP(this)?"GetAccessorDeclaration":nP(this)?"SetAccessorDeclaration":iP(this)?"CallSignatureDeclaration":aP(this)?"ConstructSignatureDeclaration":O0(this)?"IndexSignatureDeclaration":oP(this)?"TypePredicateNode":sP(this)?"TypeReferenceNode":cP(this)?"FunctionTypeNode":lP(this)?"ConstructorTypeNode":_P(this)?"TypeQueryNode":uP(this)?"TypeLiteralNode":L0(this)?"ArrayTypeNode":dP(this)?"TupleTypeNode":fP(this)?"OptionalTypeNode":mP(this)?"RestTypeNode":j0(this)?"UnionTypeNode":R0(this)?"IntersectionTypeNode":gP(this)?"ConditionalTypeNode":M0(this)?"InferTypeNode":hP(this)?"ParenthesizedTypeNode":yP(this)?"ThisTypeNode":vP(this)?"TypeOperatorNode":bP(this)?"IndexedAccessTypeNode":xP(this)?"MappedTypeNode":SP(this)?"LiteralTypeNode":pP(this)?"NamedTupleMember":kP(this)?"ImportTypeNode":pt(this.kind))+(this.flags?` (${ft(this.flags)})`:"")}},__debugKind:{get(){return pt(this.kind)}},__debugNodeFlags:{get(){return ft(this.flags)}},__debugModifierFlags:{get(){return mt(np(this))}},__debugTransformFlags:{get(){return gt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return ds(this)}},__debugEmitFlags:{get(){return ht($7(this))}},__debugGetText:{value(e){if(rN(this))return"";let t=i.get(this);var r,n;return void 0===t&&(n=(r=G3(this))&&iT(r),t=n?Jl(n,r,e):"",i.set(this,t)),t}}});r=!0}},Ye.formatVariance=function(e){var t=7&e;let r=0==t?"in out":3==t?"[bivariant]":2==t?"in":1==t?"out":4==t?"[independent]":"";return 8&e?r+=" (unmeasurable)":16&e&&(r+=" (unreliable)"),r};class jve{__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 l(this.sources,this.targets||$4(this.sources,()=>"any"),(e,t)=>e.__debugTypeToString()+" -> "+("string"==typeof t?t:t.__debugTypeToString())).join(", ");case 2:return l(this.sources,this.targets,(e,t)=>e.__debugTypeToString()+" -> "+t().__debugTypeToString()).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")} +m2: `+this.mapper2.__debugToString().split("\n").join("\n ");default:return lt(this)}}}function Ct(e){let t=-1;function c(e){return e.id||(e.id=t,t--),e.id}let a=2032,l=882,o=Object.create(null),s=[],n=[];var r,e=i(e,new Set);for(r of s)r.text=function(e,t){let r=function(e){if(2&e)return"Start";if(4&e)return"Branch";if(8&e)return"Loop";if(16&e)return"Assignment";if(32&e)return"True";if(64&e)return"False";if(128&e)return"SwitchClause";if(256&e)return"ArrayMutation";if(512&e)return"Call";if(1024&e)return"ReduceLabel";if(1&e)return"Unreachable";throw new Error}(e.flags);t&&(r=r+"#"+c(e));if(128&e.flags){var n=[],{switchStatement:i,clauseStart:a,clauseEnd:o}=e.node;for(let e=a;ei.endLane&&(a=e.endLane)}i.endLane=a}}(e,0);{let n=_.length,e=s.reduce((e,t)=>Math.max(e,t.lane),0)+1,r=w(Array(e),""),i=_.map(()=>Array(e)),a=_.map(()=>w(Array(e),0));for(var u of s){var d=S(i[u.level][u.lane]=u);for(let t=0;tDt.test(e)),"Invalid argument: prerelease"),Y4.assert(vT(i,e=>Pt.test(e)),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=r,this.prerelease=n,this.build=i}static tryParse(e){var t,r,n,i,e=It(e);if(e)return{major:e,minor:t,patch:r,prerelease:n,build:i}=e,new At(e,t,r,n,i)}compareTo(e){return this===e?0:void 0===e?1:l3(this.major,e.major)||l3(this.minor,e.minor)||l3(this.patch,e.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;var n=Math.min(t.length,r.length);for(let e=0;e":return 0=":return 0<=n;case"=":return 0===n;default:return Y4.assertNever(t)}}(e,r.operator,r.operand))return;return 1}(r,t))return!0;return!1}toString(){return $4(this._alternatives,Vt).join(" || ")||"*"}},Lt=/\|\|/g,jt=/\s+/g,Rt=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Mt=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Bt=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function Jt(e){var t,r=[];for(t of e.trim().split(Lt))if(t){var n=[],i=(t=t.trim(),Mt.exec(t));if(i){if(!function(e,t,r){e=zt(e);if(!e)return;t=zt(t);if(!t)return;qt(e.major)||r.push(Ut(">=",e.version));qt(t.major)||r.push(qt(t.minor)?Ut("<",t.version.increment("major")):qt(t.patch)?Ut("<",t.version.increment("minor")):Ut("<=",t.version));return 1}(i[1],i[2],n))return}else for(var a of t.split(jt)){a=Bt.exec(a.trim());if(!a||!function(e,t,r){t=zt(t);if(!t)return;var{version:n,major:t,minor:i,patch:a}=t;if(qt(t))"<"!==e&&">"!==e||r.push(Ut("<",Tr.zero));else switch(e){case"~":r.push(Ut(">=",n)),r.push(Ut("<",n.increment(qt(i)?"major":"minor")));break;case"^":r.push(Ut(">=",n)),r.push(Ut("<",n.increment(0=":r.push(qt(i)||qt(a)?Ut(e,n.with({prerelease:"0"})):Ut(e,n));break;case"<=":case">":r.push(qt(i)?Ut("<="===e?"<":">=",n.increment("major").with({prerelease:"0"})):qt(a)?Ut("<="===e?"<":">=",n.increment("minor").with({prerelease:"0"})):Ut(e,n));break;case"=":case void 0:qt(i)||qt(a)?(r.push(Ut(">=",n.with({prerelease:"0"}))),r.push(Ut("<",n.increment(qt(i)?"major":"minor").with({prerelease:"0"})))):r.push(Ut("=",n));break;default:return}return 1}(a[1],a[2],n))return}r.push(n)}return r}function zt(e){var t,r,n,i,e=Rt.exec(e);if(e)return[,e,t="*",r="*",n,i]=e,{version:new Tr(qt(e)?0:parseInt(e,10),qt(e)||qt(t)?0:parseInt(t,10),qt(e)||qt(t)||qt(r)?0:parseInt(r,10),n,i),major:e,minor:t,patch:r}}function qt(e){return"*"===e||"x"===e||"X"===e}function Ut(e,t){return{operator:e,operand:t}}function Vt(e){return $4(e,Wt).join(" ")}function Wt(e){return""+e.operator+e.operand}var Ht=function(){var e,t=function(){if(Xe())try{var e=t2e("perf_hooks")["performance"];return{shouldWriteNativeEvents:!1,performance:e}}catch{}if("object"==typeof performance)return{shouldWriteNativeEvents:!0,performance:performance}}();if(t)return{shouldWriteNativeEvents:t,performance:e}=t,t={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0},"number"==typeof e.timeOrigin&&"function"==typeof e.now&&(t.performanceTime=e),t.performanceTime&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.clearMarks&&"function"==typeof e.clearMeasures&&(t.performance=e),t}(),Kt=null==Ht?void 0:Ht.performanceTime;function Gt(){return Ht}var $t=Kt?()=>Kt.now():Date.now;try{var Xt=Xve.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw",Qt=t2e(Xt)}catch(e){Qt=void 0}var Yt,Zt,er=null!=Qt&&Qt.logEvent?Qt:void 0,tr={};function pn(e,t,r,n){return e?rr(t,r,n):ir}function rr(e,t,r){let n=0;return{enter:function(){1==++n&&x3(t)},exit:function(){0==--n?(x3(r),S3(e,t,r)):n<0&&Y4.fail("enter/exit count does not match.")}}}r(tr,{clearMarks:()=>Cr,clearMeasures:()=>fr,createTimer:()=>rr,createTimerIf:()=>pn,disable:()=>Dr,enable:()=>Nr,forEachMark:()=>pr,forEachMeasure:()=>dr,getCount:()=>_r,getDuration:()=>ur,isEnabled:()=>wr,mark:()=>x3,measure:()=>S3,nullTimer:()=>ir});var Z4,nr,ir={enter:yr,exit:yr},ar=!1,or=$t(),sr=new Map,cr=new Map,lr=new Map;function x3(e){var t;ar&&(t=cr.get(e)??0,cr.set(e,t+1),sr.set(e,$t()),null!=Zt&&Zt.mark(e),"function"==typeof onProfilerEvent)&&onProfilerEvent(e)}function S3(e,t,r){var n,i,a;ar&&(n=(void 0!==r?sr.get(r):void 0)??$t(),i=(void 0!==t?sr.get(t):void 0)??or,a=lr.get(e)||0,lr.set(e,a+(n-i)),null!=Zt)&&Zt.measure(e,t,r)}function _r(e){return cr.get(e)||0}function ur(e){return lr.get(e)||0}function dr(r){lr.forEach((e,t)=>r(t,e))}function pr(r){sr.forEach((e,t)=>r(t))}function fr(e){void 0!==e?lr.delete(e):lr.clear(),null!=Zt&&Zt.clearMeasures(e)}function Cr(e){void 0!==e?(cr.delete(e),sr.delete(e)):(cr.clear(),sr.clear()),null!=Zt&&Zt.clearMarks(e)}function wr(){return ar}function Nr(e=Ji){var t;return ar||(ar=!0,null!=(Yt=Yt||Ht)&&Yt.performance&&(or=Yt.performance.timeOrigin,Yt.shouldWriteNativeEvents||null!=(t=null==e?void 0:e.cpuProfilingEnabled)&&t.call(e)||null!=e&&e.debugMode)&&(Zt=Yt.performance)),!0}function Dr(){ar&&(sr.clear(),cr.clear(),lr.clear(),Zt=void 0,ar=!1)}{var Er=nr=nr||{};let T,i=0,o=0,s,a=[],c,C=[],l=(Er.startTracing=function(e,t,r){if(Y4.assert(!Z4,"Tracing already started"),void 0===T)try{T=t2e("fs")}catch(e){throw new Error(`tracing requires having fs +(original error: ${e.message||e})`)}s=e,void(a.length=0)===c&&(c=E3(t,"legend.json")),T.existsSync(t)||T.mkdirSync(t,{recursive:!0});var e="build"===s?`.${Xve.pid}-`+ ++i:"server"===s?"."+Xve.pid:"",n=E3(t,`trace${e}.json`),t=E3(t,`types${e}.json`),e=(C.push({configFilePath:r,tracePath:n,typesPath:t}),o=T.openSync(n,"w"),Z4=Er,{cat:"__metadata",ph:"M",ts:1e3*$t(),pid:1,tid:1});T.writeSync(o,"[\n"+[{name:"process_name",args:{name:"tsc"},...e},{name:"thread_name",args:{name:"Main"},...e},{name:"TracingStartedInBrowser",...e,cat:"disabled-by-default-devtools.timeline"}].map(e=>JSON.stringify(e)).join(",\n"))},Er.stopTracing=function(){if(Y4.assert(Z4,"Tracing is not in progress"),Y4.assert(!!a.length==("server"!==s)),T.writeSync(o,` +] +`),T.closeSync(o),Z4=void 0,a.length){var l,_,u=a,e=(x3("beginDumpTypes"),C[C.length-1].typesPath),d=T.openSync(e,"w"),p=new Map,f=(T.writeSync(d,"["),u.length);for(let c=0;ce.id),referenceLocation:Ar(m.node)}),{}),i=(16777216&b.flags&&(g=b,n={conditionalCheckType:null==(h=g.checkType)?void 0:h.id,conditionalExtendsType:null==(h=g.extendsType)?void 0:h.id,conditionalTrueType:(null==(h=g.resolvedTrueType)?void 0:h.id)??-1,conditionalFalseType:(null==(h=g.resolvedFalseType)?void 0:h.id)??-1}),{}),a=(33554432&b.flags&&(h=b,i={substitutionBaseType:null==(y=h.baseType)?void 0:y.id,constraintType:null==(y=h.constraint)?void 0:y.id}),{}),o=(1024&x&&(y=b,a={reverseMappedSourceType:null==(v=y.source)?void 0:v.id,reverseMappedMappedType:null==(v=y.mappedType)?void 0:v.id,reverseMappedConstraintType:null==(v=y.constraintType)?void 0:v.id}),{});256&x&&(v=b,o={evolvingArrayElementType:v.elementType.id,evolvingArrayFinalType:null==(k=v.finalArrayType)?void 0:k.id});let s;var k=b.checker.getRecursionIdentity(b),S=(!k||(s=p.get(k))||(s=p.size,p.set(k,s)),{id:b.id,intrinsicName:b.intrinsicName,symbolName:(null==S?void 0:S.escapedName)&&X3(S.escapedName),recursionId:s,isTuple:!!(8&x)||void 0,unionTypes:!(1048576&b.flags)||null==(x=b.types)?void 0:x.map(e=>e.id),intersectionTypes:2097152&b.flags?b.types.map(e=>e.id):void 0,aliasTypeArguments:null==(x=b.aliasTypeArguments)?void 0:x.map(e=>e.id),keyofType:!(4194304&b.flags)||null==(x=b.type)?void 0:x.id,...t,...r,...n,...i,...a,...o,destructuringPattern:Ar(b.pattern),firstDeclaration:Ar(null==(x=null==S?void 0:S.declarations)?void 0:x[0]),flags:Y4.formatTypeFlags(b.flags).split("|"),display:e});T.writeSync(d,JSON.stringify(S)),c(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.PartiallyEmittedExpression=354]="PartiallyEmittedExpression",e[e.CommaListExpression=355]="CommaListExpression",e[e.SyntheticReferenceExpression=356]="SyntheticReferenceExpression",e[e.Count=357]="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))(Lr||{}),jr=(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))(jr||{}),Rr=(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))(Rr||{}),Mr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Mr||{}),Br=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Br||{}),fn=(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))(fn||{}),Jr=(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))(Jr||{}),zr=(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.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))(zr||{}),qr=(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))(qr||{}),Ur=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Ur||{}),Vr=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||{}),Hr=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Hr||{}),Kr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(Kr||{}),Gr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Gr||{}),$r=(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))($r||{}),Xr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Xr||{}),Qr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Qr||{}),Yr=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(Yr||{}),Zr=(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))(Zr||{}),en=(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.WriteComputedProps=1073741824]="WriteComputedProps",e[e.NoSyntacticPrinter=-2147483648]="NoSyntacticPrinter",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=1]="AllowUnresolvedNames",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(en||{}),tn=(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))(tn||{}),rn=(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))(rn||{}),nn=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(nn||{}),an=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(an||{}),on=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(on||{}),sn=(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))(sn||{}),cn=(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))(cn||{}),ln=(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))(ln||{}),_n=(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))(_n||{}),un=(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.LazyFlags=539358128]="LazyFlags",e))(un||{}),mn=(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))(mn||{}),gn=(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))(gn||{}),hn=(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))(hn||{}),yn=(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))(yn||{}),vn=(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.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",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))(vn||{}),bn=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(bn||{}),xn=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(xn||{}),Sn=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(Sn||{}),kn=(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))(kn||{}),Tn=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(Tn||{}),Cn=(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))(Cn||{}),wn=(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))(wn||{}),Nn=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Nn||{}),Dn=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Dn||{}),En=(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))(En||{}),Pn=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Pn||{});function Fn(e,t=!0){e=Pn[e.category];return t?e.toLowerCase():e}var An=(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))(An||{}),In=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(In||{}),On=(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))(On||{}),Ln=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Ln||{}),jn=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(jn||{}),k3=(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))(k3||{}),Rn=(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))(Rn||{}),Mn=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Mn||{}),Bn=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Bn||{}),Jn=(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))(Jn||{}),zn=(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.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(zn||{}),qn=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(qn||{}),Un=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Un||{}),Vn=(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))(Vn||{}),Wn=(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))(Wn||{}),Hn=(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))(Hn||{}),Kn=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Kn||{}),Gn=(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))(Gn||{}),$n=(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))($n||{}),Xn=(e=>(e[e.Classes=2]="Classes",e[e.ForOf=2]="ForOf",e[e.Generators=2]="Generators",e[e.Iteration=2]="Iteration",e[e.SpreadElements=2]="SpreadElements",e[e.RestElements=2]="RestElements",e[e.TaggedTemplates=2]="TaggedTemplates",e[e.DestructuringAssignment=2]="DestructuringAssignment",e[e.BindingPatterns=2]="BindingPatterns",e[e.ArrowFunctions=2]="ArrowFunctions",e[e.BlockScopedVariables=2]="BlockScopedVariables",e[e.ObjectAssign=2]="ObjectAssign",e[e.RegularExpressionFlagsUnicode=2]="RegularExpressionFlagsUnicode",e[e.RegularExpressionFlagsSticky=2]="RegularExpressionFlagsSticky",e[e.Exponentiation=3]="Exponentiation",e[e.AsyncFunctions=4]="AsyncFunctions",e[e.ForAwaitOf=5]="ForAwaitOf",e[e.AsyncGenerators=5]="AsyncGenerators",e[e.AsyncIteration=5]="AsyncIteration",e[e.ObjectSpreadRest=5]="ObjectSpreadRest",e[e.RegularExpressionFlagsDotAll=5]="RegularExpressionFlagsDotAll",e[e.BindinglessCatch=6]="BindinglessCatch",e[e.BigInt=7]="BigInt",e[e.NullishCoalesce=7]="NullishCoalesce",e[e.OptionalChaining=7]="OptionalChaining",e[e.LogicalAssignment=8]="LogicalAssignment",e[e.TopLevelAwait=9]="TopLevelAwait",e[e.ClassFields=9]="ClassFields",e[e.PrivateNamesAndClassStaticBlocks=9]="PrivateNamesAndClassStaticBlocks",e[e.RegularExpressionFlagsHasIndices=9]="RegularExpressionFlagsHasIndices",e[e.ShebangComments=99]="ShebangComments",e[e.UsingAndAwaitUsing=99]="UsingAndAwaitUsing",e[e.ClassAndClassElementDecorators=99]="ClassAndClassElementDecorators",e[e.RegularExpressionFlagsUnicodeSets=99]="RegularExpressionFlagsUnicodeSets",e))(Xn||{}),Qn=(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.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))(Qn||{}),Yn=(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))(Yn||{}),Zn=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Zn||{}),ei=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(ei||{}),ti=(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))(ti||{}),ri=(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))(ri||{}),ni={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}},ii=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(ii||{});function ai(t){let r=5381;for(let e=0;e(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(si||{}),ci=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(ci||{}),li=new Date(0);function _i(e,t){return e.getModifiedTime(t)||li}function ui(e){return{[250]:e.Low,500:e.Medium,2e3:e.High}}var di={Low:32,Medium:64,High:256},pi=ui(di),fi=ui(di);function mi(i){if(i.getEnvironmentVariable){let r=function(e,t){let r=a(e);if(r)return n("Low"),n("Medium"),n("High"),!0;return!1;function n(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",ci);function a(r){let n;return e("Low"),e("Medium"),e("High"),n;function e(e){var t=i.getEnvironmentVariable(r+"_"+e.toUpperCase());t&&((n=n||{})[e]=Number(t))}}function e(e,t){e=a(e);return(r||e)&&ui(e?{...t,...e}:t)}pi=e("TSC_WATCH_POLLINGCHUNKSIZE",di)||pi,fi=e("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",di)||fi}}function gi(t,r,n,i,a){let o=n;for(let e=r.length;i&&e;++n===r.length&&(o{n.isClosed=!0,Je(i,n)}}};function e(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,pi[t.pollingInterval]),t.length?p(t.pollingInterval):(Y4.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(o,250,0,o.length),s(0,t),!t.pollScheduled&&o.length&&p(250)}function l(n,i,e,t){return gi(a,n,e,t,function(e,t,r){r?(e.unchangedPolls=0,n!==o&&(n[t]=void 0,function(e){o.push(e),d(250)}(e))):e.unchangedPolls!==fi[i]?e.unchangedPolls++:n===o?(e.unchangedPolls=1,n[t]=void 0,u(e,250)):2e3!==i&&(e.unchangedPolls++,n[t]=void 0,u(e,250===i?500:2e3))})}function _(e){switch(e){case 250:return t;case 500:return r;case 2e3:return n}}function u(e,t){_(t).push(e),d(t)}function d(e){_(e).pollScheduled||p(e)}function p(e){_(e).pollScheduled=a.setTimeout(250===e?c:s,e,250===e?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",_(e))}}function yi(s,e,c,t){let l=n3(),_=t?new Map:void 0,u=new Map,d=ze(e);return function(e,t,r,n){let i=d(e);1===l.add(i,t).length&&_&&_.set(i,c(e)||li);let a=D3(i)||".",o=u.get(a)||function(e,t,r){r=s(e,1,(r,n)=>{if(a3(n)){var i=P3(n,e),n=d(i),a=i&&l.get(n);if(a){let e,t=1;if(_){var o=_.get(n);if("change"===r&&(e=c(i)||li).getTime()===o.getTime())return;e=e||c(i)||li,_.set(n,e),o===li?t=0:e===li&&(t=2)}for(var s of a)s(i,t,e)}}},!1,500,r);return r.referenceCount=0,u.set(t,r),r}(D3(e)||".",a,n);return o.referenceCount++,{close:()=>{1===o.referenceCount?(o.close(),u.delete(a)):o.referenceCount--,l.remove(i,t)}}}}function Ni(n){let i=[],e=0,t;return function(e,t){let r={fileName:e,callback:t,mtime:_i(n,e)};return i.push(r),a(),{close:()=>{r.isClosed=!0,Je(i,r)}}};function r(){t=void 0,e=gi(n,i,e,pi[250]),a()}function a(){i.length&&(t=t||n.setTimeout(r,2e3,"pollQueue"))}}function Di(i,e,t,r,n){let a=ze(e)(t);e=i.get(a);return e?e.callbacks.push(r):i.set(a,{watcher:n((t,r,n)=>{var e;return null==(e=i.get(a))?void 0:e.callbacks.slice().forEach(e=>e(t,r,n))}),callbacks:[r]}),{close:()=>{var e=i.get(a);e&&Oe(e.callbacks,r)&&!e.callbacks.length&&(i.delete(a),BB(e))}}}function Ei(e,t){return 0===e?0:0===t?2:1}var Pi=["/node_modules/.","/.git","/.#"],Fi=yr;function Ai(e){return Fi(e)}function Ii(e){Fi=e}function Oi({watchDirectory:i,useCaseSensitiveFileNames:n,getCurrentDirectory:t,getAccessibleSortedChildDirectories:s,fileSystemEntryExists:d,realpath:c,setTimeout:p,clearTimeout:f}){let m=new Map,g=n3(),h=new Map,y,l=ke(!n),v=ze(n);return(e,t,r,n)=>r?_(e,n,t):i(e,t,r,n);function _(l,_,e,r){let u=v(l),t=m.get(u),n=(t?t.refCount++:(t={watcher:i(l,e=>{var t,r,n,i,a,o,s,c;T(e,_)||(null!=_&&_.synchronousWatchDirectory?(null!=(t=m.get(u))&&t.targetWatcher||b(l,u,e),k(l,u,_)):(t=l,r=u,e=e,n=_,(i=m.get(r))&&d(t,1)?(a=t,o=r,s=e,n=n,(c=h.get(o))?c.fileNames.push(s):h.set(o,{dirName:a,options:n,fileNames:[s]}),y&&(f(y),y=void 0),y=p(x,1e3,"timerToUpdateChildWatches")):(b(t,r,e),S(i),function e(t){if(!t)return;let r=t.childWatches;t.childWatches=H4;for(var n of r)n.close(),e(m.get(v(n.dirName)))}(i))))},!1,_),refCount:1,childWatches:H4,targetWatcher:void 0,links:void 0},m.set(u,t),k(l,u,_)),r&&(t.links??(t.links=new Set)).add(r),e&&{dirName:l,callback:e});return n&&g.add(u,n),{dirName:l,close:()=>{var e,t=Y4.checkDefined(m.get(u));n&&g.remove(u,n),r&&null!=(e=t.links)&&e.delete(r),t.refCount--,t.refCount||(m.delete(u),t.links=void 0,BB(t),S(t),t.childWatches.forEach($p))}}}function b(r,n,e,i){let t,a,o,s;a3(e)?o=e:s=e,g.forEach((e,t)=>{var r;s&&!0===s.get(t)||(t===n||f3(n,t)&&n[t.length]===qi)&&(s?i?(r=s.get(t))?r.push(...i):s.set(t,i.slice()):s.set(t,!0):e.forEach(({callback:e})=>e(o)))}),null!=(a=null==(t=m.get(n))?void 0:t.links)&&a.forEach(t=>{var e=e=>E3(t,wa(r,e,v));s?b(t,v(t),s,null==i?void 0:i.map(e)):b(t,v(t),e(o))})}function x(){y=void 0,Ai("sysLog:: onTimerToUpdateChildWatches:: "+h.size);var e,t=$t();let n=new Map;for(;!y&&h.size;){var r=h.entries().next(),[r,{dirName:i,options:a,fileNames:o}]=(Y4.assert(!r.done),r)["value"],a=(h.delete(r),k(i,r,a));null!=(e=m.get(r))&&e.targetWatcher||b(i,r,n,a?void 0:o)}Ai(`sysLog:: invokingWatchers:: Elapsed:: ${$t()-t}ms:: `+h.size),g.forEach((e,t)=>{let r=n.get(t);r&&e.forEach(({callback:e,dirName:t})=>{i3(r)?r.forEach(e):e(t)})}),Ai(`sysLog:: Elapsed:: ${$t()-t}ms:: onTimerToUpdateChildWatches:: ${h.size} `+y)}function S(e){null!=e&&e.targetWatcher&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function k(t,e,r){e=m.get(e);if(!e)return!1;var n=ua(c(t));let i,a;return 0===l(n,t)?i=Ke(d(t,1)?AT(s(t),e=>{e=P3(e,t);return T(e,r)||0!==l(e,ua(c(e)))?void 0:e}):H4,e.childWatches,(e,t)=>l(e,t.dirName),function(e){e=_(e,r);o(e)},$p,o):e.targetWatcher&&0===l(n,e.targetWatcher.dirName)?(i=!1,Y4.assert(e.childWatches===H4)):(S(e),e.targetWatcher=_(n,r,void 0,t),e.childWatches.forEach($p),i=!0),e.childWatches=a||H4,i;function o(e){(a=a||[]).push(e)}}function T(r,e){return X4(Pi,e=>{return e=e,!!(t=r).includes(e)||!n&&v(t).includes(e);var t})||ji(r,e,n,t)}}var Li=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(Li||{});function ji(e,t,r,n){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(oI(e,null==t?void 0:t.excludeFiles,r,n())||oI(e,null==t?void 0:t.excludeDirectories,r,n()))}function Ri(r,n,i,a,o){return(e,t)=>{"rename"===e&&(e=t?ua(E3(r,t)):r,t&&ji(e,i,a,o)||n(e))}}function Mi({pollingWatchFileWorker:i,getModifiedTime:b,setTimeout:a,clearTimeout:o,fsWatchWorker:x,fileSystemEntryExists:S,useCaseSensitiveFileNames:c,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:l,getAccessibleSortedChildDirectories:_,realpath:u,tscWatchFile:d,useNonPollingWatchers:p,tscWatchDirectory:f,inodeWatching:k,fsWatchWithTimestamp:T,sysLog:C}){let m=new Map,t=new Map,r=new Map,e,n,g,h,w=!1;return{watchFile:N,watchDirectory:function(e,t,r,n){if(l)return F(e,1,Ri(e,t,n,c,s),r,500,MB(n));h=h||Oi({useCaseSensitiveFileNames:c,getCurrentDirectory:s,fileSystemEntryExists:S,getAccessibleSortedChildDirectories:_,watchDirectory:E,realpath:u,setTimeout:a,clearTimeout:o});return h(e,t,r,n)}};function N(e,t,r,n){n=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(d){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}}}(n,p);var i,a,o,s=Y4.checkDefined(n.watchFile);switch(s){case 0:return P(e,t,250,void 0);case 1:return P(e,t,r,void 0);case 2:return y()(e,t,r,void 0);case 3:return v()(e,t,void 0,void 0);case 4:return F(e,0,(i=e,a=t,o=b,(e,t,r)=>{"rename"===e?(r=r||o(i)||li,a(i,r!==li?0:2,r)):a(i,1,r)}),!1,r,MB(n));case 5:return(g=g||yi(F,c,b,T))(e,t,r,MB(n));default:Y4.assertNever(s)}}function y(){return e=e||hi({getModifiedTime:b,setTimeout:a})}function v(){return n=n||Ni({getModifiedTime:b,setTimeout:a})}function D(e,t,r){r=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function E(e,t,r,n){Y4.assert(!r);var i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(f){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:var t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(n),a=Y4.checkDefined(i.watchDirectory);switch(a){case 1:return P(e,()=>t(e),500,void 0);case 2:return y()(e,()=>t(e),500,void 0);case 3:return v()(e,()=>t(e),void 0,void 0);case 0:return F(e,1,Ri(e,t,n,c,s),r,500,MB(i));default:Y4.assertNever(a)}}function P(t,e,r,n){return Di(m,c,t,e,e=>i(t,e,r,n))}function F(m,g,e,h,y,v){return Di(h?r:t,c,m,e,e=>{{var o=m,r=g,s=e,n=h,c=y,l=v;let i,a,t=(k&&(i=o.substring(o.lastIndexOf(qi)),a=i.slice(qi.length)),(S(o,r)?u:f)());return{close:()=>{t&&(t.close(),t=void 0)}};function _(e){t&&(C(`sysLog:: ${o}:: Changing watcher to ${e===u?"Present":"Missing"}FileSystemEntryWatcher`),t.close(),t=e())}function u(){if(w)return C(`sysLog:: ${o}:: Defaulting to watchFile`),p();try{var e=(1!==r&&T?A:x)(o,n,k?d:s);return e.on("error",()=>{s("rename",""),_(f)}),e}catch(e){return w=w||"ENOSPC"===e.code,C(`sysLog:: ${o}:: Changing to watchFile`),p()}}function d(e,t){let r;var n;t&&u3(t,"~")&&(t=(r=t).slice(0,t.length-1)),"rename"!==e||t&&t!==a&&!u3(t,i)?(r&&s(e,r),s(e,t)):(n=b(o)||li,r&&s(e,r,n),s(e,t,n),k?_(n===li?f:u):n===li&&_(f))}function p(){return N(o,(n=s,(e,t,r)=>n(1===t?"change":"rename","",r)),c,l);var n}function f(){return N(o,(e,t,r)=>{0===t&&(r=r||b(o)||li)!==li&&(s("rename","",r),_(u))},c,l)}}})}function A(n,e,i){let a=b(n)||li;return x(n,e,(e,t,r)=>{"change"===e&&(r=r||b(n)||li).getTime()===a.getTime()||(a=r||b(n)||li,i(e,t,a))})}}function Bi(n){let i=n.writeFile;n.writeFile=(e,t,r)=>Rd(e,t,!!r,(e,t,r)=>i.call(n,e,t,r),e=>n.createDirectory(e),e=>n.directoryExists(e))}var Ji=(()=>{function e(){let s=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,c=t2e("fs"),l=t2e("path");var e=t2e("os");let r;try{r=t2e("crypto")}catch{r=void 0}let a,o="./profile.cpuprofile";var t="darwin"===Xve.platform,n="linux"===Xve.platform||t;let i=e.platform(),_="win32"!==i&&"win64"!==i&&!b(function(e){return e.replace(/\w/g,e=>{var t=e.toUpperCase();return e===t?e.toLowerCase():t})}(Zve)),u=c.realpathSync.native?"win32"===Xve.platform?function(e){return e.length<260?c.realpathSync.native(e):c.realpathSync(e)}:c.realpathSync.native:c.realpathSync,d=Zve.endsWith("sys.js")?l.join(l.dirname(e2e),"__fake__.js"):Zve,p="win32"===Xve.platform||t;var f=Ci(()=>Xve.cwd()),{watchFile:n,watchDirectory:t}=Mi({pollingWatchFileWorker:function(n,i,e){c.watchFile(n,{persistent:!0,interval:e},t);let a;return{close:()=>c.unwatchFile(n,t)};function t(e,t){var r=0==+t.mtime||2===a;if(0==+e.mtime){if(r)return;a=2}else if(r)a=0;else{if(+e.mtime==+t.mtime)return;a=1}i(n,a,e.mtime)}},getModifiedTime:S,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,t,r){return c.watch(e,p?{persistent:!0,recursive:!!t}:{persistent:!0},r)},useCaseSensitiveFileNames:_,getCurrentDirectory:f,fileSystemEntryExists:v,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:e=>y(e).directories,realpath:x,tscWatchFile:Xve.env.TSC_WATCHFILE,useNonPollingWatchers:!!Xve.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:Xve.env.TSC_WATCHDIRECTORY,inodeWatching:n,fsWatchWithTimestamp:t,sysLog:Ai});let m={args:Xve.argv.slice(2),newLine:e.EOL,useCaseSensitiveFileNames:_,write(e){Xve.stdout.write(e)},getWidthOfTerminal(){return Xve.stdout.columns},writeOutputIsTTY(){return Xve.stdout.isTTY},readFile:function(e,t){null!=(r=er)&&r.logStartReadFile(e);var r=function(e){let t;try{t=c.readFileSync(e)}catch(e){return}let r=t.length;if(2<=r&&254===t[0]&&255===t[1]){r&=-2;for(let e=0;el.resolve(e),fileExists:b,directoryExists:function(e){return v(e,1)},getAccessibleFileSystemEntries:y,createDirectory(e){if(!m.directoryExists(e))try{c.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath(){return d},getCurrentDirectory:f,getDirectories:function(e){return y(e).directories.slice()},getEnvironmentVariable(e){return Xve.env[e]||""},readDirectory:function(e,t,r,n,i){return hm(e,t,r,n,_,Xve.cwd(),i,y,x)},getModifiedTime:S,setModifiedTime:function(e,t){try{c.utimesSync(e,t,t)}catch(e){}},deleteFile:function(e){try{return c.unlinkSync(e)}catch(e){}},createHash:r?k:ai,createSHA256Hash:r?k:void 0,getMemoryUsage(){return Qve.gc&&Qve.gc(),Xve.memoryUsage().heapUsed},getFileSize(e){try{var t=g(e);if(null!=t&&t.isFile())return t.size}catch{}return 0},exit(e){h(()=>Xve.exit(e))},enableCPUProfiler:function(e,t){if(a)return t(),!1;var r=t2e("inspector");if(!r||!r.Session)return t(),!1;let n=new r.Session;return n.connect(),n.post("Profiler.enable",()=>{n.post("Profiler.start",()=>{a=n,o=e,t()})}),!0},disableCPUProfiler:h,cpuProfilingEnabled:()=>!!a||TT(Xve.execArgv,"--cpu-prof")||TT(Xve.execArgv,"--prof"),realpath:x,debugMode:!!Xve.env.NODE_INSPECTOR_IPC||!!Xve.env.VSCODE_INSPECTOR_OPTIONS||X4(Xve.execArgv,e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e))||!!Xve.recordreplay,tryEnableSourceMapsForHost(){try{t2e("source-map-support").install()}catch{}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{Xve.stdout.write("c")},setBlocking:()=>{var e=null==(e=Xve.stdout)?void 0:e._handle;e&&e.setBlocking&&e.setBlocking(!0)},base64decode:e=>Yve.from(e,"base64").toString("utf8"),base64encode:e=>Yve.from(e).toString("base64"),require:(e,t)=>{try{var r=iO(t,e,m);return{module:t2e(r),modulePath:r,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return m;function g(e){return c.statSync(e,{throwIfNoEntry:!1})}function h(i){if(a&&"stopping"!==a){let n=a;return a.post("Profiler.stop",(e,{profile:t})=>{var r;if(!e){try{null!=(r=g(o))&&r.isDirectory()&&(o=l.join(o,`${(new Date).toISOString().replace(/:/g,"-")}+P${Xve.pid}.cpuprofile`))}catch{}try{c.mkdirSync(l.dirname(o),{recursive:!0})}catch{}c.writeFileSync(o,JSON.stringify(function(e){let t=0;var r,n,i=new Map,a=sa(l.dirname(d)),o="file://"+(1===ta(a)?"":"/")+a;for(r of e.nodes)r.callFrame.url&&(ka(o,n=sa(r.callFrame.url),_)?r.callFrame.url=Ea(o,n,o,ze(_),!0):s.test(n)||(r.callFrame.url=(i.has(n)?i:i.set(n,`external${t}.js`)).get(n),t++));return e}(t)))}a=void 0,n.disconnect(),i()}),a="stopping",!0}return i(),!1}function y(t){null!=er&&er.logEvent("ReadDir: "+(t||"."));try{var r,e=c.readdirSync(t||".",{withFileTypes:!0}),n=[],i=[];for(r of e){var a="string"==typeof r?r:r.name;if("."!==a&&".."!==a){let e;if("string"==typeof r||r.isSymbolicLink()){var o=E3(t,a);try{if(!(e=g(o)))continue}catch(e){continue}}else e=r;e.isFile()?n.push(a):e.isDirectory()&&i.push(a)}}return n.sort(),i.sort(),{files:n,directories:i}}catch(e){return Qm}}function v(e,t){var r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var n=g(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=r}}function b(e){return v(e,0)}function x(e){try{return u(e)}catch{return e}}function S(e){var t,r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null==(t=g(e))?void 0:t.mtime}catch(e){}finally{Error.stackTraceLimit=r}}function k(e){var t=r.createHash("sha256");return t.update(e),t.digest("hex")}}let t;return(t=Xe()?e():t)&&Bi(t),t})();function zi(e){Ji=e}Ji&&Ji.getEnvironmentVariable&&(mi(Ji),Y4.setAssertionLevel(/^development$/i.test(Ji.getEnvironmentVariable("NODE_ENV"))?1:0)),Ji&&Ji.debugMode&&(Y4.isDebugging=!0);var qi="/",Ui="\\",Vi="://",Wi=/\\/g;function Hi(e){return 47===e||92===e}function Ki(e){return ea(e)<0}function Gi(e){return 0t.length&&u3(e,t)}function N3(e,t){for(var r of t)if(w3(e,r))return!0;return!1}function Yi(e){return 0=t.length&&46===e.charCodeAt(e.length-t.length)){e=e.slice(e.length-t.length);if(r(e,t))return e}}function ia(e,t,r){if(t){var n,i=fa(e),a=r?xr:Sr;if("string"==typeof t)return na(i,t,a)||"";for(n of t){n=na(i,n,a);if(n)return n}return""}r=ra(e),t=r.lastIndexOf(".");return 0<=t?r.substring(t):""}function aa(e,t=""){return e=E3(t,e),e=ta(t=e),r=t.substring(0,e),(t=t.substring(e).split(qi)).length&&!KT(t)&&t.pop(),[r,...t];var r}function oa(e,t){return 0===e.length?"":(e[0]&&ma(e[0]))+e.slice(1,t).join(qi)}function sa(e){return e.includes("\\")?e.replace(Wi,qi):e}function ca(t){if(!X4(t))return[];var r=[t[0]];for(let e=1;e type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:e(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:e(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:e(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:e(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:e(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:e(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:e(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:e(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:e(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:e(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:e(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:e(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:e(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:e(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:e(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:e(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:e(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:e(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:e(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:e(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:e(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:e(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:e(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:e(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:e(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:e(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:e(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:e(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:e(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:e(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:e(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:e(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:e(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:e(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:e(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:e(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:e(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:e(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:e(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:e(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:e(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:e(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:e(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:e(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:e(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:e(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:e(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:e(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:e(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:e(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:e(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:e(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:e(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:e(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:e(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:e(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:e(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:e(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:e(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:e(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:e(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:e(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:e(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:e(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:e(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:e(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:e(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:e(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:e(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:e(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:e(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:e(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:e(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:e(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:e(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:e(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:e(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:e(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:e(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:e(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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 }'."),with_statements_are_not_allowed_in_an_async_function_block:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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_or_nodenext:e(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:e(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:e(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:e(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:e(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:e(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:e(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:e(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:e(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:e(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:e(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:e(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:e(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:e(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:e(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:e(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:e(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:e(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:e(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:e(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:e(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:e(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:e(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:e(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:e(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:e(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:e(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:e(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:e(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:e(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:e(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:e(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:e(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:e(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:e(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:e(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:e(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:e(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:e(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:e(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:e(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:e(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:e(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:e(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:e(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:e(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:e(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:e(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:e(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:e(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:e(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:e(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:e(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:e(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:e(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:e(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:e(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:e(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:e(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:e(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:e(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:e(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:e(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:e(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:e(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:e(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:e(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:e(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:e(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:e(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:e(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:e(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:e(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:e(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:e(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:e(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:e(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:e(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:e(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:e(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:e(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:e(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:e(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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."),The_types_of_0_are_incompatible_between_these_types:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:e(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:e(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:e(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:e(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:e(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:e(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:e(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:e(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:e(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:e(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:e(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:e(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:e(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:e(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:e(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:e(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:e(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:e(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:e(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:e(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:e(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:e(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:e(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:e(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:e(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:e(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:e(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:e(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:e(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:e(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:e(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:e(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:e(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:e(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:e(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:e(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:e(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:e(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:e(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:e(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:e(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:e(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:e(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:e(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:e(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:e(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:e(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:e(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:e(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:e(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:e(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:e(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:e(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:e(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:e(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:e(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:e(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:e(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:e(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:e(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:e(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:e(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:e(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:e(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:e(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:e(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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."),Import_declaration_0_is_using_private_name_1:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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_class_expression_may_not_be_private_or_protected:e(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression 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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:e(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:e(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:e(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:e(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:e(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:e(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:e(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:e(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:e(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:e(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:e(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:e(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:e(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:e(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:e(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:e(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:e(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:e(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:e(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:e(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:e(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:e(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:e(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:e(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:e(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:e(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:e(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:e(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:e(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:e(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:e(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:e(6024,3,"options_6024","options"),file:e(6025,3,"file_6025","file"),Examples_Colon_0:e(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:e(6027,3,"Options_Colon_6027","Options:"),Version_0:e(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:e(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:e(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:e(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:e(6034,3,"KIND_6034","KIND"),FILE:e(6035,3,"FILE_6035","FILE"),VERSION:e(6036,3,"VERSION_6036","VERSION"),LOCATION:e(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:e(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:e(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:e(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:e(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:e(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:e(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:e(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:e(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:e(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:e(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:e(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:e(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:e(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:e(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:e(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:e(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:e(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:e(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:e(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:e(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:e(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:e(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:e(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:e(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:e(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:e(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:e(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:e(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:e(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:e(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:e(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:e(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:e(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:e(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:e(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:e(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:e(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:e(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:e(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:e(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:e(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:e(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:e(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:e(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:e(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:e(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:e(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:e(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:e(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:e(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:e(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:e(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:e(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:e(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:e(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:e(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:e(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:e(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:e(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:e(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:e(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:e(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:e(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:e(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:e(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:e(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:e(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:e(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:e(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:e(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:e(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:e(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:e(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:e(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:e(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:e(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:e(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:e(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:e(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:e(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:e(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:e(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:e(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:e(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:e(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:e(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:e(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:e(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:e(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:e(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:e(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:e(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:e(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:e(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:e(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:e(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:e(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:e(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:e(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:e(6244,3,"Modules_6244","Modules"),File_Management:e(6245,3,"File_Management_6245","File Management"),Emit:e(6246,3,"Emit_6246","Emit"),JavaScript_Support:e(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:e(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:e(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:e(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:e(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:e(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:e(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:e(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:e(6255,3,"Projects_6255","Projects"),Output_Formatting:e(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:e(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:e(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:e(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:e(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:e(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:e(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:e(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:e(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:e(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:e(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:e(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:e(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:e(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:e(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:e(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:e(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:e(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:e(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:e(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:e(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:e(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:e(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:e(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:e(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:e(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:e(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:e(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:e(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:e(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:e(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:e(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:e(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."),Default_catch_clause_variables_as_unknown_instead_of_any:e(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:e(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:e(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)."),one_of_Colon:e(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:e(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:e(6902,3,"type_Colon_6902","type:"),default_Colon:e(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:e(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:e(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:e(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:e(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:e(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:e(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:e(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:e(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:e(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:e(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:e(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:e(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:e(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:e(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:e(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:e(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:e(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:e(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:e(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:e(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:e(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:e(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:e(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:e(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:e(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:e(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:e(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:e(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:e(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:e(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:e(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:e(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:e(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:e(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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_return_type_annotation_with_isolatedDeclarations:e(9009,1,"At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit return type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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_it_s_type_This_is_not_supported_with_isolatedDeclarations:e(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_su_9025","Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:e(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:e(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:e(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:e(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:e(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:e(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:e(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:e(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:e(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:e(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:e(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:e(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:e(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:e(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:e(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:e(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:e(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:e(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:e(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:e(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:e(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:e(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:e(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:e(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:e(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:e(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:e(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:e(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:e(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:e(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:e(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:e(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:e(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:e(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:e(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:e(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:e(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:e(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:e(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:e(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:e(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:e(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:e(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:e(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:e(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:e(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:e(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:e(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:e(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:e(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:e(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:e(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:e(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:e(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:e(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:e(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:e(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:e(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:e(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:e(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:e(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:e(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:e(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:e(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:e(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:e(95005,3,"Extract_function_95005","Extract function"),Extract_constant:e(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:e(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:e(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:e(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:e(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:e(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:e(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:e(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:e(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:e(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:e(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:e(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:e(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:e(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:e(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:e(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:e(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:e(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:e(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:e(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:e(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:e(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:e(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:e(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:e(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:e(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:e(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:e(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:e(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:e(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:e(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:e(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:e(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:e(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:e(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:e(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:e(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:e(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:e(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:e(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:e(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:e(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:e(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:e(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:e(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:e(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:e(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:e(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:e(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:e(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:e(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:e(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:e(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:e(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:e(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:e(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:e(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:e(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:e(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:e(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:e(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:e(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:e(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:e(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:e(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:e(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:e(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:e(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:e(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:e(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:e(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:e(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:e(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:e(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:e(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:e(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:e(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:e(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:e(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:e(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:e(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:e(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:e(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:e(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:e(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:e(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:e(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:e(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:e(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:e(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:e(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:e(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:e(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:e(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:e(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:e(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:e(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:e(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:e(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:e(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:e(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:e(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:e(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:e(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:e(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:e(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:e(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:e(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:e(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:e(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:e(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:e(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:e(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:e(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:e(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:e(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:e(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:e(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:e(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:e(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:e(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:e(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:e(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:e(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:e(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:e(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:e(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:e(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:e(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:e(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:e(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:e(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:e(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:e(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:e(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:e(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:e(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:e(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:e(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:e(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:e(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:e(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:e(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:e(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:e(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:e(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:e(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:e(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:e(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:e(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:e(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:e(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:e(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:e(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:e(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:e(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:e(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:e(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:e(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:e(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:e(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:e(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:e(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:e(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:e(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:e(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:e(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:e(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:e(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:e(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:e(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:e(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:e(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:e(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:e(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:e(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:e(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:e(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:e(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:e(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:e(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:e(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:e(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:e(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:e(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:e(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(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:e(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:e(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:e(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:e(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:e(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:e(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:e(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:e(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:e(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:e(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.")};function Aa(e){return 80<=e}function Ia(e){return 32===e||80<=e}var Oa={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},La=new Map(Object.entries(Oa)),ja=new Map(Object.entries({...Oa,"{":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})),Ra=new Map(Object.entries({d:1,g:2,i:4,m:8,s:16,u:32,v:64,y:128})),Ma=new Map([[1,9],[16,5],[32,2],[64,99],[128,2]]),Ba=[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],Ja=[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],za=[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],qa=[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],Ua=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Va=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Wa=/@(?:see|link)/i;function Ha(r,n){if(!(r{r[e]=t}),r}var A3=Ga(ja);function I3(e){return A3[e]}function $a(e){return ja.get(e)}var Xa=Ga(Ra);function Qa(e){return Xa[e]}function Ya(e){return Ra.get(e)}function Za(e){var t=[];let r=0,n=0;for(;r=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:Y4.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? `+(void 0!==n?CT(e,Za(n)):"unknown")));r=e[t]+r;return i?r>e[t+1]?e[t+1]:"string"==typeof n&&r>n.length?n.length:r:(tu,getStartPos:()=>u,getTokenEnd:()=>F,getTextPos:()=>F,getToken:()=>d,getTokenStart:()=>I,getTokenPos:()=>I,getTokenText:()=>L.substring(I,F),getTokenValue:()=>O,hasUnicodeEscape:()=>0!=(1024&p),hasExtendedUnicodeEscape:()=>0!=(8&p),hasPrecedingLineBreak:()=>0!=(1&p),hasPrecedingJSDocComment:()=>0!=(2&p),isIdentifier:()=>80===d||11883<=d&&d<=118,isUnterminated:()=>0!=(4&p),getCommentDirectives:()=>f,getNumericLiteralFlags:()=>25584&p,getTokenFlags:()=>p,reScanGreaterToken:function(){if(32===d){if(62===R(F))return d=62===R(F+1)?61===R(F+2)?(F+=3,73):(F+=2,50):61===R(F+1)?(F+=2,72):(F++,49);if(61===R(F))return F++,d=34}return d},reScanAsteriskEqualsToken:function(){return Y4.assert(67===d,"'reScanAsteriskEqualsToken' should only be called on a '*='"),F=I+1,d=64},reScanSlashToken:function(t){if(44===d||69===d){var i=I+1;F=i;let n=!1,D=!1,e=!1;for(;;){var r=M(F);if(-1===r||L3(r)){p|=4;break}if(n)n=!1;else{if(47===r&&!e)break;91===r?e=!0:92===r?n=!0:93===r?e=!1:e||40!==r||63!==M(F+1)||60!==M(F+2)||61===M(F+3)||33===M(F+3)||(D=!0)}F++}var a=F;if(4&p){F=i,n=!1;let e=0,t=!1,r=0;for(;F{function _(e){for(;;){if(o.push(a),a=void 0,!function(e){let t=!1;for(;;){var r=F,n=M(F);switch(n){case-1:return;case 94:case 36:F++,t=!1;break;case 92:switch(M(++F)){case 98:case 66:F++,t=!1;break;default:!function(){switch(Y4.assertEqual(R(F-1),92),M(F)){case 107:60===M(++F)?(F++,p(!0),b(62)):(C||x)&&B(eT.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,F-2,2);break;case 113:if(k){F++,B(eT.q_is_only_available_inside_character_class,F-2,2);break}default:Y4.assert(y()||function(){Y4.assertEqual(R(F-1),92);var e=M(F);if(49<=e&&e<=57)return e=F,J(),S=Q4(S,{pos:e,end:F,value:+O}),!0;return!1}()||d(!0))}}(),t=!0}break;case 40:if(63===M(++F))switch(M(++F)){case 61:case 33:F++,t=!C;break;case 60:var i=F;switch(M(++F)){case 61:case 33:F++,t=!1;break;default:p(!1),b(62),E<5&&B(eT.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,i,F-i),N++,t=!0}break;default:var a=F,o=u(0);45===M(F)&&(F++,u(o),F===a+1)&&B(eT.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,a,F-a),b(58),t=!0}else N++,t=!0;_(!0),b(41);break;case 123:var s=++F,c=(J(),O);if(!C&&!c){t=!0;break}if(44===M(F)){F++,J();var l=O;if(c)l&&Number.parseInt(c)>Number.parseInt(l)&&(C||125===M(F))&&B(eT.Numbers_out_of_order_in_quantifier,s,F-s);else{if(!l&&125!==M(F)){B(eT.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(n)),t=!0;break}B(eT.Incomplete_quantifier_Digit_expected,s,0)}}else if(!c){C&&B(eT.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(n)),t=!0;break}if(125!==M(F)){if(!C){t=!0;break}B(eT._0_expected,F,0,String.fromCharCode(125)),F--}case 42:case 43:case 63:63===M(++F)&&F++,t||B(eT.There_is_nothing_available_for_repetition,r,F-r),t=!1;break;case 46:F++,t=!0;break;case 91:F++,(k?m:function(){Y4.assertEqual(R(F-1),91),94===M(F)&&F++;for(;;){if(f(M(F)))return;var e=F,t=h();if(45===M(F)){if(f(M(++F)))return;!t&&C&&B(eT.A_character_class_range_must_not_be_bounded_by_another_character_class,e,F-1-e);var r,n=F,i=h();!i&&C?B(eT.A_character_class_range_must_not_be_bounded_by_another_character_class,n,F-n):t&&(n=Ao(t,0),r=Ao(i,0),t.length===Io(n))&&i.length===Io(r)&&rnull==e?void 0:e.has(O))?B(eT.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,I,F-I):((a=a??new Set).add(O),(n=n??new Set).add(O))}function f(e){return 93===e||-1===e||A<=F}function m(){Y4.assertEqual(R(F-1),91);let r=!1,n=(94===M(F)&&(F++,r=!0),!1),i=M(F);if(!f(i)){let e=F,t;switch(L.slice(F,F+2)){case"--":case"&&":B(eT.Expected_a_class_set_operand),w=!1;break;default:t=g()}switch(M(F)){case 45:if(45===M(F+1))return r&&w&&B(eT.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,e,F-e),n=w,l(3),void(w=!r&&n);break;case 38:if(38===M(F+1))return l(2),r&&w&&B(eT.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,e,F-e),n=w,void(w=!r&&n);B(eT.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,F,1,String.fromCharCode(i));break;default:r&&w&&B(eT.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,e,F-e),n=w}for(;;){if(-1===(i=M(F)))break;switch(i){case 45:if(F++,f(i=M(F)))return void(w=!r&&n);if(45===i){F++,B(eT.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,F-2,2),e=F-2,t=L.slice(e,F);continue}t||B(eT.A_character_class_range_must_not_be_bounded_by_another_character_class,e,F-1-e);var a,o,s=F,c=g();(r&&w&&B(eT.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,s,F-s),n=n||w,c)?t&&(a=Ao(t,0),o=Ao(c,0),t.length===Io(a))&&c.length===Io(o)&&o{null!=n&&n.has(e.name)||B(eT.There_is_no_capturing_group_named_0_in_this_regular_expression,e.pos,e.end-e.pos,e.name)}),G4(S,e=>{e.value>N&&(N?B(eT.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,N):B(eT.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))})})}O=L.substring(I,F),d=14}return d},reScanTemplateToken:function(e){return F=I,d=y(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return F=I,d=y(!0)},scanJsxIdentifier:function(){if(80<=d){for(;F{var e=t.getText();return e.slice(0,t.getTokenFullStart())+"â•‘"+e.slice(t.getTokenFullStart())}}),t;function j(e){return Ao(L,e)}function R(e){return L.charCodeAt(e)}function M(e){return 0<=e&&eString.fromCodePoint(e):function(e){var t;return Y4.assert(0<=e&&e<=1114111),e<=65535?String.fromCharCode(e):(t=Math.floor((e-65536)/1024)+55296,String.fromCharCode(t,(e-65536)%1024+56320))};function Lo(e){return Oo(e)}var jo=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),Ro=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"]),Mo=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"]),Bo={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 B3(e){return T3(e)||Gi(e)}function Jo(e){return S(e,yD,wf)}function zo(e){switch(vD(e)){case 99:return"lib.esnext.full.d.ts";case 10:return"lib.es2023.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function J3(e){return e.start+e.length}function qo(e){return 0===e.length}function z3(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Uo(e,t){return t.start>=e.start&&J3(t)<=J3(e)}function Vo(e,t){return void 0!==Wo(e,t)}function Wo(e,t){e=Xo(e,t);return e&&0===e.length?void 0:e}function Ho(e,t){return Go(e.start,e.length,t.start,t.length)}function Ko(e,t,r){return Go(e.start,e.length,t,r)}function Go(e,t,r,n){return r<=e+t&&e<=r+n}function $o(e,t){return t<=J3(e)&&t>=e.start}function Xo(e,t){var r=Math.max(e.start,t.start),e=Math.min(J3(e),J3(t));return r<=e?Yo(r,e):void 0}function Qo(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Yo(e,t){return Qo(e,t-e)}function Zo(e){return Qo(e.span.start,e.newLength)}function es(e){return qo(e.span)&&0===e.newLength}function ts(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}Bo.Script_Extensions=Bo.Script;var rs=ts(Qo(0,0),0);function ns(t){if(0===t.length)return rs;if(1===t.length)return t[0];var e=t[0];let r=e.span.start,n=J3(e.span),i=r+e.newLength;for(let e=1;eZ3(e,t)))}function ms(e){return e.name||ps(e)}function eC(e){return!!e.name}function gs(e){switch(e.kind){case 80:return e;case 348:case 341:var t=e["name"];if(166===t.kind)return t.right;break;case 213:case 226:var r=e;switch(V8(r)){case 1:case 4:case 5:case 3:return iu(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}case 346:return ms(e);case 340:return ps(e);case 277:t=e["expression"];return uT(t)?t:void 0;case 212:if(H8(e))return e.argumentExpression}return e.name}function tC(e){if(void 0!==e)return gs(e)||(OP(e)||LP(e)||JP(e)?hs(e):void 0)}function hs(e){if(e.parent)return FF(e.parent)||wP(e.parent)?e.parent.name:pT(e.parent)&&e===e.parent.right?uT(e.parent.left)?e.parent.left:lD(e.parent.left)?iu(e.parent.left):void 0:eF(e.parent)&&uT(e.parent.name)?e.parent.name:void 0}function rC(e){if(AN(e))return NT(e.modifiers,$E)}function nC(e){if(TN(e,98303))return NT(e.modifiers,IC)}function ys(e,r){if(e.name){if(uT(e.name)){let t=e.name.escapedText;return Bs(e.parent,r).filter(e=>QF(e)&&uT(e.name)&&e.name.escapedText===t)}var t=e.parent.parameters.indexOf(e),e=(Y4.assert(-1ZF(e)&&e.typeParameters.some(e=>e.name.escapedText===r))}function xs(e){return bs(e,!1)}function Ss(e){return bs(e,!0)}function aC(e){return!!zs(e,QF)}function ks(e){return zs(e,GF)}function Ts(e){return pC(e,H1)}function oC(e){return zs(e,O1)}function Cs(e){return zs(e,L1)}function ws(e){return zs(e,L1,!0)}function Ns(e){return zs(e,j1)}function Ds(e){return zs(e,j1,!0)}function Es(e){return zs(e,R1)}function Ps(e){return zs(e,R1,!0)}function Fs(e){return zs(e,M1)}function As(e){return zs(e,M1,!0)}function Is(e){return zs(e,B1,!0)}function sC(e){return zs(e,J1)}function Os(e){return zs(e,J1,!0)}function cC(e){return zs(e,q1)}function lC(e){return zs(e,YF)}function Ls(e){return zs(e,U1)}function js(e){return zs(e,ZF)}function Rs(e){return zs(e,r9)}function _C(e){e=zs(e,V1);if(e&&e.typeExpression&&e.typeExpression.type)return e}function uC(e){let t=zs(e,V1);return(t=!t&&GE(e)?bT(iC(e),e=>!!e.typeExpression):t)&&t.typeExpression&&t.typeExpression.type}function Ms(e){var t=Ls(e);return t&&t.typeExpression?t.typeExpression.type:(t=_C(e))&&t.typeExpression?uP(e=t.typeExpression.type)?(t=bT(e.members,iP))&&t.type:cP(e)||VF(e)?e.type:void 0:void 0}function Bs(e,t){var r;if(!cw(e))return H4;let n=null==(r=e.jsDoc)?void 0:r.jsDocCache;return void 0!==n&&!t||(r=fu(e,t),Y4.assert(r.length<2||r[0]!==r[1]),n=FT(r,e=>A1(e)?e.tags:e),t)||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=n),n}function dC(e){return Bs(e,!1)}function Js(e){return Bs(e,!0)}function zs(e,t,r){return bT(Bs(e,r),t)}function pC(e,t){return dC(e).filter(t)}function qs(e,t){return dC(e).filter(e=>e.kind===t)}function fC(e){return"string"==typeof e?e:null==e?void 0:e.map(e=>{return 321===e.kind?e.text:(t=324===(e=e).kind?"link":325===e.kind?"linkcode":"linkplain",r=e.name?g5(e.name):"",n=e.name&&(""===e.text||e.text.startsWith("://"))?"":" ",`{@${t} ${r}${n}${e.text}}`);var t,r,n}).join("")}function mC(e){if(KF(e)){if(XF(e.parent)){var t=mw(e.parent);if(t&&K4(t.tags))return FT(t.tags,e=>ZF(e)?e.typeParameters:void 0)}}else{if(iw(e))return Y4.assert(320===e.parent.kind),FT(e.parent.tags,e=>ZF(e)?e.typeParameters:void 0);if(e.typeParameters)return e.typeParameters;if(Ry(e)&&e.typeParameters)return e.typeParameters;if(oT(e)){t=vN(e);if(t.length)return t;t=uC(e);if(t&&cP(t)&&t.typeParameters)return t.typeParameters}}return H4}function gC(e){return e.constraint||(ZF(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0)}function Us(e){return 80===e.kind||81===e.kind}function hC(e){return 178===e.kind||177===e.kind}function Vs(e){return dT(e)&&!!(64&e.flags)}function Ws(e){return EP(e)&&!!(64&e.flags)}function yC(e){return PP(e)&&!!(64&e.flags)}function vC(e){var t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function bC(e){return vC(e)&&!VP(e)&&!!e.questionDotToken}function xC(e){return bC(e.parent)&&e.parent.expression===e}function SC(e){return!vC(e.parent)||bC(e.parent)||e!==e.parent.expression}function Hs(e){return 226===e.kind&&61===e.operatorToken.kind}function kC(e){return sP(e)&&uT(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Ks(e){return l9(e,8)}function Gs(e){return VP(e)&&!!(64&e.flags)}function $s(e){return 252===e.kind||251===e.kind}function Xs(e){return 280===e.kind||279===e.kind}function TC(e){return 348===e.kind||341===e.kind}function Qs(e){return Ys(e.kind)}function Ys(e){return 166<=e}function Zs(e){return 0<=e&&e<=165}function ec(e){return Zs(e.kind)}function tc(e){return Si(e,"pos")&&Si(e,"end")}function rc(e){return 9<=e&&e<=15}function CC(e){return rc(e.kind)}function wC(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function nc(e){return 15<=e&&e<=18}function ic(e){return nc(e.kind)}function ac(e){e=e.kind;return 17===e||18===e}function NC(e){return mF(e)||vF(e)}function DC(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 oc(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 EC(e){return DC(e)||oc(e)}function sc(e){return 11===e.kind||nc(e.kind)}function cc(e){return qE(e)||uT(e)}function PC(e){return uT(e)&&void 0!==(null==(e=e.emitNode)?void 0:e.autoGenerate)}function lc(e){return UE(e)&&void 0!==(null==(e=e.emitNode)?void 0:e.autoGenerate)}function _c(e){e=e.emitNode.autoGenerate.flags;return!!(32&e)&&!!(16&e)&&!!(8&e)}function FC(e){return(QE(e)||hc(e))&&UE(e.name)}function AC(e){return dT(e)&&UE(e.name)}function uc(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 dc(e){return!!(31&jN(e))}function pc(e){return dc(e)||126===e||164===e||129===e}function IC(e){return uc(e.kind)}function OC(e){e=e.kind;return 166===e||80===e}function LC(e){e=e.kind;return 80===e||81===e||11===e||9===e||167===e}function fc(e){e=e.kind;return 80===e||206===e||207===e}function jC(e){return!!e&&gc(e.kind)}function RC(e){return!!e&&(gc(e.kind)||eP(e))}function MC(e){return e&&mc(e.kind)}function BC(e){return 112===e.kind||97===e.kind}function mc(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function gc(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return mc(e)}}function JC(e){return LF(e)||cF(e)||KP(e)&&jC(e.parent)}function zC(e){e=e.kind;return 176===e||172===e||174===e||177===e||178===e||181===e||175===e||240===e}function qC(e){return e&&(263===e.kind||231===e.kind)}function UC(e){return e&&(177===e.kind||178===e.kind)}function VC(e){return QE(e)&&PN(e)}function WC(e){return oT(e)&&wE(e)?!(ru(e)&&GN(e.expression)||K8(e,!0)):e.parent&&qC(e.parent)&&QE(e)&&!PN(e)}function hc(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function yc(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function vc(e){return IC(e)||$E(e)}function bc(e){e=e.kind;return 180===e||179===e||171===e||173===e||181===e||177===e||178===e}function xc(e){return bc(e)||zC(e)}function HC(e){e=e.kind;return 303===e||304===e||305===e||174===e||177===e||178===e}function KC(e){return cD(e.kind)}function Sc(e){switch(e.kind){case 184:case 185:return!0}return!1}function GC(e){return!!e&&(207===(e=e.kind)||206===e)}function $C(e){e=e.kind;return 209===e||210===e}function kc(e){e=e.kind;return 208===e||232===e}function Tc(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Cc(e){return eF(e)||GE(e)||Dc(e)||Pc(e)}function wc(e){return Nc(e)||Ec(e)}function Nc(e){switch(e.kind){case 206:case 210:return!0}return!1}function Dc(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function Ec(e){switch(e.kind){case 207:case 209:return!0}return!1}function Pc(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return zN(e,!0)}function XC(e){e=e.kind;return 211===e||166===e||205===e}function QC(e){e=e.kind;return 211===e||166===e}function YC(e){return ZC(e)||oE(e)}function ZC(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function e7(e){return 213===e.kind||214===e.kind}function Fc(e){e=e.kind;return 228===e||15===e}function t7(e){return Ac(Ks(e).kind)}function Ac(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 Ic(e){return Oc(Ks(e).kind)}function Oc(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return Ac(e)}}function Lc(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function jc(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return CC(e)}}function nT(e){var t=Ks(e).kind;switch(t){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 355:case 354:case 238:return!0;default:return Oc(t)}}function r7(e){e=e.kind;return 216===e||234===e}function Rc(e){return v1(e)||X0(e)}function n7(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&n7(e.statement,t)}return!1}function Mc(e){return gF(e)||hF(e)}function i7(e){return X4(e,Mc)}function a7(e){return!(o_(e)||gF(e)||TN(e,32)||Z7(e))}function o7(e){return o_(e)||gF(e)||TN(e,32)}function s7(e){return 249===e.kind||250===e.kind}function Bc(e){return KP(e)||nT(e)}function Jc(e){return KP(e)}function zc(e){return tF(e)||nT(e)}function qc(e){e=e.kind;return 268===e||267===e||80===e}function Uc(e){e=e.kind;return 268===e||267===e}function Vc(e){e=e.kind;return 80===e||267===e}function Wc(e){e=e.kind;return 275===e||274===e}function c7(e){return 267===e.kind||266===e.kind}function l7(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 _7(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 Hc(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 Kc(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 u7(e){return 168===e.kind?e.parent&&345!==e.parent.kind||oT(e):219===(e=e.kind)||208===e||263===e||231===e||175===e||176===e||266===e||306===e||281===e||262===e||218===e||177===e||273===e||271===e||276===e||264===e||291===e||174===e||173===e||267===e||270===e||274===e||280===e||169===e||303===e||172===e||171===e||178===e||304===e||265===e||168===e||260===e||346===e||338===e||348===e||202===e}function Gc(e){return Hc(e.kind)}function $c(e){return Kc(e.kind)}function d7(e){var t=e.kind;return Kc(t)||Hc(t)||function(e){if(241!==e.kind)return!1;if(void 0!==e.parent&&(258===e.parent.kind||299===e.parent.kind))return!1;return!O_(e)}(e)}function Xc(e){e=e.kind;return Kc(e)||Hc(e)||241===e}function Qc(e){e=e.kind;return 283===e||166===e||80===e}function Yc(e){e=e.kind;return 110===e||80===e||211===e||295===e}function Zc(e){e=e.kind;return 284===e||294===e||285===e||12===e||288===e}function p7(e){e=e.kind;return 291===e||293===e}function el(e){e=e.kind;return 11===e||294===e}function f7(e){e=e.kind;return 286===e||285===e}function tl(e){e=e.kind;return 296===e||297===e}function m7(e){return 309<=e.kind&&e.kind<=351}function rl(e){return 320===e.kind||319===e.kind||321===e.kind||T7(e)||nl(e)||HF(e)||KF(e)}function nl(e){return 327<=e.kind&&e.kind<=351}function g7(e){return 178===e.kind}function h7(e){return 177===e.kind}function y7(e){return!!cw(e)&&(e=e.jsDoc,!!e)&&0sl(e,t))}var N7=[],D7="tslib",E7=160,P7=1e6;function F7(e,t){e=e.declarations;if(e)for(var r of e)if(r.kind===t)return r}function A7(e,t){return NT(e.declarations||H4,e=>e.kind===t)}function I7(e){var t=new Map;if(e)for(var r of e)t.set(r.escapedName,r);return t}function O7(e){return 0!=(33554432&e.flags)}function L7(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var ll=function(){var t="";let r=e=>t+=e;return{getText:()=>t,write:r,rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:(e,t)=>r(e),writeTrailingSemicolon:r,writeComment:r,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&oo(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:yr,decreaseIndent:yr,clear:()=>t=""}}();function _l(e,t){return e.configFilePath!==t.configFilePath||ul(e,t)}function ul(e,t){return pl(e,t,j4)}function dl(e,t){return pl(e,t,M4)}function pl(t,r,e){return t!==r&&e.some(e=>!eg(Gf(t,e),Gf(r,e)))}function fl(e,t){for(;;){var r=t(e);if("quit"===r)return;if(void 0!==r)return r;if(LF(e))return;e=e.parent}}function j7(e,t){var r,n;for([r,n]of e.entries()){var i=t(n,r);if(i)return i}}function R7(e,t){var r;for(r of e.keys()){var n=t(r);if(n)return n}}function M7(e,r){e.forEach((e,t)=>{r.set(t,e)})}function B7(e){var t=ll.getText();try{return e(ll),ll.getText()}finally{ll.clear(),ll.writeKeyword(t)}}function ml(e){return e.end-e.pos}function gl(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function hl(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&&(r=e.resolvedModule.packageId,n=t.resolvedModule.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version&&r.peerDependencies===n.peerDependencies)&&e.alternateResult===t.alternateResult;var r,n}function J7(e,t,r,n,i){e=null==(e=t.getResolvedModule(e,r,n))?void 0:e.alternateResult,e=e&&(2===xD(t.getCompilerOptions())?[eT.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[e]]:[eT.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,[e,e.includes(fO+"@types/")?"@types/"+GO(i):i]]),e=e?gD(void 0,e[0],...e[1]):t.typesPackageExists(i)?gD(void 0,eT.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,GO(i)):t.packageBundlesTypes(i)?gD(void 0,eT.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,r):gD(void 0,eT.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,GO(i));return e&&(e.repopulateInfo=()=>({moduleReference:r,mode:n,packageName:i===r?void 0:i})),e}function yl({name:e,subModuleName:t}){return t?e+"/"+t:e}function vl(e){return yl(e)+"@"+e.version+(e.peerDependencies??"")}function bl(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 xl(t,r,n,i){Y4.assert(t.length===r.length);for(let e=0;e[""+O3(t,e.range.end).line,e])),n=new Map;return{getUnusedExpectations:function(){return ZT(r.entries()).filter(([e,t])=>0===t.type&&!n.get(e)).map(([,e])=>e)},markUsed:function(e){return!!r.has(""+e)&&(n.set(""+e,!0),!0)}}}function Ml(e,t,r){if(W7(e))return e.pos;if(m7(e)||12===e.kind)return j3((t||iT(e)).text,e.pos,!1,!0);if(r&&y7(e))return Ml(e.jsDoc[0],t);if(352===e.kind){var n=UT(Q1(e));if(n)return Ml(n,t,r)}return j3((t||iT(e)).text,e.pos,!1,!1,N8(e))}function Bl(e,t){var r=!W7(e)&&f9(e)?xT(e.modifiers,$E):void 0;return r?j3((t||iT(e)).text,r.end):Ml(e,t)}function Jl(e,t,r=!1){return ql(e.text,t,r)}function zl(e){return!!(hF(e)&&e.exportClause&&fF(e.exportClause)&&"default"===e.exportClause.name.escapedText)}function ql(e,t,r=!1){if(W7(t))return"";let n=e.substring(r?t.pos:j3(e,t.pos),t.end);return n=tT(t,jF)?n.split(/\r\n|\n|\r/).map(e=>e.replace(/^\s*\*/,"").trimStart()).join("\n"):n}function K7(e,t=!1){return Jl(iT(e),e,t)}function Ul(e){return e.pos}function G7(e,t){return XT(e,t,Ul,l3)}function $7(e){e=e.emitNode;return e&&e.flags||0}function Vl(e){e=e.emitNode;return e&&e.internalFlags||0}var X7=Ci(()=>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"]})),Iterator:new Map(Object.entries({es2015:H4})),AsyncIterator:new Map(Object.entries({es2015:H4})),Atomics:new Map(Object.entries({es2017:H4})),SharedArrayBuffer:new Map(Object.entries({es2017:H4})),AsyncIterable:new Map(Object.entries({es2018:H4})),AsyncIterableIterator:new Map(Object.entries({es2018:H4})),AsyncGenerator:new Map(Object.entries({es2018:H4})),AsyncGeneratorFunction:new Map(Object.entries({es2018:H4})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),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"]})),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"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),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"],esnext:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:H4,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"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:H4})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:H4,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:H4,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),Wl=(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))(Wl||{});function Hl(e,t,r){if(t&&function(e,t){if(rN(e)||!e.parent||4&t&&e.isUnterminated)return;if(zE(e)){if(26656&e.numericLiteralFlags)return;if(512&e.numericLiteralFlags)return 8&t}return!a0(e)}(e,r))return Jl(t,e);switch(e.kind){case 11:var n=2&r?gd:1&r||16777216&$7(e)?aN:ud;return e.singleQuote?"'"+n(e.text,39)+"'":'"'+n(e.text,34)+'"';case 15:case 16:case 17:case 18:var n=1&r||16777216&$7(e)?aN:ud,i=e.rawText??td(n(e.text,96));switch(e.kind){case 15:return"`"+i+"`";case 16:return"`"+i+"${";case 17:return"}"+i+"${";case 18:return"}"+i+"`"}break;case 9:case 10:return e.text;case 14:return 4&r&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return Y4.fail(`Literal kind '${e.kind}' not accounted for.`)}function Kl(e){return a3(e)?`"${aN(e)}"`:""+e}function Gl(e){return ra(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Q7(e){return 0!=(7&H3(e))||Y7(e)}function Y7(e){e=eN(e);return 260===e.kind&&299===e.parent.kind}function Z7(e){return sF(e)&&(11===e.name.kind||n5(e))}function e5(e){return sF(e)&&11===e.name.kind}function $l(e){return sF(e)&&qE(e.name)}function Xl(e){return sF(e)||uT(e)}function t5(e){return!!(e=e.valueDeclaration)&&267===e.kind&&!e.body}function r5(e){return 307===e.kind||267===e.kind||RC(e)}function n5(e){return!!(2048&e.flags)}function i5(e){return Z7(e)&&Ql(e)}function Ql(e){switch(e.parent.kind){case 307:return b9(e.parent);case 268:return Z7(e.parent.parent)&&LF(e.parent.parent.parent)&&!b9(e.parent.parent.parent)}return!1}function a5(e){return null==(e=e.declarations)?void 0:e.find(e=>!(i5(e)||sF(e)&&n5(e)))}function o5(e,t){return b9(e)||(1===(t=bD(t))||100===t||199===t)&&!!e.commonJsModuleIndicator}function Yl(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!FD(t,"alwaysStrict")&&!gy(e.statements)&&!b9(e)&&!SD(t))}function Zl(e){return!!(33554432&e.flags)||TN(e,128)}function e_(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!RC(t)}return!1}function t_(e){switch(Y4.type(e),e.kind){case 338:case 346:case 323:return!0;default:return r_(e)}}function r_(e){switch(Y4.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 n_(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function i_(e){return n_(e)||P8(e)}function a_(e){return n_(e)||Q_(e)}function s5(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 c5(e){return o_(e)||sF(e)||kP(e)||A5(e)}function o_(e){return n_(e)||hF(e)}function l5(e){return tT(e.parent,e=>!!(1&mL(e)))}function _5(e){return tT(e.parent,e=>e_(e,e.parent))}function u5(e,t){let r=_5(e);for(;r;)t(r),r=_5(r)}function d5(e){return e&&0!==ml(e)?K7(e):"(Missing)"}function p5(e){return e.declaration?d5(e.declaration.parameters[0].name):void 0}function f5(e){return 167===e.kind&&!qw(e.expression)}function s_(e){var t;switch(e.kind){case 80:case 81:return null!=(t=e.emitNode)&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return $3(e.text);case 167:return qw(e.expression)?$3(e.expression.text):void 0;case 295:return SE(e);default:return Y4.assertNever(e)}}function m5(e){return Y4.checkDefined(s_(e))}function g5(e){switch(e.kind){case 110:return"this";case 81:case 80:return(0===ml(e)?rT:K7)(e);case 166:return g5(e.left)+"."+g5(e.right);case 211:return uT(e.name)||UE(e.name)?g5(e.expression)+"."+g5(e.name):Y4.assertNever(e.name);case 311:return g5(e.left)+"#"+g5(e.right);case 295:return g5(e.namespace)+":"+g5(e.name);default:return Y4.assertNever(e)}}function aT(e,t,...r){return c_(iT(e),e,t,...r)}function h5(e,t,r,...n){var i=j3(e.text,t.pos);return pD(e,i,t.end-i,r,...n)}function c_(e,t,r,...n){t=C5(e,t);return pD(e,t.start,t.length,r,...n)}function y5(e,t,r,n){t=C5(e,t);return __(e,t.start,t.length,r,n)}function v5(e,t,r,n){var i=j3(e.text,t.pos);return __(e,i,t.end-i,r,n)}function l_(e,t,r){Y4.assertGreaterThanOrEqual(t,0),Y4.assertGreaterThanOrEqual(r,0),Y4.assertLessThanOrEqual(t,e.length),Y4.assertLessThanOrEqual(t+r,e.length)}function __(e,t,r,n,i){return l_(e.text,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i,canonicalHead:n.canonicalHead}}function b5(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function x5(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function u_(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function S5(e,...t){return{code:e.code,messageText:fD(e,...t)}}function k5(e,t){e=M3(e.languageVersion,!0,e.languageVariant,e.text,void 0,t),e.scan(),t=e.getTokenStart();return Yo(t,e.getTokenEnd())}function T5(e,t){e=M3(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return e.scan(),e.getToken()}function C5(t,r){let e=r;switch(r.kind){case 307:var n=j3(t.text,0,!1);return n===t.text.length?Qo(0,0):k5(t,n);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:e=r.name;break;case 219:var n=t,i=r,a=j3(n.text,i.pos);if(i.body&&241===i.body.kind){var o=O3(n,i.body.pos)["line"],s=O3(n,i.body.end)["line"];if(o=e.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),Y4.assert(_<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Yo(_,e.end)}function w5(e){return 307===e.kind&&!N5(e)}function N5(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function D5(e){return 6===e.scriptKind}function E5(e){return!!(4096&W3(e))}function P5(e){return!(!(8&W3(e))||U3(e,e.parent))}function d_(e){return 6==(7&H3(e))}function p_(e){return 4==(7&H3(e))}function f_(e){return 2==(7&H3(e))}function m_(e){e=7&H3(e);return 2==e||4==e||6==e}function g_(e){return 1==(7&H3(e))}function F5(e){return 213===e.kind&&108===e.expression.kind}function A5(e){return 213===e.kind&&102===e.expression.kind}function h_(e){return WP(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function I5(e){return kP(e)&&SP(e.argument)&&qE(e.argument.literal)}function y_(e){return 244===e.kind&&11===e.expression.kind}function v_(e){return!!(2097152&$7(e))}function b_(e){return v_(e)&&rF(e)}function x_(e){return uT(e.name)&&!e.initializer}function S_(e){return v_(e)&&GP(e)&&vT(e.declarationList.declarations,x_)}function k_(e,t){return 12!==e.kind?No(t.text,e.pos):void 0}function T_(t,r){return NT(169===t.kind||168===t.kind||218===t.kind||219===t.kind||217===t.kind||260===t.kind||281===t.kind?LT(Do(r,t.pos),No(r,t.pos)):No(r,t.pos),e=>e.end<=t.end&&42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3))}var C_=/^(\/\/\/\s*/,w_=/^(\/\/\/\s*/,N_=/^(\/\/\/\s*/,D_=/^(\/\/\/\s*/,E_=/^\/\/\/\s*/,P_=/^(\/\/\/\s*/;function O5(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 F_(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),Y4.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:var t=e["parent"];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 F_(t);case 168:case 345:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return TT(t.typeArguments,e)}}return!1}function F_(e){return H1(e.parent)||GF(e.parent)||EF(e.parent)&&!qN(e)}function A_(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function L5(e,r){return function e(t){switch(t.kind){case 253:return r(t);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 h9(t,e)}}(e)}function j5(e,n){return function t(r){switch(r.kind){case 229:n(r);let e=r.expression;return void(e&&t(e));case 266:case 264:case 267:case 265:return;default:jC(r)?r.name&&167===r.name.kind&&t(r.name.expression):O5(r)||h9(r,t)}}(e)}function R5(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?xi(e.typeArguments):void 0}function M5(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function B5(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 J5(e){return B5(e)||UC(e)}function z5(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function q5(e){return!!oT(e)&&(DP(e.parent)&&pT(e.parent.parent)&&2===V8(e.parent.parent)||U5(e.parent))}function U5(e){return!!oT(e)&&pT(e)&&1===V8(e)}function V5(e){return(eF(e)?f_(e)&&uT(e.name)&&z5(e):QE(e)?FN(e)&&wN(e):XE(e)&&FN(e))||U5(e)}function W5(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function I_(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function O_(e){return e&&241===e.kind&&jC(e.parent)}function H5(e){return e&&174===e.kind&&210===e.parent.kind}function K5(e){return!(174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind&&231!==e.parent.kind)}function G5(e){return e&&1===e.kind}function $5(e){return e&&0===e.kind}function L_(e,r,n,i){return G4(null==e?void 0:e.properties,e=>{var t;if(FF(e))return t=s_(e.name),r===t||i&&i===t?n(e):void 0})}function j_(e,t,r){return L_(e,t,e=>NP(e.initializer)?bT(e.initializer.elements,e=>qE(e)&&e.text===r):void 0)}function R_(e){if(e&&e.statements.length)return o3(e.statements[0].expression,DP)}function M_(e,t,r){return B_(e,t,e=>NP(e.initializer)?bT(e.initializer.elements,e=>qE(e)&&e.text===r):void 0)}function B_(e,t,r){return L_(R_(e),t,r)}function X5(e){return tT(e.parent,jC)}function J_(e){return tT(e.parent,MC)}function Q5(e){return tT(e.parent,qC)}function Y5(e){return tT(e.parent,e=>qC(e)||jC(e)?"quit":eP(e))}function Z5(e){return tT(e.parent,RC)}function e8(e){var t=tT(e.parent,e=>qC(e)?"quit":$E(e));return t&&qC(t.parent)?Q5(t.parent):Q5(t??e)}function t8(e,t,r){for(Y4.assert(307!==e.kind);;){if(!(e=e.parent))return Y4.fail();switch(e.kind){case 167:if(r&&qC(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&zC(e.parent.parent)?e=e.parent.parent:zC(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 r8(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 n8(e){return LF(t8(e=uT(e)&&(nF(e.parent)||rF(e.parent))&&e.parent.name===e?e.parent:e,!0,!1))}function i8(e){var t=t8(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function a8(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&&zC(e.parent.parent)?e=e.parent.parent:zC(e.parent)&&(e=e.parent)}}}function o8(r){if(218===r.kind||219===r.kind){let e=r,t=r.parent;for(;217===t.kind;)t=(e=t).parent;if(213===t.kind&&t.expression===e)return t}}function z_(e){return 108===e.kind||s8(e)}function s8(e){var t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function c8(e){var t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function l8(e){return!!e&&eF(e)&&110===(null==(e=e.initializer)?void 0:e.kind)}function _8(e){return!!e&&(AF(e)||FF(e))&&pT(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function u8(e){switch(e.kind){case 183:return e.typeName;case 233:return UN(e.expression)?e.expression:void 0;case 80:case 166:return e}}function d8(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function p8(e,t,r,n){if(!(e&&eC(t)&&UE(t.name)))switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==r&&(e?nF(r):qC(r)&&!DN(t)&&!EN(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==r&&(e?nF:qC)(r);case 169:return e?void 0!==r&&void 0!==r.body&&(176===r.kind||174===r.kind||178===r.kind)&&dN(r)!==t&&void 0!==n&&263===n.kind:!1}return!1}function q_(e,t,r,n){return AN(t)&&p8(e,t,r,n)}function U_(e,t,r,n){return q_(e,t,r,n)||V_(e,t,r)}function V_(t,r,n){switch(r.kind){case 263:return X4(r.members,e=>U_(t,e,r,n));case 231:return!t&&X4(r.members,e=>U_(t,e,r,n));case 174:case 178:case 176:return X4(r.parameters,e=>q_(t,e,r,n));default:return!1}}function f8(e,t){var r;return!!q_(e,t)||!!(r=_N(t))&&V_(e,r,t)}function m8(e,t,r){let n;if(UC(t)){var{firstAccessor:i,secondAccessor:a,setAccessor:o}=qd(r.members,t),i=AN(i)?i:a&&AN(a)?a:void 0;if(!i||t!==i)return!1;n=null==o?void 0:o.parameters}else ZE(t)&&(n=t.parameters);if(q_(e,t,r))return!0;if(n)for(var s of n)if(!pN(s)&&q_(e,s,t,r))return!0;return!1}function W_(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return W_(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function g8(e){var t=e["parent"];return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function h8(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!EF(e.parent)&&!GF(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||T7(e.parent)||RF(e.parent)||MF(e.parent)||g8(e);case 311:for(;MF(e.parent);)e=e.parent;return 186===e.parent.kind||T7(e.parent)||RF(e.parent)||MF(e.parent)||g8(e);case 81:return pT(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||T7(e.parent)||RF(e.parent)||MF(e.parent)||g8(e))return!0;case 9:case 10:case 11:case 15:case 110:return y8(e);default:return!1}}function y8(e){var t=e["parent"];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:return t.initializer===e&&261!==t.initializer.kind||t.condition===e||t.incrementor===e;case 249:case 250:return t.initializer===e&&261!==t.initializer.kind||t.expression===e;case 216:case 234:case 239:case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!O5(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return h8(t)}}function v8(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function b8(e){return fF(e)&&!!e.parent.moduleSpecifier}function x8(e){return 271===e.kind&&283===e.moduleReference.kind}function S8(e){return Y4.assert(x8(e)),e.moduleReference.expression}function k8(e){return P8(e)&&_D(e.initializer).arguments[0]}function T8(e){return 271===e.kind&&283!==e.moduleReference.kind}function H_(e){return 307===(null==e?void 0:e.kind)}function C8(e){return oT(e)}function K_(e){return!oT(e)}function oT(e){return!!e&&!!(524288&e.flags)}function w8(e){return!!e&&!!(134217728&e.flags)}function G_(e){return!D5(e)}function N8(e){return!!e&&!!(16777216&e.flags)}function D8(e){return sP(e)&&uT(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function E8(e,t){var r;return 213===e.kind&&({expression:e,arguments:r}=e,80===e.kind)&&"require"===e.escapedText&&1===r.length&&(e=r[0],!t||k7(e))}function $_(e){return X_(e,!1)}function P8(e){return X_(e,!0)}function F8(e){return wP(e)&&P8(e.parent.parent)}function X_(e,t){return eF(e)&&!!e.initializer&&E8(t?_D(e.initializer):e.initializer,!0)}function Q_(e){return GP(e)&&0$_(e))}function A8(e){return 39===e||34===e}function Y_(e,t){return 34===Jl(t,e).charCodeAt(0)}function I8(e){return pT(e)||lD(e)||uT(e)||PP(e)}function O8(e){return oT(e)&&e.initializer&&pT(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&UN(e.name)&&J8(e.name,e.initializer.left)?e.initializer.right:e.initializer}function L8(e){var t=O8(e);return t&&R8(t,GN(e.name))}function j8(e){var t,r;if(e&&e.parent&&pT(e.parent)&&64===e.parent.operatorToken.kind)return t=GN(e.parent.left),R8(e.parent.right,t)||function(e,t,r){r=pT(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&R8(t.right,r);if(r&&J8(e,t.left))return r}(e.parent.left,e.parent.right,t);if(e&&PP(e)&&W8(e)){t=e.arguments[2],r="prototype"===e.arguments[1].text;e=G4(t.properties,e=>FF(e)&&uT(e.name)&&"value"===e.name.escapedText&&e.initializer&&R8(e.initializer,r));if(e)return e}}function R8(e,t){var r;return PP(e)?218===(r=Cw(e.expression)).kind||219===r.kind?e:void 0:218===e.kind||231===e.kind||219===e.kind||DP(e)&&(0===e.properties.length||t)?e:void 0}function M8(e){var t=eF(e.parent)?e.parent.name:pT(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&R8(e.right,GN(t))&&UN(t)&&J8(t,e.left)}function B8(e){if(pT(e.parent)){var t=(57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!pT(e.parent.parent)?e:e.parent).parent;if(64===t.operatorToken.kind&&uT(t.left))return t.left}else if(eF(e.parent))return e.parent.name}function J8(e,t){return Hw(e)&&Hw(t)?Kw(e)===Kw(t):Us(e)&&eu(t)&&(110===t.expression.kind||uT(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?J8(e,nu(t)):!(!eu(e)||!eu(t))&&G8(e)===G8(t)&&J8(e.expression,t.expression)}function Z_(e){for(;zN(e,!0);)e=e.right;return e}function z8(e){return uT(e)&&"exports"===e.escapedText}function q8(e){return uT(e)&&"module"===e.escapedText}function U8(e){return(dT(e)||tu(e))&&q8(e.expression)&&"exports"===G8(e)}function V8(e){var t=function(e){{var t;if(PP(e))return W8(e)?z8(t=e.arguments[0])||U8(t)?8:ru(t)&&"prototype"===G8(t)?9:7:0}if(64!==e.operatorToken.kind||!lD(e.left)||function(e){return U0(e)&&zE(e.expression)&&"0"===e.expression.text}(Z_(e)))return 0;if(K8(e.left.expression,!0)&&"prototype"===G8(e.left)&&DP(X8(e)))return 6;return $8(e.left)}(e);return 5===t||oT(e)?t:0}function W8(e){return 3===K4(e.arguments)&&dT(e.expression)&&uT(e.expression.expression)&&"Object"===rT(e.expression.expression)&&"defineProperty"===rT(e.expression.name)&&qw(e.arguments[1])&&K8(e.arguments[0],!0)}function eu(e){return dT(e)||tu(e)}function tu(e){return EP(e)&&qw(e.argumentExpression)}function ru(e,t){return dT(e)&&(!t&&110===e.expression.kind||uT(e.name)&&K8(e.expression,!0))||H8(e,t)}function H8(e,t){return tu(e)&&(!t&&110===e.expression.kind||UN(e.expression)||ru(e.expression,!0))}function K8(e,t){return UN(e)||ru(e,t)}function nu(e){return dT(e)?e.name:e.argumentExpression}function iu(e){var t;return dT(e)?e.name:zE(t=Cw(e.argumentExpression))||k7(t)?t:e}function G8(e){e=iu(e);if(e){if(uT(e))return e.escapedText;if(k7(e)||zE(e))return $3(e.text)}}function $8(t){if(110===t.expression.kind)return 4;if(U8(t))return 2;if(K8(t.expression,!0)){if(GN(t.expression))return 3;let e=t;for(;!uT(e.expression);)e=e.expression;var r=e.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===G8(e))&&ru(t))return 1;if(K8(t,!0)||EP(t)&&Vw(t))return 5}return 0}function X8(e){for(;pT(e.right);)e=e.right;return e.right}function Q8(e){return pT(e)&&3===V8(e)}function au(e){return oT(e)&&e.parent&&244===e.parent.kind&&(!EP(e)||tu(e))&&!!_C(e.parent)}function Y8(e,t){var r=e["valueDeclaration"];(!r||(!(33554432&t.flags)||oT(t)||33554432&r.flags)&&I8(r)&&!I8(t)||r.kind!==t.kind&&Xl(r))&&(e.valueDeclaration=t)}function ou(e){return!(!e||!e.valueDeclaration)&&(262===(e=e.valueDeclaration).kind||eF(e)&&e.initializer&&jC(e.initializer))}function Z8(e){var t;switch(e.kind){case 260:case 208:return null==(t=tT(e.initializer,e=>E8(e,!0)))?void 0:t.arguments[0];case 272:case 278:case 351:return o3(e.moduleSpecifier,k7);case 271:return o3(null==(t=o3(e.moduleReference,bF))?void 0:t.expression,k7);case 273:case 280:return o3(e.parent.moduleSpecifier,k7);case 274:case 281:return o3(e.parent.parent.moduleSpecifier,k7);case 276:return o3(e.parent.parent.parent.moduleSpecifier,k7);case 205:return I5(e)?e.argument.literal:void 0;default:Y4.assertNever(e)}}function su(e){return cu(e)||Y4.failBadSyntaxKind(e.parent)}function cu(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return A5(e.parent)||E8(e.parent,!1)?e.parent:void 0;case 201:return Y4.assert(qE(e)),o3(e.parent.parent,kP);default:return}}function ew(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 I5(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 Y4.assertNever(e)}}function tw(e){switch(e.kind){case 272:return e.importClause&&o3(e.importClause.namedBindings,g1);case 271:return e;case 278:return e.exportClause&&o3(e.exportClause,fF);default:return Y4.assertNever(e)}}function lu(e){return!(272!==e.kind&&351!==e.kind||!e.importClause||!e.importClause.name)}function _u(e,t){if(e.name){var r=t(e);if(r)return r}if(e.namedBindings){r=g1(e.namedBindings)?t(e.namedBindings):G4(e.namedBindings.elements,t);if(r)return r}}function rw(e){if(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 nw(e){e=VF(e)?UT(e.parameters):void 0,e=o3(e&&e.name,uT);return!!e&&"new"===e.escapedText}function iw(e){return 346===e.kind||338===e.kind||340===e.kind}function aw(e){return iw(e)||aF(e)}function uu(e){return $P(e)&&pT(e.expression)&&0!==V8(e.expression)&&pT(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function du(e){switch(e.kind){case 243:var t=ow(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function ow(e){return GP(e)?UT(e.declarationList.declarations):void 0}function pu(e){return sF(e)&&e.body&&267===e.body.kind?e.body:void 0}function sw(e){if(243<=e.kind&&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 cw(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 fu(e,t){let r,n=(B5(e)&&b7(e)&&y7(e.initializer)&&(r=BT(r,mu(e,e.initializer.jsDoc))),e);for(;n&&n.parent;){if(y7(n)&&(r=BT(r,mu(e,n.jsDoc))),169===n.kind){r=BT(r,(t?vs:iC)(n));break}if(168===n.kind){r=BT(r,(t?Ss:xs)(n));break}n=gu(n)}return r||H4}function mu(r,e){let n=GT(e);return FT(e,e=>{var t;return e===n?(t=NT(e.tags,e=>{return t=r,!((V1(e=e)||r9(e))&&e.parent&&A1(e.parent)&&IP(e.parent.parent)&&e.parent.parent!==t);var t}),e.tags===t?[e]:t):NT(e.tags,XF)})}function gu(e){var t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||pu(t)||zN(e)?t:t.parent&&(ow(t.parent)===e||zN(t))?t.parent:t.parent&&t.parent.parent&&(ow(t.parent.parent)||du(t.parent.parent)===e||uu(t.parent.parent))?t.parent.parent:void 0}function lw(e){if(e.symbol)return e.symbol;if(uT(e.name)){let t=e.name.escapedText;var e=dw(e);if(e)return(e=bT(e.parameters,e=>80===e.name.kind&&e.name.escapedText===t))&&e.symbol}}function _w(e){if(A1(e.parent)&&e.parent.tags){var t=bT(e.parent.tags,iw);if(t)return t}return dw(e)}function uw(e){return pC(e,XF)}function dw(e){e=pw(e);if(e)return XE(e)&&e.type&&jC(e.type)?e.type:jC(e)?e:void 0}function pw(e){var t,e=fw(e);if(e)return uu(e)||($P(t=e)&&pT(t.expression)&&64===t.expression.operatorToken.kind?Z_(t.expression):void 0)||du(e)||ow(e)||pu(e)||e}function fw(e){var t,e=mw(e);return e&&(t=e.parent)&&t.jsDoc&&e===KT(t.jsDoc)?t:void 0}function mw(e){return tT(e.parent,A1)}function gw(e){let t=e.name.escapedText;e=e.parent.parent.parent.typeParameters;return e&&bT(e,e=>e.name.escapedText===t)}function hu(e){return!!e.typeArguments}var yu=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(yu||{});function vu(e){let t=e.parent;for(;;){switch(t.kind){case 226:var r=t;return BN(r.operatorToken.kind)&&r.left===e?r:void 0;case 224:case 225:var r=t,n=r.operator;return 46===n||47===n?r:void 0;case 249:case 250:n=t;return n.initializer===e?n: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 hw(e){var t=vu(e);if(!t)return 0;switch(t.kind){case 226:var r=t.operatorToken.kind;return 64===r||sp(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function yw(e){return!!vu(e)}function vw(e){var e=vu(e);return!!e&&zN(e,!0)&&226===(e=Cw((e=e).right)).kind&&Vy(e.operatorToken.kind)}function bu(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 bw(e){return OP(e)||LP(e)||hc(e)||rF(e)||tP(e)}function xu(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function xw(e){return xu(e,196)}function Sw(e){return xu(e,217)}function kw(e){let t;for(;e&&196===e.kind;)e=(t=e).parent;return[t,e]}function Tw(e){for(;hP(e);)e=e.type;return e}function Cw(e,t){return l9(e,t?17:1)}function ww(e){return(211===e.kind||212===e.kind)&&(e=Sw(e.parent))&&220===e.kind}function Nw(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Dw(e){return!LF(e)&&!GC(e)&&u7(e.parent)&&e.parent.name===e}function Su(e){var t,r=e.parent;switch(e.kind){case 11:case 15:case 9:if(HE(r))return r.parent;case 80:return u7(r)?r.name===e?r:void 0:WE(r)?QF(t=r.parent)&&t.name===r?t:void 0:pT(t=r.parent)&&0!==V8(t)&&(t.left.symbol||t.symbol)&&tC(t)===e?t:void 0;case 81:return u7(r)&&r.name===e?r:void 0;default:return}}function Ew(e){return qw(e)&&167===e.parent.kind&&u7(e.parent.parent)}function ku(e){var 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 Tu(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&&Aw(e))||oT(e)&&(pT(e)&&2===V8(e)&&Aw(e)||dT(e)&&pT(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Fw(e.parent.right))}function Pw(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:for(;166===(e=e.parent).parent.kind;);return Pw(e)}}function Fw(e){return UN(e)||JP(e)}function Aw(e){return Fw(Iw(e))}function Iw(e){return gF(e)?e.expression:e.right}function Ow(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function Lw(e){var t=jw(e);if(t&&oT(e)){e=ks(e);if(e)return e.class}return t}function jw(e){e=wu(e.heritageClauses,96);return e&&0e.class):null==(e=wu(e.heritageClauses,119))?void 0:e.types}function Cu(e){return iF(e)?Mw(e)||H4:qC(e)&<(v3(Lw(e)),Rw(e))||H4}function Mw(e){e=wu(e.heritageClauses,96);return e?e.types:void 0}function wu(e,t){if(e)for(var r of e)if(r.token===t)return r}function Bw(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Nu(e){return 83<=e&&e<=165}function Du(e){return 19<=e&&e<=79}function Eu(e){return Nu(e)||Du(e)}function Pu(e){return 128<=e&&e<=165}function Fu(e){return Nu(e)&&!Pu(e)}function Au(e){return 119<=e&&e<=127}function Jw(e){e=$a(e);return void 0!==e&&Fu(e)}function Iu(e){e=$a(e);return void 0!==e&&Nu(e)}function Ou(e){e=Q3(e);return!!e&&!Pu(e)}function Lu(e){return 2<=e&&e<=7}var ju=(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))(ju||{});function zw(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:TN(e,1024)&&(t|=2)}return e.body||(t|=4),t}function Ru(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&TN(e,1024)}return!1}function qw(e){return k7(e)||zE(e)}function Mu(e){return MP(e)&&(40===e.operator||41===e.operator)&&zE(e.operand)}function Uw(e){e=tC(e);return!!e&&Vw(e)}function Vw(e){return!(167!==e.kind&&212!==e.kind||qw(e=EP(e)?Cw(e.argumentExpression):e.expression)||Mu(e))}function Ww(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return $3(e.text);case 167:var t=e.expression;return qw(t)?$3(t.text):Mu(t)?41===t.operator?I3(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return SE(e);default:return Y4.assertNever(e)}}function Hw(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Kw(e){return Us(e)?rT(e):DF(e)?gg(e):e.text}function Gw(e){return Us(e)?e.escapedText:DF(e)?SE(e):$3(e.text)}function Bu(e){return`__@${sj(e)}@`+e.escapedName}function $w(e,t){return`__#${sj(e)}@`+t}function Xw(e){return f3(e.escapedName,"__@")}function Ju(e){return f3(e.escapedName,"__#")}function zu(e){return 80===e.kind&&"Symbol"===e.escapedText}function qu(e){return uT(e)?"__proto__"===rT(e):qE(e)&&"__proto__"===e.text}function Uu(e,t){switch((e=l9(e)).kind){case 231:if(qR(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 Qw(e){switch(e.kind){case 303:return!qu(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return uT(e.name)&&!!e.initializer;case 169:case 208:return uT(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 uT(e.left)}break;case 277:return!0}return!1}function Vu(e,t){if(!Qw(e))return!1;switch(e.kind){case 303:return Uu(e.initializer,t);case 304:return Uu(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return Uu(e.initializer,t);case 226:return Uu(e.right,t);case 277:return Uu(e.expression,t)}}function Yw(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Zw(e){return 169===eN(e).kind}function eN(e){for(;208===e.kind;)e=e.parent.parent;return e}function tN(e){e=e.kind;return 176===e||218===e||262===e||219===e||174===e||177===e||178===e||267===e||307===e}function rN(e){return Km(e.pos)||Km(e.end)}function Wu(e){return G3(e,LF)||e}var Hu=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Hu||{});function Ku(e){var t=Xu(e),r=214===e.kind&&void 0!==e.arguments;return Gu(e.kind,t,r)}function Gu(e,t,r){switch(e){case 214:return r?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 $u(e){var t=Xu(e),r=214===e.kind&&void 0!==e.arguments;return Yu(e.kind,t,r)}function Xu(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}var Qu=(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))(Qu||{});function Yu(e,t,r){switch(e){case 355: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 Zu(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 r?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 Zu(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 nN(e){return NT(e,e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})}function iN(){let n=[],r=[],i=new Map,a=!1;return{add:function(e){let t;e.file?(t=i.get(e.file.fileName))||(t=[],i.set(e.file.fileName,t),B(r,e.file.fileName,Se)):(a&&(a=!1,n=n.slice()),t=n);B(t,e,Cf,wf)},lookup:function(e){let t;t=e.file?i.get(e.file.fileName):n;var r;if(t)return 0<=(r=XT(t,e,Ti,Cf))?t[r]:0<~r&&wf(e,t[~r-1])?t[~r-1]:void 0},getGlobalDiagnostics:function(){return a=!0,n},getDiagnostics:function(e){if(e)return i.get(e)||[];e=y(r,e=>i.get(e));return n.length&&e.unshift(...n),e}}}var ed=/\$\{/g;function td(e){return e.replace(ed,"\\${")}function rd(e){return!!(2048&(e.templateFlags||0))}function nd(e){return e&&!!(c0(e)?rd(e):rd(e.head)||X4(e.templateSpans,e=>rd(e.literal)))}var id=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ad=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,od=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,sd=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 cd(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function ld(e,t,r){return 0===e.charCodeAt(0)?48<=(r=r.charCodeAt(t+e.length))&&r<=57?"\\x00":"\\0":sd.get(e)||cd(e.charCodeAt(0))}function aN(e,t){return e.replace(96===t?od:39===t?ad:id,ld)}var _d=/[^\u0000-\u007F]/g;function ud(e,t){return e=aN(e,t),_d.test(e)?e.replace(_d,e=>cd(e.charCodeAt(0))):e}var dd=/["\u0000-\u001f\u2028\u2029\u0085]/g,pd=/['\u0000-\u001f\u2028\u2029\u0085]/g,fd=new Map(Object.entries({'"':""","'":"'"}));function md(e){return 0===e.charCodeAt(0)?"�":fd.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function gd(e,t){return e.replace(39===t?pd:dd,md)}function oN(e){var t,r=e.length;return 2<=r&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e}function sN(e){var t=e.charCodeAt(0);return 97<=t&&t<=122||e.includes("-")}var hd=[""," "];function yd(t){var r=hd[1];for(let e=hd.length;e<=t;e++)hd.push(hd[e-1]+r);return hd[t]}function vd(){return hd[1].length}function cN(t){var r,n,i,a,o,s=!1;function c(e){var t=Za(e);i=1{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>r.length,getLine:()=>a,getColumn:()=>i?n*vd():r.length-o,getText:()=>r,isAtStartOfLine:()=>i,hasTrailingComment:()=>s,hasTrailingWhitespace:()=>!!r.length&&oo(r.charCodeAt(r.length-1)),clear:e,writeKeyword:_,writeOperator:_,writeParameter:_,writeProperty:_,writePunctuation:_,writeSpace:_,writeStringLiteral:_,writeSymbol:(e,t)=>_(e),writeTrailingSemicolon:_,writeComment:function(e){e&&(s=!0),l(e)}}}function lN(r){let e=!1;function n(){e&&(r.writeTrailingSemicolon(";"),e=!1)}return{...r,writeTrailingSemicolon(){e=!0},writeLiteral(e){n(),r.writeLiteral(e)},writeStringLiteral(e){n(),r.writeStringLiteral(e)},writeSymbol(e,t){n(),r.writeSymbol(e,t)},writePunctuation(e){n(),r.writePunctuation(e)},writeKeyword(e){n(),r.writeKeyword(e)},writeOperator(e){n(),r.writeOperator(e)},writeParameter(e){n(),r.writeParameter(e)},writeSpace(e){n(),r.writeSpace(e)},writeProperty(e){n(),r.writeProperty(e)},writeComment(e){n(),r.writeComment(e)},writeLine(){n(),r.writeLine()},increaseIndent(){n(),r.increaseIndent()},decreaseIndent(){n(),r.decreaseIndent()}}}function bd(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function xd(e){return ze(bd(e))}function Sd(e,t,r){return t.moduleName||Cd(e,t.fileName,r&&r.fileName)}function kd(e,t){return e.getCanonicalFileName(P3(t,e.getCurrentDirectory()))}function Td(e,t,r){t=t.getExternalModuleFileFromDeclaration(r);if(t&&!t.isDeclarationFile){r=ew(r);if(!r||!k7(r)||T3(r.text)||kd(e,t.path).includes(kd(e,ma(e.getCommonSourceDirectory()))))return Sd(e,t)}}function Cd(t,e,r){var n=e=>t.getCanonicalFileName(e),i=pa(r?D3(r):t.getCommonSourceDirectory(),t.getCurrentDirectory(),n),e=qm(Ea(i,P3(e,t.getCurrentDirectory()),i,n,!1));return r?ga(e):e}function wd(e,t,r){var n=t.getCompilerOptions();let i;return(i=n.outDir?qm(Od(e,t,n.outDir)):qm(e))+r}function Nd(e,t){return Dd(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),e=>t.getCanonicalFileName(e))}function Dd(e,t,r,n,i){t=t.declarationDir||t.outDir,t=t?Ld(e,t,r,n,i):e,r=Ed(t);return qm(t)+r}function Ed(e){return N3(e,[".mjs",".mts"])?".d.mts":N3(e,[".cjs",".cts"])?".d.cts":N3(e,[".json"])?".d.json.ts":".d.ts"}function Pd(e){return N3(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:N3(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:N3(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Fd(e,t){var r;if(e.paths)return e.baseUrl??Y4.checkDefined(e.pathsBasePath||(null==(r=t.getCurrentDirectory)?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Ad(r,e,n){var i=r.getCompilerOptions();if(i.outFile){var a=bD(i);let t=i.emitDeclarationOnly||2===a||4===a;return NT(r.getSourceFiles(),e=>(t||!b9(e))&&Id(e,r,n))}return NT(void 0===e?r.getSourceFiles():[e],e=>Id(e,r,n))}function Id(e,t,r){var n=t.getCompilerOptions();if(n.noEmitForJsFiles&&C8(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(!r){if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(D5(e)){if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(!n.outFile){if(!n.outDir)return!1;if(n.rootDir||n.composite&&n.configFilePath){r=P3(sB(n,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),n=Ld(e.fileName,n.outDir,t.getCurrentDirectory(),r,t.getCanonicalFileName);if(0===F3(e.fileName,n,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}}}}return!0}function Od(e,t,r){return Ld(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),e=>t.getCanonicalFileName(e))}function Ld(e,t,r,n,i){let a=P3(e,r);e=0===i(a).indexOf(i(n));return E3(t,a=e?a.substring(n.length):a)}function jd(e,t,r,n,i,a,o){e.writeFile(r,n,i,e=>{t.add(mD(eT.Could_not_write_file_0_Colon_1,r,e))},a,o)}function Rd(e,t,r,n,i,a){try{n(e,t,r)}catch{!function e(t,r,n){t.length>ta(t)&&!n(t)&&(e(D3(t),r,n),r(t))}(D3(ua(e)),i,a),n(e,t,r)}}function Md(e,t){return io(ro(e),t)}function Bd(e,t){return io(e,t)}function _N(e){return bT(e.members,e=>tP(e)&&H7(e.body))}function uN(e){var t;if(e&&0186===e.kind||80!==e.kind&&166!==e.kind&&"quit")}function gN(e){if(!fN(e))return!1;for(;WE(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function zd(e){return"this"===e.escapedText}function qd(e,t){let r,n,i,a;return Uw(t)?177===(r=t).kind?i=t:178===t.kind?a=t:Y4.fail("Accessor has wrong kind"):G4(e,e=>{UC(e)&&CN(e)===CN(t)&&Ww(e.name)===Ww(t.name)&&(r?n=n||e:r=e,177===e.kind&&(i=i||e),178===e.kind)&&(a=a||e)}),{firstAccessor:r,secondAccessor:n,getAccessor:i,setAccessor:a}}function hN(e){var t;if((oT(e)||!rF(e))&&!aF(e))return(t=e.type)||!oT(e)?t:TC(e)?e.typeExpression&&e.typeExpression.type:uC(e)}function Ud(e){return e.type}function yN(e){return KF(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(oT(e)?Ms(e):void 0)}function vN(e){return FT(dC(e),e=>{return!ZF(t=e)||320===t.parent.kind&&(t.parent.tags.some(iw)||t.parent.tags.some(XF))?void 0:e.typeParameters;var t})}function bN(e){e=uN(e);return e&&hN(e)}function Vd(e,t,r,n){Wd(e,t,r.pos,n)}function Wd(e,t,r,n){n&&n.length&&r!==n[0].pos&&Bd(e,r)!==Bd(e,n[0].pos)&&t.writeLine()}function Hd(e,t,r,n){r!==n&&Bd(e,r)!==Bd(e,n)&&t.writeLine()}function Kd(t,r,n,i,a,o,s,c){if(i&&0>>23}function np(e){return ip(e)|rp(tp(e))}function ip(e){let t=f9(e)?LN(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function LN(e){let t=0;if(e)for(var r of e)t|=jN(r.kind);return t}function jN(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 ap(e){return 57===e||56===e}function op(e){return ap(e)||54===e}function sp(e){return 76===e||77===e||78===e}function cp(e){return pT(e)&&sp(e.operatorToken.kind)}function RN(e){return ap(e)||61===e}function MN(e){return pT(e)&&RN(e.operatorToken.kind)}function BN(e){return 64<=e&&e<=79}function lp(e){e=JN(e);return e&&!e.isImplements?e.class:void 0}function JN(e){if(qP(e)){if(EF(e.parent)&&qC(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(GF(e.parent)){e=pw(e.parent);if(e&&qC(e))return{class:e,isImplements:!1}}}}function zN(e,t){return pT(e)&&(t?64===e.operatorToken.kind:BN(e.operatorToken.kind))&&t7(e.left)}function _p(e){return zN(e.parent)&&e.parent.left===e}function up(e){return!!zN(e,!0)&&(210===(e=e.left.kind)||209===e)}function qN(e){return void 0!==lp(e)}function UN(e){return 80===e.kind||HN(e)}function VN(e){switch(e.kind){case 80:return e;case 166:for(;80!==(e=e.left).kind;);return e;case 211:for(;80!==(e=e.expression).kind;);return e}}function WN(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&WN(e.expression)||217===e.kind&&WN(e.expression)}function HN(e){return dT(e)&&uT(e.name)&&UN(e.expression)}function KN(e){if(dT(e)){var t=KN(e.expression);if(void 0!==t)return t+"."+g5(e.name)}else if(EP(e)){t=KN(e.expression);if(void 0!==t&&LC(e.argumentExpression))return t+"."+Ww(e.argumentExpression)}else{if(uT(e))return X3(e.escapedText);if(DF(e))return gg(e)}}function GN(e){return ru(e)&&"prototype"===G8(e)}function $N(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 XN(e){return!!e.parent&&(dT(e.parent)&&e.parent.name===e||EP(e.parent)&&e.parent.argumentExpression===e)}function QN(e){return WE(e.parent)&&e.parent.right===e||dT(e.parent)&&e.parent.name===e||MF(e.parent)&&e.parent.right===e}function YN(e){return pT(e)&&104===e.operatorToken.kind}function ZN(e){return YN(e.parent)&&e===e.parent.right}function dp(e){return 210===e.kind&&0===e.properties.length}function pp(e){return 209===e.kind&&0===e.elements.length}function fp(e){var t,r;if((t=e)&&0w3(t,e))}var mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function gp(e){let t="";var r=function(t){var r=[],n=t.length;for(let e=0;e>6|192),r.push(63&i|128)):i<65536?(r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)):i<131072?(r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)):Y4.assert(!1,"Unexpected code point")}return r}(e);let n=0;var i=r.length;let a,o,s,c;for(;n>2,o=(3&r[n])<<4|r[n+1]>>4,s=(15&r[n+1])<<2|r[n+2]>>6,c=63&r[n+2],n+1>=i?s=c=64:n+2>=i&&(c=64),t+=mp.charAt(a)+mp.charAt(o)+mp.charAt(s)+mp.charAt(c),n+=3;return t}function hp(e,t){return e&&e.base64encode?e.base64encode(t):gp(t)}function yp(e,t){if(e&&e.base64decode)return e.base64decode(t);var r=t.length,i=[];let n=0;for(;n>4&3,o=(15&o)<<4|s>>2&15,l=(3&s)<<6|63&c;0==o&&0!==s?i.push(a):0==l&&0!==c?i.push(a,o):i.push(a,o,l),n+=4}{var _=i;let r="",n=0;for(var u=_.length;nt;)if(!oo(r.text.charCodeAt(e)))return e}(e,t,r)??t,e)}function Vp(e,t,r,n){n=j3(r.text,e,!1,n);return ao(r,e,Math.min(t,n))}function Wp(e){var t=G3(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function Hp(e){return NT(e.declarations,Kp)}function Kp(e){return eF(e)&&void 0!==e.initializer}function Gp(e){return e.watch&&Si(e,"watch")}function $p(e){e.close()}function tD(e){return 33554432&e.flags?e.links.checkFlags:0}function rD(e,t=!1){return e.valueDeclaration?(t=W3(t&&e.declarations&&bT(e.declarations,nP)||32768&e.flags&&bT(e.declarations,rP)||e.valueDeclaration),e.parent&&32&e.parent.flags?t:-8&t):6&tD(e)?(1024&(t=e.links.checkFlags)?2:256&t?1:4)|(2048&t?256:0):4194304&e.flags?257:0}function Xp(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function nD(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function iD(e){return 1===Qp(e)}function aD(e){return 0!==Qp(e)}function Qp(e){var t=e["parent"];switch(null==t?void 0:t.kind){case 217:return Qp(t);case 225:case 224:var r=t["operator"];return 46===r||47===r?2:0;case 226:var{left:r,operatorToken:n}=t;return r===e&&BN(n.kind)?64===n.kind?1:2:0;case 211:return t.name!==e?0:Qp(t);case 303:r=Qp(t.parent);if(e===t.name){var i=r;switch(i){case 0:return 1;case 1:return 0;case 2:return 2;default:return Y4.assertNever(i)}return}else return r;case 304:return e===t.objectAssignmentInitializer?0:Qp(t.parent);case 209:return Qp(t);default:return 0}}function Yp(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if("object"==typeof e[r]){if(!Yp(e[r],t[r]))return!1}else if("function"!=typeof e[r]&&e[r]!==t[r])return!1;return!0}function Zp(e,t){e.forEach(t),e.clear()}function ef(n,i,e){let{onDeleteValue:a,onExistingValue:o}=e;n.forEach((e,t)=>{var r;null!=i&&i.has(t)?o&&o(e,null==(r=i.get)?void 0:r.call(i,t),t):(n.delete(t),a(e,t))})}function tf(r,e,t){ef(r,e,t);let n=t["createNewValue"];null!=e&&e.forEach((e,t)=>{r.has(t)||r.set(t,n(t,e))})}function rf(e){return!!(32&e.flags)&&!!(e=oD(e))&&TN(e,64)}function oD(e){return null==(e=e.declarations)?void 0:e.find(qC)}function sT(e){return 3899393&e.flags?e.objectFlags:0}function nf(e,t){return!!Pa(e,e=>!!t(e)||void 0)}function sD(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&lF(e.declarations[0])}function af({moduleSpecifier:e}){return qE(e)?e.text:K7(e)}function of(e){let r;return h9(e,e=>{H7(e)&&(r=e)},t=>{for(let e=t.length-1;0<=e;e--)if(H7(t[e])){r=t[e];break}}),r}function sf(e,t,r=!0){return!e.has(t)&&(e.set(t,r),!0)}function cf(e){return qC(e)||iF(e)||uP(e)}function cD(e){return 182<=e&&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 lD(e){return 211===e.kind||212===e.kind}function lf(e){return 211===e.kind?e.name:(Y4.assert(212===e.kind),e.argumentExpression)}function _f(e){return 275===e.kind||279===e.kind}function _D(e){for(;lD(e);)e=e.expression;return e}function uf(e,r){if(lD(e.parent)&&XN(e))return function e(t){if(211===t.kind){let e=r(t.name);if(void 0!==e)return e}else if(212===t.kind){if(!uT(t.argumentExpression)&&!k7(t.argumentExpression))return;{let e=r(t.argumentExpression);if(void 0!==e)return e}}if(lD(t.expression))return e(t.expression);if(uT(t.expression))return r(t.expression);return}(e.parent)}function df(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 354:case 238:e=e.expression;continue}return e}}function pf(e,t,r){this.pos=t,this.end=r,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}var ff,uD={getNodeConstructor:()=>pf,getTokenConstructor:()=>function(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0},getIdentifierConstructor:()=>function(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0},getPrivateIdentifierConstructor:()=>pf,getSourceFileConstructor:()=>pf,getSymbolConstructor:()=>function(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},getTypeConstructor:()=>function(e,t){this.flags=t,(Y4.isDebugging||Z4)&&(this.checker=e)},getSignatureConstructor:()=>function(e,t){this.flags=t,Y4.isDebugging&&(this.checker=e)},getSourceMapSourceConstructor:()=>function(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(e=>e)}},mf=[];function gf(e){mf.push(e),e(uD)}function hf(e){Object.assign(uD,e),G4(mf,e=>e(uD))}function yf(e,r){return e.replace(/{(\d+)}/g,(e,t)=>""+Y4.checkDefined(r[+t]))}function vf(e){ff=e}function bf(e){!ff&&e&&(ff=e())}function xf(e){return ff&&ff[e.key]||e.message}function dD(e,t,r,n,i,...a){l_(t,r,n=r+n>t.length?t.length-r:n);let o=xf(i);return{file:void 0,start:r,length:n,messageText:o=X4(a)?yf(o,a):o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function Sf(e,t){var r,n=[];for(r of e)n.push(function t(r,n){var i,a=n.fileName||"",o=n.text.length,s=(Y4.assertEqual(r.fileName,a),Y4.assertLessThanOrEqual(r.start,o),Y4.assertLessThanOrEqual(r.start+r.length,o),{file:n,start:r.start,length:r.length,messageText:r.messageText,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary});if(r.relatedInformation){s.relatedInformation=[];for(let e of r.relatedInformation)void 0===(i=e).file&&void 0!==i.start&&void 0!==i.length&&"string"==typeof i.fileName&&e.fileName===a?(Y4.assertLessThanOrEqual(e.start,o),Y4.assertLessThanOrEqual(e.start+e.length,o),s.relatedInformation.push(t(e,n))):s.relatedInformation.push(e)}return s}(r,t));return n}function pD(e,t,r,n,...i){l_(e.text,t,r);let a=xf(n);return{file:e,start:t,length:r,messageText:a=X4(i)?yf(a,i):a,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function fD(e,...t){let r=xf(e);return r=X4(t)?yf(r,t):r}function mD(e,...t){let r=xf(e);return{file:void 0,start:void 0,length:void 0,messageText:r=X4(t)?yf(r,t):r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function kf(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 gD(e,t,...r){let n=xf(t);return{messageText:n=X4(r)?yf(n,r):n,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function hD(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function Tf(e){return e.file?e.file.path:void 0}function yD(e,t){return Cf(e,t)||function(e,r){if(!e.relatedInformation&&!r.relatedInformation)return 0;if(e.relatedInformation&&r.relatedInformation)return l3(r.relatedInformation.length,e.relatedInformation.length)||G4(e.relatedInformation,(e,t)=>{return yD(e,r.relatedInformation[t])})||0;return e.relatedInformation?-1:1}(e,t)||0}function Cf(e,t){var r=Nf(e),n=Nf(t);return Se(Tf(e),Tf(t))||l3(e.start,t.start)||l3(e.length,t.length)||l3(r,n)||function(e,t){let r=Df(e),n=Df(t);"string"!=typeof r&&(r=r.messageText);"string"!=typeof n&&(n=n.messageText);let i="string"!=typeof e.messageText?e.messageText.next:void 0,a="string"!=typeof t.messageText?t.messageText.next:void 0,o=Se(r,n);if(o)return o;if(o=function(e,t){return void 0!==e||void 0!==t?void 0!==e?void 0!==t?function t(r,n){if(void 0===r&&void 0===n)return 0;if(void 0===r)return 1;if(void 0===n)return-1;let i=l3(n.length,r.length);if(i)return i;for(let e=0;e{e.externalModuleIndicator=Dv(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=Dv(e)};case 2:var r=[Dv];4!==e.jsx&&5!==e.jsx||r.push(Ff),r.push(Af);let t=h3(...r);return e=>{e.externalModuleIndicator=t(e)}}}var Of={target:{dependencies:["module"],computeValue:e=>{return(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:2<=Of.target.computeValue(e)?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(Of.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===Of.module.computeValue(e)||199===Of.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(Of.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:Of.esModuleInterop.computeValue(e)||4===Of.module.computeValue(e)||100===Of.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{var t=Of.moduleResolution.computeValue(e);if(Uf(t)){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=>{var t=Of.moduleResolution.computeValue(e);if(Uf(t)){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===Of.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!Of.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!Of.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?9<=Of.target.computeValue(e):e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>FD(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>FD(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>FD(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>FD(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>FD(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>FD(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>FD(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>FD(e,"useUnknownInCatchVariables")}},vD=Of.target.computeValue,bD=Of.module.computeValue,xD=Of.moduleResolution.computeValue,Lf=Of.moduleDetection.computeValue,SD=Of.isolatedModules.computeValue,kD=Of.esModuleInterop.computeValue,TD=Of.allowSyntheticDefaultImports.computeValue,jf=Of.resolvePackageJsonExports.computeValue,Rf=Of.resolvePackageJsonImports.computeValue,CD=Of.resolveJsonModule.computeValue,wD=Of.declaration.computeValue,ND=Of.preserveConstEnums.computeValue,Mf=Of.incremental.computeValue,Bf=Of.declarationMap.computeValue,Jf=Of.allowJs.computeValue,DD=Of.useDefineForClassFields.computeValue;function ED(e){return 5<=e&&e<=99}function PD(e){switch(bD(e)){case 0:case 4:case 3:return!1}return!0}function zf(e){return!1===e.allowUnreachableCode}function qf(e){return!1===e.allowUnusedLabels}function Uf(e){return 3<=e&&e<=99||100===e}function FD(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Vf(r){return j7(E4.type,(e,t)=>e===r?t:void 0)}function AD(e){return!1!==e.useDefineForClassFields&&9<=vD(e)}function Wf(e,t){return pl(t,e,I4)}function Hf(e,t){return pl(t,e,O4)}function Kf(e,t){return pl(t,e,L4)}function Gf(e,t){return t.strictFlag?FD(e,t.name):t.allowJsFlag?Jf(e):e[t.name]}function ID(e){e=e.jsx;return 2===e||4===e||5===e}function OD(e,t){t=null==t?void 0:t.pragmas.get("jsximportsource"),t=i3(t)?t[t.length-1]:t;return 4===e.jsx||5===e.jsx||e.jsxImportSource||t?(null==t?void 0:t.arguments.factory)||e.jsxImportSource||"react":void 0}function LD(e,t){return e?e+"/"+(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0}function $f(t){let r=!1;for(let e=0;er,getSymlinkedDirectories:()=>a,getSymlinkedDirectoriesByRealpath:()=>o,setSymlinkedFile:(e,t)=>(r=r||new Map).set(e,t),setSymlinkedDirectory:(e,t)=>{var r=pa(e,n,i);lg(r)||(r=ma(r),!1===t||null!=a&&a.has(r)||(o=o||n3()).add(t.realPath,e),(a=a||new Map).set(r,t))},setSymlinksFromResolutions(e,t,r){Y4.assert(!s),s=!0,e(e=>c(this,e.resolvedModule)),t(e=>c(this,e.resolvedTypeReferenceDirective)),r.forEach(e=>c(this,e.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s,setSymlinksFromResolution(e){c(this,e)},hasAnySymlinks:function(){return!(null==r||!r.size)||!!a&&!!j7(a,e=>!!e)}};function c(e,t){var r;t&&t.originalPath&&t.resolvedFileName&&({resolvedFileName:t,originalPath:r}=t,[t,r]=(e.setSymlinkedFile(pa(r,n,i),t),function(e,t,r,n){let i=aa(P3(e,r)),a=aa(P3(t,r)),o=!1;for(;2<=i.length&&2<=a.length&&!Qf(i[i.length-2],n)&&!Qf(a[a.length-2],n)&&n(i[i.length-1])===n(a[a.length-1]);)i.pop(),a.pop(),o=!0;return o?[oa(i),oa(a)]:void 0}(t,r,n,i)||H4),t)&&r&&e.setSymlinkedDirectory(r,{real:ma(t),realPath:ma(pa(t,n,i))})}}function Qf(e,t){return void 0!==e&&("node_modules"===t(e)||f3(e,"@"))}function Yf(e,t,r){e=Ve(e,t,r);return void 0!==e&&Hi((t=e).charCodeAt(0))?t.slice(1):void 0}var Zf=/[^\w\s/]/g;function em(e){return e.replace(Zf,tm)}function tm(e){return"\\"+e}var rm=[42,63],nm=["node_modules","bower_components","jspm_packages"],im=`(?!(${nm.join("|")})(/|$))`,am={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${im}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>fm(e,am.singleAsteriskRegexFragment)},om={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${im}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>fm(e,om.singleAsteriskRegexFragment)},sm={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>fm(e,sm.singleAsteriskRegexFragment)},cm={files:am,directories:om,exclude:sm};function lm(e,t,r){e=_m(e,t,r);if(e&&e.length)return`^(${e.map(e=>`(${e})`).join("|")})`+("exclude"===r?"($|/)":"$")}function _m(e,t,r){if(void 0!==e&&0!==e.length)return FT(e,e=>e&&pm(e,t,r,cm[r]))}function um(e){return!/[.*?]/.test(e)}function dm(e,t,r){e=e&&pm(e,t,r,cm[r]);return e&&`^(${e})`+("exclude"===r?"($|/)":"$")}function pm(t,r,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:a,replaceWildcardCharacter:o}=cm[n]){let s="",c=!1;t=_a(t,r),r=GT(t);if("exclude"===n||"**"!==r){t[0]=fa(t[0]),um(r)&&t.push("**","*");let e=0;for(var l of t){if("**"===l)s+=a;else if("directories"===n&&(s+="(",e++),c&&(s+=qi),"exclude"!==n){let e="";42===l.charCodeAt(0)?(e+="([^./]"+i+")?",l=l.substr(1)):63===l.charCodeAt(0)&&(e+="[^./]",l=l.substr(1)),(e+=l.replace(Zf,o))!==l&&(s+=im),s+=e}else s+=l.replace(Zf,o);c=!0}for(;0`^${e}$`),includeFilePattern:lm(r,i,"files"),includeDirectoryPattern:lm(r,i,"directories"),excludePattern:lm(t,i,"exclude"),basePaths:function(r,e,n){var i=[r];if(e){var t,a=[];for(t of e){var o=Gi(t)?t:ua(E3(r,t));a.push(function(e){var t=u(e,rm);if(t<0)return C3(e)?fa(D3(e)):e;return e.substring(0,e.lastIndexOf(qi,t))}(o))}a.sort(ke(!n));for(let t of a)vT(i,e=>!ka(e,t,r,!n))&&i.push(t)}return i}(e,r,n)}}function gm(e,t){return new RegExp(e,t?"":"i")}function hm(e,l,t,r,n,i,a,_,u){e=ua(e),i=ua(i);var o,e=mm(e,t,r,n,i);let d=e.includeFilePatterns&&e.includeFilePatterns.map(e=>gm(e,n)),p=e.includeDirectoryPattern&&gm(e.includeDirectoryPattern,n),f=e.excludePattern&&gm(e.excludePattern,n),m=d?d.map(()=>[]):[[]],g=new Map,h=ze(n);for(o of e.basePaths)!function r(n,i,a){let e=h(u(i));if(g.has(e))return;g.set(e,!0);let{files:t,directories:o}=_(n);for(var s of E(t,Se)){let t=E3(n,s),r=E3(i,s);if((!l||N3(t,l))&&(!f||!f.test(r)))if(d){let e=ST(d,e=>e.test(r));-1!==e&&m[e].push(t)}else m[0].push(t)}if(void 0!==a&&0===--a)return;for(var c of E(o,Se)){let e=E3(n,c),t=E3(i,c);p&&!p.test(t)||f&&f.test(t)||r(e,t,a)}}(o,E3(i,o),a);return PT(m)}function ym(e,t){return t||vm(e)||3}function vm(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 bm=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],xm=PT(bm),Sm=[...bm,[".json"]],km=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Tm=[[".js",".jsx"],[".mjs"],[".cjs"]],Cm=PT(Tm),wm=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Nm=[...wm,[".json"]],Dm=[".d.ts",".d.cts",".d.mts"],Em=[".ts",".cts",".mts",".tsx"],Pm=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function Fm(e,t){let r=e&&Jf(e);if(!t||0===t.length)return r?wm:bm;e=r?wm:bm;let n=PT(e);return[...e,...AT(t,e=>{return 7===e.scriptKind||r&&(1===(t=e.scriptKind)||2===t)&&!n.includes(e.extension)?[e.extension]:void 0;var t})]}function Am(e,t){return e&&CD(e)?t===wm?Nm:t===bm?Sm:[...t,[".json"]]:t}function Im(t){return X4(Cm,e=>w3(t,e))}function Om(t){return X4(xm,e=>w3(t,e))}var Lm=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(Lm||{});function jm({imports:e},t=h3(Im,Om)){return yT(e,({text:e})=>T3(e)&&!N3(e,Pm)?t(e):void 0)||!1}function Rm(e,r,n,i){var t=xD(n);let a=3<=t&&t<=99;return"js"===e||99===r&&a?eL(n)&&2!==o()?3:2:"minimal"===e?0:"index"===e?1:eL(n)?o():i&&jm(i)?2:0;function o(){let e=!1;var t;for(t of null!=i&&i.imports.length?i.imports:i&&C8(i)?function(e){let t=0,r;for(var n of e.statements){if(3e.initializer)):$P(n)&&E8(n.expression,!0)?r=Q4(r,n.expression):t++}return r||H4}(i).map(e=>e.arguments[0]):H4)if(T3(t.text)&&!(a&&1===r&&99===pJ(i,t,n)||N3(t.text,Pm))){if(Om(t.text))return 3;Im(t.text)&&(e=!0)}return e?2:0}}function Mm(e,t,r){var n;if(e)for(n of PT(Am(t,Fm(t,r))))if(w3(e,n))return!0;return!1}function Bm(e){e=e.match(/\//g);return e?e.length:0}function Jm(e,t){return l3(Bm(e),Bm(t))}var zm=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function qm(e){for(var t of zm){t=Um(e,t);if(void 0!==t)return t}return e}function Um(e,t){return w3(e,t)?jD(e,t):void 0}function jD(e,t){return e.substring(0,e.length-t.length)}function Vm(e,t){return ha(e,t,zm,!1)}function Wm(e){var t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function Hm(e){return AT(J(e),e=>Wm(e))}function Km(e){return!(0<=e)}function Gm(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||f3(e,".d.")&&u3(e,".ts")}function RD(e){return Gm(e)||".json"===e}function $m(e){var t=MD(e);return void 0!==t?t:Y4.fail(`File ${e} has unknown extension.`)}function Xm(e){return void 0!==MD(e)}function MD(t){return bT(zm,e=>w3(t,e))}function BD(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var Qm={files:H4,directories:H4};function Ym(e,t){var r,n=[];for(r of e){if(r===t)return t;a3(r)||n.push(r)}return p3(n,e=>e,t)}function Zm(e,t){t=e.indexOf(t);return Y4.assert(-1!==t),e.slice(t)}function JD(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),Y4.assert(e.relatedInformation!==H4,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function zD(t,r){Y4.assert(0!==t.length);let n=r(t[0]),i=n;for(let e=1;ei&&(i=a)}return{min:n,max:i}}function qD(e){return{pos:Ml(e),end:e.end}}function UD(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,j3(e.text,t.end)+1)}}function VD(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||t.noCheck||r.isSourceOfProjectReferenceRedirect(e.fileName)||!WD(e,t)}function WD(e,t){var r;return(!e.checkJsDirective||!1!==e.checkJsDirective.enabled)&&(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind||(r=(1===e.scriptKind||2===e.scriptKind)&&BD(e,t),U7(e,t.checkJs))||r||7===e.scriptKind)}function eg(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&X(e,t,eg)}function HD(r){let n;switch(r.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:var t=r.length-1;let e=0;for(;48===r.charCodeAt(e);)e++;return r.slice(e,t)||"0"}var i=r.length-1,e=(i-2)*n,a=new Uint16Array((e>>>4)+(15&e?1:0));for(let e=i-1,t=0;2<=e;e--,t+=n){var o=t>>>4,s=r.charCodeAt(e),s=(s<=57?s-48:10+s-(s<=70?65:97))<<(15&t),s=(a[o]|=s,s>>>16);s&&(a[1+o]|=s)}let c="",l=a.length-1,_=!0;for(;_;){let t=0;_=!1;for(let e=l;0<=e;e--){var u=t<<16|a[e],d=u/10|0;a[e]=d,t=u-10*d,d&&!_&&(l=e,_=!0)}c=t+c}return c}function KD({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function tg(e){if($D(e,!1))return GD(e)}function GD(e){var t=e.startsWith("-");return{negative:t,base10Value:HD(`${t?e.slice(1):e}n`)}}function $D(e,t){if(""===e)return!1;var r=M3(99,!1);let n=!0,i=(r.setOnError(()=>n=!1),r.setText(e+"n"),r.scan());var a=41===i,o=(a&&(i=r.scan()),r.getTokenFlags());return n&&10===i&&r.getTokenEnd()===e.length+1&&!(512&o)&&(!t||e===KD({negative:a,base10Value:HD(r.getTokenValue())}))}function XD(e){return!!(33554432&e.flags)||v8(e)||function(e){if(80!==e.kind)return!1;e=tT(e.parent,e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return 119===(null==e?void 0:e.token)||264===(null==e?void 0:e.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(TN(e.parent,64))return!0;var t=e.parent.parent.kind;return 264===t||187===t}(e)||!(h8(e)||uT(e=e)&&AF(e.parent)&&e.parent.name===e)}function QD(e){return sP(e)&&uT(e.typeName)}function YD(r,n=c3){if(!(r.length<2)){var i=r[0];for(let e=1,t=r.length;et.includes(e))}function _g(e){if(e.parent){switch(e.kind){case 168:var t=e["parent"];return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:t=e["parent"];return m9(t)?t.modifiers:void 0;case 298:return e.parent.heritageClauses}var r=e["parent"];if(nl(e))return HF(e.parent)?void 0:e.parent.tags;switch(r.kind){case 187:case 264:return bc(e)?r.members:void 0;case 192:case 193:return r.types;case 189:case 209:case 355:case 275:case 279:return r.elements;case 210:case 292:return r.properties;case 213:case 214:return KC(e)?r.typeArguments:r.expression===e?void 0:r.arguments;case 284:case 288:return Zc(e)?r.children:void 0;case 286:case 285:return KC(e)?r.typeArguments:void 0;case 241:case 296:case 297:case 268:return r.statements;case 269:return r.clauses;case 263:case 231:return zC(e)?r.members:void 0;case 266:return OF(e)?r.members:void 0;case 307:return r.statements}}}function nE(e){if(!e.typeParameters){if(X4(e.parameters,e=>!hN(e)))return!0;if(219!==e.kind){e=UT(e.parameters);if(!e||!pN(e))return!0}}return!1}function iE(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function aE(e){return 260===e.kind&&299===e.parent.kind}function oE(e){return 218===e.kind||219===e.kind}function ug(e){return e.replace(/\$/gm,()=>"\\$")}function sE(e){return(+e).toString()===e}function cE(e,t,r,n,i){i=i&&"new"===e;return!i&&R3(e,t)?cT.createIdentifier(e):!n&&!i&&sE(e)&&0<=+e?cT.createNumericLiteral(+e):cT.createStringLiteral(e,!!r)}function lE(e){return!!(262144&e.flags&&e.isThisType)}function dg(e){let t=0,r=0,n=0;var i;let a=0,o=0,s=0;for(;0<=o;)switch(a=o,o=e.indexOf("/",a+1),s){case 0:e.indexOf(fO,a)===a&&(t=a,r=o,s=1);break;case 1:case 2:s=1===s&&"@"===e.charAt(a+1)?2:(n=o,3);break;case 3:s=e.indexOf(fO,a)===a?1:3}return i=a,1>s.value,e,t,r);case 50:return EE(o.value>>>s.value,e,t,r);case 48:return EE(o.value<=i.body.pos&&e.valueDeclaration.end<=i.body.end&&2<=n){let e=F(i);return void 0===e&&(e=G4(i.parameters,function(e){return a(e.name)||!!e.initializer&&a(e.initializer)})||!1,P(i,e)),!e}return;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 wN(e)?!j:a(e.name);default:return Hs(e)||vC(e)?n<7:wP(e)&&e.dotDotDotToken&&TP(e.parent)?n<4:!KC(e)&&h9(e,a)||!1}}}(_,t,u)?1&_.flags&&(e=169===u.kind||!!(16&u.flags)||u===t.type&&!!tT(_.valueDeclaration,GE)):e=!1)):194===t.kind&&(e=u===t.trueType),e)break;_=void 0}switch(m=m||function(e,t){if(219!==e.kind&&218!==e.kind)return _P(e)||(MC(e)||172===e.kind&&!CN(e))&&(!t||t!==e.name);if(t&&t===e.name)return!1;if(e.asteriskToken||TN(e,1024))return!0;return!o8(e)}(t,u),t.kind){case 307:if(!N5(t))break;case 267:var y=(null==(o=N(t))?void 0:o.exports)||R;if(307===t.kind||sF(t)&&33554432&t.flags&&!n5(t)){if(_=y.get("default")){var v=fp(_);if(v&&_.flags&r&&v.escapedName===h)break e;_=void 0}v=y.get(h);if(v&&2097152===v.flags&&(F7(v,281)||F7(v,280)))break}if("default"!==h&&(_=E(y,h,2623475&r))){if(!LF(t)||!t.commonJsModuleIndicator||null!=(s=_.declarations)&&s.some(iw))break e;_=void 0}break;case 266:if(_=E((null==(c=N(t))?void 0:c.exports)||R,h,8&r)){!n||!SD(k)||33554432&t.flags||iT(t)===iT(_.valueDeclaration)||w(l,eT.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,X3(h),L,X3(N(t).escapedName)+"."+X3(h));break e}break;case 172:CN(t)||(y=AE(t.parent))&&y.locals&&E(y.locals,h,111551&r)&&(Y4.assertNode(t,QE),p=t);break;case 263:case 231:case 264:if(_=E(N(t).members||R,h,788968&r)){if(!function(e,t){if(e.declarations)for(var r of e.declarations)if(168===r.kind)if((ZF(r.parent)?fw(r.parent):r.parent)===t)return!ZF(r.parent)||!bT(r.parent.parent.tags,iw);return}(_,t)){_=void 0;break}if(u&&CN(u))return void(n&&w(l,eT.Static_members_cannot_reference_class_type_parameters));break e}if(JP(t)&&32&r){var b=t.name;if(b&&h===b.escapedText){_=t.symbol;break e}}break;case 233:if(u===t.expression&&96===t.parent.token){b=t.parent.parent;if(qC(b)&&(_=E(N(b).members,h,788968&r)))return void(n&&w(l,eT.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 167:if((qC(g=t.parent.parent)||264===g.kind)&&(_=E(N(g).members,h,788968&r)))return void(n&&w(l,eT.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 219:if(2<=vD(k))break;case 174:case 176:case 177:case 178:case 262:if(3&r&&"arguments"===h){_=C;break e}break;case 218:if(3&r&&"arguments"===h){_=C;break e}if(16&r){var x=t.name;if(x&&h===x.escapedText){_=t.symbol;break e}}break;case 170:(t=t.parent&&169===t.parent.kind?t.parent:t).parent&&(zC(t.parent)||263===t.parent.kind)&&(t=t.parent);break;case 346:case 338:case 340:case 351:x=mw(t);x&&(t=x.parent);break;case 169:u&&(u===t.initializer||u===t.name&&GC(u))&&(f=f||t);break;case 208:u&&(u===t.initializer||u===t.name&&GC(u))&&Zw(t)&&!f&&(f=t);break;case 195:if(262144&r){var S=t.typeParameter.name;if(S&&h===S.escapedText){_=t.typeParameter.symbol;break e}}break;case 281:u&&u===t.propertyName&&t.parent.parent.moduleSpecifier&&(t=t.parent.parent.parent)}!function(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 1;default:return}}(t,u)||(d=t),t=ZF(u=t)?_w(t)||t.parent:(QF(t)||U1(t))&&dw(t)||t.parent}!i||!_||d&&_===d.symbol||(_.isReferenced|=r);if(!_){if(u&&(Y4.assertNode(u,LF),u.commonJsModuleIndicator)&&"exports"===h&&r&u.symbol.flags)return u.symbol;a||(_=E(D,h,r))}if(!_&&l&&oT(l)&&l.parent&&E8(l.parent,!1))return T;if(n){if(p&&A(l,h,p,_))return;_?O(l,_,r,u,f,m):I(l,e,r,n)}return _}}function vg(e,t=!0){switch(Y4.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?zE(e.operand)||t&&a0(e.operand):40===e.operator&&zE(e.operand);default:return!1}}function bg(e){for(;217===e.kind;)e=e.expression;return e}function OE(e){switch(Y4.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:return!0;default:return!1}}function xg(){let t,r,n,i,a;return{createBaseSourceFileNode:function(e){return new(a=a||uD.getSourceFileConstructor())(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n=n||uD.getIdentifierConstructor())(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(i=i||uD.getPrivateIdentifierConstructor())(e,-1,-1)},createBaseTokenNode:function(e){return new(r=r||uD.getTokenConstructor())(e,-1,-1)},createBaseNode:function(e){return new(t=t||uD.getNodeConstructor())(e,-1,-1)}}}function Sg(i){let r,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(t){let e=(r=r||new Map).get(t);e||(e=e=>o(t,e),r.set(t,e));return e},getParenthesizeRightSideOfBinaryForOperator:function(t){let e=(n=n||new Map).get(t);e||(e=e=>s(t,void 0,e),n.set(t,e));return e},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:function(e){return o9(e)?i.createParenthesizedExpression(e):e},parenthesizeConditionOfConditionalExpression:function(e){var t=Yu(227,58),r=Ks(e),r=$u(r);return 1===l3(r,t)?e:i.createParenthesizedExpression(e)},parenthesizeBranchOfConditionalExpression:function(e){var t=Ks(e);return o9(t)?i.createParenthesizedExpression(e):e},parenthesizeExpressionOfExportDefault:function(e){let t=Ks(e),r=o9(t);if(!r)switch(df(t,!1).kind){case 231:case 218:r=!0}return r?i.createParenthesizedExpression(e):e},parenthesizeExpressionOfNew:function(e){var t=df(e,!0);switch(t.kind){case 213:return i.createParenthesizedExpression(e);case 214:return t.arguments?e:i.createParenthesizedExpression(e)}return l(e)},parenthesizeLeftSideOfAccess:l,parenthesizeOperandOfPostfixUnary:function(e){return t7(e)?e:fT(i.createParenthesizedExpression(e),e)},parenthesizeOperandOfPrefixUnary:function(e){return Ic(e)?e:fT(i.createParenthesizedExpression(e),e)},parenthesizeExpressionsOfCommaDelimitedList:function(e){var t=ET(e,_);return fT(i.createNodeArray(t,e.hasTrailingComma),e)},parenthesizeExpressionForDisallowedComma:_,parenthesizeExpressionOfExpressionStatement:function(e){var t=Ks(e);if(PP(t)){var r=t.expression,n=Ks(r).kind;if(218===n||219===n)return n=i.updateCallExpression(t,fT(i.createParenthesizedExpression(r),r),t.typeArguments,t.arguments),i.restoreOuterExpressions(e,n,8)}r=df(t,!1).kind;return 210!==r&&218!==r?e:fT(i.createParenthesizedExpression(e),e)},parenthesizeConciseBodyOfArrowFunction:function(e){return KP(e)||!o9(e)&&210!==df(e,!1).kind?e:fT(i.createParenthesizedExpression(e),e)},parenthesizeCheckTypeOfConditionalType:t,parenthesizeExtendsTypeOfConditionalType:function(e){if(194===e.kind)return i.createParenthesizedType(e);return e},parenthesizeConstituentTypesOfUnionType:function(e){return i.createNodeArray(ET(e,u))},parenthesizeConstituentTypeOfUnionType:u,parenthesizeConstituentTypesOfIntersectionType:function(e){return i.createNodeArray(ET(e,d))},parenthesizeConstituentTypeOfIntersectionType:d,parenthesizeOperandOfTypeOperator:p,parenthesizeOperandOfReadonlyTypeOperator:function(e){if(198===e.kind)return i.createParenthesizedType(e);return p(e)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:function(e){return i.createNodeArray(ET(e,m))},parenthesizeElementTypeOfTupleType:m,parenthesizeTypeOfOptionalType:function(e){return g(e)?i.createParenthesizedType(e):f(e)},parenthesizeTypeArguments:function(e){if(X4(e))return i.createNodeArray(ET(e,y))},parenthesizeLeadingTypeArgument:h};function c(e){var t;return rc((e=Ks(e)).kind)?e.kind:226===e.kind&&40===e.operatorToken.kind?void 0!==e.cachedLiteralKind?e.cachedLiteralKind:(t=rc(t=c(e.left))&&t===c(e.right)?t:0,e.cachedLiteralKind=t):0}function a(e,t,r,n){return 217!==Ks(t).kind&&function(e,t,r,n){var i=Yu(226,e),a=Gu(226,e),o=Ks(t);if(!r&&219===t.kind&&3Ti,getParenthesizeRightSideOfBinaryForOperator:e=>Ti,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Ti,parenthesizeConditionOfConditionalExpression:Ti,parenthesizeBranchOfConditionalExpression:Ti,parenthesizeExpressionOfExportDefault:Ti,parenthesizeExpressionOfNew:e=>s3(e,t7),parenthesizeLeftSideOfAccess:e=>s3(e,t7),parenthesizeOperandOfPostfixUnary:e=>s3(e,t7),parenthesizeOperandOfPrefixUnary:e=>s3(e,Ic),parenthesizeExpressionsOfCommaDelimitedList:e=>s3(e,tc),parenthesizeExpressionForDisallowedComma:Ti,parenthesizeExpressionOfExpressionStatement:Ti,parenthesizeConciseBodyOfArrowFunction:Ti,parenthesizeCheckTypeOfConditionalType:Ti,parenthesizeExtendsTypeOfConditionalType:Ti,parenthesizeConstituentTypesOfUnionType:e=>s3(e,tc),parenthesizeConstituentTypeOfUnionType:Ti,parenthesizeConstituentTypesOfIntersectionType:e=>s3(e,tc),parenthesizeConstituentTypeOfIntersectionType:Ti,parenthesizeOperandOfTypeOperator:Ti,parenthesizeOperandOfReadonlyTypeOperator:Ti,parenthesizeNonArrayTypeOfPostfixType:Ti,parenthesizeElementTypesOfTupleType:e=>s3(e,tc),parenthesizeElementTypeOfTupleType:Ti,parenthesizeTypeOfOptionalType:Ti,parenthesizeTypeArguments:e=>e&&s3(e,tc),parenthesizeLeadingTypeArgument:Ti};function Tg(n){return{convertToFunctionBlock:function(e,t){if(KP(e))return e;var r=n.createReturnStatement(e),r=(fT(r,e),n.createBlock([r],t));return fT(r,e),r},convertToFunctionExpression:function(e){if(!e.body)return Y4.fail("Cannot convert a FunctionDeclaration without a body");var t=n.createFunctionExpression(null==(t=nC(e))?void 0:t.filter(e=>!S0(e)&&!k0(e)),e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);lT(t,e),fT(t,e),Zg(e)&&eh(t,!0);return t},convertToClassExpression:function(e){var t=n.createClassExpression(null==(t=e.modifiers)?void 0:t.filter(e=>!S0(e)&&!k0(e)),e.name,e.typeParameters,e.heritageClauses,e.members);lT(t,e),fT(t,e),Zg(e)&&eh(t,!0);return t},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:r,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function t(e){var t;return wP(e)?e.dotDotDotToken?(Y4.assertNode(e.name,uT),lT(fT(n.createSpreadElement(e.name),e),e)):(t=s(e.name),e.initializer?lT(fT(n.createAssignment(t,e.initializer),e),e):t):s3(e,nT)}function r(e){var t;return wP(e)?e.dotDotDotToken?(Y4.assertNode(e.name,uT),lT(fT(n.createSpreadAssignment(e.name),e),e)):e.propertyName?(t=s(e.name),lT(fT(n.createPropertyAssignment(e.propertyName,e.initializer?n.createAssignment(t,e.initializer):t),e),e)):(Y4.assertNode(e.name,uT),lT(fT(n.createShorthandPropertyAssignment(e.name,e.initializer),e),e)):s3(e,HC)}function i(e){switch(e.kind){case 207:case 209:return o(e);case 206:case 210:return a(e)}}function a(e){return TP(e)?lT(fT(n.createObjectLiteralExpression($4(e.elements,r)),e),e):s3(e,DP)}function o(e){return CP(e)?lT(fT(n.createArrayLiteralExpression($4(e.elements,t)),e),e):s3(e,NP)}function s(e){return GC(e)?i(e):s3(e,nT)}}var Cg,wg={convertToFunctionBlock:de,convertToFunctionExpression:de,convertToClassExpression:de,convertToArrayAssignmentElement:de,convertToObjectAssignmentElement:de,convertToAssignmentPattern:de,convertToObjectAssignmentPattern:de,convertToArrayAssignmentPattern:de,convertToAssignmentElementTarget:de},Ng=0,Dg=(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))(Dg||{}),Eg=[];function Pg(e){Eg.push(e)}function Fg(e,s){let c=8&e?Ti:lT,l=Ci(()=>1&e?kg:Sg(_)),j=Ci(()=>2&e?wg:Tg(_)),t=wi(r=>(e,t)=>Ot(e,r,t)),r=wi(t=>e=>At(t,e)),R=wi(t=>e=>It(e,t)),M=wi(e=>()=>u(e)),B=wi(t=>e=>sn(t,e)),J=wi(n=>(e,t)=>{return r=n,t=t,(e=e).type!==t?L(sn(r,t),e):e;var r}),z=wi(r=>(e,t)=>on(r,e,t)),q=wi(n=>(e,t)=>{return r=n,t=t,(e=e).type!==t?L(on(r,t,e.postfix),e):e;var r}),n=wi(r=>(e,t)=>wn(r,e,t)),i=wi(n=>(e,t,r)=>Nn(n,e,t,r)),a=wi(n=>(e,t,r)=>Dn(n,e,t,r)),o=wi(i=>(e,t,r,n)=>En(i,e,t,r,n)),_={get parenthesizer(){return l()},get converters(){return j()},baseFactory:s,flags:e,createNodeArray:p,createNumericLiteral:U,createBigIntLiteral:V,createStringLiteral:m,createStringLiteralFromNode:function(e){var t=W(Kw(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:H,createLiteralLikeNode:function(e,t){switch(e){case 9:return U(t,0);case 10:return V(t);case 11:return m(t,void 0);case 12:return Jn(t,!1);case 13:return Jn(t,!0);case 14:return H(t);case 15:return b(e,t,void 0,0)}},createIdentifier:g,createTempVariable:$,createLoopVariable:function(e){let t=2;e&&(t|=8);return G("",t,void 0,void 0)},createUniqueName:function(e,t=0,r,n){return Y4.assert(!(7&t),"Argument out of range: flags"),Y4.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),G(e,3|t,r,n)},getGeneratedNameForNode:X,createPrivateIdentifier:function(e){f3(e,"#")||Y4.fail("First character of private identifier must be #: "+e);return Q($3(e))},createUniquePrivateName:function(e,t,r){e&&!f3(e,"#")&&Y4.fail("First character of private identifier must be #: "+e);var n=8|(e?3:1);return Y(e??"",n,t,r)},getGeneratedPrivateNameForNode:function(e,t,r){var n=Us(e)?hv(!0,t,e,r,rT):"#generated@"+oj(e),i=t||r?16:0,n=Y(n,4|i,t,r);return n.original=e,n},createToken:h,createSuper:function(){return h(108)},createThis:ee,createNull:te,createTrue:re,createFalse:ne,createModifier:ie,createModifiersFromModifierFlags:ae,createQualifiedName:oe,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?L(oe(t,r),e):e},createComputedPropertyName:se,updateComputedPropertyName:function(e,t){return e.expression!==t?L(se(t),e):e},createTypeParameterDeclaration:ce,updateTypeParameterDeclaration:le,createParameterDeclaration:_e,updateParameterDeclaration:ue,createDecorator:de,updateDecorator:function(e,t){return e.expression!==t?L(de(t),e):e},createPropertySignature:pe,updatePropertySignature:fe,createPropertyDeclaration:me,updatePropertyDeclaration:ge,createMethodSignature:he,updateMethodSignature:ye,createMethodDeclaration:ve,updateMethodDeclaration:be,createConstructorDeclaration:Se,updateConstructorDeclaration:ke,createGetAccessorDeclaration:Te,updateGetAccessorDeclaration:Ce,createSetAccessorDeclaration:we,updateSetAccessorDeclaration:Ne,createCallSignature:De,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?f(De(t,r,n),e):e},createConstructSignature:Ee,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?f(Ee(t,r,n),e):e},createIndexSignature:Pe,updateIndexSignature:Fe,createClassStaticBlockDeclaration:xe,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return L(e,t)}(xe(t),e):e},createTemplateLiteralTypeSpan:Ae,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?L(Ae(t,r),e):e},createKeywordTypeNode:h,createTypePredicateNode:Ie,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?L(Ie(t,r,n),e):e},createTypeReferenceNode:Oe,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?L(Oe(t,r),e):e},createFunctionTypeNode:Le,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers);return f(e,t)}(Le(t,r,n),e):e},createConstructorTypeNode:je,updateConstructorTypeNode:function(...e){return 5===e.length?Me(...e):4===e.length?function(e,t,r,n){return Me(e,e.modifiers,t,r,n)}(...e):Y4.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Be,updateTypeQueryNode:function(e,t,r){return e.exprName!==t||e.typeArguments!==r?L(Be(t,r),e):e},createTypeLiteralNode:Je,updateTypeLiteralNode:function(e,t){return e.members!==t?L(Je(t),e):e},createArrayTypeNode:ze,updateArrayTypeNode:function(e,t){return e.elementType!==t?L(ze(t),e):e},createTupleTypeNode:qe,updateTupleTypeNode:function(e,t){return e.elements!==t?L(qe(t),e):e},createNamedTupleMember:Ue,updateNamedTupleMember:function(e,t,r,n,i){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?L(Ue(t,r,n,i),e):e},createOptionalTypeNode:Ve,updateOptionalTypeNode:function(e,t){return e.type!==t?L(Ve(t),e):e},createRestTypeNode:We,updateRestTypeNode:function(e,t){return e.type!==t?L(We(t),e):e},createUnionTypeNode:function(e){return He(192,e,l().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Ke(e,t,l().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return He(193,e,l().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Ke(e,t,l().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Ge,updateConditionalTypeNode:function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?L(Ge(t,r,n,i),e):e},createInferTypeNode:$e,updateInferTypeNode:function(e,t){return e.typeParameter!==t?L($e(t),e):e},createImportTypeNode:Qe,updateImportTypeNode:function(e,t,r,n,i,a=e.isTypeOf){return e.argument!==t||e.attributes!==r||e.qualifier!==n||e.typeArguments!==i||e.isTypeOf!==a?L(Qe(t,r,n,i,a),e):e},createParenthesizedType:Ye,updateParenthesizedType:function(e,t){return e.type!==t?L(Ye(t),e):e},createThisTypeNode:function(){var e=u(197);return e.transformFlags=1,e},createTypeOperatorNode:Ze,updateTypeOperatorNode:function(e,t){return e.type!==t?L(Ze(e.operator,t),e):e},createIndexedAccessTypeNode:et,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?L(et(t,r),e):e},createMappedTypeNode:tt,updateMappedTypeNode:function(e,t,r,n,i,a,o){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a||e.members!==o?L(tt(t,r,n,i,a,o),e):e},createLiteralTypeNode:rt,updateLiteralTypeNode:function(e,t){return e.literal!==t?L(rt(t),e):e},createTemplateLiteralType:Xe,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?L(Xe(t,r),e):e},createObjectBindingPattern:nt,updateObjectBindingPattern:function(e,t){return e.elements!==t?L(nt(t),e):e},createArrayBindingPattern:it,updateArrayBindingPattern:function(e,t){return e.elements!==t?L(it(t),e):e},createBindingElement:at,updateBindingElement:function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?L(at(t,r,n,i),e):e},createArrayLiteralExpression:ot,updateArrayLiteralExpression:function(e,t){return e.elements!==t?L(ot(t,e.multiLine),e):e},createObjectLiteralExpression:st,updateObjectLiteralExpression:function(e,t){return e.properties!==t?L(st(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>_T(y(e,t),262144):y,updatePropertyAccessExpression:function(e,t,r){if(Vs(e))return _t(e,t,e.questionDotToken,s3(r,uT));return e.expression!==t||e.name!==r?L(y(t,r),e):e},createPropertyAccessChain:4&e?(e,t,r)=>_T(lt(e,t,r),262144):lt,updatePropertyAccessChain:_t,createElementAccessExpression:dt,updateElementAccessExpression:function(e,t,r){if(Ws(e))return ft(e,t,e.questionDotToken,r);return e.expression!==t||e.argumentExpression!==r?L(dt(t,r),e):e},createElementAccessChain:pt,updateElementAccessChain:ft,createCallExpression:v,updateCallExpression:function(e,t,r,n){if(yC(e))return ht(e,t,e.questionDotToken,r,n);return e.expression!==t||e.typeArguments!==r||e.arguments!==n?L(v(t,r,n),e):e},createCallChain:gt,updateCallChain:ht,createNewExpression:yt,updateNewExpression:function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?L(yt(t,r,n),e):e},createTaggedTemplateExpression:vt,updateTaggedTemplateExpression:function(e,t,r,n){return e.tag!==t||e.typeArguments!==r||e.template!==n?L(vt(t,r,n),e):e},createTypeAssertion:bt,updateTypeAssertion:xt,createParenthesizedExpression:St,updateParenthesizedExpression:kt,createFunctionExpression:Tt,updateFunctionExpression:Ct,createArrowFunction:wt,updateArrowFunction:Nt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?L(Dt(t),e):e},createTypeOfExpression:Et,updateTypeOfExpression:function(e,t){return e.expression!==t?L(Et(t),e):e},createVoidExpression:Pt,updateVoidExpression:function(e,t){return e.expression!==t?L(Pt(t),e):e},createAwaitExpression:Ft,updateAwaitExpression:function(e,t){return e.expression!==t?L(Ft(t),e):e},createPrefixUnaryExpression:At,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?L(At(e.operator,t),e):e},createPostfixUnaryExpression:It,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?L(It(t,e.operator),e):e},createBinaryExpression:Ot,updateBinaryExpression:function(e,t,r,n){return e.left!==t||e.operatorToken!==r||e.right!==n?L(Ot(t,r,n),e):e},createConditionalExpression:jt,updateConditionalExpression:function(e,t,r,n,i,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?L(jt(t,r,n,i,a),e):e},createTemplateExpression:Rt,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?L(Rt(t,r),e):e},createTemplateHead:function(e,t,r){return b(16,e=Mt(16,e,t,r),t,r)},createTemplateMiddle:function(e,t,r){return b(17,e=Mt(16,e,t,r),t,r)},createTemplateTail:function(e,t,r){return b(18,e=Mt(16,e,t,r),t,r)},createNoSubstitutionTemplateLiteral:function(e,t,r){return Jt(15,e=Mt(16,e,t,r),t,r)},createTemplateLiteralLikeNode:b,createYieldExpression:zt,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?L(zt(t,r),e):e},createSpreadElement:qt,updateSpreadElement:function(e,t){return e.expression!==t?L(qt(t),e):e},createClassExpression:Ut,updateClassExpression:Vt,createOmittedExpression:function(){return u(232)},createExpressionWithTypeArguments:Wt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?L(Wt(t,r),e):e},createAsExpression:Ht,updateAsExpression:Kt,createNonNullExpression:Gt,updateNonNullExpression:$t,createSatisfiesExpression:Xt,updateSatisfiesExpression:Qt,createNonNullChain:Yt,updateNonNullChain:Zt,createMetaProperty:er,updateMetaProperty:function(e,t){return e.name!==t?L(er(e.keywordToken,t),e):e},createTemplateSpan:tr,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?L(tr(t,r),e):e},createSemicolonClassElement:function(){var e=u(240);return e.transformFlags|=1024,e},createBlock:x,updateBlock:function(e,t){return e.statements!==t?L(x(t,e.multiLine),e):e},createVariableStatement:rr,updateVariableStatement:nr,createEmptyStatement:ir,createExpressionStatement:ar,updateExpressionStatement:function(e,t){return e.expression!==t?L(ar(t),e):e},createIfStatement:or,updateIfStatement:function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?L(or(t,r,n),e):e},createDoStatement:sr,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?L(sr(t,r),e):e},createWhileStatement:cr,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?L(cr(t,r),e):e},createForStatement:lr,updateForStatement:function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?L(lr(t,r,n,i),e):e},createForInStatement:_r,updateForInStatement:function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?L(_r(t,r,n),e):e},createForOfStatement:ur,updateForOfStatement:function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?L(ur(t,r,n,i),e):e},createContinueStatement:dr,updateContinueStatement:function(e,t){return e.label!==t?L(dr(t),e):e},createBreakStatement:pr,updateBreakStatement:function(e,t){return e.label!==t?L(pr(t),e):e},createReturnStatement:fr,updateReturnStatement:function(e,t){return e.expression!==t?L(fr(t),e):e},createWithStatement:mr,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?L(mr(t,r),e):e},createSwitchStatement:gr,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?L(gr(t,r),e):e},createLabeledStatement:hr,updateLabeledStatement:yr,createThrowStatement:vr,updateThrowStatement:function(e,t){return e.expression!==t?L(vr(t),e):e},createTryStatement:br,updateTryStatement:function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?L(br(t,r,n),e):e},createDebuggerStatement:function(){var e=u(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:xr,updateVariableDeclaration:function(e,t,r,n,i){return e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?L(xr(t,r,n,i),e):e},createVariableDeclarationList:Sr,updateVariableDeclarationList:function(e,t){return e.declarations!==t?L(Sr(t,e.flags),e):e},createFunctionDeclaration:kr,updateFunctionDeclaration:Tr,createClassDeclaration:Cr,updateClassDeclaration:wr,createInterfaceDeclaration:Nr,updateInterfaceDeclaration:Dr,createTypeAliasDeclaration:Er,updateTypeAliasDeclaration:Pr,createEnumDeclaration:Fr,updateEnumDeclaration:Ar,createModuleDeclaration:Ir,updateModuleDeclaration:Or,createModuleBlock:Lr,updateModuleBlock:function(e,t){return e.statements!==t?L(Lr(t),e):e},createCaseBlock:jr,updateCaseBlock:function(e,t){return e.clauses!==t?L(jr(t),e):e},createNamespaceExportDeclaration:Rr,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return L(e,t)}(Rr(t),e):e},createImportEqualsDeclaration:Mr,updateImportEqualsDeclaration:Br,createImportDeclaration:Jr,updateImportDeclaration:zr,createImportClause:qr,updateImportClause:function(e,t,r,n){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?L(qr(t,r,n),e):e},createAssertClause:Ur,updateAssertClause:function(e,t,r){return e.elements!==t||e.multiLine!==r?L(Ur(t,r),e):e},createAssertEntry:Vr,updateAssertEntry:function(e,t,r){return e.name!==t||e.value!==r?L(Vr(t,r),e):e},createImportTypeAssertionContainer:Wr,updateImportTypeAssertionContainer:function(e,t,r){return e.assertClause!==t||e.multiLine!==r?L(Wr(t,r),e):e},createImportAttributes:Hr,updateImportAttributes:function(e,t,r){return e.elements!==t||e.multiLine!==r?L(Hr(t,r,e.token),e):e},createImportAttribute:Kr,updateImportAttribute:function(e,t,r){return e.name!==t||e.value!==r?L(Kr(t,r),e):e},createNamespaceImport:Gr,updateNamespaceImport:function(e,t){return e.name!==t?L(Gr(t),e):e},createNamespaceExport:$r,updateNamespaceExport:function(e,t){return e.name!==t?L($r(t),e):e},createNamedImports:Xr,updateNamedImports:function(e,t){return e.elements!==t?L(Xr(t),e):e},createImportSpecifier:Qr,updateImportSpecifier:function(e,t,r,n){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?L(Qr(t,r,n),e):e},createExportAssignment:Yr,updateExportAssignment:Zr,createExportDeclaration:en,updateExportDeclaration:tn,createNamedExports:rn,updateNamedExports:function(e,t){return e.elements!==t?L(rn(t),e):e},createExportSpecifier:nn,updateExportSpecifier:function(e,t,r,n){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?L(nn(t,r,n),e):e},createMissingDeclaration:function(){var e=d(282);return e.jsDoc=void 0,e},createExternalModuleReference:an,updateExternalModuleReference:function(e,t){return e.expression!==t?L(an(t),e):e},get createJSDocAllType(){return M(312)},get createJSDocUnknownType(){return M(313)},get createJSDocNonNullableType(){return z(315)},get updateJSDocNonNullableType(){return q(315)},get createJSDocNullableType(){return z(314)},get updateJSDocNullableType(){return q(314)},get createJSDocOptionalType(){return B(316)},get updateJSDocOptionalType(){return J(316)},get createJSDocVariadicType(){return B(318)},get updateJSDocVariadicType(){return J(318)},get createJSDocNamepathType(){return B(319)},get updateJSDocNamepathType(){return J(319)},createJSDocFunctionType:cn,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?L(cn(t,r),e):e},createJSDocTypeLiteral:ln,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?L(ln(t,r),e):e},createJSDocTypeExpression:_n,updateJSDocTypeExpression:function(e,t){return e.type!==t?L(_n(t),e):e},createJSDocSignature:un,updateJSDocSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?L(un(t,r,n),e):e},createJSDocTemplateTag:dn,updateJSDocTemplateTag:function(e,t=S(e),r,n,i){return e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?L(dn(t,r,n,i),e):e},createJSDocTypedefTag:pn,updateJSDocTypedefTag:function(e,t=S(e),r,n,i){return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?L(pn(t,r,n,i),e):e},createJSDocParameterTag:fn,updateJSDocParameterTag:function(e,t=S(e),r,n,i,a,o){return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?L(fn(t,r,n,i,a,o),e):e},createJSDocPropertyTag:mn,updateJSDocPropertyTag:function(e,t=S(e),r,n,i,a,o){return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?L(mn(t,r,n,i,a,o),e):e},createJSDocCallbackTag:gn,updateJSDocCallbackTag:function(e,t=S(e),r,n,i){return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?L(gn(t,r,n,i),e):e},createJSDocOverloadTag:hn,updateJSDocOverloadTag:function(e,t=S(e),r,n){return e.tagName!==t||e.typeExpression!==r||e.comment!==n?L(hn(t,r,n),e):e},createJSDocAugmentsTag:yn,updateJSDocAugmentsTag:function(e,t=S(e),r,n){return e.tagName!==t||e.class!==r||e.comment!==n?L(yn(t,r,n),e):e},createJSDocImplementsTag:vn,updateJSDocImplementsTag:function(e,t=S(e),r,n){return e.tagName!==t||e.class!==r||e.comment!==n?L(vn(t,r,n),e):e},createJSDocSeeTag:bn,updateJSDocSeeTag:function(e,t,r,n){return e.tagName!==t||e.name!==r||e.comment!==n?L(bn(t,r,n),e):e},createJSDocImportTag:An,updateJSDocImportTag:function(e,t,r,n,i,a){return e.tagName!==t||e.comment!==a||e.importClause!==r||e.moduleSpecifier!==n||e.attributes!==i?L(An(t,r,n,i,a),e):e},createJSDocNameReference:xn,updateJSDocNameReference:function(e,t){return e.name!==t?L(xn(t),e):e},createJSDocMemberName:Sn,updateJSDocMemberName:function(e,t,r){return e.left!==t||e.right!==r?L(Sn(t,r),e):e},createJSDocLink:kn,updateJSDocLink:function(e,t,r){return e.name!==t?L(kn(t,r),e):e},createJSDocLinkCode:Tn,updateJSDocLinkCode:function(e,t,r){return e.name!==t?L(Tn(t,r),e):e},createJSDocLinkPlain:Cn,updateJSDocLinkPlain:function(e,t,r){return e.name!==t?L(Cn(t,r),e):e},get createJSDocTypeTag(){return a(344)},get updateJSDocTypeTag(){return o(344)},get createJSDocReturnTag(){return a(342)},get updateJSDocReturnTag(){return o(342)},get createJSDocThisTag(){return a(343)},get updateJSDocThisTag(){return o(343)},get createJSDocAuthorTag(){return n(330)},get updateJSDocAuthorTag(){return i(330)},get createJSDocClassTag(){return n(332)},get updateJSDocClassTag(){return i(332)},get createJSDocPublicTag(){return n(333)},get updateJSDocPublicTag(){return i(333)},get createJSDocPrivateTag(){return n(334)},get updateJSDocPrivateTag(){return i(334)},get createJSDocProtectedTag(){return n(335)},get updateJSDocProtectedTag(){return i(335)},get createJSDocReadonlyTag(){return n(336)},get updateJSDocReadonlyTag(){return i(336)},get createJSDocOverrideTag(){return n(337)},get updateJSDocOverrideTag(){return i(337)},get createJSDocDeprecatedTag(){return n(331)},get updateJSDocDeprecatedTag(){return i(331)},get createJSDocThrowsTag(){return a(349)},get updateJSDocThrowsTag(){return o(349)},get createJSDocSatisfiesTag(){return a(350)},get updateJSDocSatisfiesTag(){return o(350)},createJSDocEnumTag:Fn,updateJSDocEnumTag:function(e,t=S(e),r,n){return e.tagName!==t||e.typeExpression!==r||e.comment!==n?L(Fn(t,r,n),e):e},createJSDocUnknownTag:Pn,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?L(Pn(t,r),e):e},createJSDocText:In,updateJSDocText:function(e,t){return e.text!==t?L(In(t),e):e},createJSDocComment:On,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?L(On(t,r),e):e},createJsxElement:Ln,updateJsxElement:function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?L(Ln(t,r,n),e):e},createJsxSelfClosingElement:jn,updateJsxSelfClosingElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?L(jn(t,r,n),e):e},createJsxOpeningElement:Rn,updateJsxOpeningElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?L(Rn(t,r,n),e):e},createJsxClosingElement:Mn,updateJsxClosingElement:function(e,t){return e.tagName!==t?L(Mn(t),e):e},createJsxFragment:Bn,createJsxText:Jn,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?L(Jn(t,r),e):e},createJsxOpeningFragment:function(){var e=u(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=u(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?L(Bn(t,r,n),e):e},createJsxAttribute:zn,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?L(zn(t,r),e):e},createJsxAttributes:qn,updateJsxAttributes:function(e,t){return e.properties!==t?L(qn(t),e):e},createJsxSpreadAttribute:Un,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?L(Un(t),e):e},createJsxExpression:Vn,updateJsxExpression:function(e,t){return e.expression!==t?L(Vn(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Wn,updateJsxNamespacedName:function(e,t,r){return e.namespace!==t||e.name!==r?L(Wn(t,r),e):e},createCaseClause:Hn,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?L(Hn(t,r),e):e},createDefaultClause:Kn,updateDefaultClause:function(e,t){return e.statements!==t?L(Kn(t),e):e},createHeritageClause:Gn,updateHeritageClause:function(e,t){return e.types!==t?L(Gn(e.token,t),e):e},createCatchClause:$n,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?L($n(t,r),e):e},createPropertyAssignment:Xn,updatePropertyAssignment:Qn,createShorthandPropertyAssignment:Yn,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken,e.equalsToken=t.equalsToken);return L(e,t)}(Yn(t,r),e):e},createSpreadAssignment:Zn,updateSpreadAssignment:function(e,t){return e.expression!==t?L(Zn(t),e):e},createEnumMember:ei,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?L(ei(t,r),e):e},createSourceFile:function(e,t,r){var n=s.createBaseSourceFileNode(307);return n.statements=p(e),n.endOfFileToken=t,n.flags|=r,n.text="",n.fileName="",n.path="",n.resolvedPath="",n.originalFileName="",n.languageVersion=1,n.languageVariant=0,n.scriptKind=0,n.isDeclarationFile=!1,n.hasNoDefaultLib=!1,n.transformFlags|=jg(n.statements)|vi(n.endOfFileToken),n.locals=void 0,n.nextContainer=void 0,n.endFlowNode=void 0,n.nodeCount=0,n.identifierCount=0,n.symbolCount=0,n.parseDiagnostics=void 0,n.bindDiagnostics=void 0,n.bindSuggestionDiagnostics=void 0,n.lineMap=void 0,n.externalModuleIndicator=void 0,n.setExternalModuleIndicator=void 0,n.pragmas=void 0,n.checkJsDirective=void 0,n.referencedFiles=void 0,n.typeReferenceDirectives=void 0,n.libReferenceDirectives=void 0,n.amdDependencies=void 0,n.commentDirectives=void 0,n.identifiers=void 0,n.packageJsonLocations=void 0,n.packageJsonScope=void 0,n.imports=void 0,n.moduleAugmentations=void 0,n.ambientModuleNames=void 0,n.classifiableNames=void 0,n.impliedNodeFormat=void 0,n},updateSourceFile:function(e,t,r=e.isDeclarationFile,n=e.referencedFiles,i=e.typeReferenceDirectives,a=e.hasNoDefaultLib,o=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==r||e.referencedFiles!==n||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==a||e.libReferenceDirectives!==o?L(function(e,t,r,n,i,a,o){e=ri(e);return e.statements=p(t),e.isDeclarationFile=r,e.referencedFiles=n,e.typeReferenceDirectives=i,e.hasNoDefaultLib=a,e.libReferenceDirectives=o,e.transformFlags=jg(e.statements)|vi(e.endOfFileToken),e}(e,t,r,n,i,a,o),e):e},createRedirectedSourceFile:ti,createBundle:ni,updateBundle:function(e,t){return e.sourceFiles!==t?L(ni(t),e):e},createSyntheticExpression:function(e,t=!1,r){var n=u(237);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList:function(e){var t=u(352);return Y1(t,e),t},createNotEmittedStatement:function(e){var t=u(353);return t.original=e,fT(t,e),t},createPartiallyEmittedExpression:ii,updatePartiallyEmittedExpression:ai,createCommaListExpression:si,updateCommaListExpression:function(e,t){return e.elements!==t?L(si(t),e):e},createSyntheticReferenceExpression:ci,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?L(ci(t,r),e):e},cloneNode:li,get createComma(){return t(28)},get createAssignment(){return t(64)},get createLogicalOr(){return t(57)},get createLogicalAnd(){return t(56)},get createBitwiseOr(){return t(52)},get createBitwiseXor(){return t(53)},get createBitwiseAnd(){return t(51)},get createStrictEquality(){return t(37)},get createStrictInequality(){return t(38)},get createEquality(){return t(35)},get createInequality(){return t(36)},get createLessThan(){return t(30)},get createLessThanEquals(){return t(33)},get createGreaterThan(){return t(32)},get createGreaterThanEquals(){return t(34)},get createLeftShift(){return t(48)},get createRightShift(){return t(49)},get createUnsignedRightShift(){return t(50)},get createAdd(){return t(40)},get createSubtract(){return t(41)},get createMultiply(){return t(42)},get createDivide(){return t(44)},get createModulo(){return t(45)},get createExponent(){return t(43)},get createPrefixPlus(){return r(40)},get createPrefixMinus(){return r(41)},get createPrefixIncrement(){return r(46)},get createPrefixDecrement(){return r(47)},get createBitwiseNot(){return r(55)},get createLogicalNot(){return r(54)},get createPostfixIncrement(){return R(46)},get createPostfixDecrement(){return R(47)},createImmediatelyInvokedFunctionExpression:function(e,t,r){return v(Tt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,x(e,!0)),void 0,r?[r]:[])},createImmediatelyInvokedArrowFunction:function(e,t,r){return v(wt(void 0,void 0,t?[t]:[],void 0,void 0,x(e,!0)),void 0,r?[r]:[])},createVoidZero:C,createExportDefault:function(e){return Yr(void 0,!1,e)},createExternalModuleExport:function(e){return en(void 0,!1,rn([nn(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?_.createStrictEquality(e,te()):"undefined"===t?_.createStrictEquality(e,C()):_.createStrictEquality(Et(e),m(t))},createIsNotTypeCheck:function(e,t){return"null"===t?_.createStrictInequality(e,te()):"undefined"===t?_.createStrictInequality(e,C()):_.createStrictInequality(Et(e),m(t))},createMethodCall:w,createGlobalMethodCall:N,createFunctionBindCall:function(e,t,r){return w(e,"bind",[t,...r])},createFunctionCallCall:function(e,t,r){return w(e,"call",[t,...r])},createFunctionApplyCall:function(e,t,r){return w(e,"apply",[t,r])},createArraySliceCall:function(e,t){return w(e,"slice",void 0===t?[]:[I(t)])},createArrayConcatCall:function(e,t){return w(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,r){return N("Object","defineProperty",[e,I(t),r])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return N("Object","getOwnPropertyDescriptor",[e,I(t)])},createReflectGetCall:function(e,t,r){return N("Reflect","get",r?[e,t,r]:[e,t])},createReflectSetCall:function(e,t,r,n){return N("Reflect","set",n?[e,t,r,n]:[e,t,r])},createPropertyDescriptor:function(e,t){var r=[];D(r,"enumerable",I(e.enumerable)),D(r,"configurable",I(e.configurable));var n=D(r,"writable",I(e.writable)),i=(n=D(r,"value",e.value)||n,D(r,"get",e.get));return i=D(r,"set",e.set)||i,Y4.assert(!(n&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),st(r,!t)},createCallBinding:function(e,t,r,n=!1){let i=l9(e,15),a,o;s8(i)?(a=ee(),o=i):A0(i)?(a=ee(),o=void 0!==r&&r<2?fT(g("_super"),i):i):8192&$7(i)?(a=C(),o=l().parenthesizeLeftSideOfAccess(i,!1)):dT(i)?di(i.expression,n)?(a=$(t),o=y(fT(_.createAssignment(a,i.expression),i.expression),i.name),fT(o,i)):(a=i.expression,o=i):EP(i)?di(i.expression,n)?(a=$(t),o=dt(fT(_.createAssignment(a,i.expression),i.expression),i.argumentExpression),fT(o,i)):(a=i.expression,o=i):(a=C(),o=l().parenthesizeLeftSideOfAccess(e,!1));return{target:o,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return y(St(st([we(void 0,"value",[_e(void 0,void 0,e,void 0,void 0,void 0)],x([ar(t)]))])),"value")},inlineExpressions:function(e){return 10e(_)),_;function p(e,t){if(void 0===e||e===H4)e=[];else if(tc(e))return void 0===t||e.hasTrailingComma===t?(void 0===e.transformFlags&&Rg(e),Y4.attachNodeArrayDebugInfo(e),e):((r=e.slice()).pos=e.pos,r.end=e.end,r.hasTrailingComma=t,r.transformFlags=e.transformFlags,Y4.attachNodeArrayDebugInfo(r),r);var r=e.length,r=1<=r&&r<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,Rg(r),Y4.attachNodeArrayDebugInfo(r),r}function u(e){return s.createBaseNode(e)}function d(e){e=u(e);return e.symbol=void 0,e.localSymbol=void 0,e}function f(e,t){return e!==t&&(e.typeArguments=t.typeArguments),L(e,t)}function U(e,t=0){var e="number"==typeof e?e+"":e,r=(Y4.assert(45!==e.charCodeAt(0),"Negative numbers should be created in combination with createPrefixUnaryExpression"),d(9));return r.text=e,384&(r.numericLiteralFlags=t)&&(r.transformFlags|=1024),r}function V(e){var t=Z(10);return t.text="string"==typeof e?e:KD(e)+"n",t.transformFlags|=32,t}function W(e,t){var r=d(11);return r.text=e,r.singleQuote=t,r}function m(e,t,r){e=W(e,t);return(e.hasExtendedUnicodeEscape=r)&&(e.transformFlags|=1024),e}function H(e){var t=Z(14);return t.text=e,t}function K(e){var t=s.createBaseIdentifierNode(80);return t.escapedText=e,t.jsDoc=void 0,t.flowNode=void 0,t.symbol=void 0,t}function G(e,t,r,n){e=K($3(e));return vh(e,{flags:t,id:Ng,prefix:r,suffix:n}),Ng++,e}function g(e,t,r){80===(t=void 0===t&&e?$a(e):t)&&(t=void 0);t=K($3(e));return r&&(t.flags|=256),"await"===t.escapedText&&(t.transformFlags|=67108864),256&t.flags&&(t.transformFlags|=1024),t}function $(e,t,r,n){let i=1;t&&(i|=8);t=G("",i,r,n);return e&&e(t),t}function X(e,t=0,r,n){Y4.assert(!(7&t),"Argument out of range: flags");(r||n)&&(t|=16);t=G(e?Us(e)?hv(!1,r,e,n,rT):"generated@"+oj(e):"",4|t,r,n);return t.original=e,t}function Q(e){var t=s.createBasePrivateIdentifierNode(81);return t.escapedText=e,t.transformFlags|=16777216,t}function Y(e,t,r,n){e=Q($3(e));return vh(e,{flags:t,id:Ng,prefix:r,suffix:n}),Ng++,e}function Z(e){return s.createBaseTokenNode(e)}function h(e){Y4.assert(0<=e&&e<=165,"Invalid token"),Y4.assert(e<=15||18<=e,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),Y4.assert(e<=9||15<=e,"Invalid token. Use 'createLiteralLikeNode' to create literals."),Y4.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");var t=Z(e);let r=0;switch(e){case 134:r=384;break;case 160:r=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:r=1;break;case 108:r=134218752,t.flowNode=void 0;break;case 126:r=1024;break;case 129:r=16777216;break;case 110:r=16384,t.flowNode=void 0}return r&&(t.transformFlags|=r),t}function ee(){return h(110)}function te(){return h(106)}function re(){return h(112)}function ne(){return h(97)}function ie(e){return h(e)}function ae(e){var t=[];return 32&e&&t.push(h(95)),128&e&&t.push(h(138)),2048&e&&t.push(h(90)),4096&e&&t.push(h(87)),1&e&&t.push(h(125)),2&e&&t.push(h(123)),4&e&&t.push(h(124)),64&e&&t.push(h(128)),256&e&&t.push(h(126)),16&e&&t.push(h(164)),8&e&&t.push(h(148)),512&e&&t.push(h(129)),1024&e&&t.push(h(134)),8192&e&&t.push(h(103)),16384&e&&t.push(h(147)),t.length?t:void 0}function oe(e,t){var r=u(166);return r.left=e,r.right=A(t),r.transformFlags|=vi(r.left)|Lg(r.right),r.flowNode=void 0,r}function se(e){var t=u(167);return t.expression=l().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|vi(t.expression),t}function ce(e,t,r,n){var i=d(168);return i.modifiers=F(e),i.name=A(t),i.constraint=r,i.default=n,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function le(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.constraint!==n||e.default!==i?L(ce(t,r,n,i),e):e}function _e(e,t,r,n,i,a){var o=d(169);return o.modifiers=F(e),o.dotDotDotToken=t,o.name=A(r),o.questionToken=n,o.type=i,o.initializer=yi(a),fN(o.name)?o.transformFlags=1:o.transformFlags=jg(o.modifiers)|vi(o.dotDotDotToken)|Og(o.name)|vi(o.questionToken)|vi(o.initializer)|(o.questionToken??o.type?1:0)|(o.dotDotDotToken??o.initializer?1024:0)|(31&LN(o.modifiers)?8192:0),o.jsDoc=void 0,o}function ue(e,t,r,n,i,a,o){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?L(_e(t,r,n,i,a,o),e):e}function de(e){var t=u(170);return t.expression=l().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|vi(t.expression),t}function pe(e,t,r,n){var i=d(171);return i.modifiers=F(e),i.name=A(t),i.type=n,i.questionToken=r,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function fe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?((t=pe(t,r,n,i))!==(r=e)&&(t.initializer=r.initializer),L(t,r)):e}function me(e,t,r,n,i){var a=d(172),e=(a.modifiers=F(e),a.name=A(t),a.questionToken=r&&y0(r)?r:void 0,a.exclamationToken=r&&h0(r)?r:void 0,a.type=n,a.initializer=yi(i),33554432&a.flags||128&LN(a.modifiers));return a.transformFlags=jg(a.modifiers)|Og(a.name)|vi(a.initializer)|(e||a.questionToken||a.exclamationToken||a.type?1:0)|(HE(a.name)||256&LN(a.modifiers)&&a.initializer?8192:0)|16777216,a.jsDoc=void 0,a}function ge(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.questionToken!==(void 0!==n&&y0(n)?n:void 0)||e.exclamationToken!==(void 0!==n&&h0(n)?n:void 0)||e.type!==i||e.initializer!==a?L(me(t,r,n,i,a),e):e}function he(e,t,r,n,i,a){var o=d(173);return o.modifiers=F(e),o.name=A(t),o.questionToken=r,o.typeParameters=F(n),o.parameters=F(i),o.type=a,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.typeArguments=void 0,o}function ye(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?f(he(t,r,n,i,a,o),e):e}function ve(e,t,r,n,i,a,o,s){var c=d(174);return c.modifiers=F(e),c.asteriskToken=t,c.name=A(r),c.questionToken=n,c.exclamationToken=void 0,c.typeParameters=F(i),c.parameters=p(a),c.type=o,c.body=s,c.body?(e=1024&LN(c.modifiers),t=!!c.asteriskToken,r=e&&t,c.transformFlags=jg(c.modifiers)|vi(c.asteriskToken)|Og(c.name)|vi(c.questionToken)|jg(c.typeParameters)|jg(c.parameters)|vi(c.type)|-67108865&vi(c.body)|(r?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024):c.transformFlags=1,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 be(e,t,r,n,i,a,o,s,c){return e.modifiers!==t||e.asteriskToken!==r||e.name!==n||e.questionToken!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?((t=ve(t,r,n,i,a,o,s,c))!==(r=e)&&(t.exclamationToken=r.exclamationToken),L(t,r)):e}function xe(e){var t=d(175);return t.body=e,t.transformFlags=16777216|vi(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 Se(e,t,r){var n=d(176);return n.modifiers=F(e),n.parameters=p(t),n.body=r,n.transformFlags=jg(n.modifiers)|jg(n.parameters)|-67108865&vi(n.body)|1024,n.typeParameters=void 0,n.type=void 0,n.typeArguments=void 0,n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.endFlowNode=void 0,n.returnFlowNode=void 0,n}function ke(e,t,r,n){return e.modifiers!==t||e.parameters!==r||e.body!==n?((t=Se(t,r,n))!==(r=e)&&(t.typeParameters=r.typeParameters,t.type=r.type),f(t,r)):e}function Te(e,t,r,n,i){var a=d(177);return a.modifiers=F(e),a.name=A(t),a.parameters=p(r),a.type=n,a.body=i,a.body?a.transformFlags=jg(a.modifiers)|Og(a.name)|jg(a.parameters)|vi(a.type)|-67108865&vi(a.body)|(a.type?1:0):a.transformFlags=1,a.typeArguments=void 0,a.typeParameters=void 0,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.flowNode=void 0,a.endFlowNode=void 0,a.returnFlowNode=void 0,a}function Ce(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.type!==i||e.body!==a?((t=Te(t,r,n,i,a))!==(r=e)&&(t.typeParameters=r.typeParameters),f(t,r)):e}function we(e,t,r,n){var i=d(178);return i.modifiers=F(e),i.name=A(t),i.parameters=p(r),i.body=n,i.body?i.transformFlags=jg(i.modifiers)|Og(i.name)|jg(i.parameters)|-67108865&vi(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 Ne(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.body!==i?((t=we(t,r,n,i))!==(r=e)&&(t.typeParameters=r.typeParameters,t.type=r.type),f(t,r)):e}function De(e,t,r){var n=d(179);return n.typeParameters=F(e),n.parameters=F(t),n.type=r,n.transformFlags=1,n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function Ee(e,t,r){var n=d(180);return n.typeParameters=F(e),n.parameters=F(t),n.type=r,n.transformFlags=1,n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function Pe(e,t,r){var n=d(181);return n.modifiers=F(e),n.parameters=F(t),n.type=r,n.transformFlags=1,n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function Fe(e,t,r,n){return e.parameters!==r||e.type!==n||e.modifiers!==t?f(Pe(t,r,n),e):e}function Ae(e,t){var r=u(204);return r.type=e,r.literal=t,r.transformFlags=1,r}function Ie(e,t,r){var n=u(182);return n.assertsModifier=e,n.parameterName=A(t),n.type=r,n.transformFlags=1,n}function Oe(e,t){var r=u(183);return r.typeName=A(e),r.typeArguments=t&&l().parenthesizeTypeArguments(p(t)),r.transformFlags=1,r}function Le(e,t,r){var n=d(184);return n.typeParameters=F(e),n.parameters=F(t),n.type=r,n.transformFlags=1,n.modifiers=void 0,n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function je(...e){return 4===e.length?Re(...e):3===e.length?([e,t,r]=[...e],Re(void 0,e,t,r)):Y4.fail("Incorrect number of arguments specified.");var t,r}function Re(e,t,r,n){var i=d(185);return i.modifiers=F(e),i.typeParameters=F(t),i.parameters=F(r),i.type=n,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function Me(e,t,r,n,i){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i?f(je(t,r,n,i),e):e}function Be(e,t){var r=u(186);return r.exprName=e,r.typeArguments=t&&l().parenthesizeTypeArguments(t),r.transformFlags=1,r}function Je(e){var t=d(187);return t.members=p(e),t.transformFlags=1,t}function ze(e){var t=u(188);return t.elementType=l().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function qe(e){var t=u(189);return t.elements=p(l().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Ue(e,t,r,n){var i=d(202);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i.jsDoc=void 0,i}function Ve(e){var t=u(190);return t.type=l().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function We(e){var t=u(191);return t.type=e,t.transformFlags=1,t}function He(e,t,r){e=u(e);return e.types=_.createNodeArray(r(t)),e.transformFlags=1,e}function Ke(e,t,r){return e.types!==t?L(He(e.kind,t,r),e):e}function Ge(e,t,r,n){var i=u(194);return i.checkType=l().parenthesizeCheckTypeOfConditionalType(e),i.extendsType=l().parenthesizeExtendsTypeOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i.locals=void 0,i.nextContainer=void 0,i}function $e(e){var t=u(195);return t.typeParameter=e,t.transformFlags=1,t}function Xe(e,t){var r=u(203);return r.head=e,r.templateSpans=p(t),r.transformFlags=1,r}function Qe(e,t,r,n,i=!1){var a=u(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=r,a.typeArguments=n&&l().parenthesizeTypeArguments(n),a.isTypeOf=i,a.transformFlags=1,a}function Ye(e){var t=u(196);return t.type=e,t.transformFlags=1,t}function Ze(e,t){var r=u(198);return r.operator=e,r.type=148===e?l().parenthesizeOperandOfReadonlyTypeOperator(t):l().parenthesizeOperandOfTypeOperator(t),r.transformFlags=1,r}function et(e,t){var r=u(199);return r.objectType=l().parenthesizeNonArrayTypeOfPostfixType(e),r.indexType=t,r.transformFlags=1,r}function tt(e,t,r,n,i,a){var o=d(200);return o.readonlyToken=e,o.typeParameter=t,o.nameType=r,o.questionToken=n,o.type=i,o.members=a&&p(a),o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function rt(e){var t=u(201);return t.literal=e,t.transformFlags=1,t}function nt(e){var t=u(206);return t.elements=p(e),t.transformFlags|=525312|jg(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function it(e){var t=u(207);return t.elements=p(e),t.transformFlags|=525312|jg(t.elements),t}function at(e,t,r,n){var i=d(208);return i.dotDotDotToken=e,i.propertyName=A(t),i.name=A(r),i.initializer=yi(n),i.transformFlags|=vi(i.dotDotDotToken)|Og(i.propertyName)|Og(i.name)|vi(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function ot(e,t){var r=u(209),n=e&&KT(e),e=p(e,!(!n||!zP(n))||void 0);return r.elements=l().parenthesizeExpressionsOfCommaDelimitedList(e),r.multiLine=t,r.transformFlags|=jg(r.elements),r}function st(e,t){var r=d(210);return r.properties=p(e),r.multiLine=t,r.transformFlags|=jg(r.properties),r.jsDoc=void 0,r}function ct(e,t,r){var n=d(211);return n.expression=e,n.questionDotToken=t,n.name=r,n.transformFlags=vi(n.expression)|vi(n.questionDotToken)|(uT(n.name)?Lg(n.name):536870912|vi(n.name)),n.jsDoc=void 0,n.flowNode=void 0,n}function y(e,t){t=ct(l().parenthesizeLeftSideOfAccess(e,!1),void 0,A(t));return A0(e)&&(t.transformFlags|=384),t}function lt(e,t,r){e=ct(l().parenthesizeLeftSideOfAccess(e,!0),t,A(r));return e.flags|=64,e.transformFlags|=32,e}function _t(e,t,r,n){return Y4.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==r||e.name!==n?L(lt(t,r,n),e):e}function ut(e,t,r){var n=d(212);return n.expression=e,n.questionDotToken=t,n.argumentExpression=r,n.transformFlags|=vi(n.expression)|vi(n.questionDotToken)|vi(n.argumentExpression),n.jsDoc=void 0,n.flowNode=void 0,n}function dt(e,t){t=ut(l().parenthesizeLeftSideOfAccess(e,!1),void 0,I(t));return A0(e)&&(t.transformFlags|=384),t}function pt(e,t,r){e=ut(l().parenthesizeLeftSideOfAccess(e,!0),t,I(r));return e.flags|=64,e.transformFlags|=32,e}function ft(e,t,r,n){return Y4.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==r||e.argumentExpression!==n?L(pt(t,r,n),e):e}function mt(e,t,r,n){var i=d(213);return i.expression=e,i.questionDotToken=t,i.typeArguments=r,i.arguments=n,i.transformFlags|=vi(i.expression)|vi(i.questionDotToken)|jg(i.typeArguments)|jg(i.arguments),i.typeArguments&&(i.transformFlags|=1),s8(i.expression)&&(i.transformFlags|=16384),i}function v(e,t,r){e=mt(l().parenthesizeLeftSideOfAccess(e,!1),void 0,F(t),l().parenthesizeExpressionsOfCommaDelimitedList(p(r)));return VE(e.expression)&&(e.transformFlags|=8388608),e}function gt(e,t,r,n){e=mt(l().parenthesizeLeftSideOfAccess(e,!0),t,F(r),l().parenthesizeExpressionsOfCommaDelimitedList(p(n)));return e.flags|=64,e.transformFlags|=32,e}function ht(e,t,r,n,i){return Y4.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==r||e.typeArguments!==n||e.arguments!==i?L(gt(t,r,n,i),e):e}function yt(e,t,r){var n=d(214);return n.expression=l().parenthesizeExpressionOfNew(e),n.typeArguments=F(t),n.arguments=r?l().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=vi(n.expression)|jg(n.typeArguments)|jg(n.arguments)|32,n.typeArguments&&(n.transformFlags|=1),n}function vt(e,t,r){var n=u(215);return n.tag=l().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=F(t),n.template=r,n.transformFlags|=vi(n.tag)|jg(n.typeArguments)|vi(n.template)|1024,n.typeArguments&&(n.transformFlags|=1),nd(n.template)&&(n.transformFlags|=128),n}function bt(e,t){var r=u(216);return r.expression=l().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=vi(r.expression)|vi(r.type)|1,r}function xt(e,t,r){return e.type!==t||e.expression!==r?L(bt(t,r),e):e}function St(e){var t=u(217);return t.expression=e,t.transformFlags=vi(t.expression),t.jsDoc=void 0,t}function kt(e,t){return e.expression!==t?L(St(t),e):e}function Tt(e,t,r,n,i,a,o){var s=d(218),e=(s.modifiers=F(e),s.asteriskToken=t,s.name=A(r),s.typeParameters=F(n),s.parameters=p(i),s.type=a,s.body=o,1024&LN(s.modifiers)),t=!!s.asteriskToken,r=e&&t;return s.transformFlags=jg(s.modifiers)|vi(s.asteriskToken)|Og(s.name)|jg(s.typeParameters)|jg(s.parameters)|vi(s.type)|-67108865&vi(s.body)|(r?128:e?256:t?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,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?f(Tt(t,r,n,i,a,o,s),e):e}function wt(e,t,r,n,i,a){var o=d(219),e=(o.modifiers=F(e),o.typeParameters=F(t),o.parameters=p(r),o.type=n,o.equalsGreaterThanToken=i??h(39),o.body=l().parenthesizeConciseBodyOfArrowFunction(a),1024&LN(o.modifiers));return o.transformFlags=jg(o.modifiers)|jg(o.typeParameters)|jg(o.parameters)|vi(o.type)|vi(o.equalsGreaterThanToken)|-67108865&vi(o.body)|(o.typeParameters||o.type?1:0)|(e?16640:0)|1024,o.typeArguments=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 Nt(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?f(wt(t,r,n,i,a,o),e):e}function Dt(e){var t=u(220);return t.expression=l().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=vi(t.expression),t}function Et(e){var t=u(221);return t.expression=l().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=vi(t.expression),t}function Pt(e){var t=u(222);return t.expression=l().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=vi(t.expression),t}function Ft(e){var t=u(223);return t.expression=l().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|vi(t.expression),t}function At(e,t){var r=u(224);return r.operator=e,r.operand=l().parenthesizeOperandOfPrefixUnary(t),r.transformFlags|=vi(r.operand),46!==e&&47!==e||!uT(r.operand)||PC(r.operand)||py(r.operand)||(r.transformFlags|=268435456),r}function It(e,t){var r=u(225);return r.operator=t,r.operand=l().parenthesizeOperandOfPostfixUnary(e),r.transformFlags|=vi(r.operand),!uT(r.operand)||PC(r.operand)||py(r.operand)||(r.transformFlags|=268435456),r}function Ot(e,t,r){var n=d(226),t="number"==typeof(t=t)?h(t):t,i=t.kind;return n.left=l().parenthesizeLeftSideOfBinary(i,e),n.operatorToken=t,n.right=l().parenthesizeRightSideOfBinary(i,n.left,r),n.transformFlags|=vi(n.left)|vi(n.operatorToken)|vi(n.right),61===i?n.transformFlags|=32:64===i?DP(n.left)?n.transformFlags|=5248|Lt(n.left):NP(n.left)&&(n.transformFlags|=5120|Lt(n.left)):43===i||68===i?n.transformFlags|=512:sp(i)&&(n.transformFlags|=16),103===i&&UE(n.left)&&(n.transformFlags|=536870912),n.jsDoc=void 0,n}function Lt(e){return Tv(e)?65536:0}function jt(e,t,r,n,i){var a=u(227);return a.condition=l().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??h(58),a.whenTrue=l().parenthesizeBranchOfConditionalExpression(r),a.colonToken=n??h(59),a.whenFalse=l().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=vi(a.condition)|vi(a.questionToken)|vi(a.whenTrue)|vi(a.colonToken)|vi(a.whenFalse),a}function Rt(e,t){var r=u(228);return r.head=e,r.templateSpans=p(t),r.transformFlags|=vi(r.head)|jg(r.templateSpans)|1024,r}function Mt(e,t,r,n=0){Y4.assert(!(-7177&n),"Unsupported template flags.");let i=void 0;if(void 0!==r&&r!==t&&"object"==typeof(i=function(e,t){Cg=Cg||M3(99,!1,0);switch(e){case 15:Cg.setText("`"+t+"`");break;case 16:Cg.setText("`"+t+"${");break;case 17:Cg.setText("}"+t+"${");break;case 18:Cg.setText("}"+t+"`")}let r=Cg.scan();20===r&&(r=Cg.reScanTemplateToken(!1));if(!Cg.isUnterminated()){let e;switch(r){case 15:case 16:case 17:case 18:e=Cg.getTokenValue()}if(void 0!==e&&1===Cg.scan())return Cg.setText(void 0),e}return Cg.setText(void 0),Ig}(e,r)))return Y4.fail("Invalid raw text");if(void 0===t){if(void 0===i)return Y4.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&Y4.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,r,n){e=d(e);return e.text=t,e.rawText=r,e.templateFlags=7176&n,e.transformFlags=Bt(e.templateFlags),e}function b(e,t,r,n){return 15===e?Jt(e,t,r,n):(t=t,r=r,n=n,(e=Z(e=e)).text=t,e.rawText=r,e.templateFlags=7176&n,e.transformFlags=Bt(e.templateFlags),e)}function zt(e,t){Y4.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");var r=u(229);return r.expression=t&&l().parenthesizeExpressionForDisallowedComma(t),r.asteriskToken=e,r.transformFlags|=vi(r.expression)|vi(r.asteriskToken)|1049728,r}function qt(e){var t=u(230);return t.expression=l().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|vi(t.expression),t}function Ut(e,t,r,n,i){var a=d(231);return a.modifiers=F(e),a.name=A(t),a.typeParameters=F(r),a.heritageClauses=F(n),a.members=p(i),a.transformFlags|=jg(a.modifiers)|Og(a.name)|jg(a.typeParameters)|jg(a.heritageClauses)|jg(a.members)|(a.typeParameters?1:0)|1024,a.jsDoc=void 0,a}function Vt(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.heritageClauses!==i||e.members!==a?L(Ut(t,r,n,i,a),e):e}function Wt(e,t){var r=u(233);return r.expression=l().parenthesizeLeftSideOfAccess(e,!1),r.typeArguments=t&&l().parenthesizeTypeArguments(t),r.transformFlags|=vi(r.expression)|jg(r.typeArguments)|1024,r}function Ht(e,t){var r=u(234);return r.expression=e,r.type=t,r.transformFlags|=vi(r.expression)|vi(r.type)|1,r}function Kt(e,t,r){return e.expression!==t||e.type!==r?L(Ht(t,r),e):e}function Gt(e){var t=u(235);return t.expression=l().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|vi(t.expression),t}function $t(e,t){return Gs(e)?Zt(e,t):e.expression!==t?L(Gt(t),e):e}function Xt(e,t){var r=u(238);return r.expression=e,r.type=t,r.transformFlags|=vi(r.expression)|vi(r.type)|1,r}function Qt(e,t,r){return e.expression!==t||e.type!==r?L(Xt(t,r),e):e}function Yt(e){var t=u(235);return t.flags|=64,t.expression=l().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|vi(t.expression),t}function Zt(e,t){return Y4.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?L(Yt(t),e):e}function er(e,t){var r=u(236);switch(r.keywordToken=e,r.name=t,r.transformFlags|=vi(r.name),e){case 105:r.transformFlags|=1024;break;case 102:r.transformFlags|=32;break;default:return Y4.assertNever(e)}return r.flowNode=void 0,r}function tr(e,t){var r=u(239);return r.expression=e,r.literal=t,r.transformFlags|=vi(r.expression)|vi(r.literal)|1024,r}function x(e,t){var r=u(241);return r.statements=p(e),r.multiLine=t,r.transformFlags|=jg(r.statements),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function rr(e,t){var r=u(243);return r.modifiers=F(e),r.declarationList=i3(t)?Sr(t):t,r.transformFlags|=jg(r.modifiers)|vi(r.declarationList),128&LN(r.modifiers)&&(r.transformFlags=1),r.jsDoc=void 0,r.flowNode=void 0,r}function nr(e,t,r){return e.modifiers!==t||e.declarationList!==r?L(rr(t,r),e):e}function ir(){var e=u(242);return e.jsDoc=void 0,e}function ar(e){var t=u(244);return t.expression=l().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=vi(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function or(e,t,r){var n=u(245);return n.expression=e,n.thenStatement=O(t),n.elseStatement=O(r),n.transformFlags|=vi(n.expression)|vi(n.thenStatement)|vi(n.elseStatement),n.jsDoc=void 0,n.flowNode=void 0,n}function sr(e,t){var r=u(246);return r.statement=O(e),r.expression=t,r.transformFlags|=vi(r.statement)|vi(r.expression),r.jsDoc=void 0,r.flowNode=void 0,r}function cr(e,t){var r=u(247);return r.expression=e,r.statement=O(t),r.transformFlags|=vi(r.expression)|vi(r.statement),r.jsDoc=void 0,r.flowNode=void 0,r}function lr(e,t,r,n){var i=u(248);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=O(n),i.transformFlags|=vi(i.initializer)|vi(i.condition)|vi(i.incrementor)|vi(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function _r(e,t,r){var n=u(249);return n.initializer=e,n.expression=t,n.statement=O(r),n.transformFlags|=vi(n.initializer)|vi(n.expression)|vi(n.statement),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.flowNode=void 0,n}function ur(e,t,r,n){var i=u(250);return i.awaitModifier=e,i.initializer=t,i.expression=l().parenthesizeExpressionForDisallowedComma(r),i.statement=O(n),i.transformFlags|=vi(i.awaitModifier)|vi(i.initializer)|vi(i.expression)|vi(i.statement)|1024,e&&(i.transformFlags|=128),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function dr(e){var t=u(251);return t.label=A(e),t.transformFlags|=4194304|vi(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function pr(e){var t=u(252);return t.label=A(e),t.transformFlags|=4194304|vi(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function fr(e){var t=u(253);return t.expression=e,t.transformFlags|=4194432|vi(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function mr(e,t){var r=u(254);return r.expression=e,r.statement=O(t),r.transformFlags|=vi(r.expression)|vi(r.statement),r.jsDoc=void 0,r.flowNode=void 0,r}function gr(e,t){var r=u(255);return r.expression=l().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=vi(r.expression)|vi(r.caseBlock),r.jsDoc=void 0,r.flowNode=void 0,r.possiblyExhaustive=!1,r}function hr(e,t){var r=u(256);return r.label=A(e),r.statement=O(t),r.transformFlags|=vi(r.label)|vi(r.statement),r.jsDoc=void 0,r.flowNode=void 0,r}function yr(e,t,r){return e.label!==t||e.statement!==r?L(hr(t,r),e):e}function vr(e){var t=u(257);return t.expression=e,t.transformFlags|=vi(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function br(e,t,r){var n=u(258);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=vi(n.tryBlock)|vi(n.catchClause)|vi(n.finallyBlock),n.jsDoc=void 0,n.flowNode=void 0,n}function xr(e,t,r,n){var i=d(260);return i.name=A(e),i.exclamationToken=t,i.type=r,i.initializer=yi(n),i.transformFlags|=Og(i.name)|vi(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function Sr(e,t=0){var r=u(261);return r.flags|=7&t,r.declarations=p(e),r.transformFlags|=4194304|jg(r.declarations),7&t&&(r.transformFlags|=263168),4&t&&(r.transformFlags|=4),r}function kr(e,t,r,n,i,a,o){var s=d(262);return s.modifiers=F(e),s.asteriskToken=t,s.name=A(r),s.typeParameters=F(n),s.parameters=p(i),s.type=a,s.body=o,!s.body||128&LN(s.modifiers)?s.transformFlags=1:(e=1024&LN(s.modifiers),t=!!s.asteriskToken,r=e&&t,s.transformFlags=jg(s.modifiers)|vi(s.asteriskToken)|Og(s.name)|jg(s.typeParameters)|jg(s.parameters)|vi(s.type)|-67108865&vi(s.body)|(r?128:e?256:t?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.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Tr(e,t,r,n,i,a,o,s){return e.modifiers!==t||e.asteriskToken!==r||e.name!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?((t=kr(t,r,n,i,a,o,s))!==(r=e)&&t.modifiers===r.modifiers&&(t.modifiers=r.modifiers),f(t,r)):e}function Cr(e,t,r,n,i){var a=d(263);return a.modifiers=F(e),a.name=A(t),a.typeParameters=F(r),a.heritageClauses=F(n),a.members=p(i),128&LN(a.modifiers)?a.transformFlags=1:(a.transformFlags|=jg(a.modifiers)|Og(a.name)|jg(a.typeParameters)|jg(a.heritageClauses)|jg(a.members)|(a.typeParameters?1:0)|1024,8192&a.transformFlags&&(a.transformFlags|=1)),a.jsDoc=void 0,a}function wr(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.heritageClauses!==i||e.members!==a?L(Cr(t,r,n,i,a),e):e}function Nr(e,t,r,n,i){var a=d(264);return a.modifiers=F(e),a.name=A(t),a.typeParameters=F(r),a.heritageClauses=F(n),a.members=p(i),a.transformFlags=1,a.jsDoc=void 0,a}function Dr(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.heritageClauses!==i||e.members!==a?L(Nr(t,r,n,i,a),e):e}function Er(e,t,r,n){var i=d(265);return i.modifiers=F(e),i.name=A(t),i.typeParameters=F(r),i.type=n,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Pr(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.type!==i?L(Er(t,r,n,i),e):e}function Fr(e,t,r){var n=d(266);return n.modifiers=F(e),n.name=A(t),n.members=p(r),n.transformFlags|=jg(n.modifiers)|vi(n.name)|jg(n.members)|1,n.transformFlags&=-67108865,n.jsDoc=void 0,n}function Ar(e,t,r,n){return e.modifiers!==t||e.name!==r||e.members!==n?L(Fr(t,r,n),e):e}function Ir(e,t,r,n=0){var i=d(267);return i.modifiers=F(e),i.flags|=2088&n,i.name=t,i.body=r,128&LN(i.modifiers)?i.transformFlags=1:i.transformFlags|=jg(i.modifiers)|vi(i.name)|vi(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Or(e,t,r,n){return e.modifiers!==t||e.name!==r||e.body!==n?L(Ir(t,r,n,e.flags),e):e}function Lr(e){var t=u(268);return t.statements=p(e),t.transformFlags|=jg(t.statements),t.jsDoc=void 0,t}function jr(e){var t=u(269);return t.clauses=p(e),t.transformFlags|=jg(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function Rr(e){var t=d(270);return t.name=A(e),t.transformFlags|=1|Lg(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Mr(e,t,r,n){var i=d(271);return i.modifiers=F(e),i.name=A(r),i.isTypeOnly=t,i.moduleReference=n,i.transformFlags|=jg(i.modifiers)|Lg(i.name)|vi(i.moduleReference),bF(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Br(e,t,r,n,i){return e.modifiers!==t||e.isTypeOnly!==r||e.name!==n||e.moduleReference!==i?L(Mr(t,r,n,i),e):e}function Jr(e,t,r,n){var i=u(272);return i.modifiers=F(e),i.importClause=t,i.moduleSpecifier=r,i.attributes=i.assertClause=n,i.transformFlags|=vi(i.importClause)|vi(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function zr(e,t,r,n,i){return e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==n||e.attributes!==i?L(Jr(t,r,n,i),e):e}function qr(e,t,r){var n=d(273);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=vi(n.name)|vi(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-67108865,n}function Ur(e,t){var r=u(300);return r.elements=p(e),r.multiLine=t,r.token=132,r.transformFlags|=4,r}function Vr(e,t){var r=u(301);return r.name=e,r.value=t,r.transformFlags|=4,r}function Wr(e,t){var r=u(302);return r.assertClause=e,r.multiLine=t,r}function Hr(e,t,r){var n=u(300);return n.token=r??118,n.elements=p(e),n.multiLine=t,n.transformFlags|=4,n}function Kr(e,t){var r=u(301);return r.name=e,r.value=t,r.transformFlags|=4,r}function Gr(e){var t=d(274);return t.name=e,t.transformFlags|=vi(t.name),t.transformFlags&=-67108865,t}function $r(e){var t=d(280);return t.name=e,t.transformFlags|=32|vi(t.name),t.transformFlags&=-67108865,t}function Xr(e){var t=u(275);return t.elements=p(e),t.transformFlags|=jg(t.elements),t.transformFlags&=-67108865,t}function Qr(e,t,r){var n=d(276);return n.isTypeOnly=e,n.propertyName=t,n.name=r,n.transformFlags|=vi(n.propertyName)|vi(n.name),n.transformFlags&=-67108865,n}function Yr(e,t,r){var n=d(277);return n.modifiers=F(e),n.isExportEquals=t,n.expression=t?l().parenthesizeRightSideOfBinary(64,void 0,r):l().parenthesizeExpressionOfExportDefault(r),n.transformFlags|=jg(n.modifiers)|vi(n.expression),n.transformFlags&=-67108865,n.jsDoc=void 0,n}function Zr(e,t,r){return e.modifiers!==t||e.expression!==r?L(Yr(t,e.isExportEquals,r),e):e}function en(e,t,r,n,i){var a=d(278);return a.modifiers=F(e),a.isTypeOnly=t,a.exportClause=r,a.moduleSpecifier=n,a.attributes=a.assertClause=i,a.transformFlags|=jg(a.modifiers)|vi(a.exportClause)|vi(a.moduleSpecifier),a.transformFlags&=-67108865,a.jsDoc=void 0,a}function tn(e,t,r,n,i,a){return e.modifiers!==t||e.isTypeOnly!==r||e.exportClause!==n||e.moduleSpecifier!==i||e.attributes!==a?((t=en(t,r,n,i,a))!==(r=e)&&t.modifiers===r.modifiers&&(t.modifiers=r.modifiers),L(t,r)):e}function rn(e){var t=u(279);return t.elements=p(e),t.transformFlags|=jg(t.elements),t.transformFlags&=-67108865,t}function nn(e,t,r){var n=u(281);return n.isTypeOnly=e,n.propertyName=A(t),n.name=A(r),n.transformFlags|=vi(n.propertyName)|vi(n.name),n.transformFlags&=-67108865,n.jsDoc=void 0,n}function an(e){var t=u(283);return t.expression=e,t.transformFlags|=vi(t.expression),t.transformFlags&=-67108865,t}function on(e,t,r=!1){e=sn(e,r?t&&l().parenthesizeNonArrayTypeOfPostfixType(t):t);return e.postfix=r,e}function sn(e,t){e=u(e);return e.type=t,e}function cn(e,t){var r=d(317);return r.parameters=F(e),r.type=t,r.transformFlags=jg(r.parameters)|(r.type?1:0),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ln(e,t=!1){var r=d(322);return r.jsDocPropertyTags=F(e),r.isArrayType=t,r}function _n(e){var t=u(309);return t.type=e,t}function un(e,t,r){var n=d(323);return n.typeParameters=F(e),n.parameters=p(t),n.type=r,n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function S(e){var t=Ag(e.kind);return e.tagName.escapedText===$3(t)?e.tagName:g(t)}function k(e,t,r){e=u(e);return e.tagName=t,e.comment=r,e}function T(e,t,r){e=d(e);return e.tagName=t,e.comment=r,e}function dn(e,t,r,n){e=k(345,e??g("template"),n);return e.constraint=t,e.typeParameters=p(r),e}function pn(e,t,r,n){e=T(346,e??g("typedef"),n);return e.typeExpression=t,e.fullName=r,e.name=Ly(r),e.locals=void 0,e.nextContainer=void 0,e}function fn(e,t,r,n,i,a){e=T(341,e??g("param"),a);return e.typeExpression=n,e.name=t,e.isNameFirst=!!i,e.isBracketed=r,e}function mn(e,t,r,n,i,a){e=T(348,e??g("prop"),a);return e.typeExpression=n,e.name=t,e.isNameFirst=!!i,e.isBracketed=r,e}function gn(e,t,r,n){e=T(338,e??g("callback"),n);return e.typeExpression=t,e.fullName=r,e.name=Ly(r),e.locals=void 0,e.nextContainer=void 0,e}function hn(e,t,r){e=k(339,e??g("overload"),r);return e.typeExpression=t,e}function yn(e,t,r){e=k(328,e??g("augments"),r);return e.class=t,e}function vn(e,t,r){e=k(329,e??g("implements"),r);return e.class=t,e}function bn(e,t,r){e=k(347,e??g("see"),r);return e.name=t,e}function xn(e){var t=u(310);return t.name=e,t}function Sn(e,t){var r=u(311);return r.left=e,r.right=t,r.transformFlags|=vi(r.left)|vi(r.right),r}function kn(e,t){var r=u(324);return r.name=e,r.text=t,r}function Tn(e,t){var r=u(325);return r.name=e,r.text=t,r}function Cn(e,t){var r=u(326);return r.name=e,r.text=t,r}function wn(e,t,r){return k(e,t??g(Ag(e)),r)}function Nn(e,t,r=S(t),n){return t.tagName!==r||t.comment!==n?L(wn(e,r,n),t):t}function Dn(e,t,r,n){t=k(e,t??g(Ag(e)),n);return t.typeExpression=r,t}function En(e,t,r=S(t),n,i){return t.tagName!==r||t.typeExpression!==n||t.comment!==i?L(Dn(e,r,n,i),t):t}function Pn(e,t){return k(327,e,t)}function Fn(e,t,r){e=T(340,e??g(Ag(340)),r);return e.typeExpression=t,e.locals=void 0,e.nextContainer=void 0,e}function An(e,t,r,n,i){e=k(351,e??g("import"),i);return e.importClause=t,e.moduleSpecifier=r,e.attributes=n,e.comment=i,e}function In(e){var t=u(321);return t.text=e,t}function On(e,t){var r=u(320);return r.comment=e,r.tags=F(t),r}function Ln(e,t,r){var n=u(284);return n.openingElement=e,n.children=p(t),n.closingElement=r,n.transformFlags|=vi(n.openingElement)|jg(n.children)|vi(n.closingElement)|2,n}function jn(e,t,r){var n=u(285);return n.tagName=e,n.typeArguments=F(t),n.attributes=r,n.transformFlags|=vi(n.tagName)|jg(n.typeArguments)|vi(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function Rn(e,t,r){var n=u(286);return n.tagName=e,n.typeArguments=F(t),n.attributes=r,n.transformFlags|=vi(n.tagName)|jg(n.typeArguments)|vi(n.attributes)|2,t&&(n.transformFlags|=1),n}function Mn(e){var t=u(287);return t.tagName=e,t.transformFlags|=2|vi(t.tagName),t}function Bn(e,t,r){var n=u(288);return n.openingFragment=e,n.children=p(t),n.closingFragment=r,n.transformFlags|=vi(n.openingFragment)|jg(n.children)|vi(n.closingFragment)|2,n}function Jn(e,t){var r=u(12);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function zn(e,t){var r=d(291);return r.name=e,r.initializer=t,r.transformFlags|=vi(r.name)|vi(r.initializer)|2,r}function qn(e){var t=d(292);return t.properties=p(e),t.transformFlags|=2|jg(t.properties),t}function Un(e){var t=u(293);return t.expression=e,t.transformFlags|=2|vi(t.expression),t}function Vn(e,t){var r=u(294);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=vi(r.dotDotDotToken)|vi(r.expression)|2,r}function Wn(e,t){var r=u(295);return r.namespace=e,r.name=t,r.transformFlags|=vi(r.namespace)|vi(r.name)|2,r}function Hn(e,t){var r=u(296);return r.expression=l().parenthesizeExpressionForDisallowedComma(e),r.statements=p(t),r.transformFlags|=vi(r.expression)|jg(r.statements),r.jsDoc=void 0,r}function Kn(e){var t=u(297);return t.statements=p(e),t.transformFlags=jg(t.statements),t}function Gn(e,t){var r=u(298);switch(r.token=e,r.types=p(t),r.transformFlags|=jg(r.types),e){case 96:r.transformFlags|=1024;break;case 119:r.transformFlags|=1;break;default:return Y4.assertNever(e)}return r}function $n(e,t){var r=u(299);return r.variableDeclaration=function(e){if("string"==typeof e||e&&!eF(e))return xr(e,void 0,void 0,void 0);return e}(e),r.block=t,r.transformFlags|=vi(r.variableDeclaration)|vi(r.block)|(e?0:64),r.locals=void 0,r.nextContainer=void 0,r}function Xn(e,t){var r=d(303);return r.name=A(e),r.initializer=l().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=Og(r.name)|vi(r.initializer),r.modifiers=void 0,r.questionToken=void 0,r.exclamationToken=void 0,r.jsDoc=void 0,r}function Qn(e,t,r){return e.name!==t||e.initializer!==r?((t=Xn(t,r))!==(r=e)&&(t.modifiers=r.modifiers,t.questionToken=r.questionToken,t.exclamationToken=r.exclamationToken),L(t,r)):e}function Yn(e,t){var r=d(304);return r.name=A(e),r.objectAssignmentInitializer=t&&l().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=Lg(r.name)|vi(r.objectAssignmentInitializer)|1024,r.equalsToken=void 0,r.modifiers=void 0,r.questionToken=void 0,r.exclamationToken=void 0,r.jsDoc=void 0,r}function Zn(e){var t=d(305);return t.expression=l().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|vi(t.expression),t.jsDoc=void 0,t}function ei(e,t){var r=d(306);return r.name=A(e),r.initializer=t&&l().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=vi(r.name)|vi(r.initializer)|1,r.jsDoc=void 0,r}function ti(e){var 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 ri(e){var t,r=e.redirectInfo?((t=ti((r=e).redirectInfo)).flags|=-17&r.flags,t.fileName=r.fileName,t.path=r.path,t.resolvedPath=r.resolvedPath,t.originalFileName=r.originalFileName,t.packageJsonLocations=r.packageJsonLocations,t.packageJsonScope=r.packageJsonScope,t.emitNode=void 0,t):function(e){var t,r=s.createBaseSourceFileNode(307);for(t in r.flags|=-17&e.flags,e)!Si(r,t)&&Si(e,t)&&("emitNode"===t?r.emitNode=void 0:r[t]=e[t]);return r}(e);return c(r,e),r}function ni(e){var t=u(308);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function ii(e,t){var r=u(354);return r.expression=e,r.original=t,r.transformFlags|=1|vi(r.expression),fT(r,t),r}function ai(e,t){return e.expression!==t?L(ii(t,e.original),e):e}function oi(e){if(rN(e)&&!ds(e)&&!e.original&&!e.emitNode&&!e.id){if(Q0(e))return e.elements;if(pT(e)&&p0(e.operatorToken))return[e.left,e.right]}return e}function si(e){var t=u(355);return t.elements=p(bi(e,oi)),t.transformFlags|=jg(t.elements),t}function ci(e,t){var r=u(356);return r.expression=e,r.thisArg=t,r.transformFlags|=vi(r.expression)|vi(r.thisArg),r}function li(e){if(void 0===e)return e;if(LF(e))return ri(e);if(PC(e))return(r=K((t=e).escapedText)).flags|=-17&t.flags,r.transformFlags=t.transformFlags,c(r,t),vh(r,{...t.emitNode.autoGenerate}),r;var t,r,n,i;if(uT(e))return(r=K((t=e).escapedText)).flags|=-17&t.flags,r.jsDoc=t.jsDoc,r.flowNode=t.flowNode,r.symbol=t.symbol,r.transformFlags=t.transformFlags,c(r,t),(t=BE(t))&&ME(r,t),r;if(lc(e))return(i=Q((n=e).escapedText)).flags|=-17&n.flags,i.transformFlags=n.transformFlags,c(i,n),vh(i,{...n.emitNode.autoGenerate}),i;if(UE(e))return(i=Q((n=e).escapedText)).flags|=-17&n.flags,i.transformFlags=n.transformFlags,c(i,n),i;var a,o=Ys(e.kind)?s.createBaseNode(e.kind):s.createBaseTokenNode(e.kind);for(a in o.flags|=-17&e.flags,o.transformFlags=e.transformFlags,c(o,e),e)!Si(o,a)&&Si(e,a)&&(o[a]=e[a]);return o}function C(){return Pt(U("0"))}function w(e,t,r){return yC(e)?gt(lt(e,void 0,t),void 0,void 0,r):v(y(e,t),void 0,r)}function N(e,t,r){return w(g(e),t,r)}function D(e,t,r){return!!r&&(e.push(Xn(t,r)),!0)}function _i(e,t){switch(e.kind){case 217:return kt(e,t);case 216:return xt(e,e.type,t);case 234:return Kt(e,t,e.type);case 238:return Qt(e,t,e.type);case 235:return $t(e,t);case 354:return ai(e,t)}}function ui(e){return IP(e)&&rN(e)&&rN($g(e))&&rN(th(e))&&!X4(rh(e))&&!X4(nh(e))}function di(e,t){var r=Cw(e);switch(r.kind){case 80:return t;case 110:case 9:case 10:case 11:return;case 209:return 0===r.elements.length?void 0:1;case 210:return 0Jg(Bg.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Jg(Bg.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Jg(Bg.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Jg(Bg.createBaseTokenNode(e)),createBaseNode:e=>Jg(Bg.createBaseNode(e))});function qg(e,t,r){return new(zg=zg||uD.getSourceMapSourceConstructor())(e,t,r)}function lT(e,t){return e.original!==t&&(e.original=t)&&(t=t.emitNode)&&(e.emitNode=function(e,t){var{flags:e,internalFlags:r,leadingComments:n,trailingComments:i,commentRange:a,sourceMapRange:o,tokenSourceMapRanges:s,constantValue:c,helpers:l,startsOnNewLine:_,snippetElement:u,classThis:d,assignedName:p}=e;t=t||{};e&&(t.flags=e);r&&(t.internalFlags=-9&r);n&&(t.leadingComments=BT(n.slice(),t.leadingComments));i&&(t.trailingComments=BT(i.slice(),t.trailingComments));a&&(t.commentRange=a);o&&(t.sourceMapRange=o);s&&(t.tokenSourceMapRanges=function(e,t){t=t||[];for(var r in e)t[r]=e[r];return t}(s,t.tokenSourceMapRanges));void 0!==c&&(t.constantValue=c);if(l)for(var f of l)t.helpers=zT(t.helpers,f);void 0!==_&&(t.startsOnNewLine=_);void 0!==u&&(t.snippetElement=u);d&&(t.classThis=d);p&&(t.assignedName=p);return t}(t,e.emitNode)),e}function Ug(e){if(e.emitNode)Y4.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(ds(e)){if(307===e.kind)return e.emitNode={annotatedNodes:[e]};Ug(iT(G3(iT(e)))??Y4.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function Vg(e){e=null==(e=null==(e=iT(G3(e)))?void 0:e.emitNode)?void 0:e.annotatedNodes;if(e)for(var t of e)t.emitNode=void 0}function Wg(e){var t=Ug(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function _T(e,t){return Ug(e).flags=t,e}function Hg(e,t){var r=Ug(e);return r.flags=r.flags|t,e}function Kg(e,t){return Ug(e).internalFlags=t,e}function Gg(e,t){var r=Ug(e);return r.internalFlags=r.internalFlags|t,e}function $g(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function Xg(e,t){return Ug(e).sourceMapRange=t,e}function Qg(e,t){return null==(e=null==(e=e.emitNode)?void 0:e.tokenSourceMapRanges)?void 0:e[t]}function Yg(e,t,r){var n=Ug(e);return(n.tokenSourceMapRanges??(n.tokenSourceMapRanges=[]))[t]=r,e}function Zg(e){return null==(e=e.emitNode)?void 0:e.startsOnNewLine}function eh(e,t){return Ug(e).startsOnNewLine=t,e}function th(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function LE(e,t){return Ug(e).commentRange=t,e}function rh(e){return null==(e=e.emitNode)?void 0:e.leadingComments}function jE(e,t){return Ug(e).leadingComments=t,e}function RE(e,t,r,n){return jE(e,Q4(rh(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:n,text:r}))}function nh(e){return null==(e=e.emitNode)?void 0:e.trailingComments}function ih(e,t){return Ug(e).trailingComments=t,e}function ah(e,t,r,n){return ih(e,Q4(nh(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:n,text:r}))}function oh(e,t){jE(e,rh(t)),ih(e,nh(t));t=Ug(t);return t.leadingComments=void 0,t.trailingComments=void 0,e}function sh(e){return null==(e=e.emitNode)?void 0:e.constantValue}function ch(e,t){return Ug(e).constantValue=t,e}function lh(e,t){var r=Ug(e);return r.helpers=Q4(r.helpers,t),e}function _h(e,t){if(X4(t)){var r,n=Ug(e);for(r of t)n.helpers=zT(n.helpers,r)}return e}function uh(e,t){e=null==(e=e.emitNode)?void 0:e.helpers;return!!e&&Oe(e,t)}function dh(e){return null==(e=e.emitNode)?void 0:e.helpers}function ph(e,r,n){var e=e.emitNode,i=e&&e.helpers;if(X4(i)){var a=Ug(r);let t=0;for(let e=0;e(e.Field="f",e.Method="m",e.Accessor="a",e))(Sh||{});function kh(c){let l=c.factory,n=Ci(()=>Kg(l.createTrue(),8)),i=Ci(()=>Kg(l.createFalse(),8));return{getUnscopedHelperName:_,createDecorateHelper:function(e,t,r,n){c.requestEmitHelper(wh);var i=[];i.push(l.createArrayLiteralExpression(e,!0)),i.push(t),r&&(i.push(r),n)&&i.push(n);return l.createCallExpression(_("__decorate"),void 0,i)},createMetadataHelper:function(e,t){return c.requestEmitHelper(Nh),l.createCallExpression(_("__metadata"),void 0,[l.createStringLiteral(e),t])},createParamHelper:function(e,t,r){return c.requestEmitHelper(Dh),fT(l.createCallExpression(_("__param"),void 0,[l.createNumericLiteral(t+""),e]),r)},createESDecorateHelper:function(e,t,r,n,i,a){return c.requestEmitHelper(Eh),l.createCallExpression(_("__esDecorate"),void 0,[e??l.createNull(),t??l.createNull(),r,function(e){return("class"===e.kind?function(e){e=[l.createPropertyAssignment(l.createIdentifier("kind"),l.createStringLiteral("class")),l.createPropertyAssignment(l.createIdentifier("name"),e.name),l.createPropertyAssignment(l.createIdentifier("metadata"),e.metadata)];return l.createObjectLiteralExpression(e)}:function(e){e=[l.createPropertyAssignment(l.createIdentifier("kind"),l.createStringLiteral(e.kind)),l.createPropertyAssignment(l.createIdentifier("name"),e.name.computed?e.name.name:l.createStringLiteralFromNode(e.name.name)),l.createPropertyAssignment(l.createIdentifier("static"),e.static?l.createTrue():l.createFalse()),l.createPropertyAssignment(l.createIdentifier("private"),e.private?l.createTrue():l.createFalse()),l.createPropertyAssignment(l.createIdentifier("access"),function(e,t){var r=[];r.push(function(e){e=!e.computed&&uT(e.name)?l.createStringLiteralFromNode(e.name):e.name;return l.createPropertyAssignment("has",l.createArrowFunction(void 0,void 0,[l.createParameterDeclaration(void 0,void 0,l.createIdentifier("obj"))],void 0,void 0,l.createBinaryExpression(e,103,l.createIdentifier("obj"))))}(e)),t.get&&r.push(function(e){e=e.computed?l.createElementAccessExpression(l.createIdentifier("obj"),e.name):l.createPropertyAccessExpression(l.createIdentifier("obj"),e.name);return l.createPropertyAssignment("get",l.createArrowFunction(void 0,void 0,[l.createParameterDeclaration(void 0,void 0,l.createIdentifier("obj"))],void 0,void 0,e))}(e));t.set&&r.push(function(e){e=e.computed?l.createElementAccessExpression(l.createIdentifier("obj"),e.name):l.createPropertyAccessExpression(l.createIdentifier("obj"),e.name);return l.createPropertyAssignment("set",l.createArrowFunction(void 0,void 0,[l.createParameterDeclaration(void 0,void 0,l.createIdentifier("obj")),l.createParameterDeclaration(void 0,void 0,l.createIdentifier("value"))],void 0,void 0,l.createBlock([l.createExpressionStatement(l.createAssignment(e,l.createIdentifier("value")))])))}(e));return l.createObjectLiteralExpression(r)}(e.name,e.access)),l.createPropertyAssignment(l.createIdentifier("metadata"),e.metadata)];return l.createObjectLiteralExpression(e)})(e)}(n),i,a])},createRunInitializersHelper:function(e,t,r){return c.requestEmitHelper(Ph),l.createCallExpression(_("__runInitializers"),void 0,r?[e,t,r]:[e,t])},createAssignHelper:function(e){if(2<=vD(c.getCompilerOptions()))return l.createCallExpression(l.createPropertyAccessExpression(l.createIdentifier("Object"),"assign"),void 0,e);return c.requestEmitHelper(Fh),l.createCallExpression(_("__assign"),void 0,e)},createAwaitHelper:function(e){return c.requestEmitHelper(Ah),l.createCallExpression(_("__await"),void 0,[e])},createAsyncGeneratorHelper:function(e,t){return c.requestEmitHelper(Ah),c.requestEmitHelper(Ih),(e.emitNode||(e.emitNode={})).flags|=1572864,l.createCallExpression(_("__asyncGenerator"),void 0,[t?l.createThis():l.createVoidZero(),l.createIdentifier("arguments"),e])},createAsyncDelegatorHelper:function(e){return c.requestEmitHelper(Ah),c.requestEmitHelper(Oh),l.createCallExpression(_("__asyncDelegator"),void 0,[e])},createAsyncValuesHelper:function(e){return c.requestEmitHelper(Lh),l.createCallExpression(_("__asyncValues"),void 0,[e])},createRestHelper:function(e,t,r,n){c.requestEmitHelper(jh);let i=[],a=0;for(let e=0;e{let r="";for(let e=0;e= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + };`},Nh={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + };`},Dh={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + };`},Eh={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + };`},Ph={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + };`},Fh={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + };`},Ah={name:"typescript:await",importName:"__await",scoped:!1,text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},Ih={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Ah],text:` + var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + 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]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + };`},Oh={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Ah],text:` + var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + 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; } + };`},Lh={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + 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); + 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); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + };`},jh={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + };`},Rh={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + };`},Mh={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + })();`},Bh={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + };`},Jh={name:"typescript:read",importName:"__read",scoped:!1,text:` + var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + };`},zh={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + };`},qh={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + var __propKey = (this && this.__propKey) || function (x) { + return typeof x === "symbol" ? x : "".concat(x); + };`},Uh={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + };`},Vh={name:"typescript:values",importName:"__values",scoped:!1,text:` + var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + };`},Wh={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + 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; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + };`},Hh={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }));`},Kh={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + });`},Gh={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Hh,Kh],priority:2,text:` + var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + };`},$h={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + };`},Xh={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Hh],priority:2,text:` + var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); + };`},Qh={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + 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"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + };`},Yh={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + 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"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + };`},Zh={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + };`},e0={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };`},t0={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });`},r0={name:"typescript:async-super",scoped:!0,text:Ch` + const ${"_superIndex"} = name => super[name];`},n0={name:"typescript:advanced-async-super",scoped:!0,text:Ch` + 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 i0(e,t){return PP(e)&&uT(e.expression)&&0!=(8192&$7(e.expression))&&e.expression.escapedText===t}function zE(e){return 9===e.kind}function a0(e){return 10===e.kind}function qE(e){return 11===e.kind}function o0(e){return 12===e.kind}function s0(e){return 14===e.kind}function c0(e){return 15===e.kind}function l0(e){return 16===e.kind}function _0(e){return 17===e.kind}function u0(e){return 18===e.kind}function d0(e){return 26===e.kind}function p0(e){return 28===e.kind}function f0(e){return 40===e.kind}function m0(e){return 41===e.kind}function g0(e){return 42===e.kind}function h0(e){return 54===e.kind}function y0(e){return 58===e.kind}function v0(e){return 59===e.kind}function b0(e){return 29===e.kind}function x0(e){return 39===e.kind}function uT(e){return 80===e.kind}function UE(e){return 81===e.kind}function S0(e){return 95===e.kind}function k0(e){return 90===e.kind}function T0(e){return 134===e.kind}function C0(e){return 131===e.kind}function w0(e){return 135===e.kind}function N0(e){return 148===e.kind}function D0(e){return 126===e.kind}function E0(e){return 128===e.kind}function P0(e){return 164===e.kind}function F0(e){return 129===e.kind}function A0(e){return 108===e.kind}function VE(e){return 102===e.kind}function I0(e){return 84===e.kind}function WE(e){return 166===e.kind}function HE(e){return 167===e.kind}function KE(e){return 168===e.kind}function GE(e){return 169===e.kind}function $E(e){return 170===e.kind}function XE(e){return 171===e.kind}function QE(e){return 172===e.kind}function YE(e){return 173===e.kind}function ZE(e){return 174===e.kind}function eP(e){return 175===e.kind}function tP(e){return 176===e.kind}function rP(e){return 177===e.kind}function nP(e){return 178===e.kind}function iP(e){return 179===e.kind}function aP(e){return 180===e.kind}function O0(e){return 181===e.kind}function oP(e){return 182===e.kind}function sP(e){return 183===e.kind}function cP(e){return 184===e.kind}function lP(e){return 185===e.kind}function _P(e){return 186===e.kind}function uP(e){return 187===e.kind}function L0(e){return 188===e.kind}function dP(e){return 189===e.kind}function pP(e){return 202===e.kind}function fP(e){return 190===e.kind}function mP(e){return 191===e.kind}function j0(e){return 192===e.kind}function R0(e){return 193===e.kind}function gP(e){return 194===e.kind}function M0(e){return 195===e.kind}function hP(e){return 196===e.kind}function yP(e){return 197===e.kind}function vP(e){return 198===e.kind}function bP(e){return 199===e.kind}function xP(e){return 200===e.kind}function SP(e){return 201===e.kind}function kP(e){return 205===e.kind}function B0(e){return 204===e.kind}function J0(e){return 203===e.kind}function TP(e){return 206===e.kind}function CP(e){return 207===e.kind}function wP(e){return 208===e.kind}function NP(e){return 209===e.kind}function DP(e){return 210===e.kind}function dT(e){return 211===e.kind}function EP(e){return 212===e.kind}function PP(e){return 213===e.kind}function FP(e){return 214===e.kind}function AP(e){return 215===e.kind}function z0(e){return 216===e.kind}function IP(e){return 217===e.kind}function OP(e){return 218===e.kind}function LP(e){return 219===e.kind}function q0(e){return 220===e.kind}function jP(e){return 221===e.kind}function U0(e){return 222===e.kind}function RP(e){return 223===e.kind}function MP(e){return 224===e.kind}function V0(e){return 225===e.kind}function pT(e){return 226===e.kind}function W0(e){return 227===e.kind}function H0(e){return 228===e.kind}function K0(e){return 229===e.kind}function BP(e){return 230===e.kind}function JP(e){return 231===e.kind}function zP(e){return 232===e.kind}function qP(e){return 233===e.kind}function G0(e){return 234===e.kind}function UP(e){return 238===e.kind}function VP(e){return 235===e.kind}function WP(e){return 236===e.kind}function $0(e){return 237===e.kind}function X0(e){return 354===e.kind}function Q0(e){return 355===e.kind}function HP(e){return 239===e.kind}function Y0(e){return 240===e.kind}function KP(e){return 241===e.kind}function GP(e){return 243===e.kind}function Z0(e){return 242===e.kind}function $P(e){return 244===e.kind}function XP(e){return 245===e.kind}function e1(e){return 246===e.kind}function t1(e){return 247===e.kind}function QP(e){return 248===e.kind}function YP(e){return 249===e.kind}function ZP(e){return 250===e.kind}function r1(e){return 251===e.kind}function n1(e){return 252===e.kind}function i1(e){return 253===e.kind}function a1(e){return 254===e.kind}function o1(e){return 255===e.kind}function s1(e){return 256===e.kind}function c1(e){return 257===e.kind}function l1(e){return 258===e.kind}function _1(e){return 259===e.kind}function eF(e){return 260===e.kind}function tF(e){return 261===e.kind}function rF(e){return 262===e.kind}function nF(e){return 263===e.kind}function iF(e){return 264===e.kind}function aF(e){return 265===e.kind}function oF(e){return 266===e.kind}function sF(e){return 267===e.kind}function cF(e){return 268===e.kind}function u1(e){return 269===e.kind}function lF(e){return 270===e.kind}function _F(e){return 271===e.kind}function uF(e){return 272===e.kind}function dF(e){return 273===e.kind}function d1(e){return 302===e.kind}function p1(e){return 300===e.kind}function f1(e){return 301===e.kind}function pF(e){return 300===e.kind}function m1(e){return 301===e.kind}function g1(e){return 274===e.kind}function fF(e){return 280===e.kind}function h1(e){return 275===e.kind}function mF(e){return 276===e.kind}function gF(e){return 277===e.kind}function hF(e){return 278===e.kind}function yF(e){return 279===e.kind}function vF(e){return 281===e.kind}function y1(e){return 282===e.kind}function v1(e){return 353===e.kind}function b1(e){return 356===e.kind}function bF(e){return 283===e.kind}function xF(e){return 284===e.kind}function SF(e){return 285===e.kind}function kF(e){return 286===e.kind}function x1(e){return 287===e.kind}function S1(e){return 288===e.kind}function TF(e){return 289===e.kind}function k1(e){return 290===e.kind}function CF(e){return 291===e.kind}function wF(e){return 292===e.kind}function NF(e){return 293===e.kind}function T1(e){return 294===e.kind}function DF(e){return 295===e.kind}function C1(e){return 296===e.kind}function w1(e){return 297===e.kind}function EF(e){return 298===e.kind}function PF(e){return 299===e.kind}function FF(e){return 303===e.kind}function AF(e){return 304===e.kind}function IF(e){return 305===e.kind}function OF(e){return 306===e.kind}function LF(e){return 307===e.kind}function N1(e){return 308===e.kind}function jF(e){return 309===e.kind}function RF(e){return 310===e.kind}function MF(e){return 311===e.kind}function D1(e){return 324===e.kind}function E1(e){return 325===e.kind}function P1(e){return 326===e.kind}function BF(e){return 312===e.kind}function JF(e){return 313===e.kind}function zF(e){return 314===e.kind}function qF(e){return 315===e.kind}function UF(e){return 316===e.kind}function VF(e){return 317===e.kind}function WF(e){return 318===e.kind}function F1(e){return 319===e.kind}function A1(e){return 320===e.kind}function HF(e){return 322===e.kind}function KF(e){return 323===e.kind}function GF(e){return 328===e.kind}function I1(e){return 330===e.kind}function O1(e){return 332===e.kind}function $F(e){return 338===e.kind}function L1(e){return 333===e.kind}function j1(e){return 334===e.kind}function R1(e){return 335===e.kind}function M1(e){return 336===e.kind}function B1(e){return 337===e.kind}function XF(e){return 339===e.kind}function J1(e){return 331===e.kind}function z1(e){return 347===e.kind}function q1(e){return 340===e.kind}function QF(e){return 341===e.kind}function U1(e){return 342===e.kind}function YF(e){return 343===e.kind}function V1(e){return 344===e.kind}function ZF(e){return 345===e.kind}function e9(e){return 346===e.kind}function W1(e){return 327===e.kind}function t9(e){return 348===e.kind}function H1(e){return 329===e.kind}function r9(e){return 350===e.kind}function K1(e){return 349===e.kind}function n9(e){return 351===e.kind}function G1(e){return 352===e.kind}var $1,X1=new WeakMap;function Q1(e){return Ys(e.kind)?X1.get(e):H4}function Y1(e,t){return X1.set(e,t),t}function Z1(e){X1.delete(e)}function i9(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function ey(e,t,r,n){return HE(r)?fT(e.createElementAccessExpression(t,r.expression),n):(Hg(n=fT(Us(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r),128),n)}function ty(e,t){e=g9.createIdentifier(e||"React");return tE(e,G3(t)),e}function ry(e,t,r){var n,i;return WE(t)?(n=ry(e,t.left,r),(i=e.createIdentifier(rT(t.right))).escapedText=t.right.escapedText,e.createPropertyAccessExpression(n,i)):ty(rT(t),r)}function ny(e,t,r,n){return t?ry(e,t,n):e.createPropertyAccessExpression(ty(r,n),"createElement")}function iy(e,t,r,n,i,a){var o=[r];if(n&&o.push(n),i&&0Cl(n,e)?t.createImportSpecifier(!1,void 0,t.createIdentifier(e)):t.createImportSpecifier(!1,t.createIdentifier(e),r.getUnscopedHelperName(e)))),Ug(K3(n,LF)).externalHelpers=!0)}}else{c=Ty(t,n,i,a,o||s);c&&(e=t.createNamespaceImport(c))}if(e)return Gg(i=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,e),t.createStringLiteral(D7),void 0),2),i}}function Ty(t,r,n,i,a){if(n.importHelpers&&o5(r,n)){var o=xy(r);if(o)return o;o=bD(n);let e=(i||kD(n)&&a)&&4!==o&&(o<5||1===r.impliedNodeFormat);if(!e){i=dh(r);if(i)for(var s of i)if(!s.scoped){e=!0;break}}return e?(n=Ug(K3(r,LF))).externalHelpersModuleName||(n.externalHelpersModuleName=t.createUniqueName(D7)):void 0}}function Cy(e,t,r){var n=tw(t);return!n||lu(t)||zl(t)?272===t.kind&&t.importClause||278===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0:PC(t=n.name)?t:e.createIdentifier(Jl(r,t)||rT(t))}function wy(e,t,r,n,i,a){var o=ew(t);if(o&&qE(o))return n=n,a=a,Ny(e,i.getExternalModuleFileFromDeclaration(t),n,a)||function(e,t,r){r=r.renamedDependencies&&r.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,o,r)||e.cloneNode(o)}function Ny(e,t,r,n){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&n.outFile?e.createStringLiteral(Cd(r,t.fileName)):void 0}function Dy(e){var t;return Tc(e)?e.initializer:FF(e)?zN(t=e.initializer,!0)?t.right:void 0:AF(e)?e.objectAssignmentInitializer:zN(e,!0)?e.right:BP(e)?Dy(e.expression):void 0}function Ey(e){if(Tc(e))return e.name;if(!HC(e))return zN(e,!0)?Ey(e.left):BP(e)?Ey(e.expression):e;switch(e.kind){case 303:return Ey(e.initializer);case 304:return e.name;case 305:return Ey(e.expression)}}function Py(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function Fy(e){var t=Ay(e);return Y4.assert(!!t||IF(e),"Invalid property name for binding element."),t}function Ay(e){switch(e.kind){case 208:if(e.propertyName)return UE(t=e.propertyName)?Y4.failBadSyntaxKind(t):HE(t)&&Iy(t.expression)?t.expression:t;break;case 303:var t;if(e.name)return UE(t=e.name)?Y4.failBadSyntaxKind(t):HE(t)&&Iy(t.expression)?t.expression:t;break;case 305:return e.name&&UE(e.name)?Y4.failBadSyntaxKind(e.name):e.name}var r=Ey(e);if(r&&LC(r))return r}function Iy(e){e=e.kind;return 11===e||9===e}function Oy(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function Ly(t){if(t){let e=t;for(;;){if(uT(e)||!e.body)return uT(e)?e:e.name;e=e.body}}}function jy(e){e=e.kind;return 176===e||178===e}function Ry(e){e=e.kind;return 176===e||177===e||178===e}function u9(e){e=e.kind;return 303===e||304===e||262===e||176===e||181===e||175===e||282===e||243===e||264===e||265===e||266===e||267===e||271===e||272===e||270===e||278===e||277===e}function d9(e){e=e.kind;return 175===e||303===e||304===e||282===e||270===e}function My(e){return y0(e)||h0(e)}function By(e){return uT(e)||yP(e)}function Jy(e){return N0(e)||f0(e)||m0(e)}function zy(e){return y0(e)||f0(e)||m0(e)}function qy(e){return uT(e)||qE(e)}function Uy(e){var t=e.kind;return 106===t||112===t||97===t||CC(e)||MP(e)}function Vy(e){return 48===(t=e)||49===t||50===t||40===(e=t=e)||41===e||43===(e=t)||42===(e=e)||44===e||45===e;var t}function Wy(e){return 35===(t=e)||37===t||36===t||38===t||30===(e=t=e)||33===e||32===e||34===e||104===e||103===e||Vy(t);var t}function Hy(e){return 56===(t=e)||57===t||51===(e=t=e)||52===e||53===e||Wy(t);var t}function Ky(e){return 61===(t=e)||Hy(t)||BN(t)||28===e;var t}function Gy(e){return Ky(e.kind)}function $y(e,t,r,n,i,a,o){var s=0new(cv=cv||uD.getSourceFileConstructor())(e,-1,-1),createBaseIdentifierNode:e=>new(ov=ov||uD.getIdentifierConstructor())(e,-1,-1),createBasePrivateIdentifierNode:e=>new(sv=sv||uD.getPrivateIdentifierConstructor())(e,-1,-1),createBaseTokenNode:e=>new(av=av||uD.getTokenConstructor())(e,-1,-1),createBaseNode:e=>new(iv=iv||uD.getNodeConstructor())(e,-1,-1)},g9=Fg(1,Cv);function n(e,t){return t&&e(t)}function wv(e,t,r){if(r){if(t)return t(r);for(var n of r){n=e(n);if(n)return n}}}function Nv(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function Dv(e){return G4(e.statements,Ev)||(8388608&(e=e).flags?Pv(e):void 0)}function Ev(e){return f9(e)&&(t=95,X4(e.modifiers,e=>e.kind===t))||_F(e)&&bF(e.moduleReference)||uF(e)||gF(e)||hF(e)?e:void 0;var t}function Pv(e){return WP(t=e)&&102===t.keywordToken&&"meta"===t.name.escapedText?e:h9(e,Pv);var t}var Fv,Av={[166]:function(e,t,r){return n(t,e.left)||n(t,e.right)},168:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||n(t,e.constraint)||n(t,e.default)||n(t,e.expression)},304:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||n(t,e.questionToken)||n(t,e.exclamationToken)||n(t,e.equalsToken)||n(t,e.objectAssignmentInitializer)},305:function(e,t,r){return n(t,e.expression)},169:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.dotDotDotToken)||n(t,e.name)||n(t,e.questionToken)||n(t,e.type)||n(t,e.initializer)},172:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||n(t,e.questionToken)||n(t,e.exclamationToken)||n(t,e.type)||n(t,e.initializer)},171:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||n(t,e.questionToken)||n(t,e.type)||n(t,e.initializer)},303:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||n(t,e.questionToken)||n(t,e.exclamationToken)||n(t,e.initializer)},260:function(e,t,r){return n(t,e.name)||n(t,e.exclamationToken)||n(t,e.type)||n(t,e.initializer)},208:function(e,t,r){return n(t,e.dotDotDotToken)||n(t,e.propertyName)||n(t,e.name)||n(t,e.initializer)},181:function(e,t,r){return wv(t,r,e.modifiers)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)},185:function(e,t,r){return wv(t,r,e.modifiers)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)},184:function(e,t,r){return wv(t,r,e.modifiers)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)},179:Iv,180:Iv,174:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.asteriskToken)||n(t,e.name)||n(t,e.questionToken)||n(t,e.exclamationToken)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)||n(t,e.body)},173:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||n(t,e.questionToken)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)},176:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)||n(t,e.body)},177:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)||n(t,e.body)},178:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)||n(t,e.body)},262:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.asteriskToken)||n(t,e.name)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)||n(t,e.body)},218:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.asteriskToken)||n(t,e.name)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)||n(t,e.body)},219:function(e,t,r){return wv(t,r,e.modifiers)||wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)||n(t,e.equalsGreaterThanToken)||n(t,e.body)},175:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.body)},183:function(e,t,r){return n(t,e.typeName)||wv(t,r,e.typeArguments)},182:function(e,t,r){return n(t,e.assertsModifier)||n(t,e.parameterName)||n(t,e.type)},186:function(e,t,r){return n(t,e.exprName)||wv(t,r,e.typeArguments)},187:function(e,t,r){return wv(t,r,e.members)},188:function(e,t,r){return n(t,e.elementType)},189:function(e,t,r){return wv(t,r,e.elements)},192:Ov,193:Ov,194:function(e,t,r){return n(t,e.checkType)||n(t,e.extendsType)||n(t,e.trueType)||n(t,e.falseType)},195:function(e,t,r){return n(t,e.typeParameter)},205:function(e,t,r){return n(t,e.argument)||n(t,e.attributes)||n(t,e.qualifier)||wv(t,r,e.typeArguments)},302:function(e,t,r){return n(t,e.assertClause)},196:Lv,198:Lv,199:function(e,t,r){return n(t,e.objectType)||n(t,e.indexType)},200:function(e,t,r){return n(t,e.readonlyToken)||n(t,e.typeParameter)||n(t,e.nameType)||n(t,e.questionToken)||n(t,e.type)||wv(t,r,e.members)},201:function(e,t,r){return n(t,e.literal)},202:function(e,t,r){return n(t,e.dotDotDotToken)||n(t,e.name)||n(t,e.questionToken)||n(t,e.type)},206:jv,207:jv,209:function(e,t,r){return wv(t,r,e.elements)},210:function(e,t,r){return wv(t,r,e.properties)},211:function(e,t,r){return n(t,e.expression)||n(t,e.questionDotToken)||n(t,e.name)},212:function(e,t,r){return n(t,e.expression)||n(t,e.questionDotToken)||n(t,e.argumentExpression)},213:Rv,214:Rv,215:function(e,t,r){return n(t,e.tag)||n(t,e.questionDotToken)||wv(t,r,e.typeArguments)||n(t,e.template)},216:function(e,t,r){return n(t,e.type)||n(t,e.expression)},217:function(e,t,r){return n(t,e.expression)},220:function(e,t,r){return n(t,e.expression)},221:function(e,t,r){return n(t,e.expression)},222:function(e,t,r){return n(t,e.expression)},224:function(e,t,r){return n(t,e.operand)},229:function(e,t,r){return n(t,e.asteriskToken)||n(t,e.expression)},223:function(e,t,r){return n(t,e.expression)},225:function(e,t,r){return n(t,e.operand)},226:function(e,t,r){return n(t,e.left)||n(t,e.operatorToken)||n(t,e.right)},234:function(e,t,r){return n(t,e.expression)||n(t,e.type)},235:function(e,t,r){return n(t,e.expression)},238:function(e,t,r){return n(t,e.expression)||n(t,e.type)},236:function(e,t,r){return n(t,e.name)},227:function(e,t,r){return n(t,e.condition)||n(t,e.questionToken)||n(t,e.whenTrue)||n(t,e.colonToken)||n(t,e.whenFalse)},230:function(e,t,r){return n(t,e.expression)},241:Mv,268:Mv,307:function(e,t,r){return wv(t,r,e.statements)||n(t,e.endOfFileToken)},243:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.declarationList)},261:function(e,t,r){return wv(t,r,e.declarations)},244:function(e,t,r){return n(t,e.expression)},245:function(e,t,r){return n(t,e.expression)||n(t,e.thenStatement)||n(t,e.elseStatement)},246:function(e,t,r){return n(t,e.statement)||n(t,e.expression)},247:function(e,t,r){return n(t,e.expression)||n(t,e.statement)},248:function(e,t,r){return n(t,e.initializer)||n(t,e.condition)||n(t,e.incrementor)||n(t,e.statement)},249:function(e,t,r){return n(t,e.initializer)||n(t,e.expression)||n(t,e.statement)},250:function(e,t,r){return n(t,e.awaitModifier)||n(t,e.initializer)||n(t,e.expression)||n(t,e.statement)},251:Bv,252:Bv,253:function(e,t,r){return n(t,e.expression)},254:function(e,t,r){return n(t,e.expression)||n(t,e.statement)},255:function(e,t,r){return n(t,e.expression)||n(t,e.caseBlock)},269:function(e,t,r){return wv(t,r,e.clauses)},296:function(e,t,r){return n(t,e.expression)||wv(t,r,e.statements)},297:function(e,t,r){return wv(t,r,e.statements)},256:function(e,t,r){return n(t,e.label)||n(t,e.statement)},257:function(e,t,r){return n(t,e.expression)},258:function(e,t,r){return n(t,e.tryBlock)||n(t,e.catchClause)||n(t,e.finallyBlock)},299:function(e,t,r){return n(t,e.variableDeclaration)||n(t,e.block)},170:function(e,t,r){return n(t,e.expression)},263:Jv,231:Jv,264:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||wv(t,r,e.typeParameters)||wv(t,r,e.heritageClauses)||wv(t,r,e.members)},265:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||wv(t,r,e.typeParameters)||n(t,e.type)},266:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||wv(t,r,e.members)},306:function(e,t,r){return n(t,e.name)||n(t,e.initializer)},267:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||n(t,e.body)},271:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||n(t,e.moduleReference)},272:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.importClause)||n(t,e.moduleSpecifier)||n(t,e.attributes)},273:function(e,t,r){return n(t,e.name)||n(t,e.namedBindings)},300:function(e,t,r){return wv(t,r,e.elements)},301:function(e,t,r){return n(t,e.name)||n(t,e.value)},270:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)},274:function(e,t,r){return n(t,e.name)},280:function(e,t,r){return n(t,e.name)},275:zv,279:zv,278:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.exportClause)||n(t,e.moduleSpecifier)||n(t,e.attributes)},276:qv,281:qv,277:function(e,t,r){return wv(t,r,e.modifiers)||n(t,e.expression)},228:function(e,t,r){return n(t,e.head)||wv(t,r,e.templateSpans)},239:function(e,t,r){return n(t,e.expression)||n(t,e.literal)},203:function(e,t,r){return n(t,e.head)||wv(t,r,e.templateSpans)},204:function(e,t,r){return n(t,e.type)||n(t,e.literal)},167:function(e,t,r){return n(t,e.expression)},298:function(e,t,r){return wv(t,r,e.types)},233:function(e,t,r){return n(t,e.expression)||wv(t,r,e.typeArguments)},283:function(e,t,r){return n(t,e.expression)},282:function(e,t,r){return wv(t,r,e.modifiers)},355:function(e,t,r){return wv(t,r,e.elements)},284:function(e,t,r){return n(t,e.openingElement)||wv(t,r,e.children)||n(t,e.closingElement)},288:function(e,t,r){return n(t,e.openingFragment)||wv(t,r,e.children)||n(t,e.closingFragment)},285:Uv,286:Uv,292:function(e,t,r){return wv(t,r,e.properties)},291:function(e,t,r){return n(t,e.name)||n(t,e.initializer)},293:function(e,t,r){return n(t,e.expression)},294:function(e,t,r){return n(t,e.dotDotDotToken)||n(t,e.expression)},287:function(e,t,r){return n(t,e.tagName)},295:function(e,t,r){return n(t,e.namespace)||n(t,e.name)},190:Vv,191:Vv,309:Vv,315:Vv,314:Vv,316:Vv,318:Vv,317:function(e,t,r){return wv(t,r,e.parameters)||n(t,e.type)},320:function(e,t,r){return("string"==typeof e.comment?void 0:wv(t,r,e.comment))||wv(t,r,e.tags)},347:function(e,t,r){return n(t,e.tagName)||n(t,e.name)||("string"==typeof e.comment?void 0:wv(t,r,e.comment))},310:function(e,t,r){return n(t,e.name)},311:function(e,t,r){return n(t,e.left)||n(t,e.right)},341:Wv,348:Wv,330:function(e,t,r){return n(t,e.tagName)||("string"==typeof e.comment?void 0:wv(t,r,e.comment))},329:function(e,t,r){return n(t,e.tagName)||n(t,e.class)||("string"==typeof e.comment?void 0:wv(t,r,e.comment))},328:function(e,t,r){return n(t,e.tagName)||n(t,e.class)||("string"==typeof e.comment?void 0:wv(t,r,e.comment))},345:function(e,t,r){return n(t,e.tagName)||n(t,e.constraint)||wv(t,r,e.typeParameters)||("string"==typeof e.comment?void 0:wv(t,r,e.comment))},346:function(e,t,r){return n(t,e.tagName)||(e.typeExpression&&309===e.typeExpression.kind?n(t,e.typeExpression)||n(t,e.fullName)||("string"==typeof e.comment?void 0:wv(t,r,e.comment)):n(t,e.fullName)||n(t,e.typeExpression)||("string"==typeof e.comment?void 0:wv(t,r,e.comment)))},338:function(e,t,r){return n(t,e.tagName)||n(t,e.fullName)||n(t,e.typeExpression)||("string"==typeof e.comment?void 0:wv(t,r,e.comment))},342:Hv,344:Hv,343:Hv,340:Hv,350:Hv,349:Hv,339:Hv,323:function(e,t,r){return G4(e.typeParameters,t)||G4(e.parameters,t)||n(t,e.type)},324:Kv,325:Kv,326:Kv,322:function(e,t,r){return G4(e.jsDocPropertyTags,t)},327:Gv,332:Gv,333:Gv,334:Gv,335:Gv,336:Gv,331:Gv,337:Gv,351:function(e,t,r){return n(t,e.tagName)||n(t,e.importClause)||n(t,e.moduleSpecifier)||n(t,e.attributes)||("string"==typeof e.comment?void 0:wv(t,r,e.comment))},354:function(e,t,r){return n(t,e.expression)}};function Iv(e,t,r){return wv(t,r,e.typeParameters)||wv(t,r,e.parameters)||n(t,e.type)}function Ov(e,t,r){return wv(t,r,e.types)}function Lv(e,t,r){return n(t,e.type)}function jv(e,t,r){return wv(t,r,e.elements)}function Rv(e,t,r){return n(t,e.expression)||n(t,e.questionDotToken)||wv(t,r,e.typeArguments)||wv(t,r,e.arguments)}function Mv(e,t,r){return wv(t,r,e.statements)}function Bv(e,t,r){return n(t,e.label)}function Jv(e,t,r){return wv(t,r,e.modifiers)||n(t,e.name)||wv(t,r,e.typeParameters)||wv(t,r,e.heritageClauses)||wv(t,r,e.members)}function zv(e,t,r){return wv(t,r,e.elements)}function qv(e,t,r){return n(t,e.propertyName)||n(t,e.name)}function Uv(e,t,r){return n(t,e.tagName)||wv(t,r,e.typeArguments)||n(t,e.attributes)}function Vv(e,t,r){return n(t,e.type)}function Wv(e,t,r){return n(t,e.tagName)||(e.isNameFirst?n(t,e.name)||n(t,e.typeExpression):n(t,e.typeExpression)||n(t,e.name))||("string"==typeof e.comment?void 0:wv(t,r,e.comment))}function Hv(e,t,r){return n(t,e.tagName)||n(t,e.typeExpression)||("string"==typeof e.comment?void 0:wv(t,r,e.comment))}function Kv(e,t,r){return n(t,e.name)}function Gv(e,t,r){return n(t,e.tagName)||("string"==typeof e.comment?void 0:wv(t,r,e.comment))}function h9(e,t,r){var n;return void 0===e||e.kind<=165||void 0===(n=Av[e.kind])?void 0:n(e,t,r)}function y9(e,t,r){for(var n=$v(e),i=[];i.length(e.impliedNodeFormat=c,(s||Xv)(e)),Fv.parseSourceFile(e,t,o,void 0,n,i,r,l)),null!=er&&er.logStopParseSourceFile(),x3("afterParse"),S3("Parse","beforeParse","afterParse"),null!=Z4&&Z4.pop(),a}function v9(e,t){return Fv.parseIsolatedEntityName(e,t)}function Yv(e,t){return Fv.parseJsonText(e,t)}function b9(e){return void 0!==e.externalModuleIndicator}function Zv(e,t,r,n=!1){t=i4.updateSourceFile(e,t,r,n);return t.flags|=12582912&e.flags,t}function e2(e,t,r){e=Fv.JSDocParser.parseIsolatedJSDocComment(e,t,r);return e&&e.jsDoc&&Fv.fixupParentReferences(e.jsDoc),e}function t2(e,t,r){return Fv.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}{At=Fv=Fv||{};var r2,n2,i2,a2,o2,V=M3(99,!0),s2=40960;function c2(e){return y2++,e}var l2,_2,u2,d2,p2,f2,m2,g2,h2,W,y2,v2,b2,x2,S2,k2,H=Fg(11,{createBaseSourceFileNode:e=>c2(new o2(e,0,0)),createBaseIdentifierNode:e=>c2(new i2(e,0,0)),createBasePrivateIdentifierNode:e=>c2(new a2(e,0,0)),createBaseTokenNode:e=>c2(new n2(e,0,0)),createBaseNode:e=>c2(new r2(e,0,0))}),{createNodeArray:T2,createNumericLiteral:C2,createStringLiteral:w2,createLiteralLikeNode:N2,createIdentifier:D2,createPrivateIdentifier:E2,createToken:P2,createArrayLiteralExpression:F2,createObjectLiteralExpression:A2,createPropertyAccessExpression:I2,createPropertyAccessChain:O2,createElementAccessExpression:L2,createElementAccessChain:j2,createCallExpression:R2,createCallChain:M2,createNewExpression:B2,createParenthesizedExpression:J2,createBlock:z2,createVariableStatement:q2,createExpressionStatement:U2,createIfStatement:V2,createWhileStatement:W2,createForStatement:H2,createForOfStatement:K2,createVariableDeclaration:G2,createVariableDeclarationList:$2}=H,X2=!0,Q2=!1;function Y2(e,r,n=2,i,t=!1){Z2(e,r,n,i,6,0),_2=k2,Fb();r=K();let a,o;if(1===W)a=nx([],r,r),o=Zb();else{let t;for(;1!==W;){let e;switch(W){case 23:e=Ak();break;case 112:case 97:case 106:e=Zb();break;case 41:e=(zb(()=>9===Fb()&&59!==Fb())?lk:Ok)();break;case 9:case 11:if(zb(()=>59!==Fb())){e=Wx();break}default:e=Ok()}t&&i3(t)?t.push(e):t?t=[t,e]:(t=e,1!==W&&kb(eT.Unexpected_token))}n=i3(t)?$(F2(t),r):Y4.checkDefined(t),i=U2(n);$(i,r),a=nx([i],r),o=Yb(1,eT.Unexpected_token)}n=ib(e,2,6,!1,a,o,_2,yr),t&&nb(n),n.nodeCount=y2,n.identifierCount=b2,n.identifiers=v2,n.parseDiagnostics=Sf(m2,n),g2&&(n.jsDocDiagnostics=Sf(g2,n)),i=n;return eb(),i}function Z2(e,t,r,n,i,a){switch(r2=uD.getNodeConstructor(),n2=uD.getTokenConstructor(),i2=uD.getIdentifierConstructor(),a2=uD.getPrivateIdentifierConstructor(),o2=uD.getSourceFileConstructor(),l2=ua(e),u2=t,d2=r,h2=n,f2=Ef(p2=i),m2=[],x2=0,v2=new Map,X2=!(_2=y2=b2=0),p2){case 1:case 2:k2=524288;break;case 6:k2=134742016;break;default:k2=0}Q2=!1,V.setText(u2),V.setOnError(Nb),V.setScriptTarget(d2),V.setLanguageVariant(f2),V.setScriptKind(p2),V.setJSDocParsingMode(a)}function eb(){V.clearCommentDirectives(),V.setText(""),V.setOnError(void 0),V.setScriptKind(0),V.setJSDocParsingMode(0),f2=p2=h2=d2=u2=void 0,g2=m2=void(_2=0),X2=!(S2=v2=void(x2=0))}At.parseSourceFile=function(e,t,r,n,i=!1,a,o,s=0){var c;if(6===(a=ym(e,a)))return uA(c=Y2(e,t,r,n,i),null==(l=c.statements[0])?void 0:l.expression,c.parseDiagnostics,!1,void 0),c.referencedFiles=H4,c.typeReferenceDirectives=H4,c.libReferenceDirectives=H4,c.amdDependencies=H4,c.hasNoDefaultLib=!1,c.pragmas=p,c;Z2(e,t,r,n,a,s);var l=function(e,t,r,n,i){var a=x9(l2);a&&(k2|=33554432);_2=k2,Fb();var o=Fx(0,n6),s=(Y4.assert(1===W),Db()),s=tb(Zb(),s),e=ib(l2,e,r,a,o,s,_2,n);m4(e,u2),g4(e,function(e,t,r){m2.push(dD(l2,u2,e,t,r))}),e.commentDirectives=V.getCommentDirectives(),e.nodeCount=y2,e.identifierCount=b2,e.identifiers=v2,e.parseDiagnostics=Sf(m2,e),e.jsDocParsingMode=i,g2&&(e.jsDocDiagnostics=Sf(g2,e));t&&nb(e);return e}(r,i,a,o||Xv,s);return eb(),l},At.parseIsolatedEntityName=function(e,t){return Z2("",e,t,void 0,1,0),Fb(),e=Bx(!0),t=1===W&&!m2.length,eb(),t?e:void 0},At.parseJsonText=Y2;let U=!1;function tb(t,e){return e&&(Y4.assert(!t.jsDoc),(e=AT(T_(t,u2),e=>r.parseJSDocComment(t,e.pos,e.end-e.pos))).length&&(t.jsDoc=e),U)&&(U=!1,t.flags|=536870912),t}function rb(i){var e=h2;let t=i4.createSyntaxCursor(i),a=(h2={currentNode:function(e){e=t.currentNode(e);X2&&e&&_(e)&&s4(e);return e}},[]);var r=m2;m2=[];let o=0,s=u(i.statements,0);for(;-1!==s;){let t=i.statements[o],n=i.statements[s];BT(a,i.statements,o,s),o=d(i.statements,s);var c=ST(r,e=>e.start>=t.pos),l=0<=c?ST(r,e=>e.start>=n.pos,c):-1;0<=c&&BT(m2,r,c,0<=l?l:void 0),Jb(()=>{var e=k2;for(k2|=65536,V.resetTokenState(n.pos),Fb();1!==W;){var t=V.getTokenFullStart(),r=Ax(0,n6);if(a.push(r),t===V.getTokenFullStart()&&Fb(),0<=o){t=i.statements[o];if(r.end===t.pos)break;r.end>t.pos&&(o=d(i.statements,o+1))}}k2=e},2),s=0<=o?u(i.statements,o):-1}if(0<=o){let t=i.statements[o];BT(a,i.statements,o);var n=ST(r,e=>e.start>=t.pos);0<=n&&BT(m2,r,n)}return h2=e,H.updateSourceFile(i,fT(T2(a),i.statements));function _(e){return!(65536&e.flags)&&67108864&e.transformFlags}function u(t,r){for(let e=r;e2t.length+2&&f3(e,t))return t+" "+e.slice(t.length)}(t);t?Cb(r,e.end,eT.Unknown_keyword_or_identifier_Did_you_mean_0,t):0!==W&&Cb(r,e.end,eT.Unexpected_keyword_or_identifier)}else kb(eT._0_expected,A3[27])}}function Hb(e,t,r){W===r?kb(t):kb(e,V.getTokenValue())}function Kb(e){W===e?Ab():(Y4.assert(Eu(e)),kb(eT._0_expected,I3(e)))}function Gb(e,t,r,n){var i;W===t?Fb():(i=kb(eT._0_expected,I3(t)),r&&i&&JD(i,dD(l2,u2,n,1,eT.The_parser_expected_to_find_a_1_to_match_the_0_token_here,I3(e),I3(t))))}function $b(e){return W===e&&(Fb(),!0)}function Xb(e){if(W===e)return Zb()}function Qb(e){if(W===e)return e=K(),t=W,Ab(),$(P2(t),e);var t}function Yb(e,t,r){return Xb(e)||ix(e,!1,t||eT._0_expected,r||I3(e))}function Zb(){var e=K(),t=W;return Fb(),$(P2(t),e)}function ex(){return 27===W||20===W||1===W||V.hasPrecedingLineBreak()}function tx(){return!!ex()&&(27===W&&Fb(),!0)}function rx(){tx()||G(27)}function nx(e,t,r,n){e=T2(e,n);return ZD(e,t,r??V.getTokenFullStart()),e}function $(e,t,r){return ZD(e,t,r??V.getTokenFullStart()),k2&&(e.flags|=k2),Q2&&(Q2=!1,e.flags|=262144),e}function ix(e,t,r,...n){t?Tb(V.getTokenFullStart(),0,r,...n):r&&kb(r,...n);t=K();return $(80===e?D2("",void 0):nc(e)?H.createTemplateLiteralLikeNode(e,"","",void 0):9===e?C2("",void 0):11===e?w2("",void 0):282===e?H.createMissingDeclaration():P2(e),t)}function ax(e){let t=v2.get(e);return void 0===t&&v2.set(e,t=e),t}function ox(e,t,r){if(e)return b2++,e=K(),i=W,n=ax(V.getTokenValue()),a=V.hasExtendedUnicodeEscape(),Eb(),$(D2(n,i,a),e);if(81===W)return kb(r||eT.Private_identifiers_are_not_allowed_outside_class_bodies),ox(!0);if(0===W&&V.tryScan(()=>80===V.reScanInvalidIdentifier()))return ox(!0);b2++;var n=1===W,i=V.isReservedWord(),a=V.getTokenText(),e=i?eT.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:eT.Identifier_expected;return ix(80,n,t||e,a)}function sx(e){return ox(Ub(),void 0,e)}function cx(e,t){return ox(Vb(),e,t)}function lx(e){return ox(80<=W,e)}function _x(){return(V.hasUnicodeEscape()||V.hasExtendedUnicodeEscape())&&kb(eT.Unicode_escape_sequence_cannot_appear_here),ox(80<=W)}function ux(){return 80<=W||11===W||9===W}function dx(e){var t;return 11===W||9===W?((t=Wx()).text=ax(t.text),t):e&&23===W?(t=K(),G(23),e=db(XS),G(24),$(H.createComputedPropertyName(e),t)):(81===W?fx:lx)()}function px(){return dx(!0)}function fx(){var e=K(),t=E2(ax(V.getTokenValue()));return Fb(),$(t,e)}function mx(e){return W===e&&qb(hx)}function gx(){return Fb(),!V.hasPrecedingLineBreak()&&bx()}function hx(){switch(W){case 87:return 94===Fb();case 95:return Fb(),90===W?zb(xx):156===W?zb(vx):yx();case 90:return xx();case 126:case 139:case 153:return Fb(),bx();default:return gx()}}function yx(){return 60===W||42!==W&&130!==W&&19!==W&&bx()}function vx(){return Fb(),yx()}function bx(){return 23===W||19===W||42===W||26===W||ux()}function xx(){return Fb(),86===W||100===W||120===W||60===W||128===W&&zb(Wk)||134===W&&zb(Hk)}function Sx(e,t){if(Ix(e))return 1;switch(e){case 0:case 1:case 3:return(27!==W||!t)&&Xk();case 2:return 84===W||90===W;case 4:return zb(pS);case 5:return zb(C6)||27===W&&!t;case 6:return 23===W||ux();case 12:switch(W){case 23:case 42:case 26:case 25:return 1;default:return ux()}case 18:return ux();case 9:return 23===W||26===W||ux();case 24:return 80<=W||11===W;case 7:return 19===W?zb(kx):t?Vb()&&!Nx():GS()&&!Nx();case 8:return d6();case 10:return 28===W||26===W||d6();case 19:return 103===W||87===W||Vb();case 15:switch(W){case 28:case 25:return 1}case 11:return 26===W||$S();case 16:return rS(!1);case 17:return rS(!0);case 20:case 21:return 28===W||AS();case 22:return B6();case 23:return 161===W&&zb(s6)?void 0:80<=W;case 13:return 80<=W||19===W;case 14:case 25:return 1;case 26:return Y4.fail("ParsingContext.Count used as a context");default:Y4.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function kx(){var e;return Y4.assert(19===W),20!==Fb()||28===(e=Fb())||19===e||96===e||119===e}function Tx(){return Fb(),Vb()}function Cx(){return Fb(),80<=W}function wx(){return Fb(),Ia(W)}function Nx(){return(119===W||96===W)&&zb(Dx)}function Dx(){return Fb(),$S()}function Ex(){return Fb(),AS()}function Px(e){if(1===W)return 1;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===W;case 3:return 20===W||84===W||90===W;case 7:return 19===W||96===W||119===W;case 8:return ex()?1:ak(W)||39===W;case 19:return 32===W||21===W||19===W||96===W||119===W;case 11:return 22===W||27===W;case 15:case 21:case 10:return 24===W;case 17:case 16:case 18:return 22===W||24===W;case 20:return 28!==W;case 22:return 19===W||20===W;case 13:return 32===W||44===W;case 14:return 30===W&&zb(W6);default:return}}function Fx(e,t){for(var r=x2,n=(x2|=1<P6(!0));return 110===W?(n=H.createParameterDeclaration(e,void 0,ox(!0),void 0,KS(),void 0),(r=UT(e))&&wb(r,eT.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),tb($(n,i),a)):(r=X2,X2=!1,n=Xb(26),t||Ub()||23===W||19===W?(e=tb($(H.createParameterDeclaration(e,n,(t=e,0===ml(n=p6(eT.Private_identifiers_cannot_be_used_as_parameters))&&!X4(t)&&uc(W)&&Fb(),n),Xb(58),KS(),QS()),i),a),X2=r,e):void 0)}function aS(e,t){if(function(e,t){{if(39===e)return G(e),1;if($b(59))return 1;if(t&&39===W)return kb(eT._0_expected,A3[59]),Fb(),1}return}(e,t))return pb(VS)}function oS(e,t){var r=yb();let n=Sb();sb(!!(1&e)),lb(!!(2&e));e=32&e?jx(17,Yx):jx(16,()=>{return t?nS(n):iS(n,!1)});return sb(r),lb(n),e}function sS(e){return G(21)?(e=oS(e,!0),G(22),e):Rx()}function cS(){$b(28)||rx()}function lS(e){var t=K(),r=Db(),n=(180===e&&G(105),tS()),i=sS(4),a=aS(59,!0),e=(cS(),179===e?H.createCallSignature(n,i,a):H.createConstructSignature(n,i,a));return tb($(e,t),r)}function _S(){return 23===W&&zb(uS)}function uS(){if(Fb(),26===W||24===W)return!0;if(uc(W)){if(Fb(),Vb())return!0}else{if(!Vb())return!1;Fb()}return 59===W||28===W||58===W&&(Fb(),59===W||28===W||24===W)}function dS(e,t,r){var n=Mx(16,()=>iS(!1),23,24),i=KS(),r=(cS(),H.createIndexSignature(r,n,i));return tb($(r,e),t)}function pS(){if(21===W||30===W||139===W||153===W)return!0;let e=!1;for(;uc(W);)e=!0,Fb();return 23===W||(ux()&&(e=!0,Fb()),!!e&&(21===W||30===W||58===W||59===W||28===W||ex()))}function fS(){if(21===W||30===W)return lS(179);if(105===W&&zb(mS))return lS(180);var t=K(),r=Db(),n=P6(!1);if(mx(139))return T6(t,r,n,177,4);if(mx(153))return T6(t,r,n,178,4);if(_S())return dS(t,r,n);{var i,a,o,s=px(),c=Xb(58);let e;return 21===W||30===W?(o=tS(),i=sS(4),a=aS(59,!0),e=H.createMethodSignature(n,s,c,o,i,a)):(o=KS(),e=H.createPropertySignature(n,s,c,o),64===W&&(e.initializer=QS())),cS(),tb($(e,t),r);return}}function mS(){return Fb(),21===W||30===W}function gS(){return 25===Fb()}function hS(){switch(Fb()){case 21:case 30:case 25:return!0}return!1}function yS(){let e;return G(19)?(e=Fx(4,fS),G(20)):e=Rx(),e}function vS(){return Fb(),40===W||41===W?148===Fb():(148===W&&Fb(),23===W&&Tx()&&103===Fb())}function bS(){var e=K();G(19);let t;148!==W&&40!==W&&41!==W||148!==(t=Zb()).kind&&G(148),G(23);a=K(),r=lx(),G(103),n=HS();var r=$(H.createTypeParameterDeclaration(void 0,r,n,void 0),a),n=$b(130)?HS():void 0;G(24);let i;58!==W&&40!==W&&41!==W||58!==(i=Zb()).kind&&G(58);var a=KS(),o=(rx(),Fx(4,fS));return G(20),$(H.createMappedTypeNode(t,r,n,i,a,o),e)}function xS(){var e,t=K();return $b(26)?$(H.createRestTypeNode(HS()),t):zF(t=HS())&&t.pos===t.type.pos?(fT(e=H.createOptionalTypeNode(t.type),t),e.flags=t.flags,e):t}function SS(){return 59===Fb()||58===W&&59===Fb()}function kS(){return 26===W?80<=Fb()&&SS():80<=W&&SS()}function TS(){var e,t,r,n,i,a;return zb(kS)?(e=K(),t=Db(),r=Xb(26),n=lx(),i=Xb(58),G(59),a=xS(),tb($(H.createNamedTupleMember(r,n,i,a),e),t)):xS()}function CS(){var e=K(),t=Db(),r=function(){let e;var t,r;return 128===W&&(t=K(),Fb(),r=$(P2(128),t),e=nx([r],t)),e}(),n=$b(105),i=(Y4.assert(!r||n,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers."),tS()),a=sS(4),o=aS(39,!1);return tb($(n?H.createConstructorTypeNode(r,i,a,o):H.createFunctionTypeNode(i,a,o),e),t)}function wS(){var e=Zb();return 25===W?void 0:e}function NS(e){var t=K();e&&Fb();let r=112===W||97===W||106===W?Zb():Kx(W);return e&&(r=$(H.createPrefixUnaryExpression(41,r),t)),$(H.createLiteralTypeNode(r),t)}function DS(){return Fb(),102===W}function ES(){_2|=4194304;var e=K(),t=$b(114),r=(G(102),G(21),HS());let n;$b(28)&&(a=V.getTokenStart(),G(19),118===(i=W)||132===i?Fb():kb(eT._0_expected,A3[118]),G(59),n=$6(i,!0),G(20)||(i=KT(m2))&&i.code===eT._0_expected.code&&JD(i,dD(l2,u2,a,1,eT.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))),G(22);var i=$b(25)?Gx():void 0,a=$x();return $(H.createImportTypeNode(r,n,i,a,t),e)}function PS(){return Fb(),9===W||10===W}function FS(){switch(W){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return qb(wS)||Xx();case 67:V.reScanAsteriskEqualsToken();case 42:return _=K(),Fb(),$(H.createJSDocAllType(),_);case 61:V.reScanQuestionToken();case 58:return _=K(),Fb(),$(28===W||20===W||22===W||32===W||64===W||52===W?H.createJSDocUnknownType():H.createJSDocNullableType(HS(),!1),_);case 100:return c=K(),l=Db(),qb(U6)?(o=sS(36),s=aS(59,!1),tb($(H.createJSDocFunctionType(o,s),c),l)):$(H.createTypeReferenceNode(lx(),void 0),c);case 54:return o=K(),Fb(),$(H.createJSDocNonNullableType(FS(),!1),o);case 15:case 11:case 9:case 10:case 112:case 97:case 106:return NS();case 41:return zb(PS)?NS(!0):Xx();case 116:return Zb();case 110:s=Qx();return 142!==W||V.hasPrecedingLineBreak()?s:(l=s,Fb(),$(H.createTypePredicateNode(void 0,l,HS()),l.pos));case 114:return zb(DS)?ES():(c=K(),G(114),i=Bx(!0),a=V.hasPrecedingLineBreak()?void 0:M6(),$(H.createTypeQueryNode(i,a),c));case 19:return zb(vS)?bS():(i=K(),$(H.createTypeLiteralNode(yS()),i));case 23:return a=K(),$(H.createTupleTypeNode(Mx(21,TS,23,24)),a);case 21:return r=K(),G(21),n=HS(),G(22),$(H.createParenthesizedType(n),r);case 102:return ES();case 131:return zb(Vk)?(n=K(),r=Yb(131),e=(110===W?Qx:cx)(),t=$b(142)?HS():void 0,$(H.createTypePredicateNode(r,e,t),n)):Xx();case 16:return Ux();default:return Xx()}var e,t,r,n,i,a,o,s,c,l,_}function AS(e){switch(W){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&&zb(PS);case 21:return!e&&zb(IS);default:return Vb()}}function IS(){return Fb(),22===W||rS(!1)||AS()}function OS(){var e,t=K();let r=FS();for(;!V.hasPrecedingLineBreak();)switch(W){case 54:Fb(),r=$(H.createJSDocNonNullableType(r,!0),t);break;case 58:if(zb(Ex))return r;Fb(),r=$(H.createJSDocNullableType(r,!0),t);break;case 23:G(23),r=AS()?(e=HS(),G(24),$(H.createIndexedAccessTypeNode(r,e),t)):(G(24),$(H.createArrayTypeNode(r),t));break;default:return r}return r}function LS(){if($b(96)){var e=fb(HS);if(bb()||58!==W)return e}}function jS(){var e,t,r,n=K();return G(140),$(H.createInferTypeNode((e=K(),t=cx(),r=qb(LS),$(H.createTypeParameterDeclaration(void 0,t,r),e))),n)}function RS(){var e,t,r=W;switch(r){case 143:case 158:case 148:return e=r,t=K(),G(e),$(H.createTypeOperatorNode(e,RS()),t);case 140:return jS()}return pb(OS)}function MS(t){if(qS()){var r=CS();let e;return wb(r,e=cP(r)?t?eT.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:eT.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?eT.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:eT.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function BS(e,t,r){var n=K(),i=52===e,a=$b(e);let o=a&&MS(i)||t();if(W===e||a){for(var s=[o];$b(e);)s.push(MS(i)||t());o=$(r(nx(s,n)),n)}return o}function JS(){return BS(51,RS,H.createIntersectionTypeNode)}function zS(){return Fb(),105===W}function qS(){return 30===W||21===W&&zb(US)||105===W||128===W&&zb(zS)}function US(){if(Fb(),22===W||26===W)return!0;if(uc(W)&&P6(!1),Vb()||110===W?(Fb(),1):23===W||19===W?(e=m2.length,p6(),e===m2.length):void 0){if(59===W||28===W||58===W||64===W)return!0;if(22===W&&(Fb(),39===W))return!0}var e;return!1}function VS(){var e=K(),t=Vb()&&qb(WS),r=HS();return t?$(H.createTypePredicateNode(void 0,t,r),e):r}function WS(){var e=cx();if(142===W&&!V.hasPrecedingLineBreak())return Fb(),e}function HS(){var e,t,r,n,i;return 81920&k2?_b(81920,HS):qS()?CS():(e=K(),t=BS(52,JS,H.createUnionTypeNode),bb()||V.hasPrecedingLineBreak()||!$b(96)?t:(r=fb(HS),G(58),n=pb(HS),G(59),i=pb(HS),$(H.createConditionalTypeNode(t,r,n,i),e)))}function KS(){return $b(59)?HS():void 0}function GS(){switch(W){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 zb(hS);default:return Vb()}}function $S(){if(GS())return!0;switch(W){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 sk()?!0:Vb()}}function XS(){var e,t=xb(),r=(t&&cb(!1),K());let n=YS(!0);for(;e=Xb(28);)n=ck(n,e,YS(!0),r);return t&&cb(!0),n}function QS(){return $b(64)?YS(!0):void 0}function YS(e){var t,r,n,i;return function(){if(127!==W)return;if(yb())return 1;return zb(Kk)}()?(t=K(),Fb(),V.hasPrecedingLineBreak()||42!==W&&!$S()?$(H.createYieldExpression(void 0,void 0),t):$(H.createYieldExpression(Xb(42),YS(!0)),t)):function(r){var e=21!==W&&30!==W&&134!==W?39!==W?0:1:zb(ek);if(0!==e)return 1===e?rk(!0,!0):qb(()=>{var e=r,t=V.getTokenStart();if(null==S2||!S2.has(t))return(e=rk(!1,e))||(S2=S2||new Set).add(t),e})}(e)||function(e){if(134===W){var t,r,n,i;if(1===zb(tk))return t=K(),r=Db(),n=F6(),i=ik(0),ZS(t,i,e,r,n)}}(e)||(t=K(),r=Db(),80===(n=ik(0)).kind&&39===W?ZS(t,n,e,r,void 0):t7(n)&&BN(Ob())?ck(n,Zb(),YS(e),t):(r=n,n=t,e=e,(i=Xb(58))?$(H.createConditionalExpression(r,i,_b(s2,()=>YS(!1)),r=Yb(59),H7(r)?YS(e):ix(80,!1,eT._0_expected,A3[59])),n):r))}function ZS(e,t,r,n,i){Y4.assert(39===W,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var a=H.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0),t=($(a,t.pos),nx([a],a.pos,a.end)),a=Yb(39),r=nk(!!i,r);return tb($(H.createArrowFunction(i,void 0,t,void 0,a,r),e),n)}function ek(){if(134===W){if(Fb(),V.hasPrecedingLineBreak())return 0;if(21!==W&&30!==W)return 0}var e=W,t=Fb();if(21!==e)return Y4.assert(30===e),Vb()||87===W?1===f2?zb(()=>{$b(87);var e=Fb();if(96===e)switch(Fb()){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;if(22===t)switch(Fb()){case 39:case 59:case 19:return 1;default:return 0}if(23===t||19===t)return 2;if(26===t)return 1;if(uc(t)&&134!==t&&zb(Tx))return 130===Fb()?0:1;if(Vb()||110===t)switch(Fb()){case 59:return 1;case 58:return Fb(),59===W||28===W||64===W||22===W?1:0;case 28:case 64:case 22:return 2}return 0}function tk(){if(134===W){if(Fb(),V.hasPrecedingLineBreak()||39===W)return 0;var e=ik(0);if(!V.hasPrecedingLineBreak()&&80===e.kind&&39===W)return 1}return 0}function rk(t,r){var n=K(),i=Db(),a=F6(),o=X4(a,T0)?2:0,s=tS();let c;if(G(21)){if(t)c=oS(o,t);else{o=oS(o,t);if(!o)return;c=o}if(!G(22)&&!t)return}else{if(!t)return;c=Rx()}var o=59===W,l=aS(59,!1);if(!l||t||!function e(t){switch(t.kind){case 183:return W7(t.typeName);case 184:case 185:var{parameters:r,type:n}=t;return!!r.isMissingList||e(n);case 196:return e(t.type);default:return!1}}(l)){let e=l;for(;196===(null==e?void 0:e.kind);)e=e.type;var _=e&&VF(e);if(t||39===W||!_&&19===W){t=W,_=Yb(39),t=39===t||19===t?nk(X4(a,T0),r):cx();if(r||!o||59===W)return tb($(H.createArrowFunction(a,s,c,l,_,t),n),i)}}}function nk(e,t){var r,n;return 19===W?Mk(e?2:0):27===W||100===W||86===W||!Xk()||19!==W&&100!==W&&86!==W&&60!==W&&$S()?(r=X2,X2=!1,n=(e?mb:gb)(()=>YS(t)),X2=r,n):Mk(16|(e?2:0))}function ik(e){var t=K();return ok(e,_k(),t)}function ak(e){return 103===e||165===e}function ok(e,t,r){for(;;){Ob();var n=Zu(W);if(!(43===W?e<=n:emk(!0,e));if(l)return ig(c=ix(28,!1),l.pos,0),Cb(j3(u2,e),l.end,eT.JSX_expressions_must_have_one_parent_element),$(H.createBinaryExpression(o,c,l),i)}return o}function gk(e,t){switch(t){case 1:return void(TF(e)?wb(e,eT.JSX_fragment_has_no_corresponding_closing_tag):(r=e.tagName,Cb(Math.min(j3(u2,r.pos),r.end),r.end,eT.JSX_element_0_has_no_corresponding_closing_tag,ql(u2,e.tagName))));case 31:case 7:return;case 12:case 13:return r=K(),n=H.createJsxText(V.getTokenValue(),13===W),W=V.scanJsxToken(),$(n,r);case 19:return vk(!1);case 30:return mk(!1,void 0,e);default:return Y4.assertNever(t)}var r,n}function hk(e){var t=[],r=K(),n=x2;for(x2|=16384;;){var i=gk(e,W=V.reScanJsxToken());if(!i)break;if(t.push(i),kF(e)&&284===(null==i?void 0:i.kind)&&!x4(i.openingElement.tagName,i.closingElement.tagName)&&x4(e.tagName,i.closingElement.tagName))break}return x2=n,nx(t,r)}function yk(){var e=K(),t=function(){var e=K(),t=(Mb(),110===W),r=_x();if($b(59))return Mb(),$(H.createJsxNamespacedName(r,_x()),e);return t?$(H.createToken(110),e):r}();if(DF(t))return t;let r=t;for(;$b(25);)r=$(I2(r,Jx(!0,!1,!1)),e);return r}function vk(r){var n=K();if(G(19)){let e,t;return 20!==W&&(r||(e=Xb(26)),t=XS()),r?G(20):G(20,void 0,!1)&&Bb(),$(H.createJsxExpression(e,t),n)}}function bk(){var e,t;return 19===W?(e=K(),G(19),G(26),t=XS(),G(20),$(H.createJsxSpreadAttribute(t),e)):(t=K(),$(H.createJsxAttribute(function(){var e=K(),t=(Mb(),_x());if($b(59))return Mb(),$(H.createJsxNamespacedName(t,_x()),e);return t}(),function(){if(64===W){if(11===(W=V.scanJsxAttributeValue()))return Wx();if(19===W)return vk(!0);if(30===W)return mk(!0);kb(eT.or_JSX_element_expected)}}()),t))}function xk(){return Fb(),80<=W||23===W||Tk()}function Sk(t){if(64&t.flags)return!0;if(VP(t)){let e=t.expression;for(;VP(e)&&!(64&e.flags);)e=e.expression;if(64&e.flags){for(;VP(t);)t.flags|=64,t=t.expression;return!0}}return!1}function kk(r,n,i){for(;;){let e,t=!1;if(t=i&&29===W&&zb(xk)?(e=Yb(29),80<=W):$b(25))a=r,o=n,s=e,c=Jx(!(l=c=void 0),!0,!0),l=s||Sk(o),s=l?O2(o,s,c):I2(o,c),l&&UE(s.name)&&wb(s.name,eT.An_optional_chain_cannot_contain_private_identifiers),qP(o)&&o.typeArguments&&Cb(o.typeArguments.pos-1,j3(u2,o.typeArguments.end)+1,eT.An_instantiation_expression_cannot_be_followed_by_a_property_access),n=$(s,a);else if(!e&&xb()||!$b(23)){if(!Tk()){if(!e){if(54===W&&!V.hasPrecedingLineBreak()){Fb(),n=$(H.createNonNullExpression(n),r);continue}c=qb(Dk);if(c){n=$(H.createExpressionWithTypeArguments(n,c),r);continue}}return n}n=e||233!==n.kind?Ck(r,n,e,void 0):Ck(r,n.expression,e,n.typeArguments)}else n=function(e,t,r){let n;n=24===W?ix(80,!0,eT.An_element_access_expression_should_take_an_argument):(qw(i=db(XS))&&(i.text=ax(i.text)),i),G(24);var i=r||Sk(t)?j2(t,r,n):L2(t,n);return $(i,e)}(r,n,e)}var a,o,s,c,l}function Tk(){return 15===W||16===W}function Ck(e,t,r,n){n=H.createTaggedTemplateExpression(t,n,15===W?(Lb(!0),Wx()):qx(!0));return(r||64&t.flags)&&(n.flags|=64),n.questionDotToken=r,$(n,e)}function wk(t,r){for(;;){r=kk(t,r,!0);let e;var n=Xb(29);if(n&&(e=qb(Dk),Tk()))r=Ck(t,r,n,e);else{if(!e&&21!==W){n&&(i=ix(80,!1,eT.Identifier_expected),r=$(O2(r,n,i),t));break}n||233!==r.kind||(e=r.typeArguments,r=r.expression);var i=Nk();r=$(n||Sk(r)?M2(r,n,e,i):R2(r,e,i),t)}}return r}function Nk(){G(21);var e=jx(11,Fk);return G(22),e}function Dk(){if(0==(524288&k2)&&30===jb()){Fb();var e=jx(20,HS);if(32===Ob())return Fb(),e&&function(){switch(W){case 21:case 15:case 16:return 1;case 30:case 32:case 40:case 41:return}return V.hasPrecedingLineBreak()||sk()||!$S()}()?e:void 0}}function Ek(){switch(W){case 15:26656&V.getTokenFlags()&&Lb(!1);case 9:case 10:case 11:return Wx();case 110:case 108:case 106:case 112:case 97:return Zb();case 21:return e=K(),t=Db(),G(21),r=db(XS),G(22),tb($(J2(r),e),t);case 23:return Ak();case 19:return Ok();case 134:if(zb(Hk))return Lk();break;case 60:r=K(),e=Db(),t=P6(!0);return 86===W?O6(r,e,t,231):(rg(e=ix(282,!0,eT.Expression_expected),r),e.modifiers=t,e);case 86:return O6(K(),Db(),void 0,231);case 100:return Lk();case 105:{var n=K();if(G(105),$b(25))return i=lx(),$(H.createMetaProperty(105,i),n);let e=K(),t=kk(e,Ek(),!1),r;233===t.kind&&(r=t.typeArguments,t=t.expression);29===W&&kb(eT.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,ql(u2,t));var i=21===W?Nk():void 0;return $(B2(t,r,i),n);return}case 44:case 69:if(14===(W=V.reScanSlashToken()))return Wx();break;case 16:return qx(!1);case 81:return fx()}var e,t,r;return cx(eT.Expression_expected)}function Pk(){return 26===W?(e=K(),G(26),t=YS(!0),$(H.createSpreadElement(t),e)):28===W?$(H.createOmittedExpression(),K()):YS(!0);var e,t}function Fk(){return _b(s2,Pk)}function Ak(){var e=K(),t=V.getTokenStart(),r=G(23),n=V.hasPrecedingLineBreak(),i=jx(15,Pk);return Gb(23,24,r,t),$(F2(i,n),e)}function Ik(){var e=K(),t=Db();if(Xb(26))return r=YS(!0),tb($(H.createSpreadAssignment(r),e),t);var r=P6(!0);if(mx(139))return T6(e,t,r,177,0);if(mx(153))return T6(e,t,r,178,0);var n=Xb(42),i=Vb(),a=px(),o=Xb(58),s=Xb(54);if(n||21===W||30===W)return x6(e,t,r,n,a,o,s);let c;return i&&59!==W?(i=(n=Xb(64))?db(()=>YS(!0)):void 0,(c=H.createShorthandPropertyAssignment(a,i)).equalsToken=n):(G(59),i=db(()=>YS(!0)),c=H.createPropertyAssignment(a,i)),c.modifiers=r,c.questionToken=o,c.exclamationToken=s,tb($(c,e),t)}function Ok(){var e=K(),t=V.getTokenStart(),r=G(19),n=V.hasPrecedingLineBreak(),i=jx(12,Ik,!0);return Gb(19,20,r,t),$(A2(i,n),e)}function Lk(){var e=xb(),t=(cb(!1),K()),r=Db(),n=P6(!1),i=(G(100),Xb(42)),a=i?1:0,o=X4(n,T0)?2:0,s=a&&o?ub(81920,jk):a?ub(16384,jk):o?mb(jk):jk(),c=tS(),l=sS(a|o),_=aS(59,!1),a=Mk(a|o),o=(cb(e),H.createFunctionExpression(n,i,s,c,l,_,a));return tb($(o,t),r)}function jk(){return Ub()?sx():void 0}function Rk(e,t){var r,n=K(),i=Db(),a=V.getTokenStart(),t=G(19,t);return t||e?(e=V.hasPrecedingLineBreak(),r=Fx(1,n6),Gb(19,20,t,a),t=tb($(z2(r,e),n),i),64===W&&(kb(eT.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),Fb()),t):(a=Rx(),tb($(z2(a,void 0),n),i))}function Mk(e,t){var r=yb(),n=(sb(!!(1&e)),Sb()),i=(lb(!!(2&e)),X2),a=(X2=!1,xb()),e=(a&&cb(!1),Rk(!!(16&e),t));return a&&cb(!0),X2=i,sb(r),lb(n),e}function Bk(){var e,t=K(),r=Db(),n=(G(99),Xb(135));G(21);let i;27!==W&&(i=115===W||121===W||87===W||160===W&&zb(Yk)||135===W&&zb(t6)?g6(!0):ub(8192,XS));let a;return tb($(a=(n?G:$b)(165)?(e=db(()=>YS(!0)),G(22),K2(n,i,e,n6())):$b(103)?(n=db(XS),G(22),H.createForInStatement(i,n,n6())):(G(27),e=27!==W&&22!==W?db(XS):void 0,G(27),n=22!==W?db(XS):void 0,G(22),H2(i,e,n,n6())),t),r)}function Jk(e){var t=K(),r=Db(),n=(G(252===e?83:88),ex()?void 0:cx()),e=(rx(),252===e?H.createBreakStatement(n):H.createContinueStatement(n));return tb($(e,t),r)}function zk(){return 84===W?(e=K(),t=Db(),G(84),r=db(XS),G(59),n=Fx(3,n6),tb($(H.createCaseClause(r,n),e),t)):(r=K(),G(90),G(59),n=Fx(3,n6),$(H.createDefaultClause(n),r));var e,t,r,n}function qk(){var e,t=K(),r=Db(),n=(G(109),G(21),db(XS)),i=(G(22),e=K(),G(19),i=Fx(2,zk),G(20),$(H.createCaseBlock(i),e));return tb($(H.createSwitchStatement(n,i),t),r)}function Uk(){var e=K(),t=Db(),r=(G(113),Rk(!1)),n=85===W?function(){var e=K();G(85);let t;$b(21)?(t=m6(),G(22)):t=void 0;var r=Rk(!1);return $(H.createCatchClause(t,r),e)}():void 0;let i;return n&&98!==W||(G(98,eT.catch_or_finally_expected),i=Rk(!1)),tb($(H.createTryStatement(r,n,i),e),t)}function Vk(){return Fb(),80<=W&&!V.hasPrecedingLineBreak()}function Wk(){return Fb(),86===W&&!V.hasPrecedingLineBreak()}function Hk(){return Fb(),100===W&&!V.hasPrecedingLineBreak()}function Kk(){return Fb(),(80<=W||9===W||10===W||11===W)&&!V.hasPrecedingLineBreak()}function Gk(){for(;;)switch(W){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return e6();case 135:return r6();case 120:case 156:return Fb(),!V.hasPrecedingLineBreak()&&Vb();case 144:case 145:return Fb(),!V.hasPrecedingLineBreak()&&(Vb()||11===W);case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:var t=W;if(Fb(),V.hasPrecedingLineBreak())return!1;if(138===t&&156===W)return!0;continue;case 162:return Fb(),19===W||80===W||95===W;case 102:return Fb(),11===W||42===W||19===W||80<=W;case 95:let e=Fb();if(64===(e=156===e?zb(Fb):e)||42===e||19===e||90===e||130===e||60===e)return!0;continue;case 126:Fb();continue;default:return!1}}function $k(){return zb(Gk)}function Xk(){switch(W){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:return!0;case 102:return $k()||zb(hS);case 87:case 95:return $k();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return $k()||!zb(Vk);default:return $S()}}function Qk(){return Fb(),Ub()||19===W||23===W}function Yk(){return Zk(!0)}function Zk(e){return Fb(),(!e||165!==W)&&(Ub()||19===W)&&!V.hasPrecedingLineBreak()}function e6(){return zb(Zk)}function t6(e){return 160===Fb()&&Zk(e)}function r6(){return zb(t6)}function n6(){switch(W){case 27:return p=K(),f=Db(),G(27),tb($(H.createEmptyStatement(),p),f);case 19:return Rk(!1);case 115:return y6(K(),Db(),void 0);case 121:if(zb(Qk))return y6(K(),Db(),void 0);break;case 135:if(r6())return y6(K(),Db(),void 0);break;case 160:if(e6())return y6(K(),Db(),void 0);break;case 100:return v6(K(),Db(),void 0);case 86:return I6(K(),Db(),void 0);case 101:return p=K(),f=Db(),G(101),_=V.getTokenStart(),u=G(21),d=db(XS),Gb(21,22,u,_),u=n6(),_=$b(93)?n6():void 0,tb($(V2(d,u,_),p),f);case 92:return d=K(),u=Db(),G(92),_=n6(),G(117),s=V.getTokenStart(),c=G(21),l=db(XS),Gb(21,22,c,s),$b(27),tb($(H.createDoStatement(_,l),d),u);case 117:return c=K(),s=Db(),G(117),l=V.getTokenStart(),a=G(21),o=db(XS),Gb(21,22,a,l),a=n6(),tb($(W2(o,a),c),s);case 99:return Bk();case 88:return Jk(251);case 83:return Jk(252);case 107:return o=K(),a=Db(),G(107),i=ex()?void 0:db(XS),rx(),tb($(H.createReturnStatement(i),o),a);case 118:return i=K(),e=Db(),G(118),t=V.getTokenStart(),r=G(21),n=db(XS),Gb(21,22,r,t),r=ub(67108864,n6),tb($(H.createWithStatement(n,r),i),e);case 109:return qk();case 111:{t=K(),n=Db();G(111);let e=V.hasPrecedingLineBreak()?void 0:db(XS);return void 0===e&&(b2++,e=$(D2(""),K())),tx()||Wb(e),tb($(H.createThrowStatement(e),t),n);return}case 113:case 85:case 98:return Uk();case 89:return r=K(),e=Db(),G(89),rx(),tb($(H.createDebuggerStatement(),r),e);case 60:return a6();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($k())return a6()}var e,t,r,n,i,a,o,s,c,l,_,u,d,p,f;{var m=K();let e=Db(),t;var g=21===W,h=db(XS);return uT(h)&&$b(59)?t=H.createLabeledStatement(h,n6()):(tx()||Wb(h),t=U2(h),g&&(e=!1)),tb($(t,m),e)}}function i6(e){return 138===e.kind}function a6(){let e=K(),t=Db(),r=P6(!0);var n;if(X4(r,i6)){n=e;var i,a=ub(33554432,()=>{var e=Ix(x2,n);if(e)return Ox(e)});if(a)return a;for(i of r)i.flags|=33554432;return ub(33554432,()=>o6(e,t,r))}return o6(e,t,r)}function o6(a,o,s){switch(W){case 115:case 121:case 87:case 160:case 135:return y6(a,o,s);case 100:return v6(a,o,s);case 86:return I6(a,o,s);case 120:return e=a,x=o,S=s,G(120),k=cx(),T=tS(),C=L6(),w=yS(),tb($(S=H.createInterfaceDeclaration(S,k,T,C,w),e),x);case 156:return k=a,T=o,C=s,G(156),V.hasPrecedingLineBreak()&&kb(eT.Line_break_not_permitted_here),w=cx(),S=tS(),G(64),e=141===W&&qb(wS)||HS(),rx(),tb($(C=H.createTypeAliasDeclaration(C,w,S,e),k),T);case 94:{x=a;var r=o;var n=s;G(94);let e=cx(),t;G(19)?(t=_b(81920,()=>jx(6,J6)),G(20)):t=Rx();n=H.createEnumDeclaration(n,e,t);return tb($(n,x),r);return}case 162:case 144:case 145:{n=a;r=o;var i=s;let e=0;{if(162===W)return q6(n,r,i);if($b(145))e|=32;else if(G(144),11===W)return q6(n,r,i)}return function e(t,r,n,i){let a=32&i;let o=(8&i?lx:cx)();let s=$b(25)?e(K(),!1,void 0,8|a):z6();let c=H.createModuleDeclaration(n,o,s,i);return tb($(c,t),r)}(n,r,i,e);return}case 102:{i=a;var c=o;var l=s;G(102);let e=V.getTokenFullStart(),t;Vb()&&(t=cx());let r=!1;"type"===(null==t?void 0:t.escapedText)&&(161!==W||Vb()&&zb(c6))&&(Vb()||42===W||19===W)&&(r=!0,t=Vb()?cx():void 0);if(t&&28!==W&&161!==W)return function(e,t,r,n,i){G(64);var a=149===W&&zb(U6)?function(){var e=K(),t=(G(149),G(21),X6());return G(22),$(H.createExternalModuleReference(t),e)}():Bx(!1),r=(rx(),H.createImportEqualsDeclaration(r,i,n,a)),i=tb($(r,e),t);return i}(i,c,l,t,r);var _=H6(t,e,r),u=X6(),d=K6(),l=(rx(),H.createImportDeclaration(l,_,u,d));return tb($(l,i),c);return}case 95:switch(Fb(),W){case 90:case 64:{var t=a;var p=o;var f=s;var m=Sb();lb(!0);let e;$b(64)?e=!0:G(90);var g=YS(!0),m=(rx(),lb(m),H.createExportAssignment(f,e,g));return tb($(m,t),p);return}case 130:return f=a,g=o,m=s,G(130),G(145),t=cx(),rx(),(t=H.createNamespaceExportDeclaration(t)).modifiers=m,tb($(t,f),g);default:{p=a;var h=o;var y=s;var v=Sb();lb(!0);let e,t,r,n=$b(156),i=K();$b(42)?($b(130)&&(e=function(e){return $(H.createNamespaceExport(lx()),e)}(i)),G(161),t=X6()):(e=Q6(279),161!==W&&(11!==W||V.hasPrecedingLineBreak())||(G(161),t=X6()));var b=W;!t||118!==b&&132!==b||V.hasPrecedingLineBreak()||(r=$6(b));rx(),lb(v);b=H.createExportDeclaration(y,n,e,t,r);return tb($(b,p),h);return}}default:if(s)return rg(_=ix(282,!0,eT.Declaration_expected),a),_.modifiers=s,_}var e,x,S,k,T,C,w}function s6(){return 11===Fb()}function c6(){return Fb(),161===W||64===W}function l6(e,t){if(19!==W){if(4&e)return void cS();if(ex())return void rx()}return Mk(e,t)}function _6(){var e,t,r,n=K();return 28===W?$(H.createOmittedExpression(),n):(e=Xb(26),t=p6(),r=QS(),$(H.createBindingElement(e,void 0,t,r),n))}function u6(){var e=K(),t=Xb(26),r=Ub();let n=px(),i;r&&59!==W?(i=n,n=void 0):(G(59),i=p6());r=QS();return $(H.createBindingElement(t,n,i,r),e)}function d6(){return 19===W||23===W||81===W||Ub()}function p6(e){var t,r;return 23===W?(r=K(),G(23),t=db(()=>jx(10,_6)),G(24),$(H.createArrayBindingPattern(t),r)):19===W?(t=K(),G(19),r=db(()=>jx(9,u6)),G(20),$(H.createObjectBindingPattern(r),t)):sx(e)}function f6(){return m6(!0)}function m6(e){var t=K(),r=Db(),n=p6(eT.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===n.kind&&54===W&&!V.hasPrecedingLineBreak()&&(i=Zb());var e=KS(),a=ak(W)?void 0:QS();return tb($(G2(n,i,e,a),t),r)}function g6(e){var t,r=K();let n=0;switch(W){case 115:break;case 121:n|=1;break;case 87:n|=2;break;case 160:n|=4;break;case 135:Y4.assert(r6()),n|=6,Fb();break;default:Y4.fail()}Fb();let i;return 165===W&&zb(h6)?i=Rx():(t=vb(),ob(e),i=jx(8,e?m6:f6),ob(t)),$($2(i,n),r)}function h6(){return Tx()&&22===Fb()}function y6(e,t,r){var n=g6(!1),r=(rx(),q2(r,n));return tb($(r,e),t)}function v6(e,t,r){var n=Sb(),i=LN(r),a=(G(100),Xb(42)),o=(2048&i?jk:sx)(),s=a?1:0,c=1024&i?2:0,l=tS(),i=(32&i&&lb(!0),sS(s|c)),_=aS(59,!1),s=l6(s|c,eT.or_expected),c=(lb(n),H.createFunctionDeclaration(r,a,o,l,i,_,s));return tb($(c,e),t)}function b6(i,a,o){return qb(()=>{var e,t,r,n;if(137===W?G(137):11===W&&21===zb(Fb)&&qb(()=>{var e=Wx();return"constructor"===e.text?e:void 0}))return e=tS(),n=sS(0),t=aS(59,!1),r=l6(0,eT.or_expected),(n=H.createConstructorDeclaration(o,n,r)).typeParameters=e,n.type=t,tb($(n,i),a)})}function x6(e,t,r,n,i,a,o,s){var c=n?1:0,l=X4(r,T0)?2:0,_=tS(),u=sS(c|l),d=aS(59,!1),c=l6(c|l,s),l=H.createMethodDeclaration(r,n,i,a,_,u,d,c);return l.exclamationToken=o,tb($(l,e),t)}function S6(e,t,r,n,i){var a,o,s=i||V.hasPrecedingLineBreak()?void 0:Xb(54),c=KS(),l=_b(90112,QS),_=(a=n,_=c,o=l,60!==W||V.hasPrecedingLineBreak()?21===W?(kb(eT.Cannot_start_a_function_call_in_a_type_annotation),Fb()):_&&!ex()?o?kb(eT._0_expected,A3[27]):kb(eT.Expected_for_property_initializer):tx()||(o?kb(eT._0_expected,A3[27]):Wb(a)):kb(eT.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations),H.createPropertyDeclaration(r,n,i||s,c,l));return tb($(_,e),t)}function k6(e,t,r){var n=Xb(42),i=px(),a=Xb(58);return n||21===W||30===W?x6(e,t,r,n,i,a,void 0,eT.or_expected):S6(e,t,r,i,a)}function T6(e,t,r,n,i){var a=px(),o=tS(),s=sS(0),c=aS(59,!1),i=l6(i),n=177===n?H.createGetAccessorDeclaration(r,a,s,c,i):H.createSetAccessorDeclaration(r,a,s,i);return n.typeParameters=o,nP(n)&&(n.type=c),tb($(n,e),t)}function C6(){let e;if(60===W)return!0;for(;uc(W);){if(pc(e=W))return!0;Fb()}if(42===W)return!0;if(ux()&&(e=W,Fb()),23===W)return!0;if(void 0!==e){if(!Nu(e)||153===e||139===e)return!0;switch(W){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return ex()}}return!1}function w6(e,t,r){Yb(126),a=yb(),n=Sb(),sb(!1),lb(!0),i=Rk(!1),sb(a),lb(n);var n,i,a=tb($(H.createClassStaticBlockDeclaration(i),e),t);return a.modifiers=r,a}function N6(){var e,t;return Sb()&&135===W?(e=K(),t=cx(eT.Expression_expected),Fb(),wk(e,kk(e,t,!0))):pk()}function D6(){var e,t=K();if($b(60))return e=ub(32768,N6),$(H.createDecorator(e),t)}function E6(e,t,r){var n=K(),i=W;if(87===W&&t){if(!qb(gx))return}else{if(r&&126===W&&zb(V6))return;if(e&&126===W)return;if(!uc(W)||!qb(hx))return}return $(P2(i),n)}function P6(e,t,r){var n=K();let i,a,o,s=!1,c=!1,l=!1;if(e&&60===W)for(;a=D6();)i=Q4(i,a);for(;o=E6(s,t,r);)126===o.kind&&(s=!0),i=Q4(i,o),c=!0;if(c&&e&&60===W)for(;a=D6();)i=Q4(i,a),l=!0;if(l)for(;o=E6(s,t,r);)126===o.kind&&(s=!0),i=Q4(i,o);return i&&nx(i,n)}function F6(){let e;var t,r;return 134===W&&(t=K(),Fb(),r=$(P2(134),t),e=nx([r],t)),e}function A6(){let e=K(),t=Db();if(27===W)return Fb(),tb($(H.createSemicolonClassElement(),e),t);let r=P6(!0,!0,!0);if(126===W&&zb(V6))return w6(e,t,r);if(mx(139))return T6(e,t,r,177,0);if(mx(153))return T6(e,t,r,178,0);if(137===W||11===W){var n=b6(e,t,r);if(n)return n}if(_S())return dS(e,t,r);if(80<=W||11===W||9===W||42===W||23===W){if(X4(r,i6)){for(var i of r)i.flags|=33554432;return ub(33554432,()=>k6(e,t,r))}return k6(e,t,r)}return r?(n=ix(80,!0,eT.Declaration_expected),S6(e,t,r,n,void 0)):Y4.fail("Should not have attempted to parse class member declaration.")}function I6(e,t,r){return O6(e,t,r,263)}function O6(e,t,r,n){var i=Sb(),a=(G(86),!Ub()||119===W&&zb(Cx)?void 0:ox(Ub())),o=tS(),s=(X4(r,S0)&&lb(!0),L6());let c;return G(19)?(c=Fx(5,A6),G(20)):c=Rx(),lb(i),tb($(263===n?H.createClassDeclaration(r,a,o,s,c):H.createClassExpression(r,a,o,s,c),e),t)}function L6(){if(B6())return Fx(22,j6)}function j6(){var e=K(),t=W,r=(Y4.assert(96===t||119===t),Fb(),jx(7,R6));return $(H.createHeritageClause(t,r),e)}function R6(){var e,t=K(),r=pk();return 233===r.kind?r:(e=M6(),$(H.createExpressionWithTypeArguments(r,e),t))}function M6(){return 30===W?Mx(20,HS,30,32):void 0}function B6(){return 96===W||119===W}function J6(){var e=K(),t=Db(),r=px(),n=db(QS);return tb($(H.createEnumMember(r,n),e),t)}function z6(){var e=K();let t;return G(19)?(t=Fx(1,n6),G(20)):t=Rx(),$(H.createModuleBlock(t),e)}function q6(e,t,r){let n=0,i;162===W?(i=cx(),n|=2048):(i=Wx()).text=ax(i.text);let a;return 19===W?a=z6():rx(),tb($(H.createModuleDeclaration(r,i,a,n),e),t)}function U6(){return 21===Fb()}function V6(){return 19===Fb()}function W6(){return 44===Fb()}function H6(e,t,r,n=!1){let i;return!e&&42!==W&&19!==W||(i=function(e,t,r,n){let i;e&&!$b(28)||(n&&V.setSkipJsDocLeadingAsterisks(!0),i=42===W?function(){var e=K(),t=(G(42),G(130),cx());return $(H.createNamespaceImport(t),e)}():Q6(275),n&&V.setSkipJsDocLeadingAsterisks(!1));return $(H.createImportClause(r,e,i),t)}(e,t,r,n),G(161)),i}function K6(){var e=W;if((118===e||132===e)&&!V.hasPrecedingLineBreak())return $6(e)}function G6(){var e=K(),t=80<=W?lx():Kx(11),r=(G(59),YS(!0));return $(H.createImportAttribute(t,r),e)}function $6(e,t){var r,n,i,a=K(),t=(t||G(e),V.getTokenStart());return G(19)?(r=V.hasPrecedingLineBreak(),n=jx(24,G6,!0),G(20)||(i=KT(m2))&&i.code===eT._0_expected.code&&JD(i,dD(l2,u2,t,1,eT.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}")),$(H.createImportAttributes(n,r,e),a)):(i=nx([],K(),void 0,!1),$(H.createImportAttributes(i,!1,e),a))}function X6(){var e;return 11===W?((e=Wx()).text=ax(e.text),e):XS()}function Q6(e){var t=K();return $(275===e?H.createNamedImports(Mx(23,Z6,19,20)):H.createNamedExports(Mx(23,Y6,19,20)),t)}function Y6(){var e=Db();return tb(e4(281),e)}function Z6(){return e4(276)}function e4(e){var t,r,n=K();let i=Nu(W)&&!Vb(),a=V.getTokenStart(),o=V.getTokenEnd(),s=!1,c,l=!0,_=lx();return"type"===_.escapedText&&(130===W?(t=lx(),130===W?(r=lx(),l=(_=80<=W?(s=!0,c=t,u()):(c=_,r),!1)):_=80<=W?(c=_,l=!1,u()):(s=!0,t)):80<=W&&(s=!0,_=u())),l&&130===W&&(c=_,G(130),_=u()),276===e&&i&&Cb(a,o,eT.Identifier_expected),$(276===e?H.createImportSpecifier(s,c,_):H.createExportSpecifier(s,c,_),n);function u(){return i=Nu(W)&&!Vb(),a=V.getTokenStart(),o=V.getTokenEnd(),lx()}}let r;function t4(e){var t=K(),r=(e?$b:G)(19),n=ub(16777216,Zx),e=(e&&!r||Kb(20),H.createJSDocTypeExpression(n));return nb(e),$(e,t)}function r4(){var e=K(),t=$b(19),r=K();let n=Bx(!1);for(;81===W;)Rb(),Ab(),n=$(H.createJSDocMemberName(n,cx()),r);t&&Kb(20);t=H.createJSDocNameReference(n);return nb(t),$(t,e)}function n4(m=0,e){let g=u2,h=void 0===e?g.length:m+e;if(e=h-m,Y4.assert(0<=m),Y4.assert(m<=h),Y4.assert(h<=g.length),Nv(g,m)){let C,l,_,u,d,p=[],f=[];var t=x2,e=(x2|=1<<25,V.scanRange(m+3,e-5,function(){let e=1,t,r=m-(g.lastIndexOf("\n",m)+1)+4;function n(e){t=t||r,p.push(e),r+=e.length}Ab();for(;k(5););k(4)&&(e=0,r=0);e:for(;;){switch(W){case 60:!function(e){for(;e.length;){var t=e[e.length-1].trimEnd();if(""!==t){if(t.lengtht&&p.push(i.slice(t-r)),r+=i.length;break;case 1:break e;case 82:e=2,n(V.getTokenValue());break;case 19:e=2;var a=V.getTokenFullStart(),o=b(V.getTokenEnd()-1);if(o){u||y(p),f.push($(H.createJSDocText(p.join("")),u??m,a)),f.push(o),p=[],u=V.getTokenEnd();break}default:e=2,n(V.getTokenText())}2===e?Ib(!1):Ab()}var s=p.join("").trimEnd();f.length&&s.length&&f.push($(H.createJSDocText(s),u??m,d));f.length&&C&&Y4.assertIsDefined(d,"having parsed tags implies that the end of the comment span should be set");var c=C&&nx(C,l,_);return $(H.createJSDocComment(f.length?nx(f,m,d):s.length?s:void 0,c),m,h)}));return x2=t,e;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function n(){for(;;){if(Ab(),1===W)return!0;if(5!==W&&4!==W)return!1}}function w(){if(5!==W&&4!==W||!zb(n))for(;5===W||4===W;)Ab()}function N(){if((5===W||4===W)&&zb(n))return"";let e=V.hasPrecedingLineBreak(),t=!1,r="";for(;e&&42===W||5===W||4===W;)r+=V.getTokenText(),4===W?(e=!0,t=!0,r=""):42===W&&(e=!1),Ab();return t?r:""}function v(e){Y4.assert(60===W);var t,r,n,i,a,o,s,c,l,_,u,d,p,f,m,g,h,y,v,b,x=V.getTokenStart(),S=(Ab(),q(void 0)),k=N();let T;switch(S.escapedText){case"author":T=function(e,t,r,n){let i=K(),a=function(){let e=[],t=!1,r=V.getToken();for(;1!==r&&4!==r;){if(30===r)t=!0;else{if(60===r&&!t)break;if(32===r&&t){e.push(V.getTokenText()),V.resetTokenState(V.getTokenEnd());break}}e.push(V.getTokenText()),r=Ab()}return H.createJSDocText(e.join(""))}(),o=V.getTokenFullStart(),s=D(e,o,r,n);s||(o=V.getTokenFullStart());r="string"!=typeof s?nx(LT([$(a,i,o)],s),i):a.text+s;return $(H.createJSDocAuthorTag(t,r),e)}(x,S,e,k);break;case"implements":T=(g=x,h=S,y=e,v=k,b=L(),$(H.createJSDocImplementsTag(h,b,D(g,K(),y,v)),g));break;case"augments":case"extends":T=(h=x,b=S,y=e,v=k,g=L(),$(H.createJSDocAugmentsTag(b,g,D(h,K(),y,v)),h));break;case"class":case"constructor":T=j(x,H.createJSDocClassTag,S,e,k);break;case"public":T=j(x,H.createJSDocPublicTag,S,e,k);break;case"private":T=j(x,H.createJSDocPrivateTag,S,e,k);break;case"protected":T=j(x,H.createJSDocProtectedTag,S,e,k);break;case"readonly":T=j(x,H.createJSDocReadonlyTag,S,e,k);break;case"override":T=j(x,H.createJSDocOverrideTag,S,e,k);break;case"deprecated":U=!0,T=j(x,H.createJSDocDeprecatedTag,S,e,k);break;case"this":T=R(x,S,e,k);break;case"enum":T=(u=x,d=S,p=e,f=k,m=t4(!0),w(),$(H.createJSDocEnumTag(d,m,D(u,K(),p,f)),u));break;case"arg":case"argument":case"param":return I(x,S,2,e);case"return":case"returns":T=(d=x,m=S,p=e,f=k,X4(C,U1)&&Cb(m.pos,V.getTokenStart(),eT._0_tag_already_specified,X3(m.escapedText)),u=F(),$(H.createJSDocReturnTag(m,u,D(d,K(),p,f)),d));break;case"template":T=z(x,S,e,k);break;case"type":T=O(x,S,e,k);break;case"typedef":T=function(n,e,i,t){let a=F();N();var r=M();w();let o=E(i),s;if(!a||A(a.type)){var c;let e,t,r=!1;for(;(c=qb(()=>{return J(1,i)}))&&345!==c.kind;)if(r=!0,344===c.kind){if(e){var l=kb(eT.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);l&&JD(l,dD(l2,u2,0,0,eT.The_tag_was_first_specified_here));break}e=c}else t=Q4(t,c);r&&(_=a&&188===a.type.kind,_=H.createJSDocTypeLiteral(t,_),a=e&&e.typeExpression&&!A(e.typeExpression.type)?e.typeExpression:$(_,n),s=a.end)}s=s||void 0!==o?K():(r??a??e).end,o=o||D(n,s,i,t);var _=H.createJSDocTypedefTag(e,a,r,o);return $(_,n,s)}(x,S,e,k);break;case"callback":T=function(e,t,r,n){var i=M();w();let a=E(r),o=B(e,r);a=a||D(e,K(),r,n);r=void 0!==a?K():o.end;return $(H.createJSDocCallbackTag(t,o,i,a),e,r)}(x,S,e,k);break;case"overload":T=function(e,t,r,n){w();let i=E(r),a=B(e,r);i=i||D(e,K(),r,n);r=void 0!==i?K():a.end;return $(H.createJSDocOverloadTag(t,a,i),e,r)}(x,S,e,k);break;case"satisfies":T=(o=x,s=S,c=e,l=k,_=t4(!1),c=void 0!==c&&void 0!==l?D(o,K(),c,l):void 0,$(H.createJSDocSatisfiesTag(s,_,c),o));break;case"see":T=(l=x,s=S,_=e,c=k,o=(o=23===W||zb(()=>60===Ab()&&80<=Ab()&&P(V.getTokenValue())))?void 0:r4(),_=void 0!==_&&void 0!==c?D(l,K(),_,c):void 0,$(H.createJSDocSeeTag(s,o,_),l));break;case"exception":case"throws":T=(t=x,r=S,n=e,i=k,a=F(),n=D(t,K(),n,i),$(H.createJSDocThrowsTag(r,a,n),t));break;case"import":T=function(e,t,r,n){let i=V.getTokenFullStart(),a;Vb()&&(a=cx());var o=H6(a,i,!0,!0),s=X6(),c=K6(),r=void 0!==r&&void 0!==n?D(e,K(),r,n):void 0;return $(H.createJSDocImportTag(t,o,s,c,r),e)}(x,S,e,k);break;default:T=(i=x,r=e,a=k,$(H.createJSDocUnknownTag(S,D(i,K(),r,a)),i))}return T}function D(e,t,r,n){return n||(r+=t-e),E(r,n.slice(r))}function E(t,e){var r=K();let n=[];var i=[];let a,o=0,s;function c(e){s=s||t,n.push(e),t+=e.length}void 0!==e&&(""!==e&&c(e),o=1);let l=W;e:for(;;){switch(l){case 4:o=0,n.push(V.getTokenText()),t=0;break;case 60:V.resetTokenState(V.getTokenEnd()-1);break e;case 1:break e;case 5:Y4.assert(2!==o&&3!==o,"whitespace shouldn't come from the scanner while saving comment text");var _=V.getTokenText();void 0!==s&&t+_.length>s&&(n.push(_.slice(s-t)),o=2),t+=_.length;break;case 19:o=2;var _=V.getTokenFullStart(),u=b(V.getTokenEnd()-1);u?(i.push($(H.createJSDocText(n.join("")),a??r,_)),i.push(u),n=[],a=V.getTokenEnd()):c(V.getTokenText());break;case 62:o=3===o?2:3,c(V.getTokenText());break;case 82:3!==o&&(o=2),c(V.getTokenValue());break;case 42:if(0===o){o=1,t+=1;break}default:3!==o&&(o=2),c(V.getTokenText())}l=2===o||3===o?Ib(3===o):Ab()}y(n);e=n.join("").trimEnd();return i.length?(e.length&&i.push($(H.createJSDocText(e),a??r)),nx(i,r,V.getTokenEnd())):e.length?e:void 0}function b(e){var t=qb(x);if(t){Ab(),w();for(var r=function(){if(80<=W){var t=K();let e=lx();for(;$b(25);)e=$(H.createQualifiedName(e,81===W?ix(80,!1):lx()),t);for(;81===W;)Rb(),Ab(),e=$(H.createJSDocMemberName(e,cx()),t);return e}}(),n=[];20!==W&&4!==W&&1!==W;)n.push(V.getTokenText()),Ab();return $(("link"===t?H.createJSDocLink:"linkcode"===t?H.createJSDocLinkCode:H.createJSDocLinkPlain)(r,n.join("")),e,V.getTokenEnd())}}function x(){if(N(),19===W&&60===Ab()&&80<=Ab()){var e=V.getTokenValue();if(P(e))return e}}function P(e){return"link"===e||"linkcode"===e||"linkplain"===e}function F(){return N(),19===W?t4():void 0}function S(){var e=k(23),t=(e&&w(),k(62)),r=function(){let e=q();$b(23)&&G(24);for(;$b(25);){var t=q();$b(23)&&G(24),e=function(e,t){return $(H.createQualifiedName(e,t),e.pos)}(e,t)}return e}();return t&&!Qb(t=62)&&(Y4.assert(Eu(t)),ix(t,!1,eT._0_expected,I3(t))),e&&(w(),Xb(64)&&XS(),G(24)),{name:r,isBracketed:e}}function A(e){switch(e.kind){case 151:return!0;case 188:return A(e.elementType);default:return sP(e)&&uT(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function I(e,t,r,n){let i=F(),a=!i;N();var{name:o,isBracketed:s}=S(),c=N(),c=(a&&!zb(x)&&(i=F()),D(e,K(),n,c)),n=function(t,r,n,i){if(t&&A(t.type)){var a,o=K();let e;for(;a=qb(()=>J(n,i,r));)341===a.kind||348===a.kind?e=Q4(e,a):345===a.kind&&wb(a.tagName,eT.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(e)return t=$(H.createJSDocTypeLiteral(e,188===t.type.kind),o),$(H.createJSDocTypeExpression(t),o)}}(i,o,r,n),n=(n&&(i=n,a=!0),1===r?H.createJSDocPropertyTag(t,o,s,i,a,c):H.createJSDocParameterTag(t,o,s,i,a,c));return $(n,e)}function O(e,t,r,n){X4(C,V1)&&Cb(t.pos,V.getTokenStart(),eT._0_tag_already_specified,X3(t.escapedText));var i=t4(!0),r=void 0!==r&&void 0!==n?D(e,K(),r,n):void 0;return $(H.createJSDocTypeTag(t,i,r),e)}function L(){var e=$b(19),t=K(),r=function(){let e=K(),t=q();for(;$b(25);){var r=q();t=$(I2(t,r),e)}return t}(),n=(V.setSkipJsDocLeadingAsterisks(!0),M6()),r=(V.setSkipJsDocLeadingAsterisks(!1),H.createExpressionWithTypeArguments(r,n)),n=$(r,t);return e&&G(20),n}function j(e,t,r,n,i){return $(t(r,D(e,K(),n,i)),e)}function R(e,t,r,n){var i=t4(!0);return w(),$(H.createJSDocThisTag(t,i,D(e,K(),r,n)),e)}function M(e){var t,r,n=V.getTokenStart();if(80<=W)return t=q(),$b(25)?(r=M(!0),$(H.createModuleDeclaration(void 0,t,r,e?8:void 0),n)):(e&&(t.flags|=4096),t)}function B(e,t){var r=function(e){var t,r=K();let n;for(;t=qb(()=>J(4,e));){if(345===t.kind){wb(t.tagName,eT.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}n=Q4(n,t)}return nx(n||[],r)}(t),n=qb(()=>{if(k(60)){var e=v(t);if(e&&342===e.kind)return e}});return $(H.createJSDocSignature(void 0,r,n),e)}function J(e,t,r){let n=!0,i=!1;for(;;)switch(Ab()){case 60:var a;if(n)return!((a=function(e,t){Y4.assert(60===W);let r=V.getTokenFullStart(),n=(Ab(),q()),i=N(),a;switch(n.escapedText){case"type":return 1===e&&O(r,n);case"prop":case"property":a=1;break;case"arg":case"argument":case"param":a=6;break;case"template":return z(r,n,t,i);case"this":return R(r,n,t,i);default:return!1}return!!(e&a)&&I(r,n,e,t)}(e,t))&&(341===a.kind||348===a.kind)&&r&&(uT(a.name)||!function(e,t){for(;!uT(e)||!uT(t);){if(uT(e)||uT(t)||e.right.escapedText!==t.right.escapedText)return;e=e.left,t=t.left}return e.escapedText===t.escapedText}(r,a.name.left)))&&a;i=!1;break;case 4:n=!0,i=!1;break;case 42:i&&(n=!1),i=!0;break;case 80:n=!1;break;case 1:return!1}}function o(){var e=K(),t=[];do{w();var r=function(){var e=K(),t=k(23),r=(t&&w(),P6(!1,!0)),n=q(eT.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let i;if(t&&(w(),G(64),i=ub(16777216,Zx),G(24)),!W7(n))return $(H.createTypeParameterDeclaration(r,n,void 0,i),e)}();void 0!==r&&t.push(r),N()}while(k(28));return nx(t,e)}function z(e,t,r,n){var i=19===W?t4():void 0,a=o();return $(H.createJSDocTemplateTag(t,i,a,D(e,K(),r,n)),e)}function k(e){return W===e&&(Ab(),!0)}function q(e){if(!(80<=W))return ix(80,!e,e||eT.Identifier_expected);b2++;var e=V.getTokenStart(),t=V.getTokenEnd(),r=W,n=ax(V.getTokenValue()),n=$(D2(n,r),e,t);return Ab(),n}}}(At=r=At.JSDocParser||(At.JSDocParser={})).parseJSDocTypeExpressionForTests=function(e,t,r){return Z2("file.js",e,99,void 0,1,0),V.setText(e,t,r),W=V.scan(),e=t4(),t=ib("file.js",99,1,!1,[],P2(1),0,yr),r=Sf(m2,t),g2&&(t.jsDocDiagnostics=Sf(g2,t)),eb(),e?{jsDocTypeExpression:e,diagnostics:r}:void 0},At.parseJSDocTypeExpression=t4,At.parseJSDocNameReference=r4,At.parseIsolatedJSDocComment=function(e,t,r){Z2("",e,99,void 0,1,0);var n=ub(16777216,()=>n4(t,r)),e=Sf(m2,{languageVariant:0,text:e});return eb(),n?{jsDoc:n,diagnostics:e}:void 0},At.parseJSDocComment=function(e,t,r){var n=W,i=m2.length,a=Q2,o=ub(16777216,()=>n4(t,r));return tE(o,e),524288&k2&&BT(g2=g2||[],m2,i),W=n,m2.length=i,Q2=a,o}}var i4,a4=new WeakSet,o4=new WeakSet;function s4(e){o4.add(e)}function c4(e,t,n,i,a,o){function s(e){let t="";if(o&&l4(e)&&(t=i.substring(e.pos,e.end)),Z1(e),ZD(e,e.pos+n,e.end+n),o&&l4(e)&&Y4.assert(t===a.substring(e.pos,e.end)),h9(e,s,c),y7(e))for(var r of e.jsDoc)s(r);u4(e,o)}function c(e){ZD(e,e.pos+n,e.end+n);for(var t of e)s(t)}(t?c:s)(e)}function l4(e){switch(e.kind){case 11:case 9:case 80:return 1}}function _4(e,t,r,n,i){Y4.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),Y4.assert(e.pos<=r,"Adjusting an element that was entirely after the change range"),Y4.assert(e.pos<=e.end);t=Math.min(e.pos,n),r=e.end>=r?e.end+i:Math.min(e.end,n);Y4.assert(t<=r),e.parent&&(i=e.parent,Y4.assertGreaterThanOrEqual(t,i.pos),Y4.assertLessThanOrEqual(r,i.end)),ZD(e,t,r)}function u4(e,t){if(t){let t=e.pos;var r=e=>{Y4.assert(e.pos>=t),t=e.end};if(y7(e))for(var n of e.jsDoc)r(n);h9(e,r),Y4.assert(t<=e.end)}}function d4(e,t,r,n){var i,e=e.text;r&&(Y4.assert(e.length-r.span.length+r.newLength===t.length),n||Y4.shouldAssert(3))&&(n=e.substr(0,r.span.start),i=t.substr(0,r.span.start),Y4.assert(n===i),n=e.substring(J3(r.span),e.length),i=t.substring(J3(Zo(r)),t.length),Y4.assert(n===i))}function p4(t){let o=t.statements,s=0,c=(Y4.assert(s=e.pos&&a=t.pos&&a{switch(t){case"reference":{let o=l.referencedFiles,s=l.typeReferenceDirectives,c=l.libReferenceDirectives;G4(se(e),e=>{var{types:t,lib:r,path:n,"resolution-mode":i,preserve:a}=e.arguments,a="true"===a||void 0;"true"===e.arguments["no-default-lib"]?l.hasNoDefaultLib=!0:t?(i=function(e,t,r,n){if(e)return"import"===e?99:"require"===e?1:void n(t,r-t,eT.resolution_mode_should_be_either_require_or_import)}(i,t.pos,t.end,_),s.push({pos:t.pos,end:t.end,fileName:t.value,...i?{resolutionMode:i}:{},...a?{preserve:a}:{}})):r?c.push({pos:r.pos,end:r.end,fileName:r.value,...a?{preserve:a}:{}}):n?o.push({pos:n.pos,end:n.end,fileName:n.value,...a?{preserve:a}:{}}):_(e.range.pos,e.range.end-e.range.pos,eT.Invalid_reference_directive_syntax)});break}case"amd-dependency":l.amdDependencies=$4(se(e),e=>({name:e.arguments.name,path:e.arguments.path}));break;case"amd-module":if(e instanceof Array)for(var r of e)l.moduleName&&_(r.range.pos,r.range.end-r.range.pos,eT.An_AMD_module_cannot_have_multiple_name_assignments),l.moduleName=r.arguments.name;else l.moduleName=e.arguments.name;break;case"ts-nocheck":case"ts-check":G4(se(e),e=>{(!l.checkJsDirective||e.range.pos>l.checkJsDirective.pos)&&(l.checkJsDirective={enabled:"ts-check"===t,end:e.range.end,pos:e.range.pos})});break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:Y4.fail("Unhandled pragma kind")}})}(Xt=i4=i4||{}).updateSourceFile=function(e,t,r,n){if(d4(e,t,r,n=n||Y4.shouldAssert(2)),es(r))return e;if(0===e.statements.length)return Fv.parseSourceFile(e.fileName,t,e.languageVersion,void 0,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);u=e,a4.has(u)&&Y4.fail("Source file has already been incrementally parsed"),a4.add(u),Fv.fixupParentReferences(e);var i,a,o,s,c,l,_,u=e.text,d=p4(e),p=function(t,e){let r=e.span.start;for(let e=0;0r),!0;{if(t.pos>=n.pos&&(n=t),rn.pos&&(n=e);return n}(t,r),n=(Y4.assert(n.pos<=r),n.pos);r=Math.max(0,n-1)}var i=Yo(r,J3(e.span)),e=e.newLength+(e.span.start-r);return ts(i,e)}(e,r),r=(d4(e,t,p,n),Y4.assert(p.span.start<=r.span.start),Y4.assert(J3(p.span)===J3(r.span)),Y4.assert(J3(Zo(p))===J3(Zo(r))),Zo(p).length-p.span.length);function f(e){if(Y4.assert(e.pos<=e.end),e.pos>a)c4(e,!1,s,c,l,_);else{var t=e.end;if(i<=t){if(s4(e),Z1(e),_4(e,i,a,o,s),h9(e,f,m),y7(e))for(var r of e.jsDoc)f(r);u4(e,_)}else Y4.assert(ta)c4(e,!0,s,c,l,_);else{var t=e.end;if(i<=t){s4(e),_4(e,i,a,o,s);for(var r of e)f(r)}else Y4.assert(tn&&(p(),_={range:{pos:u.pos+i,end:u.end+i},type:d},c=Q4(c,_),s)&&Y4.assert(a.substring(u.pos,u.end)===o.substring(_.range.pos,_.range.end))}return p(),c;function p(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,g.commentDirectives,p.span.start,J3(p.span),r,u,t,n),g.impliedNodeFormat=e.impliedNodeFormat,g},Xt.createSyntaxCursor=p4;var h4=new Map,y4=/^\/\/\/\s*<(\S+)\s.*?\/>/im,v4=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im;function b4(e,t,r,n){var i,a;n&&(i=n[1].toLowerCase(),a=ni[i])&&a.kind&r&&"fail"!==(r=function(t,e){if(!e)return{};if(!t.args)return{};var r=e.trim().split(/\s+/),n={};for(let e=0;e[""+t,e])),C4=(Toe=[["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"],["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.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.sharedmemory","lib.es2022.sharedmemory.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"],["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.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.esnext.regexp.d.ts"],["esnext.string","lib.esnext.string.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]]).map(e=>e[0]),w4=new Map(Toe),N4=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:eT.Watch_and_Build_Modes,description:eT.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:eT.Watch_and_Build_Modes,description:eT.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:eT.Watch_and_Build_Modes,description:eT.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:eT.Watch_and_Build_Modes,description:eT.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:lI},allowConfigDirTemplateSubstitution:!0,category:eT.Watch_and_Build_Modes,description:eT.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:lI},allowConfigDirTemplateSubstitution:!0,category:eT.Watch_and_Build_Modes,description:eT.Remove_a_list_of_files_from_the_watch_mode_s_processing}],D4=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:eT.Command_line_Options,description:eT.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:eT.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:eT.Command_line_Options,description:eT.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:eT.Output_Formatting,description:eT.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:eT.Compiler_Diagnostics,description:eT.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:eT.Compiler_Diagnostics,description:eT.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:eT.Compiler_Diagnostics,description:eT.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:eT.Output_Formatting,description:eT.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:eT.Compiler_Diagnostics,description:eT.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:eT.Compiler_Diagnostics,description:eT.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:eT.Compiler_Diagnostics,description:eT.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:eT.FILE_OR_DIRECTORY,category:eT.Compiler_Diagnostics,description:eT.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:eT.DIRECTORY,category:eT.Compiler_Diagnostics,description:eT.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:eT.Projects,description:eT.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:eT.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:eT.Emit,transpileOptionValue:void 0,description:eT.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:eT.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:eT.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:eT.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:eT.Emit,description:eT.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:eT.Emit,defaultValueDescription:!1,description:eT.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:eT.Emit,description:eT.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:eT.Watch_and_Build_Modes,description:eT.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:eT.Command_line_Options,isCommandLineOnly:!0,description:eT.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:eT.Platform_specific}],E4={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,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:eT.VERSION,showInSimplifiedHelpView:!0,category:eT.Language_and_Environment,description:eT.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},P4={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:eT.KIND,showInSimplifiedHelpView:!0,category:eT.Modules,description:eT.Specify_what_module_code_is_generated,defaultValueDescription:void 0},F4=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:eT.Command_line_Options,description:eT.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:eT.Command_line_Options,description:eT.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:eT.Command_line_Options,description:eT.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:eT.Command_line_Options,paramType:eT.FILE_OR_DIRECTORY,description:eT.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:eT.Command_line_Options,description:eT.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:eT.Command_line_Options,isCommandLineOnly:!0,description:eT.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:eT.Command_line_Options,isCommandLineOnly:!0,description:eT.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},E4,P4,{name:"lib",type:"list",element:{name:"lib",type:w4,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:eT.Language_and_Environment,description:eT.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:eT.JavaScript_Support,description:eT.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:eT.JavaScript_Support,description:eT.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:Qt,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:eT.KIND,showInSimplifiedHelpView:!0,category:eT.Language_and_Environment,description:eT.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:eT.FILE,showInSimplifiedHelpView:!0,category:eT.Emit,description:eT.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:eT.DIRECTORY,showInSimplifiedHelpView:!0,category:eT.Emit,description:eT.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:eT.LOCATION,category:eT.Modules,description:eT.Specify_the_root_folder_within_your_source_files,defaultValueDescription:eT.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:eT.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:eT.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:eT.FILE,category:eT.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:eT.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:eT.Emit,defaultValueDescription:!1,description:eT.Disable_emitting_comments},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:eT.Compiler_Diagnostics,description:eT.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,extraValidation(){return[eT.Unknown_compiler_option_0,"noCheck"]}},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:eT.Emit,description:eT.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:eT.Emit,description:eT.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:eT.Backwards_Compatibility,description:eT.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:eT.Emit,description:eT.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:eT.Interop_Constraints,description:eT.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:eT.Interop_Constraints,description:eT.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:eT.Interop_Constraints,description:eT.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:eT.Type_Checking,description:eT.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:eT.Type_Checking,description:eT.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:eT.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:eT.Type_Checking,description:eT.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:eT.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:eT.Type_Checking,description:eT.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:eT.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:eT.Type_Checking,description:eT.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:eT.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:eT.Type_Checking,description:eT.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:eT.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:eT.Type_Checking,description:eT.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:eT.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:eT.Type_Checking,description:eT.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:eT.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:eT.Type_Checking,description:eT.Ensure_use_strict_is_always_emitted,defaultValueDescription:eT.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Type_Checking,description:eT.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Type_Checking,description:eT.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Type_Checking,description:eT.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Type_Checking,description:eT.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:eT.Type_Checking,description:eT.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Type_Checking,description:eT.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Type_Checking,description:eT.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:eT.Type_Checking,description:eT.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:eT.STRATEGY,category:eT.Modules,description:eT.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:eT.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:eT.Modules,description:eT.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:eT.Modules,description:eT.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:eT.Modules,description:eT.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:eT.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:eT.Modules,description:eT.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:eT.Modules,description:eT.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:eT.Interop_Constraints,description:eT.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:eT.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:eT.Interop_Constraints,description:eT.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:eT.Interop_Constraints,description:eT.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:eT.Modules,description:eT.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:eT.Modules,description:eT.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Modules,description:eT.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:eT.Modules,description:eT.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:eT.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:eT.Modules,description:eT.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:eT.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:eT.Modules,description:eT.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:eT.LOCATION,category:eT.Emit,description:eT.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:eT.LOCATION,category:eT.Emit,description:eT.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:eT.Emit,description:eT.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Language_and_Environment,description:eT.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:eT.Language_and_Environment,description:eT.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:eT.Language_and_Environment,description:eT.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:eT.Language_and_Environment,description:eT.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,category:eT.Language_and_Environment,description:eT.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:eT.Modules,description:eT.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:eT.Modules,description:eT.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:eT.Backwards_Compatibility,paramType:eT.FILE,transpileOptionValue:void 0,description:eT.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:eT.Language_and_Environment,description:eT.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:eT.Completeness,description:eT.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:eT.Backwards_Compatibility,description:eT.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:eT.Emit,description:eT.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:eT.NEWLINE,category:eT.Emit,description:eT.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Output_Formatting,description:eT.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:eT.Language_and_Environment,affectsProgramStructure:!0,description:eT.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:eT.Modules,description:eT.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:eT.Emit,description:eT.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:eT.Editor_Support,description:eT.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:eT.Projects,description:eT.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:eT.Projects,description:eT.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:eT.Projects,description:eT.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Backwards_Compatibility,description:eT.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:eT.Emit,description:eT.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:eT.Emit,transpileOptionValue:void 0,description:eT.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:eT.Emit,description:eT.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:eT.DIRECTORY,category:eT.Emit,transpileOptionValue:void 0,description:eT.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:eT.Completeness,description:eT.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Type_Checking,description:eT.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Type_Checking,description:eT.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Backwards_Compatibility,description:eT.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:eT.Backwards_Compatibility,description:eT.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:eT.Interop_Constraints,description:eT.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:eT.JavaScript_Support,description:eT.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:eT.Backwards_Compatibility,description:eT.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:eT.Language_and_Environment,description:eT.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:eT.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:eT.Backwards_Compatibility,description:eT.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:eT.Backwards_Compatibility,description:eT.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:eT.Specify_a_list_of_language_service_plugins_to_include,category:eT.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:eT.Control_what_method_is_used_to_detect_module_format_JS_files,category:eT.Language_and_Environment,defaultValueDescription:eT.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}],A4=[...D4,...F4],I4=A4.filter(e=>!!e.affectsSemanticDiagnostics),O4=A4.filter(e=>!!e.affectsEmit),L4=A4.filter(e=>!!e.affectsDeclarationPath),j4=A4.filter(e=>!!e.affectsModuleResolution),R4=A4.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),M4=A4.filter(e=>!!e.affectsProgramStructure),B4=A4.filter(e=>Si(e,"transpileOptionValue")),J4=A4.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),z4=N4.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),q4=A4.filter(function(e){return!a3(e.type)}),U4=[{name:"verbose",shortName:"v",category:eT.Command_line_Options,description:eT.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:eT.Command_line_Options,description:eT.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:eT.Command_line_Options,description:eT.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:eT.Command_line_Options,description:eT.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],V4=[...D4,...U4],W4=[{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 S9(e){let t=new Map,r=new Map;return G4(e,e=>{t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)}),{optionsNameMap:t,shortOptionNames:r}}function k9(){return S4=S4||S9(A4)}var o={diagnostic:eT.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:M9},T9={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function C9(e){return w9(e,mD)}function w9(t,e){var r=ZT(t.type.keys()),r=(t.deprecatedKeys?r.filter(e=>!t.deprecatedKeys.has(e)):r).map(e=>`'${e}'`).join(", ");return e(eT.Argument_for_0_option_must_be_Colon_1,"--"+t.name,r)}function N9(e,t,r){return YA(e,(t??"").trim(),r)}function D9(t,e="",r){if(!f3(e=e.trim(),"-")){if("listOrElement"===t.type&&!e.includes(","))return QA(t,e,r);if(""===e)return[];var n=e.split(",");switch(t.element.type){case"number":return AT(n,e=>QA(t.element,parseInt(e),r));case"string":return AT(n,e=>QA(t.element,e||"",r));case"boolean":case"object":return Y4.fail(`List of ${t.element.type} is not yet supported.`);default:return AT(n,e=>N9(t.element,e,r))}}}function E9(e){return e.name}function P9(e,t,r,n,i){var a;return null!=(a=t.alternateMode)&&a.getOptionsNameMap().optionsNameMap.has(e.toLowerCase())?$A(i,n,t.alternateMode.diagnostic,e):(a=_3(e,t.optionDeclarations,E9))?$A(i,n,t.unknownDidYouMeanDiagnostic,r||e,a.name):$A(i,n,t.unknownOptionDiagnostic,r||e)}function F9(l,e,_){let u={},d,p=[],f=[];return m(e),{options:u,watchOptions:d,fileNames:p,errors:f};function m(e){let t=0;for(;tJi.readFile(e)));if(a3(o)){var s=[];let e=0;for(;;){for(;e=o.length)break;var c=e;if(34===o.charCodeAt(c)){for(e++;er.readFile(e));if(a3(c))return o=Yv(e,c),s=r.getCurrentDirectory(),o.path=pa(e,s,ze(r.useCaseSensitiveFileNames)),o.resolvedPath=o.path,o.originalFileName=o.fileName,kA(o,r,P3(D3(e),s),t,P3(e,s),void 0,a,n,i);r.onUnRecoverableConfigFileDiagnostic(c)}function U9(e,t){t=H9(e,t);return a3(t)?V9(e,t):{config:{},error:t}}function V9(e,t){e=Yv(e,t);return{config:lA(e,e.parseDiagnostics,void 0),error:e.parseDiagnostics.length?e.parseDiagnostics[0]:void 0}}function W9(e,t){t=H9(e,t);return a3(t)?Yv(e,t):{fileName:e,parseDiagnostics:[t]}}function H9(t,e){let r;try{r=e(t)}catch(e){return mD(eT.Cannot_read_file_0_Colon_1,t,e.message)}return void 0===r?mD(eT.Cannot_read_file_0,t):r}function K9(e){return Q(e,E9)}var G9,$9={optionDeclarations:W4,unknownOptionDiagnostic:eT.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:eT.Unknown_type_acquisition_option_0_Did_you_mean_1};function X9(){return G9=G9||S9(N4)}var Q9,Y9,Z9,eA={getOptionsNameMap:X9,optionDeclarations:N4,unknownOptionDiagnostic:eT.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:eT.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:eT.Watch_option_0_requires_a_value_of_type_1};function tA(){return Q9=Q9||K9(A4)}function rA(){return Y9=Y9||K9(N4)}function nA(){return Z9=Z9||K9(W4)}var iA,aA={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:eT.File_Management,disallowNullOrUndefined:!0},oA={name:"compilerOptions",type:"object",elementOptions:tA(),extraKeyDiagnostics:O9},sA={name:"watchOptions",type:"object",elementOptions:rA(),extraKeyDiagnostics:eA},cA={name:"typeAcquisition",type:"object",elementOptions:nA(),extraKeyDiagnostics:$9};function lA(e,t,r){var n=null==(n=e.statements[0])?void 0:n.expression;if(n&&210!==n.kind){if(t.push(c_(e,n,eT.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===ra(e.fileName)?"jsconfig.json":"tsconfig.json")),NP(n)){var i=bT(n.elements,DP);if(i)return uA(e,i,t,!0,r)}return{}}return uA(e,n,t,!0,r)}function _A(e,t){return uA(e,null==(e=e.statements[0])?void 0:e.expression,t,!0,void 0)}function uA(_,e,u,d,p){return e?f(e,null==p?void 0:p.rootOptions):d?{}:void 0;function f(e,t){switch(e.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return m(e)||u.push(c_(_,e,eT.String_literal_with_double_quotes_expected)),e.text;case 9:return Number(e.text);case 224:if(41!==e.operator||9!==e.operand.kind)break;return-Number(e.operand.text);case 210:var r,n,i,a,o=t,s=d?{}:void 0;for(r of e.properties)303!==r.kind?u.push(c_(_,r,eT.Property_assignment_expected)):(r.questionToken&&u.push(c_(_,r.questionToken,eT.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),m(r.name)||u.push(c_(_,r.name,eT.String_literal_with_double_quotes_expected)),i=!(n=(n=f5(r.name)?void 0:m5(r.name))&&X3(n))||null==(i=null==o?void 0:o.elementOptions)?void 0:i.get(n),a=f(r.initializer,i),void 0!==n&&(d&&(s[n]=a),null!=p)&&p.onPropertySet(n,a,r,o,i));return s;case 209:var c=e.elements,l=t&&t.element;return d?NT(c.map(e=>f(e,l)),e=>void 0!==e):void c.forEach(e=>f(e,l))}t?u.push(c_(_,e,eT.Compiler_option_0_requires_a_value_of_type_1,t.name,dA(t))):u.push(c_(_,e,eT.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function m(e){return qE(e)&&Y_(e,_)}}function dA(e){return"listOrElement"===e.type?dA(e.element)+" or Array":"list"===e.type?"Array":a3(e.type)?e.type:"string"}function pA(e,t,r){let n,i,a,o=ze(r.useCaseSensitiveFileNames);var s=$4(NT(e.fileNames,null!=(i=null==(n=e.options.configFile)?void 0:n.configFileSpecs)&&i.validatedIncludeSpecs?function(e,n,i,a){if(n){e=mm(e,i,n,a.useCaseSensitiveFileNames,a.getCurrentDirectory());let t=e.excludePattern&&gm(e.excludePattern,a.useCaseSensitiveFileNames),r=e.includeFilePattern&&gm(e.includeFilePattern,a.useCaseSensitiveFileNames);if(r)return t?e=>!(r.test(e)&&!t.test(e)):e=>!r.test(e);if(t)return e=>t.test(e)}return ki}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):ki),e=>Da(P3(t,r.getCurrentDirectory()),P3(e,r.getCurrentDirectory()),o)),c={configFilePath:P3(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},l=gA(e.options,c),_=e.watchOptions&&hA(e.watchOptions,X9()),s={compilerOptions:{...fA(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:_&&fA(_),references:$4(e.projectReferences,e=>({...e,path:e.originalPath||"",originalPath:void 0})),files:K4(s)?s:void 0,...null!=(a=e.options.configFile)&&a.configFileSpecs?{include:(_=e.options.configFile.configFileSpecs.validatedIncludeSpecs,K4(_)&&(1!==K4(_)||_[0]!==NA)?_:void 0),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0};let u=new Set(l.keys());var d,p={};for(d in Of)!u.has(d)&&X4(Of[d].dependencies,e=>u.has(e))&&Of[d].computeValue(e.options)!==Of[d].computeValue({})&&(p[d]=Of[d].computeValue(e.options));return U(s.compilerOptions,fA(gA(p,c))),s}function fA(e){return{...ZT(e.entries()).reduce((e,t)=>({...e,[t[0]]:t[1]}),{})}}function mA(r,e){return j7(e,(e,t)=>{if(e===r)return t})}function gA(e,t){return hA(e,k9(),t)}function hA(e,{optionsNameMap:t},r){var n,i=new Map;let a=r&&ze(r.useCaseSensitiveFileNames);for(n in e)if(Si(e,n)&&(!t.has(n)||t.get(n).category!==eT.Command_line_Options&&t.get(n).category!==eT.Output_Formatting)){var o=e[n],s=t.get(n.toLowerCase());if(s){Y4.assert("listOrElement"!==s.type);let t=function e(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return e(t.element);default:return t.type}}(s);t?"list"===s.type?i.set(n,o.map(e=>mA(e,t))):i.set(n,mA(o,t)):r&&s.isFilePath?i.set(n,Da(r.configFilePath,P3(o,D3(r.configFilePath)),a)):r&&"list"===s.type&&s.element.isFilePath?i.set(n,o.map(e=>Da(r.configFilePath,P3(e,D3(r.configFilePath)),a))):i.set(n,o)}}return i}function yA(e,t){let a=vA(e);{let n=[],i=Array(3).join(" ");return F4.forEach(e=>{var t,r;a.has(e.name)&&((t=a.get(e.name))!==(r=dI(e))?n.push(""+i+e.name+": "+t):Si(T9,e.name)&&n.push(""+i+e.name+": "+r))}),n.join(t)+t}}function vA(e){return gA(te(e,T9))}function bA(e,t,r){let o=vA(e);{var s=new Map,c;s.set(eT.Projects,[]),s.set(eT.Language_and_Environment,[]),s.set(eT.Modules,[]),s.set(eT.JavaScript_Support,[]),s.set(eT.Emit,[]),s.set(eT.Interop_Constraints,[]),s.set(eT.Type_Checking,[]),s.set(eT.Completeness,[]);for(c of A4)if(function({category:e,name:t,isCommandLineOnly:r}){var n=[eT.Command_line_Options,eT.Editor_Support,eT.Compiler_Diagnostics,eT.Backwards_Compatibility,eT.Watch_and_Build_Modes,eT.Output_Formatting];return!r&&void 0!==e&&(!n.includes(e)||o.has(t))}(c)){let e=s.get(c.category);e||s.set(c.category,e=[]),e.push(c)}let n=0,i=0,a=[];s.forEach((e,t)=>{0!==a.length&&a.push({value:""}),a.push({value:`/* ${xf(t)} */`});for(var r of e){let e;e=o.has(r.name)?`"${r.name}": `+JSON.stringify(o.get(r.name))+((i+=1)===o.size?"":","):`// "${r.name}": ${JSON.stringify(dI(r))},`,a.push({value:e,description:`/* ${r.description&&xf(r.description)||r.name} */`}),n=Math.max(e.length,n)}});var l=p(2),_=[],u;_.push("{"),_.push(l+'"compilerOptions": {'),_.push(""+l+l+`/* ${xf(eT.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),_.push("");for(u of a){var{value:u,description:d=""}=u;_.push(u&&""+l+l+u+(d&&p(n-u.length+2)+d))}if(t.length){_.push(l+"},"),_.push(l+'"files": [');for(let e=0;e"object"==typeof e,"object"),t=y(v("files"));t&&(e="no-prop"===e||i3(e)&&0===e.length,o=Si(m,"extends"),0===t.length)&&e&&!o&&(d?(e=p||"tsconfig.json",o=eT.The_files_list_in_config_file_0_is_empty,u=B_(d,"files",e=>e.initializer),u=$A(d,u,o,e),f.push(u)):x(eT.The_files_list_in_config_file_0_is_empty,p||"tsconfig.json"));let r=y(v("include")),n=v("exclude"),i=!1,a=y(n);{var o;"no-prop"===n&&(o=g.outDir,e=g.declarationDir,o||e)&&(a=NT([o,e],e=>!!e))}void 0===t&&void 0===r&&(r=[NA],i=!0);let s,c,l,_;r&&(s=cI(r,f,!0,d,"include"),l=OA(s,h)||s);a&&(c=cI(a,f,!1,d,"exclude"),_=OA(c,h)||c);var u=NT(t,a3),e=OA(u,h)||u;return{filesSpecs:t,includeSpecs:r,excludeSpecs:a,validatedFilesSpec:e,validatedIncludeSpecs:l,validatedExcludeSpecs:_,validatedFilesSpecBeforeSubstitution:u,validatedIncludeSpecsBeforeSubstitution:s,validatedExcludeSpecsBeforeSubstitution:c,pathPatterns:void 0,isDefaultIncludeSpec:i}}();return d&&(d.configFileSpecs=c),TA(g,d),{options:g,watchOptions:s,fileNames:function(e){e=nI(c,e,g,t,o);jA(e,RA(m),a)&&f.push(LA(c,p));return e}(h),projectReferences:function(e){let t,r=b("references",e=>"object"==typeof e,"object");if(i3(r))for(var n of r)"string"!=typeof n.path?x(eT.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t=t||[]).push({path:P3(n.path,e),originalPath:n.path,prepend:n.prepend,circular:n.circular});return t}(h),typeAcquisition:e.typeAcquisition||HA(),raw:m,errors:f,wildcardDirectories:function({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,n){var t=lm(t,r,"exclude"),i=t&&new RegExp(t,n?"":"i"),a={},o=new Map;if(void 0!==e){var s,c,l=[];for(s of e){var _,u,d,p,f=ua(E3(r,s));i&&i.test(f)||(f=function(e,t){var r=rI.exec(e);{var n,i,a;if(r)return n=e.indexOf("?"),i=e.indexOf("*"),a=e.lastIndexOf(qi),{key:_I(r[0],t),path:r[0],flags:-1!==n&&n{var t;i3(r[e])&&(t=OA(r[e],n))&&((i=i??U({},r))[e]=t)}),i}(a,t);o&&s(i,o);break;default:Y4.fail("option type not supported")}}return n||r;function s(e,t){(n=n??U({},r))[e.name]=t}}var FA="${configDir}";function AA(e){return a3(e)&&f3(e,FA,!0)}function IA(e,t){return P3(e.replace(FA,"./"),t)}function OA(r,n){if(!r)return r;let i;return r.forEach((e,t)=>{AA(e)&&((i=i??r.slice())[t]=IA(e,n))}),i}function LA({includeSpecs:e,excludeSpecs:t},r){return mD(eT.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function jA(e,t,r){return 0===e.length&&t&&(!r||0===r.length)}function RA(e){return!Si(e,"files")&&!Si(e,"references")}function MA(e,t,r,n,i){var a=n.length;return jA(e,i)?n.push(LA(r,t)):d(n,e=>{return!(e.code===eT.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code)}),a!==n.length}function BA(e,r,o,s,t,c,l,_){var n,i,a,u,d,p,f,m=P3(t||"",s=sa(s));if(c.includes(m))return l.push(mD(eT.Circularity_detected_while_resolving_configuration_Colon_0,[...c,m].join(" -> "))),{raw:e||_A(r,l)};let g=e?(n=o,i=s,a=t,u=l,Si(e=e,"excludes")&&u.push(mD(eT.Unknown_option_excludes_Did_you_mean_exclude)),d=WA(e.compilerOptions,i,u,a),p=KA(e.typeAcquisition,i,u,a),f=function(e,t,r){return GA(rA(),e,t,void 0,eA,r)}(e.watchOptions,i,u),e.compileOnSave=function(e,t,r){if(!Si(e,k4.name))return!1;e=XA(k4,e.compileOnSave,t,r);return"boolean"==typeof e&&e}(e,i,u),n=e.extends||""===e.extends?JA(e.extends,n,i,a,u):void 0,{raw:e,options:d,watchOptions:f,typeAcquisition:p,extendedConfigPath:n}):function(a,o,s,c,l){let _=VA(c),u,d,p,f,m=iA=void 0===iA?{name:void 0,type:"object",elementOptions:K9([oA,sA,cA,aA,{name:"references",type:"list",element:{name:"references",type:"object"},category:eT.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:eT.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:eT.File_Management,defaultValueDescription:eT.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:eT.File_Management,defaultValueDescription:eT.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},k4])}:iA,e=lA(a,l,{rootOptions:m,onPropertySet:function(t,r,e,n,i){i&&i!==aA&&(r=XA(i,r,s,l,e,e.initializer,a));if(null!=n&&n.name)if(i){let e;n===oA?e=_:n===sA?e=d=d??{}:n===cA?e=u=u??HA(c):Y4.fail("Unknown option"),e[i.name]=r}else t&&null!=n&&n.extraKeyDiagnostics&&(n.elementOptions?l.push(P9(t,n.extraKeyDiagnostics,void 0,e.name,a)):l.push(c_(a,e.name,n.extraKeyDiagnostics.unknownOptionDiagnostic,t)));else n===m&&(i===aA?p=JA(r,o,s,c,l,e,e.initializer,a):i||("excludes"===t&&l.push(c_(a,e.name,eT.Unknown_option_excludes_Did_you_mean_exclude)),bT(F4,e=>e.name===t)&&(f=Q4(f,e.name))))}});u=u||HA(c);f&&e&&void 0===e.compilerOptions&&l.push(c_(a,f[0],eT._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,m5(f[0])));return{raw:e,options:_,watchOptions:d,typeAcquisition:u,extendedConfigPath:p}}(r,o,s,t,l);if(null!=(i=g.options)&&i.paths&&(g.options.pathsBasePath=s),g.extendedConfigPath){c=c.concat([m]);let t={options:{}};a3(g.extendedConfigPath)?h(t,g.extendedConfigPath):g.extendedConfigPath.forEach(e=>h(t,e)),t.include&&(g.raw.include=t.include),t.exclude&&(g.raw.exclude=t.exclude),t.files&&(g.raw.files=t.files),void 0===g.raw.compileOnSave&&t.compileOnSave&&(g.raw.compileOnSave=t.compileOnSave),r&&t.extendedSourceFiles&&(r.extendedSourceFiles=ZT(t.extendedSourceFiles.keys())),g.options=U(t.options,g.options),g.watchOptions=g.watchOptions&&t.watchOptions?U(t.watchOptions,g.watchOptions):g.watchOptions||t.watchOptions}return g;function h(n,i){var e=function(e,t,r,n,i,a,o){let s=r.useCaseSensitiveFileNames?t:br(t),c,l,_;a&&(c=a.get(s))?{extendedResult:l,extendedConfig:_}=c:((l=W9(t,e=>r.readFile(e))).parseDiagnostics.length||(_=BA(void 0,l,r,D3(t),ra(t),n,i,a)),a&&a.set(s,{extendedResult:l,extendedConfig:_}));if(e&&((o.extendedSourceFiles??(o.extendedSourceFiles=new Set)).add(l.fileName),l.extendedSourceFiles))for(var u of l.extendedSourceFiles)o.extendedSourceFiles.add(u);if(!l.parseDiagnostics.length)return _;i.push(...l.parseDiagnostics)}(r,i,o,c,l,_,n);if(e&&e.options){let t=e.raw,r;var a=e=>{g.raw[e]||t[e]&&(n[e]=$4(t[e],e=>AA(e)||Gi(e)?e:E3(r=r||Na(D3(i),s,ze(o.useCaseSensitiveFileNames)),e)))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(n.compileOnSave=t.compileOnSave),U(n.options,e.options),n.watchOptions=n.watchOptions&&e.watchOptions?U({},n.watchOptions,e.watchOptions):n.watchOptions||e.watchOptions}}}function JA(t,r,n,e,i,a,o,s){let c;var l=e?wA(e,n):n;if(a3(t))c=zA(t,r,l,i,o,s);else if(i3(t)){c=[];for(let e=0;e$A(i,n,e,...t)))}function ZA(r,e,n,i,a,o,s){return NT($4(e,(e,t)=>XA(r.element,e,n,i,a,null==o?void 0:o.elements[t],s)),e=>!!r.listPreserveFalsyValues||!!e)}var eI,tI=/(^|\/)\*\*\/?$/,rI=/^[^*?]*(?=\/[^/]*[*?])/;function nI(e,r,t,n,i=H4){r=ua(r);var a,o,s=ze(n.useCaseSensitiveFileNames),c=new Map,l=new Map,_=new Map,{validatedFilesSpec:e,validatedIncludeSpecs:u,validatedExcludeSpecs:d}=e,p=Fm(t,i),i=Am(t,p);if(e)for(var f of e){f=P3(f,r);c.set(s(f),f)}let m;if(u&&0u3(e,".json")),r,"files"),e=>`^${e}$`),m=a?a.map(e=>gm(e,n.useCaseSensitiveFileNames)):H4),-1!==ST(m,e=>e.test(t))&&(a=s(t),c.has(a)||_.has(a)||_.set(a,t))):function(t,e,r,n,i){n=G4(n,e=>N3(t,e)?e:void 0);if(n)for(var a of n){if(w3(t,a)&&(".ts"!==a||!w3(t,".d.ts")))return;var o=i(Vm(t,a));if((e.has(o)||r.has(o))&&(".d.ts"!==a||!w3(t,".js")&&!w3(t,".jsx")))return 1}return}(t,c,l,p,s)||(function(t,r,e,n){var i=G4(e,e=>N3(t,e)?e:void 0);if(i)for(let e=i.length-1;0<=e;e--){var a=i[e];if(w3(t,a))return;a=n(Vm(t,a));r.delete(a)}}(t,l,p,s),o=s(t),c.has(o))||l.has(o)||l.set(o,t);t=ZT(c.values()),e=ZT(l.values());return t.concat(e,ZT(_.values()))}function iI(e,t,r,n,i){var{validatedFilesSpec:t,validatedIncludeSpecs:a,validatedExcludeSpecs:o}=t;if(!K4(a)||!K4(o))return!1;r=ua(r);var s=ze(n);if(t)for(var c of t)if(s(P3(c,r))===e)return!1;return sI(e,o,n,i,r)}function aI(e){var t=f3(e,"**/")?0:e.indexOf("/**/");return-1!==t&&t<(u3(e,"/..")?e.length:e.lastIndexOf("/../"))}function oI(e,t,r,n){return sI(e,NT(t,e=>!aI(e)),r,n)}function sI(e,t,r,n,i){t=lm(t,E3(ua(n),i),"exclude"),n=t&&gm(t,r);return!!n&&(!!n.test(e)||!C3(e)&&n.test(ma(e)))}function cI(e,i,a,o,s){return e.filter(e=>{var t,r,n;return!!a3(e)&&(void 0!==(e=lI(e,a))&&i.push(([t,r]=[...e],n=M_(o,s,r),$A(o,n,t,r))),void 0===e)})}function lI(e,t){return Y4.assert("string"==typeof e),t&&tI.test(e)?[eT.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:aI(e)?[eT.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function _I(e,t){return t?e:br(e)}function uI(e){var t,r,n={};for(t in e)Si(e,t)&&void 0!==(r=j9(t))&&(n[t]=function r(n,e){if(void 0===n)return n;switch(e.type){case"object":case"string":return"";case"number":return"number"==typeof n?n:"";case"boolean":return"boolean"==typeof n?n:"";case"listOrElement":if(!i3(n))return r(n,e.element);case"list":let t=e.element;return i3(n)?AT(n,e=>r(e,t)):"";default:return j7(e.type,(e,t)=>{if(e===n)return t})}}(e[t],r));return n}function dI(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":var t=e.defaultValueDescription;return e.isFilePath?"./"+(t&&"string"==typeof t?t:""):"";case"list":return[];case"listOrElement":return dI(e.element);case"object":return{};default:t=VT(e.type.keys());return void 0!==t?t:Y4.fail("Expected 'option.type' to have entries.")}}function pI(e,t,...r){e.trace(fD(t,...r))}function fI(e,t){return!!e.traceResolution&&void 0!==t.trace}function mI(e,t,r){let n;var i;return t&&e&&"string"==typeof(i=e.contents.packageJsonContent).name&&"string"==typeof i.version&&(n={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+qi.length),version:i.version,peerDependencies:function(e,t){void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(t,r){var n=CI(t.contents.packageJsonContent,"peerDependencies","object",r);if(void 0!==n){r.traceEnabled&&pI(r.host,eT.package_json_has_a_peerDependencies_field);var i,a,t=dO(t.packageDirectory,r.host,r.traceEnabled),o=t.substring(0,t.lastIndexOf("node_modules")+"node_modules".length)+qi;let e="";for(i in n)Si(n,i)&&((a=PO(o+i,!1,r))?(a=a.contents.packageJsonContent.version,e+=`+${i}@`+a,r.traceEnabled&&pI(r.host,eT.Found_peerDependency_0_with_1_version,i,a)):r.traceEnabled&&pI(r.host,eT.Failed_to_find_peerDependency_0,i));return e}}(e,t)||!1);return e.contents.peerDependencies||void 0}(e,r)}),t&&{path:t.path,extension:t.ext,packageId:n,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function gI(e){return mI(void 0,e,void 0)}function hI(e){if(e)return Y4.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function yI(e){var 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 vI(e){if(e)return Y4.assert(Gm(e.extension)),{fileName:e.path,packageId:e.packageId}}function bI(e,t,r,n,i,a,o,s,c){var l;return o.resultFromCache||o.compilerOptions.preserveSymlinks||!t||!r||t.originalPath||B3(e)||({resolvedFileName:e,originalPath:l}=FI(t.path,o.host,o.traceEnabled),l&&(t={...t,path:e,originalPath:l})),xI(t,r,n,i,a,o.resultFromCache,s,c)}function xI(e,t,r,n,i,a,o,s){return a?null!=o&&o.isReadonly?{...a,failedLookupLocations:TI(a.failedLookupLocations,r),affectingLocations:TI(a.affectingLocations,n),resolutionDiagnostics:TI(a.resolutionDiagnostics,i)}:(a.failedLookupLocations=kI(a.failedLookupLocations,r),a.affectingLocations=kI(a.affectingLocations,n),a.resolutionDiagnostics=kI(a.resolutionDiagnostics,i),a):{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:SI(r),affectingLocations:SI(n),resolutionDiagnostics:SI(i),alternateResult:s}}function SI(e){return e.length?e:void 0}function kI(e,t){if(null!=t&&t.length){if(null==e||!e.length)return t;e.push(...t)}return e}function TI(e,t){return null!=e&&e.length?t.length?[...e,...t]:e.slice():SI(t)}function CI(e,t,r,n){if(Si(e,t)){e=e[t];if(typeof e===r&&null!==e)return e;n.traceEnabled&&pI(n.host,eT.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,null===e?"null":typeof e)}else n.traceEnabled&&pI(n.host,eT.package_json_does_not_have_a_0_field,t)}function wI(e,t,r,n){e=CI(e,t,"string",n);if(void 0!==e){if(e)return r=ua(E3(r,e)),n.traceEnabled&&pI(n.host,eT.package_json_has_0_field_1_that_references_2,t,e,r),r;n.traceEnabled&&pI(n.host,eT.package_json_had_a_falsy_0_field,t)}}function NI(e,t){var r=function(e,t){if(void 0!==(e=CI(e,"typesVersions","object",t)))return t.traceEnabled&&pI(t.host,eT.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),e}(e,t);if(void 0!==r){if(t.traceEnabled)for(var n in r)Si(r,n)&&!Ot.tryParse(n)&&pI(t.host,eT.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,n);e=DI(r);if(e){var{version:i,paths:a}=e;if("object"==typeof a)return e;t.traceEnabled&&pI(t.host,eT.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${i}']`,"object",typeof a)}else t.traceEnabled&&pI(t.host,eT.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,mr)}}function DI(e){for(var t in eI=eI||new Tr(L),e)if(Si(e,t)){var r=Ot.tryParse(t);if(void 0!==r&&r.test(eI))return{version:t,paths:e[t]}}}function EI(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=D3(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),void 0!==r){e=r;let t;return Pa(ua(e),e=>{e=E3(e,PI);(t=t??[]).push(e)}),t}}var PI=E3("node_modules","@types");function FI(e,t,r){r=dO(e,t,r),t=0===F3(e,r,!("function"==typeof(t=t).useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():t.useCaseSensitiveFileNames));return{resolvedFileName:t?e:r,originalPath:t?void 0:e}}function AI(e,t,r){return E3(e,u3(e,"/node_modules/@types")||u3(e,"/node_modules/@types/")?HO(t,r):t)}function II(s,c,l,_,u,d,p){Y4.assert("string"==typeof s,"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.");let f=fI(l,_);u&&(l=u.commandLine.options);var m=c?D3(c):void 0;let g=!m||null==d?void 0:d.getFromDirectoryCache(s,p,m,u);if(g=g||!m||B3(s)?g:null==d?void 0:d.getFromNonRelativeNameCache(s,p,m,u))f&&(pI(_,eT.Resolving_type_reference_directive_0_containing_file_1,s,c),u&&pI(_,eT.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName),pI(_,eT.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,s,m),x(g));else{let e=EI(l,_);f&&(void 0===c?void 0===e?pI(_,eT.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,s):pI(_,eT.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,s,e):void 0===e?pI(_,eT.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,s,c):pI(_,eT.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,s,c,e),u)&&pI(_,eT.Using_compiler_options_of_project_reference_redirect_0,u.sourceFile.fileName);var h=[],y=[];let t=OI(l);void 0!==p&&(t|=30);var v=xD(l),v=(99===p&&3<=v&&v<=99&&(t|=32),8&t?LI(l,p):[]);let r=[],i={compilerOptions:l,host:_,traceEnabled:f,failedLookupLocations:h,affectingLocations:y,packageJsonInfoCache:d,features:t,conditions:v,requestContainingDirectory:m,reportDiagnostic:e=>{r.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},n=function(){{if(e&&e.length)return f&&pI(_,eT.Resolving_with_primary_search_path_0,e.join(", ")),yT(e,e=>{var t=AI(e,s,i),r=Sp(e,_);if(!r&&f&&pI(_,eT.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),l.typeRoots){var n,e=vO(4,t,!r,i);if(e)return vI(mI((n=gO(e.path))?PO(n,!1,i):void 0,e,i))}return vI(CO(4,t,!r,i))});f&&pI(_,eT.Root_directory_cannot_be_determined_skipping_primary_search_paths)}}(),a=!0;n||(n=function(){var t=c&&D3(c);{if(void 0!==t){let e;var r;return l.typeRoots&&u3(c,wJ)?f&&pI(_,eT.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder):(f&&pI(_,eT.Looking_up_in_node_modules_folder_initial_location_0,t),e=B3(s)?(r=uO(t,s)["path"],pO(4,r,!1,i,!0)):(r=JO(4,s,t,i,void 0,void 0))&&r.value),vI(e)}f&&pI(_,eT.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}(),a=!1);let o;if(n){var{fileName:v,packageId:b}=n;let e=v,t;l.preserveSymlinks||({resolvedFileName:e,originalPath:t}=FI(v,_,f)),o={primary:a,resolvedFileName:e,originalPath:t,packageId:b,isExternalLibraryImport:mO(v)}}g={resolvedTypeReferenceDirective:o,failedLookupLocations:SI(h),affectingLocations:SI(y),resolutionDiagnostics:SI(r)},m&&d&&!d.isReadonly&&(d.getOrCreateCacheForDirectory(m,u).set(s,p,g),B3(s)||d.getOrCreateCacheForNonRelativeName(s,p,u).set(m,g)),f&&x(g)}return g;function x(e){var t;null!=(t=e.resolvedTypeReferenceDirective)&&t.resolvedFileName?e.resolvedTypeReferenceDirective.packageId?pI(_,eT.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,s,e.resolvedTypeReferenceDirective.resolvedFileName,vl(e.resolvedTypeReferenceDirective.packageId),e.resolvedTypeReferenceDirective.primary):pI(_,eT.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,s,e.resolvedTypeReferenceDirective.resolvedFileName,e.resolvedTypeReferenceDirective.primary):pI(_,eT.Type_reference_directive_0_was_not_resolved,s)}}function OI(e){let t=0;switch(xD(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 LI(e,t){var r=xD(e);if(void 0===t)if(100===r)t=99;else if(2===r)return[];t=99===t?["import"]:["require"];return e.noDtsResolution||t.push("types"),100!==r&&t.push("node"),LT(t,e.customConditions)}function jI(t,e,r,n,i){let a=NO(null==i?void 0:i.getPackageJsonInfoCache(),n,r);return Pa(e,e=>{if("node_modules"!==ra(e))return e=E3(e,"node_modules"),PO(E3(e,t),!1,a)})}function RI(e,t){if(e.types)return e.types;var r=[];if(t.directoryExists&&t.getDirectories){e=EI(e,t);if(e)for(var n of e)if(t.directoryExists(n))for(var i of t.getDirectories(n)){var i=ua(i),a=E3(n,i,"package.json");t.fileExists(a)&&null===bp(a,t).typings||46!==(a=ra(i)).charCodeAt(0)&&r.push(a)}}return r}function MI(e){return!(null==e||!e.contents)}function BI(e){return!!e&&!e.contents}function JI(t,e){return e.map(e=>function t(e){var r,n;if(null===e||"object"!=typeof e)return""+e;if(i3(e))return`[${null==(r=e.map(e=>t(e)))?void 0:r.join(",")}]`;let i="{";for(n in e)Si(e,n)&&(i+=n+": "+t(e[n]));return i+"}"}(Gf(t,e))).join("|")+("|"+t.pathsBasePath)}function zI(a,r){let o=new Map,s=new Map,c=new Map;return a&&o.set(a,c),{getMapOfCacheRedirects:function(e){return e?t(e.commandLine.options,!1):c},getOrCreateMapOfCacheRedirects:function(e){return e?t(e.commandLine.options,!0):c},update:function(e){a!==e&&(a?c=t(e,!0):o.set(e,c),a=e)},clear:function(){var e=a&&r.get(a);c.clear(),o.clear(),r.clear(),s.clear(),a&&(e&&r.set(a,e),o.set(a,c))},getOwnMap:()=>c};function t(e,t){let r=o.get(e);var n,i;return r||(n=l(e),!(r=s.get(n))&&(a&&((i=l(a))===n?r=c:s.has(i)||s.set(i,c)),r=t?r??new Map:r)&&s.set(n,r),r&&o.set(e,r)),r}function l(e){let t=r.get(e);return t||r.set(e,t=JI(e,j4)),t}}function qI(r,n){let i;return{getPackageJsonInfo:function(e){return null==i?void 0:i.get(pa(e,r,n))},setPackageJsonInfo:function(e,t){(i=i||new Map).set(pa(e,r,n),t)},clear:function(){i=void 0},getInternalMap:function(){return i}}}function UI(e,t,r,n){e=e.getOrCreateMapOfCacheRedirects(t);let i=e.get(r);return i||(i=n(),e.set(r,i)),i}function VI(i,a,e,t){let o=zI(e,t);return{getFromDirectoryCache:function(e,t,r,n){r=pa(r,i,a);return null==(n=null==(n=o.getMapOfCacheRedirects(n))?void 0:n.get(r))?void 0:n.get(e,t)},getOrCreateCacheForDirectory:function(e,t){e=pa(e,i,a);return UI(o,t,e,()=>HI())},clear:function(){o.clear()},update:function(e){o.update(e)},directoryToModuleNameMap:o}}function WI(e,t){return void 0===t?e:t+"|"+e}function HI(){let i=new Map,a=new Map,n={get(e,t){return i.get(o(e,t))},set(e,t,r){return i.set(o(e,t),r),n},delete(e,t){return i.delete(o(e,t)),n},has(e,t){return i.has(o(e,t))},forEach(n){return i.forEach((e,t)=>{var[t,r]=a.get(t);return n(e,t,r)})},size(){return i.size}};return n;function o(e,t){var r=WI(e,t);return a.set(r,[e,t]),r}}function KI(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function GI(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function $I(s,c,e,l,t){let i=zI(e,t);return{getFromNonRelativeNameCache:function(e,t,r,n){return Y4.assert(!B3(e)),null==(n=null==(n=i.getMapOfCacheRedirects(n))?void 0:n.get(WI(e,t)))?void 0:n.get(r)},getOrCreateCacheForNonRelativeName:function(e,t,r){return Y4.assert(!B3(e)),UI(i,r,WI(e,t),n)},clear:function(){i.clear()},update:function(e){i.update(e)}};function n(){let o=new Map;return{get:function(e){return o.get(pa(e,s,c))},set:function(t,r){t=pa(t,s,c);if(!o.has(t)){o.set(t,r);var n=l(r),i=n&&function(e,t){let r=pa(D3(t),s,c),n=0,i=Math.min(e.length,r.length);for(;nn,clearAllExceptPackageJsonInfoCache:c,optionsToRedirectsKey:a};function c(){o.clear(),s.clear()}}function QI(e,t,r,n,i){let a=XI(e,t,r,n,KI,i);return a.getOrCreateCacheForModuleName=(e,t,r)=>a.getOrCreateCacheForNonRelativeName(e,t,r),a}function YI(e,t,r,n,i){return XI(e,t,r,n,GI,i)}function ZI(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function eO(e,t,r,n,i){return rO(e,t,ZI(r),n,i)}function tO(e,t,r,n){t=D3(t);return r.getFromDirectoryCache(e,n,t,void 0)}function rO(t,r,n,i,a,o,s){var c=fI(n,i),l=(o&&(n=o.commandLine.options),c&&(pI(i,eT.Resolving_module_0_from_1,t,r),o)&&pI(i,eT.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),D3(r));let _=null==a?void 0:a.getFromDirectoryCache(t,s,l,o);if(_)c&&pI(i,eT.Resolution_for_module_0_was_found_in_cache_from_location_1,t,l);else{let e=n.moduleResolution;switch(void 0===e?(e=xD(n),c&&pI(i,eT.Module_resolution_kind_is_not_specified_using_0,An[e])):c&&pI(i,eT.Explicitly_specified_module_resolution_kind_Colon_0,An[e]),null!=er&&er.logStartResolveModule(t),e){case 3:case 99:_=oO(30,t,r,n,i,a,o,s);break;case 2:_=cO(t,r,n,i,a,o,s?LI(n,s):void 0);break;case 1:_=YO(t,r,n,i,a,o);break;case 100:_=sO(t,r,n,i,a,o,s?LI(n,s):void 0);break;default:return Y4.fail("Unexpected moduleResolution: "+e)}_&&_.resolvedModule&&null!=er&&er.logInfoEvent(`Module "${t}" resolved to "${_.resolvedModule.resolvedFileName}"`),null!=er&&er.logStopResolveModule(_&&_.resolvedModule?""+_.resolvedModule.resolvedFileName:"null"),a&&!a.isReadonly&&(a.getOrCreateCacheForDirectory(l,o).set(t,s,_),B3(t)||a.getOrCreateCacheForNonRelativeName(t,s,o).set(l,_))}return c&&(_.resolvedModule?_.resolvedModule.packageId?pI(i,eT.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,_.resolvedModule.resolvedFileName,vl(_.resolvedModule.packageId)):pI(i,eT.Module_name_0_was_successfully_resolved_to_1,t,_.resolvedModule.resolvedFileName):pI(i,eT.Module_name_0_was_not_resolved,t)),_}function nO(e,t,n,r,i){var a=function(e,t,r,n){var{baseUrl:i,paths:a,configFile:o}=n.compilerOptions;if(a&&!T3(t))return n.traceEnabled&&(i&&pI(n.host,eT.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),pI(n.host,eT.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),i=Fd(n.compilerOptions,n.host),o=null!=o&&o.configFileSpecs?(o=o.configFileSpecs).pathPatterns||(o.pathPatterns=Hm(a)):void 0,VO(e,t,i,a,o,r,!1,n)}(e,t,r,i);if(a)return a.value;if(B3(t)){var o=e,a=t,s=r,c=i;if(c.compilerOptions.rootDirs){c.traceEnabled&&pI(c.host,eT.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,a);var l,_=ua(E3(n,a));let t,r;for(l of c.compilerOptions.rootDirs){let e=ua(l);u3(e,qi)||(e+=qi);var u=f3(_,e)&&(void 0===r||r.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))(aO||{});function oO(e,t,r,n,i,a,o,s,c){r=D3(r),s=99===s?32:0;let l=n.noDtsResolution?3:7;return CD(n)&&(l|=8),_O(e|s,t,r,n,i,a,l,!1,o,c)}function sO(e,t,r,n,i,a,o){t=D3(t);let s=r.noDtsResolution?3:7;return CD(r)&&(s|=8),_O(OI(r),e,t,r,n,i,s,!1,a,o)}function cO(e,t,r,n,i,a,o,s){let c;return s?c=8:r.noDtsResolution?(c=3,CD(r)&&(c|=8)):c=CD(r)?15:7,_O(o?30:0,e,D3(t),r,n,i,c,!!s,a,o)}function lO(e,t,r){return _O(30,e,D3(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function _O(i,a,o,e,s,c,t,r,l,n){let _,u,d,p,f,m=fI(e,s);var g=[],h=[],y=xD(e);n=n??LI(e,100===y||2===y?void 0:32&i?99:1);let v=[];var b,x,e={compilerOptions:e,host:s,traceEnabled:m,failedLookupLocations:g,affectingLocations:h,packageJsonInfoCache:c,features:i,conditions:n??H4,requestContainingDirectory:o,reportDiagnostic:e=>{v.push(e)},isConfigLookup:r,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};m&&Uf(y)&&pI(s,eT.Resolving_in_0_mode_with_conditions_1,32&i?"ESM":"CJS",e.conditions.map(e=>`'${e}'`).join(", "));let S;S=2===y?(x=-6&t,(b=5&t)&&T(b,e)||x&&T(x,e)||void 0):T(t,e);let k;return!e.resolvedPackageDirectory||r||B3(a)||(b=(null==S?void 0:S.value)&&5&t&&!AO(5,S.value.resolved.extension),null!=(_=null==S?void 0:S.value)&&_.isExternalLibraryImport&&b&&8&i&&null!=n&&n.includes("import")?(nL(e,eT.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update),null!=(u=null==(x=T(5&t,{...e,features:-9&e.features,reportDiagnostic:yr}))?void 0:x.value)&&u.isExternalLibraryImport&&(k=x.value.resolved.path)):null!=S&&S.value&&!b||2!==y||(nL(e,eT.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update),r={...e.compilerOptions,moduleResolution:100},null!=(d=null==(n=T(5&t,{...e,compilerOptions:r,features:30,conditions:LI(r),reportDiagnostic:yr}))?void 0:n.value)&&d.isExternalLibraryImport&&(k=n.value.resolved.path))),bI(a,null==(p=null==S?void 0:S.value)?void 0:p.resolved,null==(f=null==S?void 0:S.value)?void 0:f.isExternalLibraryImport,g,h,v,e,c,k);function T(t,r){var e,n=nO(t,a,o,(e,t,r,n)=>pO(e,t,r,n,!0),r);if(n)return rL({resolved:n,isExternalLibraryImport:mO(n.path)});if(B3(a))return{path:n,parts:e}=uO(o,a),(n=pO(t,n,!1,r,!0))&&rL({resolved:n,isExternalLibraryImport:TT(e,"node_modules")});{let e;if(!(e=!(e=2&i&&f3(a,"#")?function(e,t,r,n,i,a){if("#"===t||f3(t,"#/"))n.traceEnabled&&pI(n.host,eT.Invalid_import_specifier_0_has_no_possible_resolutions,t);else{var o=P3(E3(r,"dummy"),null==(o=(r=n.host).getCurrentDirectory)?void 0:o.call(r)),r=DO(o,n);if(r)if(r.contents.packageJsonContent.imports){e=RO(e,n,i,a,t,r.contents.packageJsonContent.imports,r,!0);if(e)return e;n.traceEnabled&&pI(n.host,eT.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,r.packageDirectory)}else n.traceEnabled&&pI(n.host,eT.package_json_scope_0_has_no_imports_defined,r.packageDirectory);else n.traceEnabled&&pI(n.host,eT.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,o)}return}(t,a,o,r,c,l):e)&&4&i?function(e,t,n,i,a,o){var s=P3(E3(n,"dummy"),null==(s=(c=i.host).getCurrentDirectory)?void 0:s.call(c)),c=DO(s,i);if(c&&c.contents.packageJsonContent.exports&&"string"==typeof c.contents.packageJsonContent.name){let r=aa(t);var s=aa(c.contents.packageJsonContent.name);if(vT(s,(e,t)=>r[t]===e))return t=r.slice(s.length),s=K4(t)?"."+qi+t.join(qi):".",Jf(i.compilerOptions)&&!mO(n)?LO(c,e,s,i,a,o):(t=5&e,n=-6&e,LO(c,t,s,i,a,o)||LO(c,n,s,i,a,o))}}(t,a,o,r,c,l):e)){if(a.includes(":"))return void(m&&pI(s,eT.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,a,yI(t)));m&&pI(s,eT.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,a,yI(t)),e=JO(t,a,o,r,c,l)}return(e=4&t?e??ZO(a,r):e)&&{value:e.value&&{resolved:e.value,isExternalLibraryImport:!0}}}}}function uO(e,t){var e=E3(e,t),t=aa(e),r=KT(t);return{path:"."===r||".."===r?ma(ua(e)):ua(e),parts:t}}function dO(e,t,r){var n;return t.realpath?(n=ua(t.realpath(e)),r&&pI(t,eT.Resolving_real_path_for_0_result_1,e,n),n):e}function pO(e,t,r,n,i){if(n.traceEnabled&&pI(n.host,eT.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,yI(e)),!Yi(t)){r||Sp(o=D3(t),n.host)||(n.traceEnabled&&pI(n.host,eT.Directory_0_does_not_exist_skipping_all_lookups_in_it,o),r=!0);var a,o=vO(e,t,r,n);if(o)return mI((a=i?gO(o.path):void 0)?PO(a,!1,n):void 0,o,n)}if(r||Sp(t,n.host)||(n.traceEnabled&&pI(n.host,eT.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(32&n.features))return CO(e,t,r,n,i)}var fO="/node_modules/";function mO(e){return e.includes(fO)}function gO(t,r){var t=ua(t),n=t.lastIndexOf(fO);if(-1!==n){n=n+fO.length;let e=hO(t,n,r);return 64===t.charCodeAt(n)&&(e=hO(t,e,r)),t.slice(0,e)}}function hO(e,t,r){var n=e.indexOf(qi,t+1);return-1===n?r?e.length:t:n}function yO(e,t,r,n){return gI(vO(e,t,r,n))}function vO(e,t,r,n){var i=bO(e,t,r,n);if(i)return i;if(!(32&n.features)){i=SO(t,e,"",r,n);if(i)return i}}function bO(t,r,n,i){if(ra(r).includes(".")){let e=qm(r);e===r&&(e=r.substring(0,r.lastIndexOf(".")));var a=r.substring(e.length);return i.traceEnabled&&pI(i.host,eT.File_name_0_has_a_1_extension_stripping_it,r,a),SO(e,t,a,n,i)}}function xO(e,t,r,n){return 1&e&&N3(t,Em)||4&e&&N3(t,Dm)?void 0!==kO(t,r,n)?{path:t,ext:eD(t),resolvedUsingTsExtension:void 0}:void 0:n.isConfigLookup&&8===e&&w3(t,".json")?void 0!==kO(t,r,n)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:bO(e,t,r,n)}function SO(n,e,t,i,a){var r;switch(i||(r=D3(n))&&(i=!Sp(r,a.host)),t){case".mjs":case".mts":case".d.mts":return 1&e&&o(".mts",".mts"===t||".d.mts"===t)||4&e&&o(".d.mts",".mts"===t||".d.mts"===t)||2&e&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&e&&o(".cts",".cts"===t||".d.cts"===t)||4&e&&o(".d.cts",".cts"===t||".d.cts"===t)||2&e&&o(".cjs")||void 0;case".json":return 4&e&&o(".d.json.ts")||8&e&&o(".json")||void 0;case".tsx":case".jsx":return 1&e&&(o(".tsx",".tsx"===t)||o(".ts",".tsx"===t))||4&e&&o(".d.ts",".tsx"===t)||2&e&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&e&&(o(".ts",".ts"===t||".d.ts"===t)||o(".tsx",".ts"===t||".d.ts"===t))||4&e&&o(".d.ts",".ts"===t||".d.ts"===t)||2&e&&(o(".js")||o(".jsx"))||a.isConfigLookup&&o(".json")||void 0;default:return 4&e&&!x9(n+t)&&o(`.d${t}.ts`)||void 0}function o(e,t){var r=kO(n+e,i,a);return void 0===r?void 0:{path:r,ext:e,resolvedUsingTsExtension:!a.candidateIsFromPackageJsonField&&t}}}function kO(e,t,r){var n;if(null==(n=r.compilerOptions.moduleSuffixes)||!n.length)return TO(e,t,r);let i=MD(e)??"",a=i?jD(e,i):e;return G4(r.compilerOptions.moduleSuffixes,e=>TO(a+e+i,t,r))}function TO(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&pI(r.host,eT.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&pI(r.host,eT.File_0_does_not_exist,e)}null!=(t=r.failedLookupLocations)&&t.push(e)}function CO(e,t,r,n,i=!0){i=i?PO(t,r,n):void 0;return mI(i,FO(e,t,r,n,i&&i.contents.packageJsonContent,i&&EO(i,n)),n)}function wO(e,t,r,n,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let a;var o,s=5|(i?2:0),i=OI(t),c=NO(null==n?void 0:n.getPackageJsonInfoCache(),r,t),n=(c.conditions=LI(t),c.requestContainingDirectory=e.packageDirectory,FO(s,e.packageDirectory,!1,c,e.contents.packageJsonContent,EO(e,c)));if(a=Q4(a,null==n?void 0:n.path),8&i&&e.contents.packageJsonContent.exports)for(o of RT([LI(t,99),LI(t,1)],hr)){var l={...c,failedLookupLocations:[],conditions:o,host:r},l=function(a,e,o,s){let c;if(i3(e))for(var t of e)l(t);else if("object"==typeof e&&null!==e&&OO(e))for(var r in e)l(e[r]);else l(e);return c;function l(t){var e,r,n;if("string"==typeof t&&f3(t,"./"))return t.includes("*")&&o.host.readDirectory?t.indexOf("*")===t.lastIndexOf("*")&&void o.host.readDirectory(a.packageDirectory,(n=[],1&(r=s)&&n.push(...Em),2&r&&n.push(...Cm),4&r&&n.push(...Dm),8&r&&n.push(".json"),n),void 0,[ya(yg(t,"**/*"),".*")]).forEach(e=>{c=zT(c,{path:e,ext:ia(e),resolvedUsingTsExtension:void 0})}):!((r=aa(t).slice(2)).includes("..")||r.includes(".")||r.includes("node_modules"))&&(e=P3(E3(a.packageDirectory,t),null==(e=(n=o.host).getCurrentDirectory)?void 0:e.call(n)),(e=xO(s,e,!1,o))?(c=zT(c,e,(e,t)=>e.path===t.path),!0):void 0);if(Array.isArray(t)){for(var i of t)if(l(i))return!0}else if("object"==typeof t&&null!==t)return G4(J(t),e=>{if("default"===e||TT(o.conditions,e)||BO(o.conditions,e))return l(t[e]),!0})}}(e,e.contents.packageJsonContent.exports,l,s);if(l)for(var _ of l)a=zT(a,_.path)}return e.contents.resolvedEntrypoints=a||!1}function NO(e,t,r){return{host:t,compilerOptions:r,traceEnabled:fI(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:H4,requestContainingDirectory:void 0,reportDiagnostic:yr,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function DO(e,t){var r=aa(e);for(r.pop();0{var i,a=xO(e,t,r,n);return a?gI(a):(a=4===e?5:e,e=n.features,i=n.candidateIsFromPackageJsonField,n.candidateIsFromPackageJsonField=!0,"module"!==(null==o?void 0:o.type)&&(n.features&=-33),a=pO(a,t,r,n,!1),n.features=e,n.candidateIsFromPackageJsonField=i,a)},c=(a=o?n.isConfigLookup?wI(o,"tsconfig",t,n):4&e&&(wI(c=o,"typings",l=t,_=n)||wI(c,"types",l,_))||7&e&&wI(o,"main",t,n)||void 0:a)?!Sp(D3(a),n.host):void 0,l=r||!Sp(t,n.host),_=E3(t,n.isConfigLookup?"tsconfig":"index");if(i&&(!a||ka(t,a))){r=wa(t,a||_,!1),r=(n.traceEnabled&&pI(n.host,eT.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,i.version,L,r),VO(e,r,t,i.paths,void 0,s,c||l,n));if(r)return hI(r.value)}t=a&&hI(s(e,a,c,n));return t||(32&n.features?void 0:vO(e,_,l,n))}function AO(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}function IO(e){let t=e.indexOf(qi);return-1===(t="@"===e[0]?e.indexOf(qi,t+1):t)?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function OO(e){return vT(J(e),e=>f3(e,"."))}function LO(t,r,n,i,a,o){if(t.contents.packageJsonContent.exports){if("."===n){let e;if("string"==typeof t.contents.packageJsonContent.exports||Array.isArray(t.contents.packageJsonContent.exports)||"object"==typeof t.contents.packageJsonContent.exports&&!X4(J(t.contents.packageJsonContent.exports),e=>f3(e,"."))?e=t.contents.packageJsonContent.exports:Si(t.contents.packageJsonContent.exports,".")&&(e=t.contents.packageJsonContent.exports["."]),e)return MO(r,i,a,o,n,t,!1)(e,"",!1,".")}else if(OO(t.contents.packageJsonContent.exports)){if("object"!=typeof t.contents.packageJsonContent.exports)return void(i.traceEnabled&&pI(i.host,eT.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,t.packageDirectory));r=RO(r,i,a,o,n,t.contents.packageJsonContent.exports,t,!1);if(r)return r}i.traceEnabled&&pI(i.host,eT.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,t.packageDirectory)}}function jO(e,t){var r=e.indexOf("*"),n=t.indexOf("*"),i=-1===r?e.length:r+1,a=-1===n?t.length:n+1;return at.length?-1:t.length>e.length?1:0}function RO(e,t,r,n,i,a,o,s){var c,l,_,u=MO(e,t,r,n,i,o,s);if(!u3(i,qi)&&!i.includes("*")&&Si(a,i))return u(a[i],"",!1,i);for(c of E(NT(J(a),e=>{return-1!==(r=(t=e).indexOf("*"))&&r===t.lastIndexOf("*")||u3(e,"/");var t,r}),jO)){if(16&t.features&&function(e,t){if(u3(e,"*"))return;var r=e.indexOf("*");return-1!==r&&f3(t,e.substring(0,r))&&u3(t,e.substring(r+1))}(c,i))return l=a[c],_=c.indexOf("*"),u(l,i.substring(c.substring(0,_).length,i.length-(c.length-1-_)),!0,c);if(u3(c,"*")&&f3(i,c.substring(0,c.length-1)))return u(a[c],i.substring(c.length-1),!0,c);if(f3(i,c))return u(a[c],i.substring(c.length),!1,c)}}function MO(m,g,u,d,h,y,v){return function r(o,s,c,l){{if("string"==typeof o){if(!c&&0iL(g)}),i=[];if(g.compilerOptions.rootDir||g.compilerOptions.composite&&g.compilerOptions.configFilePath){let e=p(sB(g.compilerOptions,()=>[],(null==(s=(c=g.host).getCurrentDirectory)?void 0:s.call(c))||"",n));i.push(e)}else if(g.requestContainingDirectory){let e=p(E3(g.requestContainingDirectory,"index.ts")),t=p(sB(g.compilerOptions,()=>[e,p(o)],(null==(c=(s=g.host).getCurrentDirectory)?void 0:c.call(s))||"",n)),r=(i.push(t),ma(t));for(;r&&1{if("node_modules"!==ra(e))return QO(o,r,c,e,s,i)||rL(qO(t,r,e,i,a,o,s))})}}function qO(e,t,r,n,i,a,o){var r=E3(r,"node_modules"),s=Sp(r,n.host);if(!s&&n.traceEnabled&&pI(n.host,eT.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),!i){i=UO(e,t,r,s,n,a,o);if(i)return i}if(4&e){i=E3(r,"@types");let e=s;return s&&!Sp(i,n.host)&&(n.traceEnabled&&pI(n.host,eT.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),e=!1),UO(4,HO(t,n),i,e,n,a,o)}}function UO(e,t,r,n,i,a,o){var s=ua(E3(r,t));let{packageName:c,rest:l}=IO(t);t=E3(r,c);let _,u=PO(s,!n,i);if(""!==l&&u&&(!(8&i.features)||!Si((null==(r=_=PO(t,!n,i))?void 0:r.contents.packageJsonContent)??H4,"exports")))return(r=vO(e,s,!n,i))?gI(r):(r=FO(e,s,!n,i,u.contents.packageJsonContent,EO(u,i)),mI(u,r,i));r=(e,t,r,n)=>{let i=(l||!(32&n.features))&&vO(e,t,r,n)||FO(e,t,r,n,u&&u.contents.packageJsonContent,u&&EO(u,n));return!i&&u&&(void 0===u.contents.packageJsonContent.exports||null===u.contents.packageJsonContent.exports)&&32&n.features&&(i=vO(e,E3(t,"index.js"),r,n)),mI(u,i,n)};if((u=""!==l?_??PO(t,!n,i):u)&&(i.resolvedPackageDirectory=!0),u&&u.contents.packageJsonContent.exports&&8&i.features)return null==(a=LO(u,e,E3(".",l),i,a,o))?void 0:a.value;o=""!==l&&u?EO(u,i):void 0;if(o){i.traceEnabled&&pI(i.host,eT.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,L,l);a=n&&Sp(t,i.host),t=VO(e,l,t,o.paths,void 0,r,!a,i);if(t)return t.value}return r(e,s,!n,i)}function VO(i,e,a,t,r,o,s,c){r=Ym(r=r||Hm(t),e);if(r){let n=a3(r)?void 0:Ue(r,e);r=a3(r)?r:qe(r),e=(c.traceEnabled&&pI(c.host,eT.Module_name_0_matched_pattern_1,e,r),G4(t[r],e=>{var t=n?yg(e,n):e,r=ua(E3(a,t)),t=(c.traceEnabled&&pI(c.host,eT.Trying_substitution_0_candidate_module_location_Colon_1,e,t),MD(e));if(void 0!==t){e=kO(r,s,c);if(void 0!==e)return gI({path:e,ext:t,resolvedUsingTsExtension:void 0})}return o(i,r,s||!Sp(D3(r),c.host),c)}));return{value:e}}}var WO="__";function HO(e,t){var r=GO(e);return t.traceEnabled&&r!==e&&pI(t.host,eT.Scoped_package_detected_looking_in_0,r),r}function KO(e){return"@types/"+GO(e)}function GO(e){if(f3(e,"@")){var t=e.replace(qi,WO);if(t!==e)return t.slice(1)}return e}function $O(e){var t=m3(e,"@types/");return t!==e?XO(t):e}function XO(e){return e.includes(WO)?"@"+e.replace(WO,qi):e}function QO(e,t,r,n,i,a){e=e&&e.getFromNonRelativeNameCache(t,r,n,i);if(e)return a.traceEnabled&&pI(a.host,eT.Resolution_for_module_0_was_found_in_cache_from_location_1,t,n),{value:(a.resultFromCache=e).resolvedModule&&{path:e.resolvedModule.resolvedFileName,originalPath:e.resolvedModule.originalPath||!0,extension:e.resolvedModule.extension,packageId:e.resolvedModule.packageId,resolvedUsingTsExtension:e.resolvedModule.resolvedUsingTsExtension}}}function YO(a,e,t,r,o,s){var n=fI(t,r),i=[],c=[];let l=D3(e),_=[],u={compilerOptions:t,host:r,traceEnabled:n,failedLookupLocations:i,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{_.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};e=d(5)||d(2|(t.resolveJsonModule?8:0));return bI(a,e&&e.value,(null==e?void 0:e.value)&&mO(e.value.path),i,c,_,u,o);function d(r){var t=nO(r,a,l,yO,u);if(t)return{value:t};if(B3(a))return t=ua(E3(l,a)),rL(yO(r,t,!1,u));var n,i,t=Pa(l,e=>{var t=QO(o,a,void 0,e,s,u);return t||(t=ua(E3(e,a)),rL(yO(r,t,!1,u)))});if(t)return t;if(5&r){t=a,n=l,i=u;let e=zO(4,t,n,i,!0,void 0,void 0);return e=4&r?e??ZO(a,u):e}}}function ZO(e,t){if(t.compilerOptions.typeRoots)for(var r of t.compilerOptions.typeRoots){var n=AI(r,e,t),i=Sp(r,t.host),r=(!i&&t.traceEnabled&&pI(t.host,eT.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),vO(4,n,!i,t));if(r)return rL(mI((a=gO(r.path))?PO(a,!1,t):void 0,r,t));var a=CO(4,n,!i,t);if(a)return rL(a)}}function eL(e,t){return!!e.allowImportingTsExtensions||t&&x9(t)}function tL(e,t,r,n,i,a){var o=fI(r,n),t=(o&&pI(n,eT.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i),[]),s=[];let c=[];r={compilerOptions:r,host:n,traceEnabled:o,failedLookupLocations:t,affectingLocations:s,packageJsonInfoCache:a,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{c.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return xI(qO(4,e,i,r,!1,void 0,void 0),!0,t,s,c,r.resultFromCache,void 0)}function rL(e){return void 0!==e?{value:e}:void 0}function nL(e,t,...r){e.traceEnabled&&pI(e.host,t,...r)}function iL(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var aL=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(aL||{});function oL(e,t){return e.body&&!e.body.parent&&(tE(e.body,e),og(e.body,!1)),e.body?sL(e.body,t):1}function sL(e,t=new Map){var r=oj(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);e=function(e,n){switch(e.kind){case 264:case 265:return 0;case 266:if(E5(e))return 2;break;case 272:case 271:if(TN(e,32))break;return 0;case 278:var t=e;if(t.moduleSpecifier||!t.exportClause||279!==t.exportClause.kind)break;{let e=0;for(var r of t.exportClause.elements){r=function(e,t){let r=e.propertyName||e.name,n=e.parent;for(;n;){if(KP(n)||cF(n)||LF(n)){var i,a=n.statements;let e;for(i of a)if(Z3(i,r)){i.parent||(tE(i,n),og(i,!1));var o=sL(i,t);if(1===(e=void 0===e||o>e?o:e))return e;271===i.kind&&(e=1)}if(void 0!==e)return e}n=n.parent}return 1}(r,n);if(1===(e=r>e?r:e))return e}return e}case 268:{let r=0;return h9(e,e=>{var t=sL(e,n);switch(t){case 0:return;case 2:return void(r=2);case 1:return r=1,!0;default:Y4.assertNever(t)}}),r}case 267:return oL(e,n);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(r,e),e}var cL=(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))(cL||{});function lL(e,t,r){return Y4.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:r})}var _L=dL();function uL(e,t){x3("beforeBind"),null!=er&&er.logStartBindFile(""+e.fileName),_L(e,t),null!=er&&er.logStopBindFile(),x3("afterBind"),S3("Bind","beforeBind","afterBind")}function dL(){var E,O,r,P,F,g,A,c,_e,ue,de,L,j,R,M,B,J,z,q,U,pe,V,fe,I,n,me,W=!1,i=0,H=lL(1,void 0,void 0),ge=lL(1,void 0,void 0),he=p9(function(e,t){t?(t.stackIndex++,tE(e,P),r=I,k(e),n=P,P=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=r,t.parentStack[t.stackIndex]=n):t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var r=e.operatorToken.kind;{var n,i,a;(RN(r)||sp(r))&&(f(e)?(n=te(),i=L,a=V,V=!1,v(e,n,n),L=V?ne(n):i,V=V||a):v(e,B,J),t.skip=!0)}return t},function(e,t,r){if(!t.skip)return t=a(e),28===r.operatorToken.kind&&Pe(e),t},function(e,t,r){t.skip||ce(e)},function(e,t,r){if(!t.skip)return t=a(e),28===r.operatorToken.kind&&Pe(e),t},function(e,t){t.skip||BN(r=e.operatorToken.kind)&&!yw(e)&&(ie(e.left),64===r)&&212===e.left.kind&&ee(e.left.expression)&&(L=Te(256,L,e));var r=t.inStrictModeStack[t.stackIndex],e=t.parentStack[t.stackIndex];void 0!==r&&(I=r);void 0!==e&&(P=e);t.skip=!1,t.stackIndex--},void 0);function a(e){if(e&&pT(e)&&!up(e))return e;ce(e)}return function(e,t){E=e,r=vD(O=t),I=function(e,t){return!(!FD(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(E,t),me=new Set,i=0,n=uD.getSymbolConstructor(),Y4.attachFlowNodeDebugInfo(H),Y4.attachFlowNodeDebugInfo(ge),E.locals||(null!=(e=Z4)&&e.push(Z4.Phase.Bind,"bindSourceFile",{path:E.path},!0),ce(E),null!=(t=Z4)&&t.pop(),E.symbolCount=i,E.classifiableNames=me,function(){if(_e){var e,t=F,r=c,n=A,i=P,a=L;for(e of _e){var o=e.parent.parent,s=(F=l5(o)||E,A=_5(o)||E,L=lL(2,void 0,void 0),ce((P=e).typeExpression),tC(e));if((q1(e)||!e.fullName)&&s&&HN(s.parent)){o=Ze(s.parent);if(o){Qe(E.symbol,s.parent,o,!!tT(s,e=>dT(e)&&"prototype"===e.name.escapedText),!1);o=F;switch($8(s.parent)){case 1:case 2:F=N5(E)?E:void 0;break;case 4:F=s.parent.expression;break;case 3:F=s.parent.expression.name;break;case 5:F=fL(E,s.parent.expression)?E:dT(s.parent.expression)?s.parent.expression.name:s.parent.expression;break;case 0:return Y4.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}F&&l(e,524288,788968),F=o}}else q1(e)||!e.fullName||80===e.fullName.kind?(P=e.parent,se(e,524288,788968)):ce(e.fullName)}F=t,c=r,A=n,P=i,L=a}}(),function(){if(void 0!==de){var e,t=F,r=c,n=A,i=P,a=L;for(e of de){var o=fw(e),s=o?l5(o):void 0,o=o?_5(o):void 0;F=s||E,A=o||E,L=lL(2,void 0,void 0),ce((P=e).importClause)}F=t,c=r,A=n,P=i,L=a}}());U=z=J=B=M=R=j=L=de=_e=c=A=g=F=P=r=O=E=void 0,W=V=pe=ue=!1,fe=0};function K(e,t,...r){return c_(iT(e)||E,e,t,...r)}function G(e,t){return i++,new n(e,t)}function $(e,t,r){e.flags|=r,(t.symbol=e).declarations=zT(e.declarations,t),1955&r&&!e.exports&&(e.exports=I7()),6240&r&&!e.members&&(e.members=I7()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&r&&Y8(e,t)}function ye(e){if(277===e.kind)return e.isExportEquals?"export=":"default";var t=tC(e);if(t){if(Z7(e))return r=Kw(t),n5(e)?"__global":`"${r}"`;if(167===t.kind){var r=t.expression;if(qw(r))return $3(r.text);if(Mu(r))return I3(r.operator)+r.operand.text;Y4.fail("Only computed properties with literal names have declaration names")}return UE(t)?(r=Q5(e))?$w(r.symbol,t.escapedText):void 0:DF(t)?SE(t):Hw(t)?Gw(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===V8(e))return"export=";Y4.fail("Unknown binary declaration kind");break;case 317:return nw(e)?"__new":"__call";case 169:return Y4.assert(317===e.parent.kind,"Impossible parameter parent kind",()=>`parent is: ${Y4.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`),"arg"+e.parent.parameters.indexOf(e)}}function p(e){return eC(e)?d5(e.name):X3(Y4.checkDefined(ye(e)))}function X(e,t,r,c,l,n,_){Y4.assert(_||!Uw(r));var u=TN(r,2048)||vF(r)&&"default"===r.name.escapedText,_=_?"__computed":u&&t?"default":ye(r);let d;if(void 0===_)d=G(0,"__missing");else if(d=e.get(_),2885600&c&&me.add(_),d){if(n&&!d.isReplaceableByMethod)return d;if(d.flags&l)if(d.isReplaceableByMethod)e.set(_,d=G(0,_));else if(!(3&c&&67108864&d.flags)){eC(r)&&tE(r.name,r);let n=2&d.flags?eT.Cannot_redeclare_block_scoped_variable_0:eT.Duplicate_identifier_0,i=!0,a=((384&d.flags||384&c)&&(n=eT.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,i=!1),!1),o=(K4(d.declarations)&&(u||d.declarations&&d.declarations.length&&277===r.kind&&!r.isExportEquals)&&(n=eT.A_module_cannot_have_multiple_default_exports,i=!1,a=!0),[]),s=(aF(r)&&W7(r.type)&&TN(r,32)&&2887656&d.flags&&o.push(K(r,eT.Did_you_mean_0,`export type { ${X3(r.name.escapedText)} }`)),tC(r)||r);G4(d.declarations,(e,t)=>{var r=tC(e)||e,e=i?K(r,n,p(e)):K(r,n);E.bindDiagnostics.push(a?JD(e,K(s,0===t?eT.Another_export_default_is_here:eT.and_here)):e),a&&o.push(K(r,eT.The_first_export_default_is_here))});l=i?K(s,n,p(r)):K(s,n);E.bindDiagnostics.push(JD(l,...o)),d=G(0,_)}}else e.set(_,d=G(0,_)),n&&(d.isReplaceableByMethod=!0);return $(d,r,c),d.parent?Y4.assert(d.parent===t,"Existing symbol parent should match new one"):d.parent=t,d}function l(e,t,r){var n=!!(32&W3(e))||function(e){e.parent&&sF(e)&&(e=e.parent);if(!iw(e))return!1;if(!q1(e)&&e.fullName)return!0;e=tC(e);return!!(e&&(HN(e.parent)&&Ze(e.parent)||u7(e.parent)&&32&W3(e.parent)))}(e);return 2097152&t?281===e.kind||271===e.kind&&n?X(F.symbol.exports,F.symbol,e,t,r):(Y4.assertNode(F,_7),X(F.locals,void 0,e,t,r)):(iw(e)&&Y4.assert(oT(e)),!Z7(e)&&(n||128&F.flags)?!_7(F)||!F.locals||TN(e,2048)&&!ye(e)?X(F.symbol.exports,F.symbol,e,t,r):((n=X(F.locals,void 0,e,111551&t?1048576:0,r)).exportSymbol=X(F.symbol.exports,F.symbol,e,t,r),e.localSymbol=n):(Y4.assertNode(F,_7),X(F.locals,void 0,e,t,r)))}function ve(e){Q(e,e=>262===e.kind?ce(e):void 0),Q(e,e=>262!==e.kind?ce(e):void 0)}function Q(e,t=ce){void 0!==e&&G4(e,t)}function Y(e){h9(e,ce,Q)}function h(a){var e,t,r,n,i,o,s,c,l,_,u,d=W;if(W=!1,function(e){if(!(1&L.flags))return;if(L===H){var t=$c(e)&&242!==e.kind||263===e.kind||267===e.kind&&function(e){e=oL(e);return 1===e||2===e&&ND(O)}(e);if(t&&(L=ge,!O.allowUnreachableCode)){let r=zf(O)&&!(33554432&e.flags)&&(!GP(e)||!!(7&H3(e.declarationList))||e.declarationList.declarations.some(e=>!!e.initializer));!function(e,n){if(d7(e)&&pL(e)&&KP(e.parent)){var t=e.parent["statements"];let r=Zm(t,e);at(r,pL,(e,t)=>n(r[e],r[t-1]))}else n(e,e)}(e,(e,t)=>Je(r,e,t,eT.Unreachable_code_detected))}}return 1}(a))Y(a);else switch(243<=a.kind&&a.kind<=259&&(!O.allowUnreachableCode||253===a.kind)&&(a.flowNode=L),a.kind){case 247:l=De(c=a,xe()),_=te(),u=te(),re(l,L),L=l,we(c.expression,_,u),L=ne(_),Ne(c.statement,u,l),re(l,L),L=ne(u);break;case 246:_=a,c=xe(),l=De(_,te()),u=te(),re(c,L),L=c,Ne(_.statement,u,l),re(l,L),L=ne(l),we(_.expression,c,u),L=ne(u);break;case 248:m=De(f=a,xe()),p=te(),s=te(),ce(f.initializer),re(m,L),L=m,we(f.condition,p,s),L=ne(p),Ne(f.statement,s,m),ce(f.incrementor),re(m,L),L=ne(s);break;case 249:case 250:var p=a,f=De(p,xe()),m=te();ce(p.expression),re(f,L),L=f,250===p.kind&&ce(p.awaitModifier),re(m,L),ce(p.initializer),261!==p.initializer.kind&&ie(p.initializer),Ne(p.statement,m,f),re(f,L),L=ne(m);break;case 245:s=a,g=te(),y=te(),h=te(),we(s.expression,g,y),L=ne(g),ce(s.thenStatement),re(h,L),L=ne(y),ce(s.elseStatement),re(h,L),L=ne(h);break;case 253:case 257:var g=a;ce(g.expression),253===g.kind&&(pe=!0,M)&&re(M,L),L=H,V=!0;break;case 252:case 251:var h,y=a;ce(y.label),y.label?(h=function(t){for(let e=U;e;e=e.next)if(e.name===t)return e}(y.label.escapedText))&&(h.referenced=!0,Ee(y,h.breakTarget,h.continueTarget)):Ee(y,j,R);break;case 258:{var v=a;let e=M,t=z,r=te(),n=te(),i=te();v.finallyBlock&&(M=n);re(i,L),z=i,ce(v.tryBlock),re(r,L),v.catchClause&&(L=ne(i),re(i=te(),L),z=i,ce(v.catchClause),re(r,L));M=e,z=t,L=v.finallyBlock?((b=te()).antecedent=LT(LT(r.antecedent,i.antecedent),n.antecedent),L=b,ce(v.finallyBlock),!(1&L.flags)&&(M&&n.antecedent&&re(M,Se(b,n.antecedent,L)),z&&i.antecedent&&re(z,Se(b,i.antecedent,L)),r.antecedent)?Se(b,r.antecedent,L):H):ne(r)}break;case 255:var v=a,b=te(),x=(ce(v.expression),j),S=q,k=(j=b,q=L,ce(v.caseBlock),re(b,L),G4(v.caseBlock.clauses,e=>297===e.kind));v.possiblyExhaustive=!k&&!b.antecedent,k||re(b,ke(q,v,0,0)),j=x,q=S,L=ne(b);break;case 269:{var T=a;let t=T.clauses,r=112===T.parent.expression.kind||Z(T.parent.expression),n=H;for(let e=0;ehF(e)||gF(e))?e.flags&=-129:e.flags|=128}function Oe(e){var t=oL(e),r=0!==t;return ae(e,r?512:1024,r?110735:0),t}function oe(e,t,r){r=G(t,r);return 106508&t&&(r.parent=F.symbol),$(r,e,t),r}function se(e,t,r){switch(A.kind){case 267:l(e,t,r);break;case 307:if(N5(F)){l(e,t,r);break}default:Y4.assertNode(A,_7),A.locals||(A.locals=I7(),S(A)),X(A.locals,void 0,e,t,r)}}function Le(e){var t;E.parseDiagnostics.length||33554432&e.flags||16777216&e.flags||ku(e)||void 0!==(t=Q3(e))&&(I&&119<=t&&t<=127?E.bindDiagnostics.push(K(e,function(e){if(Q5(e))return eT.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(E.externalModuleIndicator)return eT.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return eT.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(e),d5(e))):135===t?b9(E)&&n8(e)?E.bindDiagnostics.push(K(e,eT.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,d5(e))):65536&e.flags&&E.bindDiagnostics.push(K(e,eT.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,d5(e))):127===t&&16384&e.flags&&E.bindDiagnostics.push(K(e,eT.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,d5(e))))}function je(e,t){var r,n;t&&80===t.kind&&uT(n=r=t)&&("eval"===n.escapedText||"arguments"===n.escapedText)&&(n=C5(E,t),E.bindDiagnostics.push(pD(E,n.start,n.length,function(e){if(Q5(e))return eT.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;if(E.externalModuleIndicator)return eT.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return eT.Invalid_use_of_0_in_strict_mode}(e),rT(r))))}function Re(e){!I||33554432&e.flags||je(e,e.name)}function Me(e){var t;r<2&&(307===A.kind||267===A.kind||RC(A)||(t=C5(E,e),E.bindDiagnostics.push(pD(E,t.start,t.length,Q5(e)?eT.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:E.externalModuleIndicator?eT.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:eT.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5))))}function Be(e,t,...r){e=k5(E,e.pos);E.bindDiagnostics.push(pD(E,e.start,e.length,t,...r))}function Je(e,t,r,n){t={pos:Ml(t,E),end:r.end},r=n;t=pD(E,t.pos,t.end-t.pos,r),e?E.bindDiagnostics.push(t):E.bindSuggestionDiagnostics=Q4(E.bindSuggestionDiagnostics,{...t,category:2})}function ce(e){var t,r,n,i,a,o,s,c,l,_,u,d,p,f,m;e&&(tE(e,P),Z4&&(e.tracingPath=E.path),t=I,k(e),P=165e.parent&&gP(e.parent)&&e.parent.extendsType===e);return e&&e.parent}(n.parent))?(Y4.assertNode(t,_7),t.locals??(t.locals=I7()),X(t.locals,void 0,n,262144,526824)):oe(n,262144,ye(n)):ae(n,262144,526824));case 169:return nt(r);case 260:return rt(r);case 208:return r.flowNode=L,rt(r);case 172:case 171:return y=VC(n=r),v=y?98304:4,y=y?13247:0,it(n,v|(n.questionToken?16777216:0),y);case 303:case 304:return it(r,4,0);case 306:return it(r,8,900095);case 179:case 180:case 181:return ae(r,131072,0);case 174:case 173:return it(r,8192|(r.questionToken?16777216:0),H5(r)?0:103359);case 262:v=r;return E.isDeclarationFile||33554432&v.flags||Ru(v)&&(fe|=4096),Re(v),void(I?(Me(v),se):ae)(v,16,110991);case 176:return ae(r,16384,0);case 177:return it(r,32768,46015);case 178:return it(r,65536,78783);case 184:case 317:case 323:case 185:return $(i=G(131072,ye(y=r)),y,131072),$(h=G(2048,"__type"),y,2048),h.members=I7(),h.members.set(i.escapedName,i);case 187:case 322:case 200:return oe(r,2048,"__type");case 332:return Y(h=r),(h=dw(h))&&174!==h.kind&&$(h.symbol,h,32);case 210:return oe(r,4096,"__object");case 218:case 219:var i=r,a=(E.isDeclarationFile||33554432&i.flags||Ru(i)&&(fe|=4096),L&&(i.flowNode=L),Re(i),i.name?i.name.escapedText:"__function");return oe(i,16,a);case 213:switch(V8(r)){case 7:{var o=r;let e=le(o.arguments[0]),t=307===o.parent.parent.kind;e=Qe(e,o.arguments[0],t,!1,!1),Ye(o,e,!1);return}case 8:return Ve(o=r)&&(s=tt(o.arguments[0],void 0,(e,t)=>(t&&$(t,e,67110400),t)))&&X(s.exports,s,o,1048580,0);case 9:var s=r,c=le(s.arguments[0].expression);return c&&c.valueDeclaration&&$(c,c.valueDeclaration,32),void Ye(s,c,!0);case 0:break;default:return Y4.fail("Unknown call expression assignment declaration kind")}oT(r)&&(a=r,!E.commonJsModuleIndicator)&&E8(a,!1)&&Ve(a);break;case 231:case 263:I=!0;var l=r,_=(263===l.kind?se(l,32,899503):(_=l.name?l.name.escapedText:"__class",oe(l,32,_),l.name&&me.add(l.name.escapedText)),l["symbol"]),u=G(4194308,"prototype"),d=_.exports.get(u.escapedName);return d&&(l.name&&tE(l.name,l),E.bindDiagnostics.push(K(d.declarations[0],eT.Duplicate_identifier_0,Y3(u)))),_.exports.set(u.escapedName,u),void(u.parent=_);case 264:return se(r,64,788872);case 265:return se(r,524288,788968);case 266:return E5(l=r)?se(l,128,899967):se(l,256,899327);case 267:d=r;if(Ie(d),Z7(d))if(TN(d,32)&&Be(d,eT.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Ql(d))Oe(d);else{let e;11===d.name.kind&&(p=d.name["text"],void 0===(e=Wm(p)))&&Be(d.name,eT.Pattern_0_can_have_at_most_one_Asterisk_character,p);var p=ae(d,512,110735);E.patternAmbientModules=Q4(E.patternAmbientModules,e&&!a3(e)?{pattern:e,symbol:p}:void 0)}else{p=Oe(d);0!==p&&(d=d["symbol"],d.constEnumOnlyModule=!(304&d.flags)&&2===p&&!1!==d.constEnumOnlyModule)}return;case 292:return oe(r,4096,"__jsxAttributes");case 291:return ae(r,4,0);case 271:case 274:case 276:case 281:return ae(r,2097152,2097152);case 270:return X4((u=r).modifiers)&&E.bindDiagnostics.push(K(u,eT.Modifiers_cannot_appear_here)),(p=LF(u.parent)?b9(u.parent)?u.parent.isDeclarationFile?void 0:eT.Global_module_exports_may_only_appear_in_declaration_files:eT.Global_module_exports_may_only_appear_in_module_files:eT.Global_module_exports_may_only_appear_at_top_level)?E.bindDiagnostics.push(K(u,p)):(E.symbol.globalExports=E.symbol.globalExports||I7(),X(E.symbol.globalExports,E.symbol,u,2097152,2097152));case 273:return(g=r).name&&ae(g,2097152,2097152);case 278:return g=r,F.symbol&&F.symbol.exports?g.exportClause?fF(g.exportClause)&&(tE(g.exportClause,g),X(F.symbol.exports,F.symbol,g.exportClause,2097152,2097152)):X(F.symbol.exports,F.symbol,g,8388608,0):oe(g,8388608,ye(g));case 277:var f=r;return void(F.symbol&&F.symbol.exports?(m=Aw(f)?2097152:4,m=X(F.symbol.exports,F.symbol,f,m,-1),f.isExportEquals&&Y8(m,f)):oe(f,111551,ye(f)));case 307:var m;return qe(r.statements),Ie(E),void(b9(E)?Ue():D5(E)&&(Ue(),m=E.symbol,X(E.symbol.exports,E.symbol,E,4,-1),E.symbol=m));case 241:if(!RC(r.parent))return;case 268:return qe(r.statements);case 341:if(323===r.parent.kind)return nt(r);if(322!==r.parent.kind)break;case 348:return ae(r,r.isBracketed||r.typeExpression&&316===r.typeExpression.type.kind?16777220:4,0);case 346:case 338:case 340:return(_e=_e||[]).push(r);case 339:return ce(r.typeExpression);case 351:(de=de||[]).push(r)}var g,s,i,h,y,v,b,x,S,k,T,C,w,N,D}function Ue(){oe(E,512,`"${qm(E.fileName)}"`)}function Ve(e){return(!E.externalModuleIndicator||!0===E.externalModuleIndicator)&&(E.commonJsModuleIndicator||(E.commonJsModuleIndicator=e,E.externalModuleIndicator)||Ue(),1)}function We(e){var t,r;Ve(e)&&(t=tt(e.left.expression,void 0,(e,t)=>(t&&$(t,e,67110400),t)))&&(r=Fw(e.right)&&(z8(e.left.expression)||U8(e.left.expression))?2097152:1048580,tE(e.left,e),X(t.exports,t,e.left,r,0))}function He(e){X(E.symbol.exports,E.symbol,e,69206016,0)}function Ke(t){Y4.assert(oT(t));var e=pT(t)&&dT(t.left)&&UE(t.left.name)||dT(t)&&UE(t.name);if(!e){var r=t8(t,!1,!1);switch(r.kind){case 262:case 218:let e=r.symbol;(e=pT(r.parent)&&64===r.parent.operatorToken.kind&&ru(n=r.parent.left)&&GN(n.expression)?le(n.expression.expression,g):e)&&e.valueDeclaration&&(e.members=e.members||I7(),Uw(t)?T(t,e,e.members):X(e.members,e,t,67108868,0),$(e,e.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:var n=r.parent,i=CN(r)?n.symbol.exports:n.symbol.members;Uw(t)?T(t,n.symbol,i):X(i,n.symbol,t,67108868,0,!0);break;case 307:Uw(t)||(r.commonJsModuleIndicator?X(r.symbol.exports,r.symbol,t,1048580,0):ae(t,1,111550));break;case 267:break;default:Y4.failBadSyntaxKind(r)}}}function T(e,t,r){X(r,t,e,4,0,!0,!0),Ge(e,t)}function Ge(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(oj(e),e)}function $e(e,t){var r=e.expression,n=r.expression;tE(n,r),tE(r,e),tE(e,t),et(n,e,!0,!0)}function Xe(e){Y4.assert(!uT(e)),tE(e.expression,e),et(e.expression,e,!1,!1)}function Qe(e,t,r,n,i){if(!(2097152&(null==e?void 0:e.flags))){if(r&&!n)e=tt(t,e,(e,t,r)=>{return t?($(t,e,67110400),t):X(r?r.exports:E.jsGlobalAugmentations||(E.jsGlobalAugmentations=I7()),r,e,67110400,110735)});i&&e&&e.valueDeclaration&&$(e,e.valueDeclaration,32)}return e}function Ye(r,n,i){if(n&&function(e){if(1072&e.flags)return 1;e=e.valueDeclaration;if(e&&PP(e))return j8(e);var t=e?eF(e)?e.initializer:pT(e)?e.right:dT(e)&&pT(e.parent)?e.parent.right:void 0:void 0;if(t=t&&Z_(t))return e=GN(eF(e)?e.name:pT(e)?e.left:e),R8(!pT(t)||57!==t.operatorToken.kind&&61!==t.operatorToken.kind?t:t.right,e);return}(n)){i=i?n.members||(n.members=I7()):n.exports||(n.exports=I7());let e=0,t=0;MC(j8(r))?(e=8192,t=103359):PP(r)&&W8(r)&&(X4(r.arguments[2].properties,e=>{e=tC(e);return!!e&&uT(e)&&"set"===rT(e)})&&(e|=65540,t|=78783),X4(r.arguments[2].properties,e=>{e=tC(e);return!!e&&uT(e)&&"get"===rT(e)}))&&(e|=32772,t|=46015),0===e&&(e=4,t=0),X(i,n,r,67108864|e,-67108865&t)}}function Ze(e){return pT(e.parent)?307===function(e){for(;pT(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:307===e.parent.parent.kind}function et(e,t,r,n){var e=le(e,A)||le(e,F),i=Ze(t);Ye(t,Qe(e,t.expression,i,r,n),r)}function le(e,t=F){return uT(e)?gL(t,e.escapedText):(t=le(e.expression))&&t.exports&&t.exports.get(G8(e))}function tt(e,t,r){var n;return fL(E,e)?E.symbol:uT(e)?r(e,le(e),t):(t=tt(e.expression,t,r),UE(n=nu(e))&&Y4.fail("unexpected PrivateIdentifier"),r(n,t&&t.exports&&t.exports.get(G8(e)),t))}function rt(e){var t;I&&je(e,e.name),GC(e.name)||(t=260===e.kind?e:e.parent.parent,!oT(e)||!P8(t)||_C(e)||32&W3(e)?Q7(e)?se(e,2,111551):Zw(e)?ae(e,1,111551):ae(e,1,111550):ae(e,2097152,2097152))}function nt(e){var t;341===e.kind&&323!==F.kind||(!I||33554432&e.flags||je(e,e.name),GC(e.name)?oe(e,1,"__"+e.parent.parameters.indexOf(e)):ae(e,1,111551),U3(e,e.parent)&&X((t=e.parent.parent).symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0))}function it(e,t,r){return E.isDeclarationFile||33554432&e.flags||!Ru(e)||(fe|=4096),L&&K5(e)&&(e.flowNode=L),Uw(e)?oe(e,t,"__computed"):ae(e,t,r)}}function pL(e){return!(rF(e)||function(e){switch(e.kind){case 264:case 265:return 1;case 267:return 1!==oL(e);case 266:return TN(e,4096);default:return}}(e)||oF(e)||GP(e)&&!(7&H3(e))&&e.declarationList.declarations.some(e=>!e.initializer))}function fL(e,t){let r=0;var n,i=ae();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,z8(t=i.dequeue())||U8(t))return!0;uT(t)&&(n=gL(e,t.escapedText))&&n.valueDeclaration&&eF(n.valueDeclaration)&&n.valueDeclaration.initializer&&(n=n.valueDeclaration.initializer,i.enqueue(n),zN(n,!0))&&(i.enqueue(n.left),i.enqueue(n.right))}return!1}function mL(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(K5(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 jC(e.parent)||eP(e.parent)?0:34}return 0}function gL(e,t){var r=null==(r=null==(r=o3(e,_7))?void 0:r.locals)?void 0:r.get(t);return r?r.exportSymbol??r:LF(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):!l7(e)||null==(e=null==(r=e.symbol)?void 0:r.exports)?void 0:e.get(t)}function hL(i,_,u,d,p,f,m,g,h,y){return function(r=()=>!0){let a=[],n=[];return{walkType:e=>{try{return o(e),{visitedTypes:q(a),visitedSymbols:q(n)}}finally{DT(a),DT(n)}},walkSymbol:e=>{try{return l(e),{visitedTypes:q(a),visitedSymbols:q(n)}}finally{DT(a),DT(n)}}};function o(e){var t,r,n,i;!e||a[e.id]||l((a[e.id]=e).symbol)||(524288&e.flags&&(4&(r=(t=e).objectFlags)&&(o((n=e).target),G4(y(n),o)),32&r&&(o((n=e).typeParameter),o(n.constraintType),o(n.templateType),o(n.modifiersType)),3&r&&(c(i=e),G4(i.typeParameters,o),G4(d(i),o),o(i.thisType)),24&r)&&c(t),262144&e.flags&&o(g(e)),3145728&e.flags&&G4(e.types,o),4194304&e.flags&&o(e.type),8388608&e.flags&&(o((i=e).objectType),o(i.indexType),o(i.constraint)))}function s(e){var t,r=_(e);r&&o(r.type),G4(e.typeParameters,o);for(t of e.parameters)l(t);o(i(e)),o(u(e))}function c(e){var t,r,n,i,e=p(e);for(t of e.indexInfos)o(t.keyType),o(t.type);for(r of e.callSignatures)s(r);for(n of e.constructSignatures)s(n);for(i of e.properties)l(i)}function l(e){if(e){var t=sj(e);if(!n[t]){if(n[t]=e,!r(e))return!0;o(f(e)),e.exports&&e.exports.forEach(l),G4(e.declarations,e=>{e.type&&186===e.type.kind&&(e=e.type,l(m(h(e.exprName))))})}}return!1}}}var yL={},vL=(r(yL,{RelativePreference:()=>vL,countPathComponents:()=>DL,forEachFileNameOfModule:()=>FL,getLocalModuleSpecifierBetweenFileNames:()=>function(e,t,r,n,i={}){var a=wL(e.fileName,n),i=i.overrideImportMode??e.impliedNodeFormat;return NL(t,a,r,n,i,bL({},r,e))},getModuleSpecifier:()=>xL,getModuleSpecifierPreferences:()=>bL,getModuleSpecifiers:()=>TL,getModuleSpecifiersWithCacheInfo:()=>CL,getNodeModulesPackageName:()=>function(t,r,e,n,i,a={}){let o=wL(r.fileName,n),s=AL(o,e,n,i,t,a);return yT(s,e=>RL(e,o,r,n,t,i,!0,a.overrideImportMode))},tryGetJSExtensionForFile:()=>qL,tryGetModuleSpecifiersFromCache:()=>function(e,t,r,n,i={}){e=kL(e,t,r,n,i);return e[1]&&{kind:e[0],moduleSpecifiers:e[1],computedWithoutCache:!1}},tryGetRealFileNameForNonJsDeclarationFileName:()=>JL,updateModuleSpecifier:()=>function(e,t,r,n,i,a,o={}){r=SL(e,t,r,n,i,bL({},e,t,a),{},o);if(r!==a)return r}}),(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(vL||{}));function bL({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,i,r){let a=o();return{relativePreference:void 0!==r?B3(r)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{var t=e!==i.impliedNodeFormat?o(e):a;if(99===(e??i.impliedNodeFormat))return eL(n,i.fileName)?[3,2]:[2];if(1===xD(n))return 2===t?[2,1]:[1,2];var r=eL(n,i.fileName);switch(t){case 2:return r?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return r?[1,0,3,2]:[1,0,2];case 0:return r?[0,1,3,2]:[0,1,2];default:Y4.assertNever(t)}}};function o(e){if(void 0!==r){if(Im(r))return 2;if(u3(r,"/index"))return 1}return Rm(t,e??i.impliedNodeFormat,n,H_(i)?i:void 0)}}function xL(e,t,r,n,i,a={}){return SL(e,t,r,n,i,bL({},e,t),{},a)}function SL(t,r,e,n,i,a,o,s={}){let c=wL(e,i);return yT(AL(c,n,i,o,t,s),e=>RL(e,c,r,i,t,o,void 0,s.overrideImportMode))||NL(n,c,t,i,s.overrideImportMode||r.impliedNodeFormat,a)}function kL(e,t,r,n,i={}){var a,e=q7(e);return e?[null==(r=null==(a=null==(a=r.getModuleSpecifierCache)?void 0:a.call(r))?void 0:a.get(t.path,e.path,n,i))?void 0:r.kind,null==r?void 0:r.moduleSpecifiers,e,null==r?void 0:r.modulePaths,a]:H4}function TL(e,t,r,n,i,a,o={}){return CL(e,t,r,n,i,a,o,!1).moduleSpecifiers}function CL(e,t,r,n,i,a,o={},s){var t=function(e,n){var t=null==(t=e.declarations)?void 0:t.find(e=>$l(e)&&(!i5(e)||!B3(Kw(e.name))));if(t)return t.name.text;t=AT(e.declarations,e=>{var t,r;return sF(e)&&null!=(r=null==(t=function(e){for(;8&e.flags;)e=e.parent;return e}(e))?void 0:t.parent)&&r.parent&&cF(t.parent)&&Z7(t.parent.parent)&&LF(t.parent.parent.parent)&&(r=null==(r=null==(r=null==(r=t.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:r.valueDeclaration)?void 0:r.expression)&&(r=n.getSymbolAtLocation(r))&&(2097152&(null==r?void 0:r.flags)?n.getAliasedSymbol(r):r)===e.symbol?t.parent.parent:void 0}),e=t[0];if(e)return e.name.text}(e,t);if(t)return{kind:"ambient",moduleSpecifiers:[t],computedWithoutCache:!1};let[c,l,_,u,d]=kL(e,n,i,a,o);return l?{kind:c,moduleSpecifiers:l,computedWithoutCache:!1}:_?(t=function(e,t,r,n,i,a={},o){let s=wL(r.fileName,n),c=bL(i,t,r),l=H_(r)&&G4(e,e=>G4(n.getFileIncludeReasons().get(pa(e.path,n.getCurrentDirectory(),s.getCanonicalFileName)),e=>{if(3===e.kind&&e.file===r.path&&(!r.impliedNodeFormat||r.impliedNodeFormat===uJ(r,e.index,t)))return e=KJ(r,e.index).text,1===c.relativePreference&&T3(e)?void 0:e}));if(l)return{kind:void 0,moduleSpecifiers:[l],computedWithoutCache:!0};let _=X4(e,e=>e.isInNodeModules),u,d,p,f;for(var m of e){var g=m.isInNodeModules?RL(m,s,r,n,t,i,void 0,a.overrideImportMode):void 0;if(u=Q4(u,g),g&&m.isRedirect)return{kind:"node_modules",moduleSpecifiers:u,computedWithoutCache:!0};g||(g=NL(m.path,s,t,n,a.overrideImportMode||r.impliedNodeFormat,c,m.isRedirect))&&(m.isRedirect?p=Q4(p,g):Qi(g)?mO(g)?f=Q4(f,g):d=Q4(d,g):!o&&_&&!m.isInNodeModules||(f=Q4(f,g)))}return null!=d&&d.length?{kind:"paths",moduleSpecifiers:d,computedWithoutCache:!0}:null!=p&&p.length?{kind:"redirect",moduleSpecifiers:p,computedWithoutCache:!0}:null!=u&&u.length?{kind:"node_modules",moduleSpecifiers:u,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:Y4.checkDefined(f),computedWithoutCache:!0}}(u=u||OL(wL(n.fileName,i),_.originalFileName,i,r,o),r,n,i,a,o,s),null!=d&&d.set(n.path,_.path,a,o,t.kind,u,t.moduleSpecifiers),t):{kind:void 0,moduleSpecifiers:H4,computedWithoutCache:!1}}function wL(e,t){e=P3(e,t.getCurrentDirectory());var t=ze(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),r=D3(e);return{getCanonicalFileName:t,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:t(r)}}function NL(e,t,r,n,i,{getAllowedEndingsInPreferredOrder:a,relativePreference:o},s){var c,l,_,u,{baseUrl:d,paths:p,rootDirs:f}=r;if(!s||p)return{sourceDirectory:c,canonicalSourceDirectory:u,getCanonicalFileName:_}=t,a=a(i),f=f&&function(e,t,r,n,i,a){let o=ML(t,e,n);if(void 0!==o){t=ve(FT(ML(r,e,n),t=>$4(o,e=>ga(wa(t,e,n)))),Jm);if(t)return BL(t,i,a)}}(f,e,c,_,a,r)||BL(ga(wa(c,e,_)),a,r),(d||p||Rf(r))&&0!==o&&(l=UL(e,P3(Fd(r,n)||d,n.getCurrentDirectory()),_))?(i=s?void 0:function(a,e,o,s,t){if(s.readFile&&Rf(o)){let i=PL(s,e);if(i){var e=E3(i,"package.json"),r=null==(r=null==(r=s.getPackageJsonInfoCache)?void 0:r.call(s))?void 0:r.getPackageJsonInfo(e);if(!BI(r)&&s.fileExists(e)){r=(null==r?void 0:r.contents.packageJsonContent)||xp(s.readFile(e));let n=null==r?void 0:r.imports;if(n){let r=LI(o,t);return null==(e=G4(J(n),e=>{var t;if(f3(e,"#")&&"#"!==e&&!f3(e,"#/"))return t=u3(e,"/")?1:e.includes("*")?2:0,jL(o,s,a,i,e,n[e],r,t,!0)}))?void 0:e.moduleFileToTry}}}}}(e,c,r,n,i),p=s||void 0===i?p&&LL(l,p,a,n,r):void 0,s?p:(i=i??(void 0===p&&void 0!==d?BL(l,a,r):p))?1!==o||T3(i)?3!==o||T3(i)?VL(i)||DL(f)t.fileExists(E3(e,"package.json"))?e:void 0)}function FL(e,t,r,n,o){let i,s=xd(r),c=r.getCurrentDirectory(),l=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0;var a=pa(t,c,s),a=r.redirectTargetsMap.get(a)||H4;let _=[...l?[l]:H4,t,...a].map(e=>P3(e,c)),u=!vT(_,lg);if(!n){a=G4(_,e=>!(u&&lg(e))&&o(e,l===e));if(a)return a}let d=null==(i=r.getSymlinkCache)?void 0:i.call(r).getSymlinkedDirectoriesByRealpath();a=P3(t,c);return d&&Pa(D3(a),i=>{let a=d.get(ma(pa(i,c,s)));if(a)return!Ta(e,i,s)&&G4(_,e=>{if(Ta(e,i,s)){var t,r=wa(i,e,s);for(t of a){var n=la(t,r),n=o(n,e===l);if(u=!0,n)return n}}})})||(n?G4(_,e=>u&&lg(e)?void 0:o(e,e===l)):void 0)}function AL(e,t,r,n,i,a={}){var o=pa(e.importingSourceFileName,r.getCurrentDirectory(),xd(r)),s=pa(t,r.getCurrentDirectory(),xd(r)),c=null==(c=r.getModuleSpecifierCache)?void 0:c.call(r);if(c){var l=c.get(o,s,n,a);if(null!=l&&l.modulePaths)return l.modulePaths}l=OL(e,t,r,i,a);return c&&c.setModulePaths(o,s,n,a,l),l}var IL=["dependencies","peerDependencies","optionalDependencies"];function OL(n,e,t,r,i){var a=null==(c=t.getModuleResolutionCache)?void 0:c.call(t),o=null==(c=t.getSymlinkCache)?void 0:c.call(t);if(a&&o&&t.readFile&&!mO(n.importingSourceFileName)){Y4.type(t);var s,c=NO(a.getPackageJsonInfoCache(),t,{}),l=DO(n.importingSourceFileName,c);if(l)for(s of function(e){let t;for(var r of IL){r=e[r];r&&"object"==typeof r&&(t=LT(t,J(r)))}return t}(l.contents.packageJsonContent)||H4){var _=rO(s,E3(l.packageDirectory,"package.json"),r,t,a,void 0,i.overrideImportMode);o.setSymlinksFromResolution(_.resolvedModule)}}let u=new Map,d=!1;FL(n.importingSourceFileName,e,t,!0,(e,t)=>{var r=mO(e);u.set(e,{path:n.getCanonicalFileName(e),isRedirect:t,isInNodeModules:r}),d=d||r});var p=[];for(let e=n.canonicalSourceDirectory;0!==u.size;){let i=ma(e),a;u.forEach(({path:e,isRedirect:t,isInNodeModules:r},n)=>{f3(e,i)&&((a=a||[]).push({path:n,isRedirect:t,isInNodeModules:r}),u.delete(n))}),a&&(1({path:e,isRedirect:t,isInNodeModules:r}))).length&&c.sort(EL),p.push(...c)),p}function LL(r,e,n,i,a){for(var o in e)for(var s of e[o]){let t=ua(s);var s=t.indexOf("*"),c=n.map(e=>({ending:e,value:BL(r,[e],a)}));if(MD(t)&&c.push({ending:void 0,value:r}),-1!==s){var l,_,u=t.substring(0,s),d=t.substring(s+1);for({ending:l,value:_}of c)if(_.length>=u.length+d.length&&f3(_,u)&&u3(_,d)&&f({ending:l,value:_})){var p=_.substring(u.length,_.length-d.length);if(!T3(p))return yg(o,p)}}else if(X4(c,e=>0!==e.ending&&t===e.value)||X4(c,e=>0===e.ending&&t===e.value&&f(e)))return o}function f({ending:e,value:t}){return 0!==e||t===BL(r,[e],a,i)}}function jL(t,r,n,i,a,e,o,s,c){if("string"==typeof e){var l=!bd(r),_=()=>r.getCommonSourceDirectory(),u=c&&nB(n,t,l,_),d=c&&tB(n,t,l,_),p=P3(E3(i,e),void 0),f=Om(n)?qm(n)+qL(n,t):void 0;switch(s){case 0:if(f&&0===F3(f,p,l)||0===F3(n,p,l)||u&&0===F3(u,p,l)||d&&0===F3(d,p,l))return{moduleFileToTry:a};break;case 1:if(f&&ka(p,f,l))return g=wa(p,f,!1),{moduleFileToTry:P3(E3(E3(a,e),g),void 0)};if(ka(p,n,l))return g=wa(p,n,!1),{moduleFileToTry:P3(E3(E3(a,e),g),void 0)};if(u&&ka(p,u,l))return g=wa(p,u,!1),{moduleFileToTry:E3(a,g)};if(d&&ka(p,d,l))return g=wa(p,d,!1),{moduleFileToTry:E3(a,g)};break;case 2:var m,g=p.indexOf("*"),h=p.slice(0,g),g=p.slice(g+1);if(f&&f3(f,h,l)&&u3(f,g,l))return m=f.slice(h.length,f.length-g.length),{moduleFileToTry:yg(a,m)};if(f3(n,h,l)&&u3(n,g,l))return m=n.slice(h.length,n.length-g.length),{moduleFileToTry:yg(a,m)};if(u&&f3(u,h,l)&&u3(u,g,l))return m=u.slice(h.length,u.length-g.length),{moduleFileToTry:yg(a,m)};if(d&&f3(d,h,l)&&u3(d,g,l))return m=d.slice(h.length,d.length-g.length),{moduleFileToTry:yg(a,m)}}}else{if(Array.isArray(e))return G4(e,e=>jL(t,r,n,i,a,e,o,s,c));if("object"==typeof e&&null!==e)for(var y of J(e))if("default"===y||0<=o.indexOf(y)||BO(o,y)){y=e[y],y=jL(t,r,n,i,a,y,o,s,c);if(y)return y}}}function RL({path:p,isRedirect:e},{getCanonicalFileName:f,canonicalSourceDirectory:t},m,g,h,i,a,y){if(g.fileExists&&g.readFile){let d=dg(p);if(d){let u=bL(i,h,m).getAllowedEndingsInPreferredOrder(),r=p,n=!1;if(!a){let e=d.packageRootIndex,t;for(;;){var{moduleFileToTry:o,packageRootPath:s,blockedByExports:c,verbatimFromExports:l}=function(e){let t,r,n=p.substring(0,e),i=E3(n,"package.json"),a=p,o=!1,s=null==(r=null==(t=g.getPackageJsonInfoCache)?void 0:t.call(g))?void 0:r.getPackageJsonInfo(i);if(MI(s)||void 0===s&&g.fileExists(i)){var e=(null==s?void 0:s.contents.packageJsonContent)||xp(g.readFile(i)),c=y||m.impliedNodeFormat;if(jf(h)){var l=$O(n.substring(d.topLevelPackageNameIndex+1)),c=LI(h,c),l=null!=e&&e.exports?function(n,i,a,o,s,c,l){return"object"==typeof c&&null!==c&&!Array.isArray(c)&&OO(c)?G4(J(c),e=>{var t=P3(E3(s,e),void 0),r=u3(e,"/")?1:e.includes("*")?2:0;return jL(n,i,a,o,t,c[e],l,r,!1)}):jL(n,i,a,o,s,c,l,0,!1)}(h,g,p,n,l,e.exports,c):void 0;if(l)return{...l,verbatimFromExports:!0};if(null!=e&&e.exports)return{moduleFileToTry:p,blockedByExports:!0}}var c=null!=e&&e.typesVersions?DI(e.typesVersions):void 0,_=(c&&(void 0===(l=LL(p.slice(n.length+1),c.paths,u,g,h))?o=!0:a=E3(n,l)),(null==e?void 0:e.typings)||(null==e?void 0:e.types)||(null==e?void 0:e.main)||"index.js");if(a3(_)&&(!o||!Ym(Hm(c.paths),_))){c=pa(_,n,f),_=f(a);if(qm(c)===qm(_))return{packageRootPath:n,moduleFileToTry:a};if("module"!==(null==e?void 0:e.type)&&!N3(_,Pm)&&f3(_,c)&&D3(_)===fa(c)&&"index"===qm(ra(_)))return{packageRootPath:n,moduleFileToTry:a}}}else{e=f(a.substring(d.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:a,packageRootPath:n}}return{moduleFileToTry:a}}(e);if(1!==xD(h)){if(c)return;if(l)return o}if(s){r=s,n=!0;break}if(t=t||o,-1===(e=p.indexOf(qi,e+1))){r=BL(t,u,h,g);break}}}if(!e||n){i=g.getGlobalTypingsCacheLocation&&g.getGlobalTypingsCacheLocation(),a=f(r.substring(0,d.topLevelNodeModulesIndex));if(f3(t,a)||i&&f3(f(i),a))return t=$O(e=r.substring(d.topLevelPackageNameIndex+1)),1===xD(h)&&t===e?void 0:t}}}}function ML(t,e,r){return AT(e,e=>{e=UL(t,e,r);return void 0!==e&&VL(e)?void 0:e})}function BL(e,t,r,n){if(N3(e,[".json",".mjs",".cjs"]))return e;var i=qm(e);if(e===i)return e;var a=t.indexOf(2),o=t.indexOf(3);if(N3(e,[".mts",".cts"])&&-1!==o&&o0===e||1===e))&&s(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))(YL||{}),ZL=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),ej=(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))(ej||{}),tj=(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))(tj||{}),rj=g3(_j,function(e){return!UC(e)}),nj=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),ij=class{};function aj(){this.flags=0}function oj(e){return e.id||(e.id=$L,$L++),e.id}function sj(e){return e.id||(e.id=GL,GL++),e.id}function cj(e,t){e=oL(e);return 1===e||t&&2===e}function lj(p){var x,s,ke,h,t=[],J=e=>{t.push(e)},n=uD.getSymbolConstructor(),r=uD.getTypeConstructor(),c=uD.getSignatureConstructor(),i=0,a=0,o=0,l=0,_=0,z=0,q=!1,y=I7(),u=[1],ee=p.getCompilerOptions(),U=vD(ee),v=bD(ee),b=!!ee.experimentalDecorators,W=DD(ee),d=AD(ee),g=TD(ee),te=FD(ee,"strictNullChecks"),H=FD(ee,"strictFunctionTypes"),f=FD(ee,"strictBindCallApply"),T=FD(ee,"strictPropertyInitialization"),Te=FD(ee,"noImplicitAny"),m=FD(ee,"noImplicitThis"),k=FD(ee,"useUnknownInCatchVariables"),Ce=ee.exactOptionalPropertyTypes,C=function(){let r=p9(function(e,t,r){t?(t.stackIndex++,t.skip=!1,o(t,void 0),s(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]};{var n,i,a;oT(e)&&j8(e)?(t.skip=!0,s(t,A(e.right,r))):({left:n,operatorToken:i,right:a}=n=e,61===i.kind&&(!pT(n)||57!==n.operatorToken.kind&&56!==n.operatorToken.kind||L(n,eT._0_and_1_operations_cannot_be_mixed_without_parentheses,I3(n.operatorToken.kind),I3(i.kind)),!pT(a)||57!==a.operatorToken.kind&&56!==a.operatorToken.kind||L(a,eT._0_and_1_operations_cannot_be_mixed_without_parentheses,I3(a.operatorToken.kind),I3(i.kind))),64!==e.operatorToken.kind||210!==e.left.kind&&209!==e.left.kind||(t.skip=!0,s(t,nx(e.left,A(e.right,r),r,110===e.right.kind))))}return t},function(e,t,r){if(!t.skip)return n(t,e)},function(e,t,r){if(!t.skip){var n=a(t),t=(Y4.assertIsDefined(n),o(t,n),s(t,void 0),e.kind);if(RN(t)){let e=r.parent;for(;217===e.kind||MN(e);)e=e.parent;56!==t&&!XP(e)||VS(r.left,n,XP(e)?e.thenStatement:void 0),WS(n,r.left)}}},function(e,t,r){if(!t.skip)return n(t,e)},function(e,t){let r;{var n,i;r=t.skip?a(t):(n=function(e){return e.typeStack[e.stackIndex]}(t),Y4.assertIsDefined(n),i=a(t),Y4.assertIsDefined(i),ax(e.left,e.operatorToken,e.right,n,i,t.checkMode,e))}return t.skip=!1,o(t,void 0),s(t,void 0),t.stackIndex--,r},function(e,t,r){return s(e,t),e});return(e,t)=>{e=r(e,t);return Y4.assertIsDefined(e),e};function n(e,t){if(pT(t))return t;s(e,A(t,e.checkMode))}function o(e,t){e.typeStack[e.stackIndex]=t}function a(e){return e.typeStack[e.stackIndex+1]}function s(e,t){e.typeStack[e.stackIndex+1]=t}}(),w={getReferencedExportContainer:F6,getReferencedImportDeclaration:A6,getReferencedDeclarationWithCollidingName:O6,isDeclarationWithCollidingName:L6,isValueAliasDeclaration:e=>{e=G3(e);return!e||!vt||j6(e)},hasGlobalName:n4,isReferencedAliasDeclaration:(e,t)=>{e=G3(e);return!e||!vt||function t(n,r){Y4.assert(vt);if(ao(n)){let e=F(n),t=e&&le(e);if(null!=t&&t.referenced)return!0;let r=le(e).aliasTarget;if(r&&32&ON(n)&&111551&wo(r)&&(ND(ee)||!B6(r)))return!0}if(r)return!!h9(n,e=>t(e,r));return!1}(e,t)},hasNodeCheckFlag:(e,t)=>{e=G3(e);return!!e&&W6(e,t)},isTopLevelValueImportEqualsWithEntityName:R6,isDeclarationVisible:zs,isImplementationOfOverload:J6,requiresAddingImplicitUndefined:z6,isExpandoFunctionDeclaration:q6,getPropertiesOfContainerFunction:U6,createTypeOfDeclaration:Q6,createReturnTypeOfSignatureDeclaration:t4,createTypeOfExpression:r4,createLiteralConstValue:c4,isSymbolAccessible:xs,isEntityNameVisible:Ds,getConstantValue:e=>{e=G3(e,K6);return e?G6(e):void 0},getEnumMemberValue:e=>{e=G3(e,OF);return e?H6(e):void 0},collectLinkedAliases:qs,markLinkedReferences:e=>{e=G3(e);return e&&c1(e,0)},getReferencedValueDeclaration:a4,getReferencedValueDeclarations:o4,getTypeReferenceSerializationKind:X6,isOptionalParameter:tu,isArgumentsLocalBinding:P6,getExternalModuleFileFromDeclaration:e=>{e=G3(e,c5);return e&&d4(e)},isLiteralConstDeclaration:s4,isLateBound:e=>{e=G3(e,u7),e=e&&F(e);return!!(e&&4096&tD(e))},getJsxFactoryEntity:l4,getJsxFragmentFactoryEntity:_4,isBindingCapturedByNode:(e,t)=>{e=G3(e),t=G3(t);return!!e&&!!t&&(eF(t)||wP(t))&&function(e,t){e=P(e);return!!e&&TT(e.capturedBlockScopeBindings,F(t))}(e,t)},getDeclarationStatementsForSourceFile:(e,t,r)=>{var n=G3(e),n=(Y4.assert(n&&307===n.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile"),F(e));return n?(Mo(n),n.exports?N.symbolTableToDeclarationStatements(n.exports,e,t,r):[]):e.locals?N.symbolTableToDeclarationStatements(e.locals,e,t,r):[]},isImportRequiredByAugmentation:function(e){var t=iT(e);if(t.symbol){var r,n=d4(e);if(n)if(n!==t)for(r of ZT(Ho(t.symbol).values()))if(r.mergeId){var i=S(r);if(i.declarations)for(var a of i.declarations)if(iT(a)===n)return!0}}return!1}},N={typeToTypeNode:(t,e,r,n)=>X(e,r,n,e=>Y(t,e)),typePredicateToTypePredicateNode:(t,e,r,n)=>X(e,r,n,e=>Le(t,e)),expressionOrTypeToTypeNode:(t,r,n,e,i,a)=>X(e,i,a,e=>D(e,t,r,n)),serializeTypeForDeclaration:(t,r,n,e,i,a)=>X(e,i,a,e=>tt(e,t,r,n)),serializeReturnTypeForSignature:(t,e,r,n)=>X(e,r,n,e=>rt(e,t)),indexInfoToIndexSignatureDeclaration:(t,e,r,n)=>X(e,r,n,e=>Pe(t,e,void 0)),signatureToSignatureDeclaration:(t,r,e,n,i)=>X(e,n,i,e=>Fe(t,r,e)),symbolToEntityName:(t,r,e,n,i)=>X(e,n,i,e=>Ke(t,e,r,!1)),symbolToExpression:(t,r,e,n,i)=>X(e,n,i,e=>Ge(t,e,r)),symbolToTypeParameterDeclarations:(t,e,r,n)=>X(e,r,n,e=>qe(t,e)),symbolToParameterDeclaration:(t,e,r,n)=>X(e,r,n,e=>Re(t,e)),typeParameterToDeclaration:(t,e,r,n)=>X(e,r,n,e=>Oe(t,e)),symbolTableToDeclarationStatements:(t,e,r,n)=>X(e,r,n,e=>st(t,e)),symbolToNode:(i,a,e,t,r)=>X(e,t,r,e=>{var t=i,r=a;if(1073741824&e.flags){if(t.valueDeclaration){var n=tC(t.valueDeclaration);if(n&&HE(n))return n}n=le(t).nameType;if(n&&9216&n.flags)return e.enclosingDeclaration=n.symbol.valueDeclaration,cT.createComputedPropertyName(Ge(n.symbol,e,r))}return Ge(t,e,r)})};function K(e,t,r){t=V(t);return e.mapper?(e=be(t,e.mapper),r&&e!==t?void 0:e):t}function G(e,t,r){return(t=rN(t)&&16&t.flags&&e.enclosingFile&&e.enclosingFile===iT(K3(t))?t:cT.cloneNode(t))!==r&&r?e.enclosingFile&&e.enclosingFile===iT(K3(r))?fT(lT(t,r),r):lT(t,r):t}function D(e,t,r,n){var i=e.flags,t=(!t||-2147483648&e.flags||ut.serializeTypeOfExpression(t,e,n),e.flags|=-2147483648,function(e,t,r,n){if(t){var i=r7(t)?t.type:s9(t)?c9(t):void 0;if(i&&!kC(i)){i=E(e,i,r,t.parent,n);if(i)return i}}n&&(r=Mg(r));return Y(r,e)}(e,t,r,n));return e.flags=i,t}function E(e,t,r,n,i){var a=r,o=$(e,t,r=i?Mg(r):r,n);if(o)return i&&!T0(K(e,t),e=>!!(32768&e.flags))?cT.createUnionTypeNode([o,cT.createKeywordTypeNode(157)]):o;if(i&&a!==r){o=$(e,t,a,n);if(o)return cT.createUnionTypeNode([o,cT.createKeywordTypeNode(157)])}}function $(e,t,r,n=e.enclosingDeclaration,i=K(e,t,!0)){if(i&&function(e,t,r){if(r===t)return 1;if(e&&(GE(e)||XE(e)||QE(e))&&e.questionToken)return a0(t,524288)===r;return}(n,r,i)&&et(t,r)){n=ot(e,t);if(n)return n}}function X(e,t,r,n){var i,a=null!=r&&r.trackSymbol?r.moduleResolverHost:134217728&t?{getCommonSourceDirectory:(i=p).getCommonSourceDirectory?()=>i.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>i.getCurrentDirectory(),getSymlinkCache:r3(i,i.getSymlinkCache),getPackageJsonInfoCache:()=>{var e;return null==(e=i.getPackageJsonInfoCache)?void 0:e.call(i)},useCaseSensitiveFileNames:r3(i,i.useCaseSensitiveFileNames),redirectTargetsMap:i.redirectTargetsMap,getProjectReferenceRedirect:e=>i.getProjectReferenceRedirect(e),isSourceOfProjectReferenceRedirect:e=>i.isSourceOfProjectReferenceRedirect(e),fileExists:e=>i.fileExists(e),getFileIncludeReasons:()=>i.getFileIncludeReasons(),readFile:i.readFile?e=>i.readFile(e):void 0}:void 0,t={enclosingDeclaration:e,enclosingFile:e&&iT(e),flags:t||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!ee.outFile&&!!e&&N5(iT(e)),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,mapper:void 0},e=(t.tracker=new mj(t,r,a),n(t));return t.truncating&&1&t.flags&&t.tracker.reportTruncationError(),t.encounteredError?void 0:e}function Q(e){return e.truncating||(e.truncating=e.approximateLength>(1&e.flags?P7:E7))}function Y(e,t){var r=t.flags,e=function(t,f){x&&x.throwIfCancellationRequested&&x.throwIfCancellationRequested();var e=8388608&f.flags;if(f.flags&=-8388609,!t)return 262144&f.flags?(f.approximateLength+=3,cT.createKeywordTypeNode(133)):void(f.encounteredError=!0);536870912&f.flags||(t=I_(t));if(1&t.flags)return t.aliasSymbol?cT.createTypeReferenceNode(function e(t){let r=cT.createIdentifier(X3(t.escapedName));return t.parent?cT.createQualifiedName(e(t.parent),r):r}(t.aliasSymbol),Ee(t.aliasTypeArguments,f)):t===ln?RE(cT.createKeywordTypeNode(133),3,"unresolved"):(f.approximateLength+=3,cT.createKeywordTypeNode(t===un?141:133));if(2&t.flags)return cT.createKeywordTypeNode(159);if(4&t.flags)return f.approximateLength+=6,cT.createKeywordTypeNode(154);if(8&t.flags)return f.approximateLength+=6,cT.createKeywordTypeNode(150);if(64&t.flags)return f.approximateLength+=6,cT.createKeywordTypeNode(163);if(16&t.flags&&!t.aliasSymbol)return f.approximateLength+=7,cT.createKeywordTypeNode(136);{var r;if(1056&t.flags)return 8&t.symbol.flags?(r=Xo(t.symbol),n=We(r,f,788968),cl(r)===t?n:R3(r=Y3(t.symbol),1)?g(n,cT.createTypeReferenceNode(r,void 0)):kP(n)?(n.isTypeOf=!0,cT.createIndexedAccessTypeNode(n,cT.createLiteralTypeNode(cT.createStringLiteral(r)))):sP(n)?cT.createIndexedAccessTypeNode(cT.createTypeQueryNode(n.typeName),cT.createLiteralTypeNode(cT.createStringLiteral(r))):Y4.fail("Unhandled type node kind returned from `symbolToTypeNode`.")):We(t.symbol,f,788968)}if(128&t.flags)return f.approximateLength+=t.value.length+2,cT.createLiteralTypeNode(_T(cT.createStringLiteral(t.value,!!(268435456&f.flags)),16777216));{var n;if(256&t.flags)return n=t.value,f.approximateLength+=(""+n).length,cT.createLiteralTypeNode(n<0?cT.createPrefixUnaryExpression(41,cT.createNumericLiteral(-n)):cT.createNumericLiteral(n))}if(2048&t.flags)return f.approximateLength+=KD(t.value).length+1,cT.createLiteralTypeNode(cT.createBigIntLiteral(t.value));if(512&t.flags)return f.approximateLength+=t.intrinsicName.length,cT.createLiteralTypeNode("true"===t.intrinsicName?cT.createTrue():cT.createFalse());if(8192&t.flags){if(!(1048576&f.flags)){if(vs(t.symbol,f.enclosingDeclaration))return f.approximateLength+=6,We(t.symbol,f,111551);f.tracker.reportInaccessibleUniqueSymbolError&&f.tracker.reportInaccessibleUniqueSymbolError()}return f.approximateLength+=13,cT.createTypeOperatorNode(158,cT.createKeywordTypeNode(155))}if(16384&t.flags)return f.approximateLength+=4,cT.createKeywordTypeNode(116);if(32768&t.flags)return f.approximateLength+=9,cT.createKeywordTypeNode(157);if(65536&t.flags)return f.approximateLength+=4,cT.createLiteralTypeNode(cT.createNull());if(131072&t.flags)return f.approximateLength+=5,cT.createKeywordTypeNode(146);if(4096&t.flags)return f.approximateLength+=6,cT.createKeywordTypeNode(155);if(67108864&t.flags)return f.approximateLength+=6,cT.createKeywordTypeNode(151);if(lE(t))return 4194304&f.flags&&(f.encounteredError||32768&f.flags||(f.encounteredError=!0),null!=(i=(r=f.tracker).reportInaccessibleThisError))&&i.call(r),f.approximateLength+=4,cT.createThisTypeNode();if(!e&&t.aliasSymbol&&(16384&f.flags||function(e,t){e=Ss(e,t,788968,!1,!0);return 0===e.accessibility}(t.aliasSymbol,f.enclosingDeclaration)))return i=Ee(t.aliasTypeArguments,f),!_s(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?1===K4(i)&&t.aliasSymbol===Rt.symbol?cT.createArrayTypeNode(i[0]):We(t.aliasSymbol,f,788968,i):cT.createTypeReferenceNode(cT.createIdentifier(""),i);e=sT(t);if(4&e)return Y4.assert(!!(524288&t.flags)),t.node?c(t,u):u(t);if(262144&t.flags||3&e){if(262144&t.flags&&TT(f.inferTypeParameters,t)){f.approximateLength+=Y3(t.symbol).length+6;let e;var i=u_(t);return!i||(a=Pu(t,!0))&&tm(i,a)||(f.approximateLength+=9,e=i&&Y(i,f)),cT.createInferTypeNode(Ie(t,f,e))}var a;return 4&f.flags&&262144&t.flags?(a=He(t,f),f.approximateLength+=rT(a).length,cT.createTypeReferenceNode(cT.createIdentifier(rT(a)),void 0)):t.symbol?We(t.symbol,f,788968):(i=(t===ti||t===ri)&&h&&h.symbol?(t===ri?"sub-":"super-")+Y3(h.symbol):"?",cT.createTypeReferenceNode(cT.createIdentifier(i),void 0))}1048576&t.flags&&t.origin&&(t=t.origin);if(3145728&t.flags)return 1===K4(i=1048576&t.flags?function(t){let r=[],n=0;for(let e=0;ecT.createTemplateLiteralTypeSpan(Y(e,f),(t{var t,r,n,i,a,o=Y(e.checkType,f);return f.approximateLength+=15,4&f.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)?(t=ls(O(262144,"T")),r=He(t,f),n=cT.createTypeReferenceNode(r),f.approximateLength+=37,t=If(e.root.checkType,t,e.mapper),a=f.inferTypeParameters,f.inferTypeParameters=e.root.inferTypeParameters,i=Y(be(e.root.extendsType,t),f),f.inferTypeParameters=a,a=s(be(K(f,e.root.node.trueType),t)),t=s(be(K(f,e.root.node.falseType),t)),cT.createConditionalTypeNode(o,cT.createInferTypeNode(cT.createTypeParameterDeclaration(void 0,cT.cloneNode(n.typeName))),cT.createConditionalTypeNode(cT.createTypeReferenceNode(cT.cloneNode(r)),Y(e.checkType,f),cT.createConditionalTypeNode(n,i,a,t),cT.createKeywordTypeNode(146)),cT.createKeywordTypeNode(146))):(r=f.inferTypeParameters,f.inferTypeParameters=e.root.inferTypeParameters,n=Y(e.extendsType,f),f.inferTypeParameters=r,i=s(Gp(e)),a=s($p(e)),cT.createConditionalTypeNode(o,n,i,a))});if(33554432&t.flags)return e=Y(t.baseType,f),(i=Xu(t)&&_d("NoInfer",!1))?We(i,f,788968,[e]):e;return Y4.fail("Should be unreachable.");function s(e){var t,r;return 1048576&e.flags?null!=(t=f.visitedTypes)&&t.has(e.id)?(131072&f.flags||(f.encounteredError=!0,null!=(r=null==(t=f.tracker)?void 0:t.reportCyclicStructureError)&&r.call(t)),Z(f)):c(e,e=>Y(e,f)):Y(e,f)}function o(e){return!!Jf(e)}function _(e){return e.target&&o(e.target)&&!o(e)}function m(e){let t,r,n=e.id,i=e.symbol;if(i){if(!(8388608&sT(e)))return a=Os(e)?788968:111551,E2(i.valueDeclaration)||32&i.flags&&!Fc(i)&&(!(i.valueDeclaration&&qC(i.valueDeclaration)&&2048&f.flags)||nF(i.valueDeclaration)&&0===xs(i,f.enclosingDeclaration,a,!1).accessibility)||896&i.flags||function(){var e=!!(8192&i.flags)&&X4(i.declarations,e=>CN(e)),t=!!(16&i.flags)&&(i.parent||G4(i.declarations,e=>307===e.parent.kind||268===e.parent.kind));if(e||t)return(4096&f.flags||null!=(e=f.visitedTypes)&&e.has(n))&&(!(8&f.flags)||vs(i,f.enclosingDeclaration))}()?We(i,f,a):null!=(r=f.visitedTypes)&&r.has(n)?(a=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){e=xw(e.symbol.declarations[0].parent);if(aF(e))return F(e)}}(e))?We(a,f,788968):Z(f):c(e,l);var a=e.node;if(_P(a)){a=$(f,a,e);if(a)return a}return null!=(t=f.visitedTypes)&&t.has(n)?Z(f):c(e,l)}return l(e)}function c(e,t){var r=e.id,n=16&sT(e)&&e.symbol&&32&e.symbol.flags,n=4&sT(e)&&e.node?"N"+oj(e.node):16777216&e.flags?"N"+oj(e.root.node):e.symbol?(n?"+":"")+sj(e.symbol):void 0,i=(f.visitedTypes||(f.visitedTypes=new Set),n&&!f.symbolDepth&&(f.symbolDepth=new Map),f.enclosingDeclaration&&P(f.enclosingDeclaration)),a=e.id+"|"+f.flags,o=(!i||i.serializedTypes||(i.serializedTypes=new Map),null==(o=null==i?void 0:i.serializedTypes)?void 0:o.get(a));if(o)return null!=(c=o.trackedSymbols)&&c.forEach(([e,t,r])=>f.tracker.trackSymbol(e,t,r)),o.truncating&&(f.truncating=!0),f.approximateLength+=o.addedLength,function e(t){if(!rN(t)&&G3(t)===t)return t;return G(f,cT.cloneNode(hT(t,e,void 0,l,e)),t)}(o.node);let s;if(n){if(10<(s=f.symbolDepth.get(n)||0))return Z(f);f.symbolDepth.set(n,s+1)}f.visitedTypes.add(r);var c=f.trackedSymbols,o=(f.trackedSymbols=void 0,f.approximateLength),t=t(e),e=f.approximateLength-o;return f.reportedDiagnostic||f.encounteredError||null!=(o=null==i?void 0:i.serializedTypes)&&o.set(a,{node:t,truncating:f.truncating,addedLength:e,trackedSymbols:f.trackedSymbols}),f.visitedTypes.delete(r),n&&f.symbolDepth.set(n,s),f.trackedSymbols=c,t;function l(e,t,r,n,i){return e&&0===e.length?fT(cT.createNodeArray(void 0,e.hasTrailingComma),e):gT(e,t,r,n,i)}}function l(r){if(i_(r)||r.containsError){var n=r;Y4.assert(!!(524288&n.flags));var i=n.declaration.readonlyToken?cT.createToken(n.declaration.readonlyToken.kind):void 0,a=n.declaration.questionToken?cT.createToken(n.declaration.questionToken.kind):void 0;let e,t;var o=!Zl(n)&&!(2&e_(n).flags)&&4&f.flags&&!(262144&$l(n).flags&&4194304&(null==(o=u_($l(n)))?void 0:o.flags)),s=(e=Zl(n)?(_(n)&&4&f.flags&&(s=He(ls(O(262144,"T")),f),t=cT.createTypeReferenceNode(s)),cT.createTypeOperatorNode(143,t||Y(e_(n),f))):o?(s=He(ls(O(262144,"T")),f),t=cT.createTypeReferenceNode(s)):Y($l(n),f),Ie(Gl(n),f,e)),c=n.declaration.nameType?Y(Xl(n),f):void 0,l=Y(Vg(Ql(n),!!(4&t_(n))),f),i=cT.createMappedTypeNode(i,s,c,a,l,void 0),s=(f.approximateLength+=10,_T(i,1));return _(n)&&4&f.flags?(c=be(u_(K(f,n.declaration.typeParameter.constraint.type))||ne,n.mapper),cT.createConditionalTypeNode(Y(e_(n),f),cT.createInferTypeNode(cT.createTypeParameterDeclaration(void 0,cT.cloneNode(t.typeName),2&c.flags?void 0:Y(c,f))),s,cT.createKeywordTypeNode(146))):o?cT.createConditionalTypeNode(Y($l(n),f),cT.createInferTypeNode(cT.createTypeParameterDeclaration(void 0,cT.cloneNode(t.typeName),cT.createTypeOperatorNode(143,Y(e_(n),f)))),s,cT.createKeywordTypeNode(146)):s}a=o_(r);if(!a.properties.length&&!a.indexInfos.length){if(!a.callSignatures.length&&!a.constructSignatures.length)return f.approximateLength+=2,_T(cT.createTypeLiteralNode(void 0),1);if(1===a.callSignatures.length&&!a.constructSignatures.length)return Fe(a.callSignatures[0],184,f);if(1===a.constructSignatures.length&&!a.callSignatures.length)return Fe(a.constructSignatures[0],185,f)}l=NT(a.constructSignatures,e=>!!(4&e.flags));return X4(l)?(i=$4(l,e=>Su(e)),a.callSignatures.length+(a.constructSignatures.length-l.length)+a.indexInfos.length+(2048&f.flags?wT(a.properties,e=>!(4194304&e.flags)):K4(a.properties))&&i.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;var t=NT(e.constructSignatures,e=>!(4&e.flags));if(e.constructSignatures===t)return e;t=fs(e.symbol,e.members,e.callSignatures,X4(t)?t:H4,e.indexInfos);return(e.objectTypeWithoutAbstractConstructSignatures=t).objectTypeWithoutAbstractConstructSignatures=t}(a)),Y(ve(i),f)):(c=f.flags,f.flags|=4194304,o=function(e){if(Q(f))return[cT.createPropertySignature(void 0,"...",void 0,void 0)];var t=[];for(var r of e.callSignatures)t.push(Fe(r,179,f));for(var n of e.constructSignatures)4&n.flags||t.push(Fe(n,180,f));for(var i of e.indexInfos)t.push(Pe(i,f,1024&e.objectFlags?Z(f):void 0));var a=e.properties;if(!a)return t;let o=0;for(var s of a){if(o++,2048&f.flags){if(4194304&s.flags)continue;6&rD(s)&&f.tracker.reportPrivateInBaseOfClassExpression&&f.tracker.reportPrivateInBaseOfClassExpression(X3(s.escapedName))}if(Q(f)&&o+2Vg(e,!!(2&n.target.elementFlags[t])))).length){var _=zu(n),t=Ee(i.slice(0,_),f);if(t){var r=n.target["labeledElementDeclarations"];for(let e=0;e!(32768&e.flags)),0);for(l of _){var u=Fe(l,173,n,{name:o,questionToken:c});e.push(p(u))}if(_.length||!c)return}let d;we(r,n)?d=Z(n):(t&&(n.reverseMappedStack||(n.reverseMappedStack=[]),n.reverseMappedStack.push(r)),d=i?tt(n,void 0,i,r):cT.createKeywordTypeNode(133),t&&n.reverseMappedStack.pop());a=zb(r)?[cT.createToken(148)]:void 0,a&&(n.approximateLength+=9),s=cT.createPropertySignature(a,o,c,d);function p(e){var t=null==(t=r.declarations)?void 0:t.find(e=>348===e.kind);return t?(t=fC(t.comment))&&jE(e,[{kind:3,text:"*\n * "+t.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]):r.valueDeclaration&&De(n,e,r.valueDeclaration),e}e.push(p(s))}function De(e,t,r){return e.enclosingFile&&e.enclosingFile===iT(r)?LE(t,r):t}function Ee(t,i,r){if(X4(t)){if(Q(i)){if(!r)return[cT.createTypeReferenceNode("...",void 0)];if(2{if(!YD(e,([e],[t])=>{return(e=e)===(t=t)||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}))for(var[t,r]of e)n[r]=Y(t,i)}),i.flags=r),n}}function Pe(e,t,r){var n=p5(e)||"x",i=Y(e.keyType,t),i=cT.createParameterDeclaration(void 0,void 0,n,void 0,i,void 0);return r=r||Y(e.type||re,t),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=n.length+4,cT.createIndexSignature(e.isReadonly?[cT.createToken(148)]:void 0,[i],r)}function Fe(t,r,n,e){let i,a,o,s=Al(t,!0)[0];var c=Ae(n,t.declaration,s,t.typeParameters,t.parameters,t.mapper),l=(n.approximateLength+=3,32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?o=t.target.typeParameters.map(e=>Y(be(e,t.mapper),n)):a=t.typeParameters&&t.typeParameters.map(e=>Oe(e,n)),n.flags),_=(n.flags&=-257,(X4(s,e=>e!==s[s.length-1]&&!!(32768&tD(e)))?t.parameters:s).map(e=>Re(e,n,176===r))),u=33554432&n.flags?void 0:function(e,t){if(e.thisParameter)return Re(e.thisParameter,t);if(e.declaration&&oT(e.declaration)){e=lC(e.declaration);if(e&&e.typeExpression)return cT.createParameterDeclaration(void 0,void 0,"this",void 0,Y(K(t,e.typeExpression),t))}}(t,n),u=(u&&_.unshift(u),n.flags=l,rt(n,t));let d=null==e?void 0:e.modifiers;185===r&&4&t.flags&&(l=LN(d),d=cT.createModifiersFromModifierFlags(64|l));l=179===r?cT.createCallSignature(a,_,u):180===r?cT.createConstructSignature(a,_,u):173===r?cT.createMethodSignature(d,(null==e?void 0:e.name)??cT.createIdentifier(""),null==e?void 0:e.questionToken,a,_,u):174===r?cT.createMethodDeclaration(d,void 0,(null==e?void 0:e.name)??cT.createIdentifier(""),void 0,a,_,u,void 0):176===r?cT.createConstructorDeclaration(d,_,void 0):177===r?cT.createGetAccessorDeclaration(d,(null==e?void 0:e.name)??cT.createIdentifier(""),_,u,void 0):178===r?cT.createSetAccessorDeclaration(d,(null==e?void 0:e.name)??cT.createIdentifier(""),_,void 0):181===r?cT.createIndexSignature(d,_,u):317===r?cT.createJSDocFunctionType(_,u):184===r?cT.createFunctionTypeNode(a,_,u??cT.createTypeReferenceNode(cT.createIdentifier(""))):185===r?cT.createConstructorTypeNode(d,a,_,u??cT.createTypeReferenceNode(cT.createIdentifier(""))):262===r?cT.createFunctionDeclaration(d,void 0,null!=e&&e.name?s3(e.name,uT):cT.createIdentifier(""),a,_,u,void 0):218===r?cT.createFunctionExpression(d,void 0,null!=e&&e.name?s3(e.name,uT):cT.createIdentifier(""),a,_,u,cT.createBlock([])):219===r?cT.createArrowFunction(d,a,_,u,void 0,cT.createBlock([])):Y4.assertNever(r);return o&&(l.typeArguments=cT.createNodeArray(o)),323===(null==(i=t.declaration)?void 0:i.kind)&&339===t.declaration.parent.kind&&RE(l,3,K7(t.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(e=>e.replace(/^\s+/," ")).join("\n"),!0),null!=c&&c(),l}function Ae(r,e,i,n,a,t){let o=Ye(r),s,c,l=r.enclosingDeclaration,_=r.mapper;return t&&(r.mapper=t),r.enclosingDeclaration&&e&&(t=function(e,t){Y4.assert(r.enclosingDeclaration);let n,i=(P(r.enclosingDeclaration).fakeScopeForSignatureDeclaration===e?n=r.enclosingDeclaration:r.enclosingDeclaration.parent&&P(r.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===e&&(n=r.enclosingDeclaration.parent),Y4.assertOptionalNode(n,KP),(null==n?void 0:n.locals)??I7()),a,o;if(t((e,t)=>{var r;n&&((r=i.get(e))?o=Q4(o,{name:e,oldSymbol:r}):a=Q4(a,e)),i.set(e,t)}),n)return function(){G4(a,e=>i.delete(e)),G4(o,e=>i.set(e.name,e.oldSymbol))};t=cT.createBlock(H4);P(t).fakeScopeForSignatureDeclaration=e,t.locals=i,tE(t,r.enclosingDeclaration),r.enclosingDeclaration=t},s=X4(i)?t("params",n=>{if(i)for(let e=0;e{if(GE(e)&&GC(e.name))return r(e.name),!0;function r(e){G4(e.elements,e=>{switch(e.kind){case 232:return;case 208:var t=e;return GC(t.name)?r(t.name):(t=F(t),void n(t.escapedName,t));default:return Y4.assertNever(e)}})}})||n(t.escapedName,t)}}):void 0,4&r.flags)&&X4(n)&&(c=t("typeParams",e=>{for(var t of n??H4)e(He(t,r).escapedText,t.symbol)})),()=>{null!=s&&s(),null!=c&&c(),o(),r.enclosingDeclaration=l,r.mapper=_}}function Ie(e,t,r){var n=t.flags,i=(t.flags&=-513,cT.createModifiersFromModifierFlags(Hm(e))),a=He(e,t),e=k_(e),e=e&&Y(e,t);return t.flags=n,cT.createTypeParameterDeclaration(i,a,r,e)}function Oe(e,t,r=u_(e)){var n;return Ie(e,t,r&&(r=r,n=Eu(e),t=t,n&&$(t,n,r)||Y(r,t)))}function Le(e,t){var r=2===e.kind||3===e.kind?cT.createToken(131):void 0,n=1===e.kind||3===e.kind?_T(cT.createIdentifier(e.parameterName),16777216):cT.createThisTypeNode(),e=e.type&&Y(e.type,t);return cT.createTypePredicateNode(r,n,e)}function je(e){var t=F7(e,169);return t||(O7(e)?void 0:F7(e,341))}function Re(e,t,r){var n=je(e),i=tt(t,n,pe(e),e),r=!(8192&t.flags)&&r&&n&&f9(n)?$4(nC(n),cT.cloneNode):void 0,a=n&&w7(n)||32768&tD(e)?cT.createToken(26):void 0,o=Me(e,n,t),n=n&&tu(n)||16384&tD(e)?cT.createToken(58):void 0,r=cT.createParameterDeclaration(r,a,o,n,i,void 0);return t.approximateLength+=Y3(e).length+3,r}function Me(e,t,n){return t&&t.name?80===t.name.kind?_T(cT.cloneNode(t.name),16777216):166===t.name.kind?_T(cT.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&HE(t)&&yl(t)&&Be(t.expression,n.enclosingDeclaration,n);let r=hT(t,e,void 0,void 0,e);wP(r)&&(r=cT.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0));rN(r)||(r=cT.cloneNode(r));return _T(r,16777217)}(t.name):Y3(e)}function Be(e,t,r){r.tracker.canTrackSymbol&&(e=VN(e),e=St(e,e.escapedText,1160127,void 0,!0))&&r.tracker.trackSymbol(e,t,111551)}function Je(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),ze(e,t,r,n)}function ze(e,_,t,r){let n;return 262144&e.flags||!(_.enclosingDeclaration||64&_.flags)||134217728&_.flags?n=[e]:(n=Y4.checkDefined(function n(i,a,e){let o=hs(i,_.enclosingDeclaration,a,!!(128&_.flags));let s;if(!o||ys(o[0],_.enclosingDeclaration,1===o.length?a:gs(a))){let r=Yo(o?o[0]:i,_.enclosingDeclaration,a);if(K4(r)){s=r.map(e=>X4(e.declarations,Cs)?Ve(e,_):void 0);let e=r.map((e,t)=>t),t=(e.sort(l),e.map(e=>r[e]));for(var c of t){let e=n(c,gs(a),!1);if(e){if(c.exports&&c.exports.get("export=")&&ts(c.exports.get("export="),i)){o=e;break}o=e.concat(o||[es(c,i)||i]);break}}}}if(o)return o;if((e||!(6144&i.flags))&&(e||r||!G4(i.declarations,Cs)))return[i];function l(e,t){let r=s[e],n=s[t];if(r&&n){let e=T3(n);return T3(r)===e?DL(r)-DL(n):e?-1:1}return 0}}(e,t,!0)),Y4.assert(n&&0Oe(e,t))):r}function Ue(r,n,i){Y4.assert(r&&0<=n&&nwf(e,t.links.mapper)),i):qe(a,i)}return e}}function Ve(t,e,r){let n=F7(t,307);if(n||(o=yT(t.declarations,e=>Zo(e,t)))&&(n=F7(o,307)),n&&void 0!==n.moduleName)return n.moduleName;if(!n&&HL.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1);if(!e.enclosingFile||!e.tracker.moduleResolverHost)return HL.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):iT(a5(t)).fileName;var i,a,o=e.enclosingFile,s=r||(null==o?void 0:o.impliedNodeFormat),c=WI(o.path,s),l=le(t);let _=l.specifierCache&&l.specifierCache.get(c);return _||(i=!!ee.outFile,e=e.tracker["moduleResolverHost"],a=i?{...ee,baseUrl:e.getCommonSourceDirectory()}:ee,_=WT(TL(t,Tt,a,o,e,{importModuleSpecifierPreference:i?"non-relative":"project-relative",importModuleSpecifierEnding:i?"minimal":99===s?"js":void 0},{overrideImportMode:r})),l.specifierCache??(l.specifierCache=new Map),l.specifierCache.set(c,_)),_}function We(r,l,n,_){r=Je(r,l,n,!(16384&l.flags)),n=111551===n;if(X4(r[0].declarations,Cs)){var i=1{if(ts(e,i)&&!vl(t)&&"export="!==t)return o=X3(t),!0}),void 0===o){var s,c=yT(i.declarations,tC);if(c&&HE(c)&&OC(c.expression))return OC(s=u(e,t-1,r))?cT.createIndexedAccessTypeNode(cT.createParenthesizedType(cT.createTypeQueryNode(s)),cT.createTypeQueryNode(c.expression)):s;o=Js(i,l)}return l.approximateLength+=o.length+1,!(16&l.flags)&&a&&Tl(a)&&Tl(a).get(i.escapedName)&&ts(Tl(a).get(i.escapedName),i)?bP(c=u(e,t-1,r))?cT.createIndexedAccessTypeNode(c,cT.createLiteralTypeNode(cT.createStringLiteral(o))):cT.createIndexedAccessTypeNode(cT.createTypeReferenceNode(c,n),cT.createLiteralTypeNode(cT.createStringLiteral(o))):(s=_T(cT.createIdentifier(o),16777216),n&&ME(s,cT.createNodeArray(n)),s.symbol=i,re.substring(1)),39===e),!t){let e=_T(cT.createIdentifier(s),16777216);a&&ME(e,cT.createNodeArray(a)),e.symbol=o,t=e}return cT.createElementAccessExpression(r(n,i-1),t)}}}(e,e.length-1)}function $e(e){e=tC(e);return!!e&&(HE(e)?!!(402653316&A(e.expression).flags):EP(e)?!!(402653316&A(e.argumentExpression).flags):qE(e))}function Xe(e){e=tC(e);return!!(e&&qE(e)&&(e.singleQuote||!rN(e)&&f3(K7(e,!1),"'")))}function Qe(e,t){var r=!!K4(e.declarations)&&vT(e.declarations,$e),n=!!K4(e.declarations)&&vT(e.declarations,Xe),i=!!(8192&e.flags),t=function(e,t,r,n,i){e=le(e).nameType;{var a;if(e)return 384&e.flags?R3(a=""+e.value,vD(ee))||!n&&sE(a)?sE(a)&&f3(a,"-")?cT.createComputedPropertyName(cT.createPrefixUnaryExpression(41,cT.createNumericLiteral(-a))):cE(a,vD(ee),r,n,i):cT.createStringLiteral(a,!!r):8192&e.flags?cT.createComputedPropertyName(Ge(e.symbol,t,111551)):void 0}}(e,t,n,r,i);return t||cE(X3(e.escapedName),vD(ee),n,r,i)}function Ye(e){let t=e.mustCreateTypeParameterSymbolList,r=e.mustCreateTypeParametersNamesLookups,n=(e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0,e.typeParameterNames),i=e.typeParameterNamesByText,a=e.typeParameterNamesByTextNextNameCount,o=e.typeParameterSymbolList;return()=>{e.typeParameterNames=n,e.typeParameterNamesByText=i,e.typeParameterNamesByTextNextNameCount=a,e.typeParameterSymbolList=o,e.mustCreateTypeParameterSymbolList=t,e.mustCreateTypeParametersNamesLookups=r}}function Ze(e,t){return e.declarations&&bT(e.declarations,e=>!(!u4(e)||t&&!tT(e,e=>e===t)))}function et(e,t){if(!(4&sT(t)))return!0;if(!sP(e))return!0;ad(e);var r=P(e).resolvedSymbol,r=r&&cl(r);return!r||r!==t.target||K4(e.typeArguments)>=nu(t.target.typeParameters)}function tt(t,e,r,n){var i,a=e&&(GE(e)||QF(e))&&z6(e),o=t.enclosingDeclaration,s=t.flags;if(!e||!OE(e)||-2147483648&t.flags||ut.serializeTypeOfDeclaration(e,t),t.flags|=-2147483648,o&&(!de(r)||1&t.flags)){o=e&&u4(e)?e:Ze(n);if(o&&!MC(o)&&!rP(o)){var c=u4(o),c=!oP(c)&&E(t,c,r,o,a);if(c)return t.flags=s,c}}8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||X4(n.declarations,e=>iT(e)===iT(t.enclosingDeclaration)))&&(t.flags|=1048576);o=e??n.valueDeclaration??(null==(i=n.declarations)?void 0:i[0]),e=o&&(jC(c=o)||gF(c)||B5(c))?Z6(o):void 0,n=D(t,e,r,a);return t.flags=s,n}function rt(e,t){var r=256&e.flags,n=e.flags;r&&(e.flags&=-257);let i;var a=he(t);return!a||r&&B(a)?r||(i=cT.createKeywordTypeNode(133)):(!t.declaration||-2147483648&e.flags||ut.serializeReturnTypeForSignature(t.declaration,e),e.flags|=-2147483648,i=function(e,t){var r=uu(t),n=he(t);if(e.enclosingDeclaration&&(!de(n)||1&e.flags)&&t.declaration&&!rN(t.declaration)){var i=t.declaration&&function(e){var t=yN(e);if(t)return t;if(177===e.kind){t=Y6(e).setAccessor;if(t){e=uN(t);if(e)return hN(e)}}}(t.declaration);if(i&&K(e,i)===n){i=ot(e,i);if(i)return i}}if(r)return Le(r,e);i=t.declaration&&Z6(t.declaration);return D(e,i,n)}(e,t)),e.flags=n,i}function nt(e,r){let t=!1,n=VN(e);if(oT(e)&&(z8(n)||U8(n.parent)||WE(n.parent)&&q8(n.parent.left)&&z8(n.parent.right)))return{introducesError:t=!0,node:e};var i=Ns(e);let a;if(fN(n))return 0!==xs(a=F(t8(n,!1,!1)),n,i,!1).accessibility&&(t=!0,r.tracker.reportInaccessibleThisError()),{introducesError:t,node:s(e)};if(a=Ao(n,i,!0,!0),r.enclosingDeclaration&&!(a&&262144&a.flags)){a=rs(a);var o=Ao(n,i,!0,!0,r.enclosingDeclaration);if(o===j||void 0===o&&void 0!==a||o&&a&&!ts(rs(o),a))return o!==j&&r.tracker.reportInferenceFallback(e),{introducesError:t=!0,node:e,sym:a}}return a?(1&a.flags&&a.valueDeclaration&&(Zw(a.valueDeclaration)||QF(a.valueDeclaration))||(262144&a.flags||Dw(e)||0===xs(a,r.enclosingDeclaration,i,!1).accessibility?r.tracker.trackSymbol(a,r.enclosingDeclaration,i):(r.tracker.reportInferenceFallback(e),t=!0)),{introducesError:t,node:s(e)}):{introducesError:t,node:e};function s(e){var t;return e===n?(t=cl(a),(t=262144&a.flags?He(t,r):cT.cloneNode(e)).symbol=a,G(r,_T(t,16777216),e)):((t=hT(e,e=>s(e),void 0))!==e&&G(r,t,e),t)}}function it(e,t,r,n){r=r?111551:788968,t=Ao(t,r,!0);if(t){var i=2097152&t.flags?Co(t):t;if(0===xs(t,e.enclosingDeclaration,r,!1).accessibility)return We(i,e,r,n)}}function at(e,r){if(oT(r)&&I5(r))return Qp(r),!(t=P(r).resolvedSymbol)||(r.isTypeOf||788968&t.flags)&&K4(r.typeArguments)>=nu(Wc(t));if(yP(r))return void 0===e.mapper||K(e,r,!0);if(sP(r)){if(kC(r))return;var t=ad(r),n=P(r).resolvedSymbol;if(!n)return;if(262144&n.flags){var i=cl(n);if(e.mapper&&wf(i,e.mapper)!==i)return}if(N8(r))return et(r,t)&&!id(r)&&788968&n.flags}if(vP(r)&&158===r.operator&&155===r.type.kind){let t=e.enclosingDeclaration&&function(e){for(;P(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return tT(r,e=>e===t)}return 1}function ot(p,e){x&&x.throwIfCancellationRequested&&x.throwIfCancellationRequested();let f=!1,{finalizeBoundary:t,startRecoveryScope:i}=function(){let n,r,t=p.tracker,e=p.trackedSymbols;p.trackedSymbols=void 0;let i=p.encounteredError;return p.tracker=new mj(p,{...t.inner,reportCyclicStructureError(){a(()=>t.reportCyclicStructureError())},reportInaccessibleThisError(){a(()=>t.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){a(()=>t.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(e){a(()=>t.reportLikelyUnsafeImportRequiredError(e))},reportNonSerializableProperty(e){a(()=>t.reportNonSerializableProperty(e))},trackSymbol(e,t,r){return(n=n??[]).push([e,t,r]),!1},moduleResolverHost:p.tracker.moduleResolverHost},p.tracker.moduleResolverHost),{startRecoveryScope:function(){let e=(null==n?void 0:n.length)??0,t=(null==r?void 0:r.length)??0;return()=>{f=!1,n&&(n.length=e),r&&(r.length=t)}},finalizeBoundary:function(){if(p.tracker=t,p.trackedSymbols=e,p.encounteredError=i,null!=r&&r.forEach(e=>e()),f)return!1;return null==n||n.forEach(([e,t,r])=>p.tracker.trackSymbol(e,t,r)),!0}};function a(e){f=!0,(r=r??[]).push(e)}}();var r=mT(e,m,KC);if(t())return p.approximateLength+=e.end-e.pos,r;function m(e){var t,r,n;return f?e:(t=i(),n=jC(n=e)||KF(n)||xP(n)?g(e):void 0,r=function(a){if(jF(a))return mT(a.type,m,KC);if(BF(a)||319===a.kind)return cT.createKeywordTypeNode(133);if(JF(a))return cT.createKeywordTypeNode(159);if(zF(a))return cT.createUnionTypeNode([mT(a.type,m,KC),cT.createLiteralTypeNode(cT.createNull())]);if(UF(a))return cT.createUnionTypeNode([mT(a.type,m,KC),cT.createKeywordTypeNode(157)]);if(qF(a))return mT(a.type,m);if(WF(a))return cT.createArrayTypeNode(mT(a.type,m,KC));if(HF(a))return cT.createTypeLiteralNode($4(a.jsDocPropertyTags,e=>{var t=mT(uT(e.name)?e.name:e.name.right,m,uT),r=Ks(K(p,a),t.escapedText),r=r&&e.typeExpression&&K(p,e.typeExpression.type)!==r?Y(r,p):void 0;return cT.createPropertySignature(void 0,t,e.isBracketed||e.typeExpression&&UF(e.typeExpression.type)?cT.createToken(58):void 0,r||e.typeExpression&&mT(e.typeExpression.type,m,KC)||cT.createKeywordTypeNode(133))}));if(sP(a)&&uT(a.typeName)&&""===a.typeName.escapedText)return lT(cT.createKeywordTypeNode(133),a);if((qP(a)||sP(a))&&D8(a))return cT.createTypeLiteralNode([cT.createIndexSignature(void 0,[cT.createParameterDeclaration(void 0,void 0,"x",void 0,mT(a.typeArguments[0],m,KC))],mT(a.typeArguments[1],m,KC))]);if(VF(a)){if(nw(a)){let r;return cT.createConstructorTypeNode(void 0,gT(a.typeParameters,m,KE),AT(a.parameters,(e,t)=>e.name&&uT(e.name)&&"new"===e.name.escapedText?void(r=e.type):cT.createParameterDeclaration(void 0,u(e),G(p,cT.createIdentifier(d(e,t)),e),cT.cloneNode(e.questionToken),mT(e.type,m,KC),void 0)),mT(r||a.type,m,KC)||cT.createKeywordTypeNode(133))}return cT.createFunctionTypeNode(gT(a.typeParameters,m,KE),$4(a.parameters,(e,t)=>cT.createParameterDeclaration(void 0,u(e),G(p,cT.createIdentifier(d(e,t)),e),cT.cloneNode(e.questionToken),mT(e.type,m,KC),void 0)),mT(a.type,m,KC)||cT.createKeywordTypeNode(133))}if(yP(a))return at(p,a)||(f=!0),a;if(KE(a))return cT.updateTypeParameterDeclaration(a,gT(a.modifiers,m,IC),G(p,He(cl(F(a)),p),a),mT(a.constraint,m,KC),mT(a.default,m,KC));if(bP(a))return h(a)||(f=!0,a);if(sP(a))return b(a)||(f=!0,a);if(I5(a))return e=P(a).resolvedSymbol,!N8(a)||!e||(a.isTypeOf||788968&e.flags)&&K4(a.typeArguments)>=nu(Wc(e))?cT.updateImportTypeNode(a,cT.updateLiteralTypeNode(a.argument,function(t,r){if(p.bundled||p.enclosingFile!==iT(r)){let e=r.text;var n=P(a).resolvedSymbol,i=t.isTypeOf?111551:788968,n=n&&0===xs(n,p.enclosingDeclaration,i,!1).accessibility&&Je(n,p,i,!0)[0];if(n&&L7(n)?e=Ve(n,p):(i=d4(t))&&(e=Ve(i.symbol,p)),e.includes("/node_modules/")&&(p.encounteredError=!0,p.tracker.reportLikelyUnsafeImportRequiredError)&&p.tracker.reportLikelyUnsafeImportRequiredError(e),e!==r.text)return lT(cT.createStringLiteral(e),r)}return mT(r,m,qE)}(a,a.argument.literal)),mT(a.attributes,m,pF),mT(a.qualifier,m,OC),gT(a.typeArguments,m,KC),a.isTypeOf):G(p,Y(K(p,a),p),a);if(eC(a)&&167===a.name.kind&&!yl(a.name)&&!(1&p.flags&&Uw(a)&&UN(a.name.expression)&&1&xy(a.name).flags))return;if(jC(a)&&!a.type||QE(a)&&!a.type&&!a.initializer||XE(a)&&!a.type&&!a.initializer||GE(a)&&!a.type&&!a.initializer){let e=l(a,m);return(e=e===a?G(p,cT.cloneNode(a),a):e).type=cT.createKeywordTypeNode(133),GE(a)&&(e.modifiers=void 0),e}if(_P(a))return v(a)||(f=!0,a);if(HE(a)&&UN(a.expression)){var{node:e,introducesError:t}=nt(a.expression,p);if(t){t=Y(Zg(T6(a.expression)),p);let e;if(SP(t))e=t.literal;else{var r=qk(a.expression),r="string"==typeof r.value?cT.createStringLiteral(r.value,void 0):"number"==typeof r.value?cT.createNumericLiteral(r.value,0):void 0;if(!r)return kP(t)&&Be(a.expression,p.enclosingDeclaration,p),a;e=r}return 11===e.kind&&R3(e.text,vD(ee))?cT.createIdentifier(e.text):9!==e.kind||e.text.startsWith("-")?cT.updateComputedPropertyName(a,e):e}return cT.updateComputedPropertyName(a,e)}if(oP(a)){let e;return e=uT(a.parameterName)?({node:t,introducesError:r}=nt(a.parameterName,p),f=f||r,t):cT.cloneNode(a.parameterName),cT.updateTypePredicateNode(a,cT.cloneNode(a.assertsModifier),e,mT(a.type,m,KC))}if(dP(a)||uP(a)||xP(a))return i=l(a,m),i=G(p,i===a?cT.cloneNode(a):i,a),n=$7(i),_T(i,n|(1024&p.flags&&uP(a)?0:1)),i;{var n;if(qE(a)&&268435456&p.flags&&!a.singleQuote)return(n=cT.cloneNode(a)).singleQuote=!0,n}{var i,o,s,c;if(gP(a))return i=mT(a.checkType,m,KC),c=g(a),o=mT(a.extendsType,m,KC),s=mT(a.trueType,m,KC),c(),c=mT(a.falseType,m,KC),cT.updateConditionalTypeNode(a,i,o,s,c)}if(vP(a))if(158===a.operator&&155===a.type.kind){if(!at(p,a))return f=!0,a}else if(143===a.operator)return y(a)||(f=!0,a);return l(a,m);function l(e,t){return hT(e,t,void 0,!p.enclosingFile||p.enclosingFile!==iT(e)?_:void 0)}function _(e,t,r,n,i){let a=gT(e,t,r,n,i);return!a||-1===a.pos&&-1===a.end||ZD(a=a===e?cT.createNodeArray(e,e.hasTrailingComma):a,-1,-1),a}function u(e){return e.dotDotDotToken||(e.type&&WF(e.type)?cT.createToken(26):void 0)}function d(e,t){return e.name&&uT(e.name)&&"this"===e.name.escapedText?"this":u(e)?"args":"arg"+t}}(e),null!=n&&n(),f?KC(e)&&!oP(e)?(t(),Y(K(n=p,e),n)):e:r?G(p,r,e):void 0)}function g(e){return Ae(p,e,jC(t=e)||KF(t)?au(t).parameters:void 0,jC(t=e)||KF(t)?au(t).typeParameters:gP(t)?Xp(t):[sl(F(t.typeParameter))]);var t}function n(e){var t=Tw(e);switch(t.kind){case 183:return b(t);case 186:return v(t);case 199:return h(t);case 198:if(143===t.operator)return y(t)}return mT(e,m,KC)}function h(e){var t=n(e.objectType);if(void 0!==t)return cT.updateIndexedAccessTypeNode(e,t,mT(e.indexType,m,KC))}function y(e){Y4.assertEqual(e.operator,143);var t=n(e.type);if(void 0!==t)return cT.updateTypeOperatorNode(e,t)}function v(e){var{introducesError:t,node:r}=nt(e.exprName,p);return t?(t=it(p,e.exprName,!0))?G(p,t,e.exprName):void 0:cT.updateTypeQueryNode(e,r,gT(e.typeArguments,m,KC))}function b(e){var t,r,n;if(at(p,e))return{introducesError:n,node:t}=nt(e.typeName,p),r=gT(e.typeArguments,m,KC),n?(n=it(p,e.typeName,!1,r))?G(p,n,e.typeName):void 0:(n=cT.updateTypeReferenceNode(e,t,r),G(p,n,e))}}function st(e,D){let t,E=f(cT.createPropertyDeclaration,174,!0),h=f((e,t,r,n)=>cT.createPropertySignature(e,t,r,n),173,!1),c=D.enclosingDeclaration,l=[],i=new Set,n=[],a=D;D={...a,usedSymbolNames:new Set(a.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(t=a.remappedSymbolReferences)?void 0:t.entries()),tracker:void 0};var r={...a.tracker.inner,trackSymbol:(e,t,r)=>{if(null==(n=D.remappedSymbolNames)||!n.has(sj(e)))if(0===xs(e,t,r,!1).accessibility){var n=ze(e,D,r);if(!(4&e.flags)){var n=n[0];let t=iT(a.enclosingDeclaration);X4(n.declarations,e=>iT(e)===t)&&v(n)}}else if(null!=(n=a.tracker.inner)&&n.trackSymbol)return a.tracker.inner.trackSymbol(e,t,r);return!1}};D.tracker=new mj(D,r,a.tracker.moduleResolverHost),j7(e,(e,t)=>{q(e,X3(t))});let _=!D.bundled;r=e.get("export="),r&&1hF(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&yF(e.exportClause));{var t,r;0<=e&&(t=i[e],r=AT(t.exportClause.elements,t=>{if(!t.propertyName){var e=NT(jT(i),e=>Z3(i[e],t.name));if(K4(e)&&vT(e,e=>uE(i[e]))){for(var r of e)i[r]=(r=i[r],n=void 0,n=-129&(32|ON(r)),cT.replaceModifiers(r,n));return}}var n;return t}),K4(r)?i[e]=cT.updateExportDeclaration(t,t.modifiers,t.isTypeOnly,cT.updateNamedExports(t.exportClause,r),t.moduleSpecifier,t.attributes):d3(i,e))}return i}(r=function(e){var r=NT(e,e=>hF(e)&&!e.moduleSpecifier&&!!e.exportClause&&yF(e.exportClause));1!hF(e)||!!e.moduleSpecifier||!e.exportClause),e=[...t,cT.createExportDeclaration(void 0,!1,cT.createNamedExports(FT(r,e=>s3(e.exportClause,yF).elements)),void 0)]);var t=NT(e,e=>hF(e)&&!!e.moduleSpecifier&&!!e.exportClause&&yF(e.exportClause));if(1qE(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">");if(r.length!==t.length)for(let t of r)1!t.includes(e)),cT.createExportDeclaration(void 0,!1,cT.createNamedExports(FT(t,e=>s3(e.exportClause,yF).elements)),t[0].moduleSpecifier)])}return e}(r=function(r){let n=bT(r,gF),i=ST(r,sF),a=-1!==i?r[i]:void 0;if(a&&n&&n.isExportEquals&&uT(n.expression)&&uT(a.name)&&rT(a.name)===rT(n.expression)&&a.body&&cF(a.body)){var o=NT(r,e=>!!(32&ON(e)));let t=a.name,e=a.body;if(K4(o)&&(a=cT.updateModuleDeclaration(a,a.modifiers,a.name,e=cT.updateModuleBlock(e,cT.createNodeArray([...a.body.statements,cT.createExportDeclaration(void 0,!1,cT.createNamedExports($4(FT(o,e=>{return GP(e)?NT($4(e.declarationList.declarations,tC),s):NT([tC(e)],s)}),e=>cT.createExportSpecifier(!1,void 0,e))),void 0)]))),r=[...r.slice(0,i),a,...r.slice(i+1)]),!bT(r,e=>e!==a&&Z3(e,t))){l=[];let t=!X4(e.statements,e=>TN(e,32)||gF(e)||hF(e));G4(e.statements,e=>{P(e,t?32:0)}),r=[...NT(r,e=>e!==a&&e!==n),...l]}}return r}(r))),c&&(LF(c)&&N5(c)||sF(c))&&(!X4(r,o7)||!i7(r)&&X4(r,a7))&&r.push(i9(cT)),r;function s(e){return!!e&&80===e.kind}function u(e){var t=-33&ON(e);return cT.replaceModifiers(e,t)}function d(e,t,r){t||n.push(new Map),e.forEach(e=>{o(e,!1,!!r)}),t||(n[n.length-1].forEach(e=>{o(e,!0,!!r)}),n.pop())}function o(e,t,r){fe(pe(e));var n=S(e);!i.has(sj(n))&&(i.add(sj(n)),!t||K4(e.declarations)&&X4(e.declarations,e=>!!tT(e,e=>e===c)))&&(n=Ye(D),y(e,t,r),n())}function y(x,S,k,T=x.escapedName){var C=X3(T),w="default"===T;if(!S||131072&D.flags||!Jw(C)||w){let t=w&&!!(-113&x.flags||16&x.flags&&K4(fe(pe(x))))&&!(2097152&x.flags),r=!t&&!S&&Jw(C)&&!w;var e,n,i,a,o,w=((S=t||r?!0:S)?0:32)|(w&&!t?2048:0),s=1536&x.flags&&7&x.flags&&"export="!==T,_=s&&j(pe(x),x);if((8208&x.flags||_)&&F(pe(x),x,q(x,C),w),524288&x.flags&&(e=C,u=w,c=rl(l=x),n=$4(n=le(l).typeParameters,e=>Oe(e,D)),i=null==(i=l.declarations)?void 0:i.find(iw),a=fC(i?i.comment||i.parent.comment:void 0),d=D.flags,D.flags|=8388608,o=D.enclosingDeclaration,i=(D.enclosingDeclaration=i)&&i.typeExpression&&jF(i.typeExpression)&&$(D,i.typeExpression.type,c,void 0)||Y(c,D),P(jE(cT.createTypeAliasDeclaration(void 0,q(l,e),n,i),a?[{kind:3,text:"*\n * "+a.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),u),D.flags=d,D.enclosingDeclaration=o),98311&x.flags&&"export="!==T&&!(4194304&x.flags)&&!(32&x.flags)&&!(8192&x.flags)&&!_)if(k)L(x)&&(r=!1,t=!1);else{var c=pe(x),l=q(x,C);if(c.symbol&&c.symbol!==x&&16&c.symbol.flags&&X4(c.symbol.declarations,oE)&&(null!=(e=c.symbol.members)&&e.size||null!=(n=c.symbol.exports)&&n.size))D.remappedSymbolReferences||(D.remappedSymbolReferences=new Map),D.remappedSymbolReferences.set(sj(c.symbol),x),y(c.symbol,S,k,T),D.remappedSymbolReferences.delete(sj(c.symbol));else if(16&x.flags||!j(c,x)){var u=2&x.flags?t1(x)?2:1:null!=(i=x.parent)&&i.valueDeclaration&&LF(null==(a=x.parent)?void 0:a.valueDeclaration)?2:void 0,d=!t&&4&x.flags?z(l,x):l;let e=x.declarations&&bT(x.declarations,e=>eF(e));e&&tF(e.parent)&&1===e.parent.declarations.length&&(e=e.parent.parent);var k=null==(o=x.declarations)?void 0:o.find(dT);k&&pT(k.parent)&&uT(k.parent.right)&&null!=(T=c.symbol)&&T.valueDeclaration&&LF(c.symbol.valueDeclaration)?(T=l===k.parent.right.escapedText?void 0:k.parent.right,P(cT.createExportDeclaration(void 0,!1,cT.createNamedExports([cT.createExportSpecifier(!1,T,l)])),0),D.tracker.trackSymbol(c.symbol,D.enclosingDeclaration,111551)):(P(G(D,cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(d,void 0,tt(D,void 0,c,x))],u)),e),d!==l?-33&w:w),d===l||S||(P(cT.createExportDeclaration(void 0,!1,cT.createNamedExports([cT.createExportSpecifier(!1,d,l)])),0),r=!1,t=!1))}else F(c,x,l,w)}if(384&x.flags&&(k=x,T=C,S=w,P(cT.createEnumDeclaration(cT.createModifiersFromModifierFlags(Yb(k)?4096:0),q(k,T),$4(NT(fe(pe(k)),e=>!!(8&e.flags)),e=>{var t=e.declarations&&e.declarations[0]&&OF(e.declarations[0])?G6(e.declarations[0]):void 0;return cT.createEnumMember(X3(e.escapedName),void 0===t?void 0:"string"==typeof t?cT.createStringLiteral(t):cT.createNumericLiteral(t))})),S)),32&x.flags)if(4&x.flags&&x.valueDeclaration&&pT(x.valueDeclaration.parent)&&JP(x.valueDeclaration.parent.right))O(x,q(x,C),w);else{T=x;var N=q(x,C);k=w;let e=null==(S=T.declarations)?void 0:S.find(qC),t=D.enclosingDeclaration,r=(D.enclosingDeclaration=e||t,Wc(T)),n=$4(r,e=>Oe(e,D)),i=wl(tl(T)),a=Zc(i),o=e&&Rw(e),s=o&&function(e){var t=AT(e,e=>{let t=D.enclosingDeclaration,r=(D.enclosingDeclaration=e).expression;if(UN(r)){if(uT(r)&&""===rT(r))return i(void 0);var n;if({introducesError:n,node:r}=nt(r,D),n)return i(void 0)}return i(cT.createExpressionWithTypeArguments(r,$4(e.typeArguments,e=>$(D,e,K(D,e))||Y(K(D,e),D))));function i(e){return D.enclosingDeclaration=t,e}});if(t.length===e.length)return t}(o)||AT(function(e){let t=H4;if(e.symbol.declarations)for(var r of e.symbol.declarations){r=Rw(r);if(r)for(var n of r){n=V(n);de(n)||(t===H4?t=[n]:t.push(n))}}return t}(i),J),c=pe(T),l=!(null==(S=c.symbol)||!S.valueDeclaration)&&qC(c.symbol.valueDeclaration),_=l?Qc(c):re,u=[...K4(a)?[cT.createHeritageClause(96,$4(a,e=>{var t=_,r=N;return(e=B(e,111551))||(e=z(r+"_base"),P(r=cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(e,void 0,Y(t,D))],2)),0),cT.createExpressionWithTypeArguments(cT.createIdentifier(e),void 0))}))]:[],...K4(s)?[cT.createHeritageClause(119,s)]:[]],d=function(e,t,r){if(!K4(t))return r;let n=new Map;G4(r,e=>{n.set(e.escapedName,e)});for(var i of t){var a;for(a of fe(wl(i,e.thisType))){var o=n.get(a.escapedName);o&&a.parent===o.parent&&n.delete(a.escapedName)}}return ZT(n.values())}(i,a,fe(i)),p=NT(d,e=>{e=e.valueDeclaration;return!(!e||eC(e)&&UE(e.name))}),f=X4(d,e=>{e=e.valueDeclaration;return!!e&&eC(e)&&UE(e.name)}),m=f?[cT.createPropertyDeclaration(void 0,cT.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:H4,g=FT(p,e=>E(e,!1,a[0])),h=FT(NT(fe(c),e=>!(4194304&e.flags||"prototype"===e.escapedName||I(e))),e=>E(e,!0,_)),y=!l&&!!T.valueDeclaration&&oT(T.valueDeclaration)&&!X4(ge(c,1)),v=y?[cT.createConstructorDeclaration(cT.createModifiersFromModifierFlags(2),[],void 0)]:R(1,c,_,176),b=M(i,a[0]);D.enclosingDeclaration=t,P(G(D,cT.createClassDeclaration(void 0,N,n,u,[...b,...h,...v,...g,...m]),T.declarations&&NT(T.declarations,e=>nF(e)||JP(e))[0]),k)}if(1536&x.flags&&(!s||vT(b(x),e=>!(111551&wo(To(e)))))||_){var p=x,S=C,T=w,s=(k=e3(k=b(p),e=>e.parent&&e.parent===p?"real":"merged")).get("real")||H4,k=k.get("merged")||H4;if(K4(s)&&(f=q(p,S),A(s,f,T,!!(67108880&p.flags))),K4(k)){let i=iT(D.enclosingDeclaration);var s=q(p,S),f=cT.createModuleBlock([cT.createExportDeclaration(void 0,!1,cT.createNamedExports(AT(NT(k,e=>"export="!==e.escapedName),e=>{var t=X3(e.escapedName),r=q(e,t),n=e.declarations&&io(e);if(!i||(n?i===iT(n):X4(e.declarations,e=>iT(e)===i)))return v((n=n&&So(n,!0))||e),n=n?q(n,X3(n.escapedName)):r,cT.createExportSpecifier(!1,t===n?void 0:n,t);null!=(n=null==(r=D.tracker)?void 0:r.reportNonlocalAugmentation)&&n.call(r,i,p,e)})))]);P(cT.createModuleDeclaration(void 0,cT.createIdentifier(s),f,32),0)}}if(64&x.flags&&!(32&x.flags)){_=x;T=C;S=w;let e=tl(_),t=Wc(_),r=$4(t,e=>Oe(e,D)),n=Zc(e),i=K4(n)?ve(n):void 0,a=FT(fe(e),e=>{return e=e,t=i,h(e,!1,t);var t}),o=R(0,e,i,179),s=R(1,e,i,180),c=M(e,i),l=K4(n)?[cT.createHeritageClause(96,AT(n,e=>B(e,111551)))]:void 0;P(cT.createInterfaceDeclaration(void 0,q(_,T),r,l,[...c,...s,...o,...a]),S)}if(2097152&x.flags&&O(x,q(x,C),w),4&x.flags&&"export="===x.escapedName&&L(x),8388608&x.flags&&x.declarations)for(var m of x.declarations){var g=Oo(m,m.moduleSpecifier);g&&P(cT.createExportDeclaration(void 0,m.isTypeOnly,void 0,cT.createStringLiteral(Ve(g,D))),0)}t?P(cT.createExportAssignment(void 0,!1,cT.createIdentifier(q(x,C))),0):r&&P(cT.createExportDeclaration(void 0,!1,cT.createNamedExports([cT.createExportSpecifier(!1,q(x,C),C)])),0)}else D.encounteredError=!0}function v(e){var t;X4(e.declarations,Zw)||(Y4.assertIsDefined(n[n.length-1]),z(X3(e.escapedName),e),t=!!(2097152&e.flags)&&!X4(e.declarations,e=>!!tT(e,hF)||fF(e)||_F(e)&&!bF(e.moduleReference)),n[t?0:n.length-1].set(sj(e),e))}function P(t,r){if(f9(t)){let e=0;var n=D.enclosingDeclaration&&(iw(D.enclosingDeclaration)?iT(D.enclosingDeclaration):D.enclosingDeclaration);32&r&&n&&(LF(i=n)&&(N5(i)||D5(i))||Z7(i)&&!n5(i)||sF(n))&&uE(t)&&(e|=32),!_||32&e||n&&33554432&n.flags||!(oF(t)||GP(t)||rF(t)||nF(t)||sF(t))||(e|=128),2048&r&&(nF(t)||iF(t)||rF(t))&&(e|=2048),e&&(t=cT.replaceModifiers(t,e|ON(t)))}var i;l.push(t)}function b(e){let t=ZT(Wo(e).values());var r=S(e);if(r!==e){var n,i=new Set(t);for(n of Wo(r).values())111551&wo(To(n))||i.add(n);t=ZT(i)}return NT(t,e=>I(e)&&R3(e.escapedName,99))}function F(e,t,r,n){var i;for(i of ge(e,0)){var a=Fe(i,262,D,{name:cT.createIdentifier(r)});P(G(D,a,function(e){if(e.declaration&&e.declaration.parent){if(pT(e.declaration.parent)&&5===V8(e.declaration.parent))return e.declaration.parent;if(eF(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}(i)),n)}1536&t.flags&&t.exports&&t.exports.size||A(NT(fe(e),I),r,n,!0)}function A(t,r,n,i){if(K4(t)){var a=e3(t,e=>!K4(e.declarations)||X4(e.declarations,e=>iT(e)===iT(D.enclosingDeclaration))?"local":"remote").get("local")||H4;let e=g9.createModuleDeclaration(void 0,cT.createIdentifier(r),cT.createModuleBlock([]),32);tE(e,c),e.locals=I7(t),e.symbol=t[0].parent;var r=l,t=(l=[],_),o=(_=!1,{...D,enclosingDeclaration:e}),s=D,o=(D=o,d(I7(a),i,!0),D=s,_=t,l),a=(l=r,$4(o,e=>gF(e)&&!e.isExportEquals&&uT(e.expression)?cT.createExportDeclaration(void 0,!1,cT.createNamedExports([cT.createExportSpecifier(!1,e.expression,cT.createIdentifier("default"))])):e)),i=vT(a,e=>TN(e,32))?$4(a,u):a;P(e=cT.updateModuleDeclaration(e,e.modifiers,e.name,cT.createModuleBlock(i)),n)}}function I(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&CN(e.valueDeclaration)&&qC(e.valueDeclaration.parent))}function O(t,r,n){var i=io(t);if(!i)return Y4.fail();var a=S(So(i,!0));if(a){let e=t5(a)&&yT(t.declarations,e=>{if(mF(e)||vF(e))return rT(e.propertyName||e.name);if(pT(e)||gF(e)){var t=gF(e)?e.expression:e.right;if(dT(t))return rT(t.name)}if(ao(e)){t=tC(e);if(t&&uT(t))return rT(t)}})||X3(a.escapedName);var o=q(a,e="export="===e&&g?"default":e);switch(v(a),i.kind){case 208:260===(null==(s=null==(s=i.parent)?void 0:s.parent)?void 0:s.kind)?(s=Ve(a.parent||a,D),c=i["propertyName"],P(cT.createImportDeclaration(void 0,cT.createImportClause(!1,void 0,cT.createNamedImports([cT.createImportSpecifier(!1,c&&uT(c)?cT.createIdentifier(rT(c)):void 0,cT.createIdentifier(r))])),cT.createStringLiteral(s),void 0),0)):Y4.failBadSyntaxKind((null==(c=i.parent)?void 0:c.parent)||i,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:226===(null==(c=null==(s=i.parent)?void 0:s.parent)?void 0:c.kind)&&p(X3(t.escapedName),o);break;case 260:if(dT(i.initializer)){var s=i.initializer,c=cT.createUniqueName(r),l=Ve(a.parent||a,D);P(cT.createImportEqualsDeclaration(void 0,!1,c,cT.createExternalModuleReference(cT.createStringLiteral(l))),0),P(cT.createImportEqualsDeclaration(void 0,!1,cT.createIdentifier(r),cT.createQualifiedName(c,s.name)),n);break}case 271:"export="===a.escapedName&&X4(a.declarations,e=>LF(e)&&D5(e))?L(t):(l=!(512&a.flags||eF(i)),P(cT.createImportEqualsDeclaration(void 0,!1,cT.createIdentifier(r),l?Ke(a,D,-1,!1):cT.createExternalModuleReference(cT.createStringLiteral(Ve(a,D)))),l?n:0));break;case 270:P(cT.createNamespaceExportDeclaration(rT(i.name)),0);break;case 273:var c=Ve(a.parent||a,D),s=D.bundled?cT.createStringLiteral(c):i.parent.moduleSpecifier,l=uF(i.parent)?i.parent.attributes:void 0,c=n9(i.parent);P(cT.createImportDeclaration(void 0,cT.createImportClause(c,cT.createIdentifier(r),void 0),s,l),0);break;case 274:c=Ve(a.parent||a,D),s=D.bundled?cT.createStringLiteral(c):i.parent.parent.moduleSpecifier,l=n9(i.parent.parent);P(cT.createImportDeclaration(void 0,cT.createImportClause(l,void 0,cT.createNamespaceImport(cT.createIdentifier(r))),s,i.parent.attributes),0);break;case 280:P(cT.createExportDeclaration(void 0,!1,cT.createNamespaceExport(cT.createIdentifier(r)),cT.createStringLiteral(Ve(a,D))),0);break;case 276:c=Ve(a.parent||a,D),l=D.bundled?cT.createStringLiteral(c):i.parent.parent.parent.moduleSpecifier,s=n9(i.parent.parent.parent);P(cT.createImportDeclaration(void 0,cT.createImportClause(s,void 0,cT.createNamedImports([cT.createImportSpecifier(!1,r!==e?cT.createIdentifier(e):void 0,cT.createIdentifier(r))])),l,i.parent.parent.parent.attributes),0);break;case 281:c=i.parent.parent.moduleSpecifier;c&&"default"===(null==(s=i.propertyName)?void 0:s.escapedText)&&(e="default"),p(X3(t.escapedName),c?e:o,c&&k7(c)?cT.createStringLiteral(c.text):void 0);break;case 277:L(t);break;case 226:case 211:case 212:"default"===t.escapedName||"export="===t.escapedName?L(t):p(r,o);break;default:Y4.failBadSyntaxKind(i,"Unhandled alias declaration kind in symbol serializer!")}}}function p(e,t,r){P(cT.createExportDeclaration(void 0,!1,cT.createNamedExports([cT.createExportSpecifier(!1,e!==t?t:void 0,e)]),r),0)}function L(e){var t,r,n,i,a,o,s;return!(4194304&e.flags||(n=(r="export="===(t=X3(e.escapedName)))||"default"===t,(i=(a=e.declarations&&io(e))&&So(a,!0))&&K4(i.declarations)&&X4(i.declarations,e=>iT(e)===iT(c))?(((s=(o=(a=a&&(gF(a)||pT(a)?Iw:Ow)(a))&&UN(a)?function(e){switch(e.kind){case 80:return e;case 166:for(;80!==(e=e.left).kind;);return e;case 211:do{if(U8(e.expression)&&!UE(e.name))return e.name}while(80!==(e=e.expression).kind);return e}}(a):void 0)&&Ao(o,-1,!0,!0,c))||i)&&v(s||i),s=D.tracker.disableTrackSymbol,D.tracker.disableTrackSymbol=!0,n?l.push(cT.createExportAssignment(void 0,r,Ge(i,D,-1))):o===a&&o?p(t,rT(o)):a&&JP(a)?p(t,q(i,Y3(i))):(o=z(t,e),P(cT.createImportEqualsDeclaration(void 0,!1,cT.createIdentifier(o),Ke(i,D,-1,!1)),0),p(t,o)),D.tracker.disableTrackSymbol=s,0):(a=z(t,e),j(o=Zg(pe(S(e))),e)?F(o,e,a,n?0:32):(s=267!==(null==(s=D.enclosingDeclaration)?void 0:s.kind)||98304&e.flags&&!(65536&e.flags)?2:1,P(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(a,void 0,tt(D,void 0,o,e))],s)),i&&4&i.flags&&"export="===i.escapedName?128:t===a?32:0)),n?(l.push(cT.createExportAssignment(void 0,r,cT.createIdentifier(a))),0):t===a||(p(t,a),0))))}function j(e,t){let r,n=iT(D.enclosingDeclaration);return 48&sT(e)&&!X4(null==(r=e.symbol)?void 0:r.declarations,KC)&&!K4(W_(e))&&!Os(e)&&!(!K4(NT(fe(e),I))&&!K4(ge(e,0)))&&!K4(ge(e,1))&&!Ze(t,c)&&!(e.symbol&&X4(e.symbol.declarations,e=>iT(e)!==n))&&!X4(fe(e),e=>vl(e.escapedName))&&!X4(fe(e),e=>X4(e.declarations,e=>iT(e)!==n))&&vT(fe(e),e=>!(!R3(Y3(e),U)||98304&e.flags&&Mc(e)!==Rc(e)))}function f(d,p,f){return function(e,t,r){var n=rD(e),i=!!(2&n);if(t&&2887656&e.flags)return[];if(4194304&e.flags||"constructor"===e.escapedName||r&&me(r,e.escapedName)&&zb(me(r,e.escapedName))===zb(e)&&(16777216&e.flags)==(16777216&me(r,e.escapedName).flags)&&tm(pe(e),Ks(r,e.escapedName)))return[];var a,o=-1025&n|(t?256:0),s=Qe(e,D),t=null==(r=e.declarations)?void 0:r.find(h3(QE,UC,eF,XE,pT,dT));if(98304&e.flags&&f)return r=[],65536&e.flags&&(a=e.declarations&&G4(e.declarations,e=>178===e.kind?e:PP(e)&&W8(e)?G4(e.arguments[2].properties,e=>{var t=tC(e);if(t&&uT(t)&&"set"===rT(t))return e}):void 0),Y4.assert(!!a),a=MC(a)?au(a).parameters[0]:void 0,r.push(G(D,cT.createSetAccessorDeclaration(cT.createModifiersFromModifierFlags(o),s,[cT.createParameterDeclaration(void 0,void 0,a?Me(a,je(a),D):"value",void 0,i?void 0:tt(D,void 0,Rc(e),e))],void 0),(null==(a=e.declarations)?void 0:a.find(g7))||t))),32768&e.flags&&(a=2&n,r.push(G(D,cT.createGetAccessorDeclaration(cT.createModifiersFromModifierFlags(o),s,[],a?void 0:tt(D,void 0,pe(e),e),void 0),(null==(n=e.declarations)?void 0:n.find(h7))||t))),r;if(98311&e.flags)return G(D,d(cT.createModifiersFromModifierFlags((zb(e)?8:0)|o),s,16777216&e.flags?cT.createToken(58):void 0,i?void 0:tt(D,void 0,Rc(e),e),void 0),(null==(a=e.declarations)?void 0:a.find(h3(QE,eF)))||t);if(8208&e.flags){n=ge(pe(e),0);if(2&o)return G(D,d(cT.createModifiersFromModifierFlags((zb(e)?8:0)|o),s,16777216&e.flags?cT.createToken(58):void 0,void 0,void 0),(null==(r=e.declarations)?void 0:r.find(MC))||n[0]&&n[0].declaration||e.declarations&&e.declarations[0]);var c,l=[];for(c of n){var _=Fe(c,p,D,{name:s,questionToken:16777216&e.flags?cT.createToken(58):void 0,modifiers:o?cT.createModifiersFromModifierFlags(o):void 0}),u=c.declaration&&Q8(c.declaration.parent)?c.declaration.parent:c.declaration;l.push(G(D,_,u))}return l}return Y4.fail("Unhandled class member kind! "+(e.__debugFlags||e.flags))}}function R(e,t,r,n){var i=ge(t,e);if(1===e){if(!r&&vT(i,e=>0===K4(e.parameters)))return[];if(r){var a=ge(r,1);if(!K4(a)&&vT(i,e=>0===K4(e.parameters)))return[];if(a.length===i.length){let t=!1;for(let e=0;eY(e,D)),n=Ge(e.target.symbol,D,788968)):e.symbol&&bs(e.symbol,c,t)&&(n=Ge(e.symbol,D,788968)),n)return cT.createExpressionWithTypeArguments(n,r)}function J(e){var t=B(e,788968);return t||(e.symbol?cT.createExpressionWithTypeArguments(Ge(e.symbol,D,788968),void 0):void 0)}function z(e,t){var r,n=t?sj(t):void 0;if(n&&D.remappedSymbolNames.has(n))return D.remappedSymbolNames.get(n);let i=0;for(var a=e=t?m(t,e):e;null!=(r=D.usedSymbolNames)&&r.has(e);)e=a+"_"+ ++i;return null!=(t=D.usedSymbolNames)&&t.add(e),n&&D.remappedSymbolNames.set(n,e),e}function m(e,t){var r;return"default"!==t&&"__class"!==t&&"__function"!==t||(r=D.flags,D.flags|=16777216,e=Js(e,D),D.flags=r,t=0{if(!(o&&(324===o.parent.kind||Za(o,_,s)||eo(o)||function(e,t,r){var n=1920|(oT(e)?111551:0);if(r===n){r=To(St(e,t,788968&~n,void 0,!1)),n=e.parent;if(r){if(WE(n)){Y4.assert(n.left===e,"Should only be resolving left side of qualified name as a namespace");var i=n.right.escapedText;if(me(cl(r),i))return ce(n,eT.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,X3(t),X3(i)),1}return ce(e,eT._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,X3(t)),1}}return}(o,_,c)||function(e,t){if(to(t)&&281===e.parent.kind)return ce(e,eT.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),1;return}(o,_)||function(e,t,r){if(111127&r){if(To(St(e,t,1024,void 0,!1)))return ce(e,eT.Cannot_use_namespace_0_as_a_value,X3(t)),1}else if(788544&r)if(To(St(e,t,1536,void 0,!1)))return ce(e,eT.Cannot_use_namespace_0_as_a_type,X3(t)),1;return}(o,_,c)||function(e,t,r){if(111551&r){if(to(t))return(r=e.parent.parent)&&r.parent&&EF(r)?(i=r.token,264===(r=r.parent.kind)&&96===i?ce(e,eT.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,X3(t)):263===r&&96===i?ce(e,eT.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,X3(t)):263===r&&119===i&&ce(e,eT.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,X3(t))):ce(e,eT._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,X3(t)),1;var n,r=To(St(e,t,788544,void 0,!1)),i=r&&wo(r);if(r&&void 0!==i&&!(111551&i))return n=X3(t),!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return 1}return}(t)?!function(e,t){e=tT(e.parent,e=>!HE(e)&&!XE(e)&&(uP(e)||"quit"));if(e&&1===e.members.length)return 1048576&(e=cl(t)).flags&&Xb(e,384,!0);return}(e,r)?ce(e,eT._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,n):ce(e,eT._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,n,"K"===n?"P":"K"):ce(e,eT._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,n),1}return}(o,_,c)||function(e,t,r){if(788584&r){r=To(St(e,t,111127,void 0,!1));if(r&&!(1920&r.flags))return ce(e,eT._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,X3(t)),1}return}(o,_,c)))){let e,t;var r,n;s&&(t=(i=Ya(i=s),(a=(a=X7()).get(i))&&HT(a.keys())))&&ce(o,l,Ya(s),t),!t&&Mi{var e,t,r,n=o.escapedName,i=c&&LF(c)&&N5(c);a&&(2&s||(32&s||384&s)&&111551==(111551&s))&&(2&(t=rs(o)).flags||32&t.flags||384&t.flags)&&!function(t,r){if(Y4.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var n=null==(n=t.declarations)?void 0:n.find(e=>Q7(e)||qC(e)||266===e.kind);if(void 0===n)return Y4.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&n.flags||Ga(n,r))){let e;var i=d5(tC(n));2&t.flags?e=ce(r,eT.Block_scoped_variable_0_used_before_its_declaration,i):32&t.flags?e=ce(r,eT.Class_0_used_before_its_declaration,i):(256&t.flags||(Y4.assert(!!(128&t.flags)),SD(ee)))&&(e=ce(r,eT.Enum_0_used_before_its_declaration,i)),e&&JD(e,aT(n,eT._0_is_declared_here,i))}}}(t,a),!i||111551!=(111551&s)||16777216&a.flags||K4((t=S(o)).declarations)&&vT(t.declarations,e=>lF(e)||LF(e)&&!!e.symbol.globalExports)&&Fa(!ee.allowUmdGlobalAccess,a,eT._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,X3(n)),l&&!_&&111551==(111551&s)&&(t=S(Cl(o)),e=eN(l),t===F(l)?ce(a,eT.Parameter_0_cannot_reference_itself,d5(l.name)):t.valueDeclaration&&t.valueDeclaration.pos>l.pos&&e.parent.locals&&Ka(e.parent.locals,t.escapedName,s)===t&&ce(a,eT.Parameter_0_cannot_reference_identifier_1_declared_after_it,d5(l.name),d5(a))),!(a&&111551&s&&2097152&o.flags)||111551&o.flags||XD(a)||(e=Eo(o,111551))&&(t=281===e.kind||278===e.kind||280===e.kind?eT._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:eT._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=X3(n),Qa(ce(a,t,r),e,r)),ee.isolatedModules&&o&&i&&111551==(111551&s)&&(t=Ka(pt,n,s)===o&&LF(c)&&c.locals&&Ka(c.locals,n,-111552))&&(r=null==(e=t.declarations)?void 0:e.find(e=>276===e.kind||273===e.kind||274===e.kind||271===e.kind))&&!DC(r)&&ce(r,eT.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,X3(n))})}}),kt=IE({compilerOptions:ee,requireSymbol:ht,argumentsSymbol:gt,globals:pt,getSymbolOfDeclaration:F,error:ce,getRequiresScopeChangeCache:$a,setRequiresScopeChangeCache:Xa,lookup:function(t,e,r){var n=Ka(t,e,r);if(n)return n;let i;i=t===pt?(n=AT(["string","number","boolean","object","bigint","symbol"],e=>t.has(e.charAt(0).toUpperCase()+e.slice(1))?O(524288,e):void 0),n.concat(ZT(t.values()))):ZT(t.values());return Ev(X3(e),i,r)}});let Tt={getNodeCount:()=>QT(p.getSourceFiles(),(e,t)=>e+t.nodeCount,0),getIdentifierCount:()=>QT(p.getSourceFiles(),(e,t)=>e+t.identifierCount,0),getSymbolCount:()=>QT(p.getSourceFiles(),(e,t)=>e+t.symbolCount,a),getTypeCount:()=>i,getInstantiationCount:()=>o,getRelationCacheSizes:()=>({assignable:_a.size,identity:da.size,subtype:ca.size,strictSubtype:la.size}),isUndefinedSymbol:e=>e===ft,isArgumentsSymbol:e=>e===gt,isUnknownSymbol:e=>e===j,getMergedSymbol:S,symbolIsValue:ns,getDiagnostics:u6,getGlobalDiagnostics:function(){return d6(),se.getGlobalDiagnostics()},getRecursionIdentity:rg,getUnmatchedProperties:yh,getTypeOfSymbolAtLocation:(e,t)=>{t=G3(t);if(t){if(e=rs(e),(80===t.kind||81===t.kind)&&h8(t=$N(t)?t.parent:t)&&(!yw(t)||aD(t))){var r=zg(aD(t)&&211===t.kind?lv(t,void 0,!0):Tx(t));if(rs(P(t).resolvedSymbol)===e)return r}return Dw(t)&&g7(t.parent)&&Nc(t.parent)?Pc(t.parent.symbol):(XN(t)&&aD(t.parent)?Rc:Mc)(e)}return R},getTypeOfSymbol:pe,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{e=G3(e,GE);if(void 0===e)return Y4.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.");Y4.assert(U3(e,e.parent));var t=$3(t),r=e.parent,e=e.parent.parent,r=Ka(r.locals,t,111551),e=Ka(Tl(e.symbol),t,111551);return r&&e?[r,e]:Y4.fail("There should exist two symbols, one as property declaration and one as parameter declaration")},getDeclaredTypeOfSymbol:cl,getPropertiesOfType:fe,getPropertyOfType:(e,t)=>me(e,$3(t)),getPrivateIdentifierPropertyOfType:(e,t,r)=>{r=G3(r);return r&&(t=dv($3(t),r))?mv(e,t):void 0},getTypeOfPropertyOfType:(e,t)=>Ks(e,$3(t)),getIndexInfoOfType:(e,t)=>H_(e,0===t?ae:oe),getIndexInfosOfType:W_,getIndexInfosOfIndexSymbol:Nu,getSignaturesOfType:ge,getIndexTypeOfType:(e,t)=>K_(e,0===t?ae:oe),getIndexType:e=>gp(e),getBaseTypes:Zc,getBaseTypeOfLiteralType:kg,getWidenedType:Zg,getWidenedLiteralType:Cg,getTypeFromTypeNode:e=>{e=G3(e,KC);return e?V(e):R},getParameterType:rb,getParameterIdentifierInfoAtPosition:function(e,t){if(317!==(null==(r=e.declaration)?void 0:r.kind)){var r=e.parameters.length-(pj(e)?1:0);if(taS(e),getReturnTypeOfSignature:he,isNullableType:rv,getNullableType:Rg,getNonNullableType:Bg,getNonOptionalType:zg,getTypeArguments:Ju,typeToTypeNode:N.typeToTypeNode,indexInfoToIndexSignatureDeclaration:N.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:N.signatureToSignatureDeclaration,symbolToEntityName:N.symbolToEntityName,symbolToExpression:N.symbolToExpression,symbolToNode:N.symbolToNode,symbolToTypeParameterDeclarations:N.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:N.symbolToParameterDeclaration,typeParameterToDeclaration:N.typeParameterToDeclaration,getSymbolsInScope:(t,n)=>{t=G3(t);if(!t)return[];{var i=t,a=n;if(67108864&i.flags)return[];let r=I7(),e=!1;for(;i;){switch(_7(i)&&i.locals&&!w5(i)&&s(i.locals,a),i.kind){case 307:if(!b9(i))break;case 267:!function(e,t){t&&e.forEach(e=>{F7(e,281)||F7(e,280)||"default"===e.escapedName||o(e,t)})}(F(i).exports,2623475&a);break;case 266:s(F(i).exports,8&a);break;case 231:i.name&&o(i.symbol,a);case 263:case 264:e||s(Tl(F(i)),788968&a);break;case 218:i.name&&o(i.symbol,a)}W5(i)&&o(gt,a),e=CN(i),i=i.parent}return s(pt,a),r.delete("this"),Y_(r);function o(e,t){nD(e)&t&&(t=e.escapedName,r.has(t)||r.set(t,e))}function s(e,t){t&&e.forEach(e=>{o(e,t)})}}},getSymbolAtLocation:e=>{e=G3(e);return e?x6(e,!0):void 0},getIndexInfosAtLocation:e=>{e=G3(e);if(e)if(uT(e)&&dT(e.parent)&&e.parent.name===e){let t=dp(e);e=Tx(e.parent.expression);return FT(1048576&e.flags?e.types:[e],e=>NT(W_(e),e=>U_(t,e.keyType)))}},getShorthandAssignmentValueSymbol:e=>{e=G3(e);if(e)if(e&&304===e.kind)return Ao(e.name,2208703)},getExportSpecifierLocalTargetSymbol:e=>{var e=G3(e,vF);return e?vF(e=e)?e.parent.parent.moduleSpecifier?ho(e.parent.parent,e):Ao(e.propertyName||e.name,2998271):Ao(e,2998271):void 0},getExportSymbolOfSymbol(e){return S(e.exportSymbol||e)},getTypeAtLocation:e=>{e=G3(e);return e?S6(e):R},getTypeOfAssignmentPattern:e=>{e=G3(e,$C);return e&&k6(e)||R},getPropertySymbolOfDestructuringAssignment:e=>{var t,e=G3(e,uT);return e?(t=k6(s3((e=e).parent.parent,$C)))&&me(t,e.escapedText):void 0},signatureToString:(e,t,r,n)=>Es(e,G3(t),r,n),typeToString:(e,t,r)=>ue(e,G3(t),r),symbolToString:(e,t,r,n)=>_e(e,G3(t),r,n),typePredicateToString:(e,t,r)=>Ls(e,G3(t),r),writeSignature:(e,t,r,n,i)=>Es(e,G3(t),r,n,i),writeType:(e,t,r,n)=>ue(e,G3(t),r,n),writeSymbol:(e,t,r,n,i)=>_e(e,G3(t),r,n,i),writeTypePredicate:(e,t,r,n)=>Ls(e,G3(t),r,n),getAugmentedPropertiesOfType:N6,getRootSymbols:function e(t){let r=E6(t);return r?FT(r,e):[t]},getSymbolOfExpando:F2,getContextualType:(e,t)=>{let r=G3(e,nT);if(r)return 4&t?wt(r,()=>iy(r,t)):iy(r,t)},getContextualTypeForObjectLiteralElement:e=>{e=G3(e,HC);return e?$1(e,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{e=G3(e,ZC);return e&&U1(e,t)},getContextualTypeForJsxAttribute:e=>{e=G3(e,p7);return e&&Y1(e,void 0)},isContextSensitive:Qf,getTypeOfPropertyOfContextualType:K1,getFullyQualifiedName:Fo,getResolvedSignature:(e,t,r)=>Nt(e,t,r,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){let r=new Set,n=[];wt(t,()=>Nt(e,n,void 0,0));for(var i of n)r.add(i);n.length=0,Ct(t,()=>Nt(e,n,void 0,0));for(var a of n)r.add(a);return ZT(r)},getResolvedSignatureForSignatureHelp:(e,t,r)=>Ct(e,()=>Nt(e,t,r,16)),getExpandedParameters:Al,hasEffectiveRestParameter:cb,containsArgumentsReference:su,getConstantValue:e=>{e=G3(e,K6);return e?G6(e):void 0},isValidPropertyAccess:(e,t)=>{e=G3(e,XC);return!!e&&function(e,t){switch(e.kind){case 211:return Iv(e,108===e.expression.kind,t,Zg(A(e.expression)));case 166:return Iv(e,!1,t,Zg(A(e.left)));case 205:return Iv(e,!1,t,V(e))}}(e,$3(t))},isValidPropertyAccessForCompletions:(e,t,r)=>{e=G3(e,dT);return!!e&&Av(e,t,r)},getSignatureFromDeclaration:e=>{e=G3(e,jC);return e?au(e):void 0},isImplementationOfOverload:e=>{e=G3(e,jC);return e?J6(e):void 0},getImmediateAliasedSymbol:Ty,getAliasedSymbol:Co,getEmitResolver:function(e,t,r){r||u6(e,t);return w},requiresAddingImplicitUndefined:z6,getExportsOfModule:qo,getExportsAndPropertiesOfModule:function(e){var t=qo(e),r=Mo(e);r!==e&&Vo(e=pe(r))&&BT(t,fe(e));return t},forEachExportAndPropertyOfModule:function(e,r){var t=Ho(e),t=(t.forEach((e,t)=>{_s(t)||r(e,t)}),Mo(e));t!==e&&Vo(e=pe(t))&&!function(e,r){3670016&(e=E_(e)).flags&&o_(e).members.forEach((e,t)=>{ds(e,t)&&r(e,t)})}(e,(e,t)=>{r(e,t)})},getSymbolWalker:hL(function(e){return mu(e)||re},uu,he,Zc,o_,pe,Bh,u_,VN,Ju),getAmbientModules:function(){Pt||(Pt=[],pt.forEach((e,t)=>{HL.test(t)&&Pt.push(e)}));return Pt},getJsxIntrinsicTagNamesAt:function(e){e=Iy(WL.IntrinsicElements,e);return e?fe(e):H4},isOptionalParameter:e=>{e=G3(e,GE);return!!e&&tu(e)},tryGetMemberInModuleExports:(e,t)=>Uo($3(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>{var e=$3(e),r=Uo(e,t);return r||((r=Mo(t))!==t&&Vo(t=pe(r))?me(t,e):void 0)},tryFindAmbientModule:e=>Z_(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>Z_(e,!1),getApparentType:D_,getUnionType:ye,isTypeAssignableTo:xe,createAnonymousType:fs,createSignature:Dl,createSymbol:O,createIndexInfo:Cu,getAnyType:()=>re,getStringType:()=>ae,getStringLiteralType:pf,getNumberType:()=>oe,getNumberLiteralType:ff,getBigIntType:()=>yn,createPromiseType:Nb,createArrayType:Fd,getElementTypeOfArrayType:_g,getBooleanType:()=>kn,getFalseType:e=>e?vn:bn,getTrueType:e=>e?xn:Sn,getVoidType:()=>Cn,getUndefinedType:()=>ie,getNullType:()=>gn,getESSymbolType:()=>Tn,getNeverType:()=>M,getOptionalType:()=>mn,getPromiseType:()=>bd(!1),getPromiseLikeType:()=>xd(!1),getAsyncIterableType:()=>{var e=kd(!1);if(e!==Kn)return e},isSymbolAccessible:xs,isArrayType:og,isTupleType:Se,isArrayLikeType:ug,isEmptyAnonymousObjectType:wm,isTypeInvalidDueToUnionDiscriminant:function(r,e){e=e.properties;return e.some(e=>{var t=e.name&&(DF(e.name)?pf(xE(e.name)):dp(e.name)),t=t&&TE(t)?CE(t):void 0,t=void 0===t?void 0:Ks(r,t);return!!t&&Sg(t)&&!xe(S6(e),t)})},getExactOptionalProperties:function(e){return fe(e).filter(e=>Wg(pe(e)))},getAllPossiblePropertiesOfTypes:function(e){var t=ye(e);if(!(1048576&t.flags))return N6(t);var r=I7();for(var n of e)for(var{escapedName:i}of N6(n)){var a;r.has(i)||(a=P_(t,i))&&r.set(i,a)}return ZT(r.values())},getSuggestedSymbolForNonexistentProperty:Tv,getSuggestedSymbolForNonexistentJSXAttribute:Cv,getSuggestedSymbolForNonexistentSymbol:(e,t,r)=>Nv(e,$3(t),r),getSuggestedSymbolForNonexistentModule:Dv,getSuggestedSymbolForNonexistentClassMember:kv,getBaseConstraintOfType:y_,getDefaultFromTypeParameter:e=>e&&262144&e.flags?k_(e):void 0,resolveName(e,t,r,n){return St(t,$3(e),r,void 0,!1,n)},getJsxNamespace:e=>X3(Ca(e)),getJsxFragmentFactory:e=>{e=_4(e);return e&&X3(VN(e).escapedText)},getAccessibleSymbolChain:hs,getTypePredicateOfSignature:uu,resolveExternalModuleName:e=>{e=G3(e,nT);return e&&Oo(e,e,!0)},resolveExternalModuleSymbol:Mo,tryGetThisTypeAt:(e,t,r)=>{e=G3(e);return e&&F1(e,t,r)},getTypeArgumentConstraint:e=>{e=G3(e,KC);return e&&function(e){var t=o3(e.parent,S7);if(t){var r=zx(t);if(r)return(e=u_(r[t.typeArguments.indexOf(e)]))&&be(e,Cf(r,Bx(t,r)))}}(e)},getSuggestionDiagnostics:(e,t)=>{e=G3(e,LF)||Y4.fail("Could not determine parsed source file.");if(VD(e,ee,p))return H4;let n;try{return x=t,p6(e),Y4.assert(!!(1&P(e).flags)),n=BT(n,oa.getDiagnostics(e.fileName)),vS(_6(e),(e,t,r)=>{z7(e)||l6(t,!!(33554432&e.flags))||(n=n||[]).push({...r,category:2})}),n||H4}finally{x=void 0}},runWithCancellationToken:(e,t)=>{try{return x=e,t(Tt)}finally{x=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Wc,isDeclarationVisible:zs,isPropertyAccessible:Ov,getTypeOnlyAliasDeclaration:Eo,getMemberOverrideModifierStatus:function(e,t,r){if(!t.name)return 0;var n=F(e),i=cl(n),a=wl(i),n=pe(n),o=Lw(e),o=o&&Zc(i),o=null!=o&&o.length?wl(WT(o),i.thisType):void 0,s=Qc(i),c=t.parent?NN(t):TN(t,16);return Ik(e,n,s,o,i,a,c,DN(t),CN(t),!1,Y3(r))},isTypeParameterPossiblyReferenced:Bf,typeHasCallOrConstructSignatures:D6,getSymbolFlags:wo};function Ct(e,t){if(e=tT(e,YC)){for(var r=[],n=[];e;){var i,a=P(e);r.push([a,a.resolvedSignature]),a.resolvedSignature=void 0,oE(e)&&(i=(a=le(F(e))).type,n.push([a,i]),a.type=void 0),e=tT(e.parent,YC)}var o,s,c,l,_=t();for([o,s]of r)o.resolvedSignature=s;for([c,l]of n)c.type=l;return _}return t()}function wt(t,e){var r=tT(t,ZC);if(r){let e=t;for(;P(e).skipDirectInference=!0,(e=e.parent)&&e!==r;);}q=!0;e=Ct(t,e);if(q=!1,r){let e=t;for(;P(e).skipDirectInference=void 0,(e=e.parent)&&e!==r;);}return e}function Nt(e,t,r,n){e=G3(e,ZC),ct=r,r=e?D2(e,t,n):void 0;return ct=void 0,r}var Dt,Et,Pt,Ft,At,It,Ot,Lt,jt,Rt,Mt,Bt,Jt,zt,qt,Ut,Vt,Wt,Ht,Kt,Gt,$t,e,Xt,Qt,Yt,Zt,er,tr,rr,nr,ir,ar,or,sr,cr,lr,_r,ur,dr,pr,fr,mr,gr,hr,yr,vr,br,xr,Sr,kr,Tr,Cr,wr,Nr,Dr,Er,Pr,Fr,Ar,Ir,Or,Lr,jr,Rr=new Map,Mr=new Map,Br=new Map,Jr=new Map,zr=new Map,qr=new Map,Ur=new Map,Vr=new Map,Wr=new Map,Hr=new Map,Kr=new Map,Gr=new Map,$r=new Map,Xr=new Map,Qr=new Map,Yr=[],Zr=new Map,en=new Set,j=O(4,"unknown"),tn=O(0,"__resolving__"),rn=new Map,nn=new Map,an=new Set,re=ss(1,"any"),on=ss(1,"any",262144,"auto"),sn=ss(1,"any",void 0,"wildcard"),cn=ss(1,"any",void 0,"blocked string"),R=ss(1,"error"),ln=ss(1,"unresolved"),_n=ss(1,"any",65536,"non-inferrable"),un=ss(1,"intrinsic"),ne=ss(2,"unknown"),ie=ss(32768,"undefined"),dn=te?ie:ss(32768,"undefined",65536,"widening"),pn=ss(32768,"undefined",void 0,"missing"),fn=Ce?pn:ie,mn=ss(32768,"undefined",void 0,"optional"),gn=ss(65536,"null"),hn=te?gn:ss(65536,"null",65536,"widening"),ae=ss(4,"string"),oe=ss(8,"number"),yn=ss(64,"bigint"),vn=ss(512,"false",void 0,"fresh"),bn=ss(512,"false"),xn=ss(512,"true",void 0,"fresh"),Sn=ss(512,"true"),kn=(xn.regularType=Sn,xn.freshType=xn,(Sn.regularType=Sn).freshType=xn,vn.regularType=bn,vn.freshType=vn,(bn.regularType=bn).freshType=vn,ye([bn,Sn])),Tn=ss(4096,"symbol"),Cn=ss(16384,"void"),M=ss(131072,"never"),wn=ss(131072,"never",262144,"silent"),Nn=ss(131072,"never",void 0,"implicit"),Dn=ss(131072,"never",void 0,"unreachable"),En=ss(67108864,"object"),Pn=ye([ae,oe]),Fn=ye([ae,oe,Tn]),An=ye([oe,yn]),In=ye([ae,oe,kn,yn,gn,ie]),On=yp(["",""],[oe]),Ln=Df(e=>{return 262144&e.flags?!(t=e).constraint&&!Eu(t)||t.constraint===$n?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=ls(t.symbol),t.restrictiveInstantiation.constraint=$n,t.restrictiveInstantiation):e;var t},()=>"(restrictive mapper)"),jn=Df(e=>262144&e.flags?sn:e,()=>"(permissive mapper)"),Rn=ss(131072,"never",void 0,"unique literal"),Mn=Df(e=>262144&e.flags?Rn:e,()=>"(unique literal mapper)"),Bn=Df(e=>(!Dt||e!==Yn&&e!==Zn&&e!==ei||Dt(!0),e),()=>"(unmeasurable reporter)"),Jn=Df(e=>(!Dt||e!==Yn&&e!==Zn&&e!==ei||Dt(!1),e),()=>"(unreliable reporter)"),zn=fs(void 0,y,H4,H4,H4),qn=fs(void 0,y,H4,H4,H4),Un=(qn.objectFlags|=2048,O(2048,"__type")),Vn=(Un.members=I7(),fs(Un,y,H4,H4,H4)),Wn=fs(void 0,y,H4,H4,H4),Hn=te?ye([ie,gn,Wn]):ne,Kn=fs(void 0,y,H4,H4,H4),Gn=(Kn.instantiations=new Map,fs(void 0,y,H4,H4,H4)),$n=(Gn.objectFlags|=262144,fs(void 0,y,H4,H4,H4)),Xn=fs(void 0,y,H4,H4,H4),Qn=fs(void 0,y,H4,H4,H4),Yn=ls(),Zn=ls(),ei=(Zn.constraint=Yn,ls()),ti=ls(),ri=ls(),ni=(ri.constraint=ti,ru(1,"<>",0,re)),ii=Dl(void 0,void 0,void 0,H4,re,void 0,0,0),ai=Dl(void 0,void 0,void 0,H4,R,void 0,0,0),oi=Dl(void 0,void 0,void 0,H4,re,void 0,0,0),si=Dl(void 0,void 0,void 0,H4,wn,void 0,0,0),ci=Cu(oe,ae,!0),li=new Map,_i={get yieldType(){return Y4.fail("Not supported")},get returnType(){return Y4.fail("Not supported")},get nextType(){return Y4.fail("Not supported")}},ui=YS(re,re,re),di=YS(re,re,ne),pi=YS(M,re,ie),fi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return(cr=cr||pd("AsyncIterator",3,e))||Kn},getGlobalIterableType:kd,getGlobalIterableIteratorType:function(e){return(lr=lr||pd("AsyncIterableIterator",1,e))||Kn},getGlobalGeneratorType:function(e){return(_r=_r||pd("AsyncGenerator",3,e))||Kn},resolveIterationType:(e,t)=>aS(e,t,eT.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:eT.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:eT.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:eT.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},mi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return(rr=rr||pd("Iterator",3,e))||Kn},getGlobalIterableType:Td,getGlobalIterableIteratorType:function(e){return(nr=nr||pd("IterableIterator",1,e))||Kn},getGlobalGeneratorType:function(e){return(ir=ir||pd("Generator",3,e))||Kn},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:eT.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:eT.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:eT.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},gi=new Map,hi=new Map,yi=0,vi=0,bi=0,xi=!1,Si=0,ki=[],Ti=[],Ci=[],wi=0,Ni=[],Di=[],Ei=0,Pi=pf(""),Fi=ff(0),Ai=mf({negative:!1,base10Value:"0"}),Ii=[],Oi=[],Li=[],ji=0,Ri=!1,Mi=0,Bi=10,Ji=[],zi=[],qi=[],Ui=[],Vi=[],Wi=[],Hi=[],Ki=[],Gi=[],$i=[],Xi=[],Qi=[],Yi=[],Zi=[],ea=[],ta=[],ra=[],na=[],ia=[],aa=0,se=iN(),oa=iN(),sa=ye(ZT(ZL.keys(),pf)),ca=new Map,la=new Map,_a=new Map,ua=new Map,da=new Map,pa=new Map,fa=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===ee.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];{for(var ma of p.getSourceFiles())uL(ma,ee);Et=new Map;let e;for(var ga of p.getSourceFiles())if(!ga.redirectInfo){if(!N5(ga)){var ha=ga.locals.get("globalThis");if(null!=ha&&ha.declarations)for(var ya of ha.declarations)se.add(aT(ya,eT.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Wa(pt,ga.locals)}ga.jsGlobalAugmentations&&Wa(pt,ga.jsGlobalAugmentations),ga.patternAmbientModules&&ga.patternAmbientModules.length&&(Ft=LT(Ft,ga.patternAmbientModules)),ga.moduleAugmentations.length&&(e=e||[]).push(ga.moduleAugmentations),ga.symbol&&ga.symbol.globalExports&&ga.symbol.globalExports.forEach((e,t)=>{pt.has(t)||pt.set(t,e)})}if(e)for(var va of e)for(var ba of va)n5(ba.parent)&&Ha(ba);{let t=ft.escapedName,e=pt.get(t);e?G4(e.declarations,e=>{_E(e)||se.add(aT(e,eT.Declaration_name_conflicts_with_built_in_global_identifier_0,X3(t)))}):pt.set(t,ft)}if(le(ft).type=dn,le(gt).type=pd("IArguments",0,!0),le(j).type=R,le(mt).type=cs(16,mt),Rt=pd("Array",1,!0),It=pd("Object",0,!0),Ot=pd("Function",0,!0),Lt=f&&pd("CallableFunction",0,!0)||Ot,jt=f&&pd("NewableFunction",0,!0)||Ot,Bt=pd("String",0,!0),Jt=pd("Number",0,!0),zt=pd("Boolean",0,!0),qt=pd("RegExp",0,!0),Vt=Fd(re),(Wt=Fd(on))===zn&&(Wt=fs(void 0,y,H4,H4,H4)),Mt=wd("ReadonlyArray",1)||Rt,Ht=Mt?Dd(Mt,[re]):Vt,Ut=wd("ThisType",1),e)for(var xa of e)for(var Sa of xa)n5(Sa.parent)||Ha(Sa);Et.forEach(({firstFile:e,secondFile:t,conflictingSymbols:r})=>{r.size<8?r.forEach(({isBlockScoped:e,firstFileLocations:t,secondFileLocations:r},n)=>{var i,a,o=e?eT.Cannot_redeclare_block_scoped_variable_0:eT.Duplicate_identifier_0;for(i of t)Va(i,o,n,r);for(a of r)Va(a,o,n,t)}):(r=ZT(r.keys()).join(", "),se.add(JD(aT(e,eT.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),aT(t,eT.Conflicts_are_in_this_file))),se.add(JD(aT(t,eT.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),aT(e,eT.Conflicts_are_in_this_file))))}),Et=void 0}return Tt;function ka(e){return e?Qr.get(e):void 0}function Ta(e,t){return e&&Qr.set(e,t),t}function Ca(e){if(e){var t=iT(e);if(t)if(TF(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var r=t.pragmas.get("jsxfrag");if(r){r=i3(r)?r[0]:r;if(t.localJsxFragmentFactory=v9(r.arguments.factory,U),mT(t.localJsxFragmentFactory,Na,OC),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=VN(t.localJsxFragmentFactory).escapedText}r=_4(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=VN(r).escapedText}else{e=wa(t);if(e)return t.localJsxNamespace=e}}return Lr||(Lr="React",ee.jsxFactory?(mT(jr=v9(ee.jsxFactory,U),Na),jr&&(Lr=VN(jr).escapedText)):ee.reactNamespace&&(Lr=$3(ee.reactNamespace))),jr=jr||cT.createQualifiedName(cT.createIdentifier(X3(Lr)),"createElement"),Lr}function wa(e){if(e.localJsxNamespace)return e.localJsxNamespace;var t=e.pragmas.get("jsx");if(t){t=i3(t)?t[0]:t;if(e.localJsxFactory=v9(t.arguments.factory,U),mT(e.localJsxFactory,Na,OC),e.localJsxFactory)return e.localJsxNamespace=VN(e.localJsxFactory).escapedText}}function Na(e){return ZD(e,-1,-1),hT(e,Na,void 0)}function Da(e,t,r,...n){t=ce(t,r,...n);t.skippedOn=e}function Ea(e,t,...r){return e?aT(e,t,...r):mD(t,...r)}function ce(e,t,...r){e=Ea(e,t,...r);return se.add(e),e}function Pa(e,t){e?se.add(t):oa.add({...t,category:2})}function Fa(e,t,r,...n){var i;if(t.pos<0||t.end<0)return e?(i=iT(t),void Pa(e,"message"in r?pD(i,0,0,r,...n):b5(i,r))):void 0;Pa(e,"message"in r?aT(t,r,...n):y5(iT(t),t,r))}function Aa(e,t,r,...n){r=ce(e,r,...n);return t&&JD(r,aT(e,eT.Did_you_forget_to_use_await)),r}function Ia(e,t){e=Array.isArray(e)?G4(e,sC):sC(e);return e&&JD(t,aT(e,eT.The_declaration_was_marked_as_deprecated_here)),oa.add(t),t}function Oa(e){var t=Xo(e);return t&&1({firstFile:e,secondFile:t,conflictingSymbols:new Map})),s=IT(i.conflictingSymbols,_,()=>({isBlockScoped:a,firstFileLocations:[],secondFileLocations:[]}));c||u(s.firstFileLocations,n),l||u(s.secondFileLocations,r)}else c||Ua(n,e,_,r),l||Ua(r,e,_,n)}function u(e,t){if(t.declarations)for(var r of t.declarations)JT(e,r)}}function Ua(e,t,r,n){G4(e.declarations,e=>{Va(e,t,r,n.declarations)})}function Va(e,t,n,r){var i,a,o=(R8(e,!1)?B8:tC)(e)||e,s=(e=t,t=[n],i=(i=o)?aT(i,e,...t):mD(e,...t),(e=se.lookup(i))||(se.add(i),i));for(a of r||H4){var c=(R8(a,!1)?B8:tC)(a)||a;if(c!==o){s.relatedInformation=s.relatedInformation||[];let t=aT(c,eT._0_was_also_declared_here,n),r=aT(c,eT.and_here);5<=K4(s.relatedInformation)||X4(s.relatedInformation,e=>0===yD(e,r)||0===yD(e,t))||JD(s,K4(s.relatedInformation)?r:t)}}}function Wa(n,e,i=!1){e.forEach((e,t)=>{var r=n.get(t);n.set(t,r?qa(r,e,i):S(e))})}function Ha(e){var r=e.parent;if((null==(n=r.symbol.declarations)?void 0:n[0])!==r)Y4.assert(1t===e.symbol)){var n=qa(r.symbol,t,!0);(At=At||new Map).set(e.text,n)}else{if(null!=(n=t.exports)&&n.get("__export")&&null!=(n=r.symbol.exports)&&n.size){var i,a,o=kl(t,"resolvedExports");for([i,a]of ZT(r.symbol.exports.entries()))o.has(i)&&!t.exports.has(i)&&qa(o.get(i),a)}qa(t,r.symbol)}else ce(e,eT.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}}function le(e){return 33554432&e.flags?e.links:(e=sj(e),zi[e]??(zi[e]=new ij))}function P(e){e=oj(e);return qi[e]||(qi[e]=new aj)}function Ka(e,t,r){if(r){e=S(e.get(t));if(e){if(e.flags&r)return e;if(2097152&e.flags)if(wo(e)&r)return e}}}function Ga(r,e){var t=iT(r),n=iT(e);let i=_5(r);if(t!==n)return!!(v&&(t.externalModuleIndicator||n.externalModuleIndicator)||!ee.outFile||mN(e)||33554432&r.flags)||!!c(e,r)||(s=p.getSourceFiles()).indexOf(t)<=s.indexOf(n);if(16777216&e.flags||mN(e)||Jh(e))return!0;if(r.pos<=e.pos&&(!QE(r)||!c8(e.parent)||r.initializer||r.exclamationToken)){if(208===r.kind)return(t=Bw(e,208))?tT(t,wP)!==tT(r,wP)||r.pose===r?"quit":HE(e)?e.parent.parent===r:!b&&$E(e)&&(e.parent===r||ZE(e.parent)&&e.parent.parent===r||hC(e.parent)&&e.parent.parent===r||QE(e.parent)&&e.parent.parent===r||GE(e.parent)&&e.parent.parent.parent===r));return t?!(b||!$E(t)||!tT(e,e=>e===t?"quit":jC(e)&&!o8(e))):!0}return QE(r)?!l(r,e,!1):!U3(r,r.parent)||!(d&&Q5(r)===Q5(e)&&c(e,r))}return!!(281===e.parent.kind||277===e.parent.kind&&e.parent.isExportEquals)||!(277!==e.kind||!e.isExportEquals)||!(!c(e,r)||d&&Q5(r)&&(QE(r)||U3(r,r.parent))&&l(r,e,!0));function c(r,n){return tT(r,e=>{if(e===i)return"quit";if(jC(e))return!0;if(eP(e))return n.pos=n&&a.pos<=i){var o=cT.createPropertyAccessExpression(cT.createThis(),e),a=(tE(o.expression,o),tE(o,a),o.flowNode=a.returnFlowNode,G0(o,t,Mg(t)));if(!Nm(a))return 1}return}(t,pe(F(n)),NT(n.parent.members,eP),n.parent.pos,e.pos))return!0}}else if(!(172===n.kind&&!CN(n))||Q5(r)!==Q5(n))return!0;return!1})}function l(t,e,r){return!(e.end>t.end)&&void 0===tT(e,e=>{if(e===t)return"quit";switch(e.kind){case 219:return!0;case 172:return!r||!(QE(t)&&e.parent===t.parent||U3(t,t.parent)&&e.parent===t.parent.parent)||"quit";case 241:switch(e.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})}}function $a(e){return P(e).declarationRequiresScopeChange}function Xa(e,t){P(e).declarationRequiresScopeChange=t}function Qa(e,t,r){t&&JD(e,aT(t,281===t.kind||278===t.kind||280===t.kind?eT._0_was_exported_here:eT._0_was_imported_here,r))}function Ya(e){return(a3(e)?X3:d5)(e)}function Za(t,r,n){if(uT(t)&&t.escapedText===r&&!f6(t)&&!mN(t)){var i=t8(t,!1,!1);let e=i;for(;e;){if(qC(e.parent)){var a=F(e.parent);if(!a)break;if(me(pe(a),r))return ce(t,eT.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Ya(n),_e(a)),1;if(e===i&&!CN(e))if(me(cl(a).thisType,r))return ce(t,eT.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Ya(n)),1}e=e.parent}}}function eo(e){var t=function e(t){switch(t.kind){case 80:case 211:return t.parent?e(t.parent):void 0;case 233:if(UN(t.expression))return t.expression;default:return}}(e);return t&&Ao(t,64,!0)&&(ce(e,eT.Cannot_extend_an_interface_0_Did_you_mean_implements,K7(t)),1)}function to(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function ro(e,t,r){return!!t&&!!tT(e,e=>e===t||!!(e===r||jC(e)&&(!o8(e)||3&zw(e)))&&"quit")}function no(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 io(e){return e.declarations&&xT(e.declarations,ao)}function ao(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&&Aw(e)||pT(e)&&2===V8(e)&&Aw(e)||lD(e)&&pT(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&oo(e.parent.right)||304===e.kind||303===e.kind&&oo(e.initializer)||260===e.kind&&P8(e)||208===e.kind&&P8(e.parent.parent)}function oo(e){return Fw(e)||OP(e)&&E2(e)}function so(e,t){var r,n,i,a=vo(e);return a?(r=_D(a.expression).arguments[0],uT(a.name)?To(me(lu(r),a.name.escapedText)):void 0):eF(e)||283===e.moduleReference.kind?(No(e,r=Oo(e,k8(e)||S8(e)),a=Mo(r),!1),a):(r=Po(e.moduleReference,t),No(a=e,void 0,t=r,!1)&&!a.isTypeOnly&&(t=Eo(F(a)),e=281===t.kind||278===t.kind,n=e?eT.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:eT.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,e=e?eT._0_was_exported_here:eT._0_was_imported_here,i=278===t.kind?"*":X3(t.name.escapedText),JD(ce(a.moduleReference,n),aT(t,e,i))),r)}function co(e,t,r,n){var i=e.exports.get("export="),i=i?me(pe(i),t,!0):e.exports.get(t),e=To(i,n);return No(r,i,e,!1),e}function lo(e){return gF(e)&&!e.isExportEquals||TN(e,2048)||vF(e)||fF(e)}function _o(e){return k7(e)?p.getModeForUsageLocation(iT(e),e):void 0}function uo(e,t){return 99===e&&1===t}function po(e){return 99===_o(e)&&u3(e.text,".json")}function fo(e,t,r,n){var n=e&&_o(n);if(e&&void 0!==n&&100<=v&&v<=199){var i=uo(n,e.impliedNodeFormat);if(99===n||i)return i}return!!g&&(!e||e.isDeclarationFile?!((n=co(t,"default",void 0,!0))&&X4(n.declarations,lo)||co(t,$3("__esModule"),void 0,r)):C8(e)?"object"!=typeof e.externalModuleIndicator&&!co(t,$3("__esModule"),void 0,r):zo(t))}function mo(e,t,r){let n,i;i=t5(e)?e:co(e,"default",t,r);var a=null==(n=e.declarations)?void 0:n.find(LF),o=go(t);if(o){var s=po(o),a=fo(a,e,r,o);if(i||a||s){if(a||s)return o=Mo(e,r)||To(e,r),No(t,e,o,!1),o}else zo(e)&&!g?(a=5<=v?"allowSyntheticDefaultImports":"esModuleInterop",s=e.exports.get("export=").valueDeclaration,r=ce(t.name,eT.Module_0_can_only_be_default_imported_using_the_1_flag,_e(e),a),s&&JD(r,aT(s,eT.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,a))):dF(t)?(o=t,null!=(s=(r=e).exports)&&s.has(o.symbol.escapedName)?ce(o.name,eT.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,_e(r),_e(o.symbol)):(s=ce(o.name,eT.Module_0_has_no_default_export,_e(r)),(r=null==(o=r.exports)?void 0:o.get("__export"))&&(r=null==(o=r.declarations)?void 0:o.find(e=>{return!!(hF(e)&&e.moduleSpecifier&&null!=(e=null==(e=Oo(e,e.moduleSpecifier))?void 0:e.exports)&&e.has("default"))}))&&JD(s,aT(r,eT.export_Asterisk_does_not_re_export_a_default)))):yo(e,e,t,NC(t)&&t.propertyName||t.name);No(t,i,void 0,!1)}return i}function go(e){switch(e.kind){case 273:return e.parent.moduleSpecifier;case 271:return bF(e.moduleReference)?e.moduleReference.expression:void 0;case 274:return e.parent.parent.moduleSpecifier;case 276:return e.parent.parent.parent.moduleSpecifier;case 281:return e.parent.parent.moduleSpecifier;default:return Y4.assertNever(e)}}function ho(r,n,i=!1){var a=k8(r)||r.moduleSpecifier,o=Oo(r,a),s=!dT(n)&&n.propertyName||n.name;if(uT(s)){var c=Bo(o,a,!1,"default"===s.escapedText&&g);if(c&&s.escapedText){if(t5(o))return o;let e,t=(e=o&&o.exports&&o.exports.get("export=")?me(pe(c),s.escapedText,!0):function(e,t){if(3&e.flags){e=e.valueDeclaration.type;if(e)return To(me(V(e),t))}}(c,s.escapedText),e=To(e,i),function(e,t,r,n){if(1536&e.flags)return No(r,r=Wo(e).get(t.escapedText),r=To(r,n),!1,null==(n=le(e).typeOnlyExportStarMap)?void 0:n.get(t.escapedText),t.escapedText),r}(c,s,n,i));a=(t=void 0===t&&"default"===s.escapedText&&(n=null==(n=o.declarations)?void 0:n.find(LF),po(a)||fo(n,o,i,a))?Mo(o,i)||To(o,i):t)&&e&&t!==e?(n=e,a=t,n===j&&a===j?j:790504&n.flags?n:(i=O(n.flags|a.flags,n.escapedName),Y4.assert(n.declarations||a.declarations),i.declarations=RT(LT(n.declarations,a.declarations),c3),i.parent=n.parent||a.parent,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),a.members&&(i.members=new Map(a.members)),n.exports&&(i.exports=new Map(n.exports)),i)):t||e;return a||yo(o,c,r,s),a}}}function yo(r,n,i,a){var o=Fo(r,i),s=d5(a),n=Dv(a,n);if(void 0!==n){var c=_e(n),l=ce(a,eT._0_has_no_exported_member_named_1_Did_you_mean_2,o,s,c);n.valueDeclaration&&JD(l,aT(n.valueDeclaration,eT._0_is_declared_here,c))}else if(null!=(l=r.exports)&&l.has("default"))ce(a,eT.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,s);else{n=i;c=a;var _=s;l=r;i=o;let t=null==(a=null==(a=o3(l.valueDeclaration,_7))?void 0:a.locals)?void 0:a.get(c.escapedText),e=l.exports;t?(a=null==e?void 0:e.get("export="))?ts(a,t)?function(e,t,r,n){{var i;5<=v?(i=kD(ee)?eT._0_can_only_be_imported_by_using_a_default_import:eT._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,ce(t,i,r)):oT(e)?(i=kD(ee)?eT._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:eT._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,ce(t,i,r)):(e=kD(ee)?eT._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:eT._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,ce(t,e,r,r,n))}}(n,c,_,i):ce(c,eT.Module_0_has_no_exported_member_1,i,_):(l=e?bT(Y_(e),e=>!!ts(e,t)):void 0,a=l?ce(c,eT.Module_0_declares_1_locally_but_it_is_exported_as_2,i,_,_e(l)):ce(c,eT.Module_0_declares_1_locally_but_it_is_not_exported,i,_),t.declarations&&JD(a,...$4(t.declarations,(e,t)=>aT(e,0===t?eT._0_is_declared_here:eT.and_here,_)))):ce(c,eT.Module_0_has_no_exported_member_1,i,_)}}function vo(e){if(eF(e)&&e.initializer&&dT(e.initializer))return e.initializer}function bo(e,t,r){if("default"===rT(e.propertyName||e.name)){var n=go(e),n=n&&Oo(e,n);if(n)return mo(n,e,!!r)}n=e.parent.parent.moduleSpecifier?ho(e.parent.parent,e,r):Ao(e.propertyName||e.name,t,!1,r);return No(e,void 0,n,!1),n}function xo(e,t){return JP(e)?lx(e).symbol:OC(e)||UN(e)?Ao(e,901119,!0,t)||(lx(e),P(e).resolvedSymbol):void 0}function So(e,t=!1){switch(e.kind){case 271:case 260:return so(e,t);case 273:var r=e,n=t,i=Oo(r,r.parent.moduleSpecifier);return i?mo(i,r,n):void 0;case 274:return i=t,n=(r=e).parent.parent.moduleSpecifier,d=Oo(r,n),n=Bo(d,n,i,!1),No(r,d,n,!1),n;case 280:return d=t,u=(o=(_=e).parent.moduleSpecifier)&&Oo(_,o),o=o&&Bo(u,o,d,!1),No(_,u,o,!1),o;case 276:case 208:_=e,u=t;if(mF(_)&&"default"===rT(_.propertyName||_.name)){var a=go(_),a=a&&Oo(_,a);if(a)return mo(a,_,u)}var o=vo(a=wP(_)?eN(_):_.parent.parent.parent),a=ho(a,o||_,u),s=_.propertyName||_.name;return o&&a&&uT(s)?To(me(pe(a),s.escapedText),u):(No(_,void 0,a,!1),a);case 281:return bo(e,901119,t);case 277:case 226:return s=t,s=xo(gF(a=e)?a.expression:a.right,s),No(a,void 0,s,!1),s;case 270:var c=e,l=t;return l7(c.parent)?(No(c,void 0,c=Mo(c.parent.symbol,l),!1),c):void 0;case 304:return Ao(e.name,901119,!0,t);case 303:return xo(e.initializer,t);case 212:case 211:l=e,c=t;return pT(l.parent)&&l.parent.left===l&&64===l.parent.operatorToken.kind?xo(l.parent.right,c):void 0;default:return Y4.fail()}var _,u,o,d}function ko(e,t=901119){return e&&(2097152==(e.flags&(2097152|t))||2097152&e.flags&&67108864&e.flags)}function To(e,t){return!t&&ko(e)?Co(e):e}function Co(e){Y4.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=le(e);if(t.aliasTarget)t.aliasTarget===tn&&(t.aliasTarget=j);else{t.aliasTarget=tn;var r=io(e);if(!r)return Y4.fail();var n=So(r);t.aliasTarget===tn?t.aliasTarget=n||j:ce(r,eT.Circular_definition_of_import_alias_0,_e(e))}return t.aliasTarget}function wo(e,t,r){var t=t&&Eo(e),n=t&&hF(t),i=t&&(n?Oo(t.moduleSpecifier,t.moduleSpecifier,!0):Co(t.symbol)),a=n&&i?Ho(i):void 0;let o=r?0:e.flags,s;for(;2097152&e.flags;){var c=rs(Co(e));if(!n&&c===i||(null==a?void 0:a.get(c.escapedName))===c)break;if(c===j)return-1;if(c===e||null!=s&&s.has(c))break;2097152&c.flags&&(s?s.add(c):s=new Set([e,c])),o|=c.flags,e=c}return o}function No(e,t,r,n,i,a){var o;if(e&&!dT(e))return o=F(e),EC(e)?(le(o).typeOnlyDeclaration=e,1):i?((e=le(o)).typeOnlyDeclaration=i,o.escapedName!==a&&(e.typeOnlyExportStarName=a),1):Do(i=le(o),t,n)||Do(i,r,n)}function Do(e,t,r){return t&&(void 0===e.typeOnlyDeclaration||r&&!1===e.typeOnlyDeclaration)&&(t=(r=(null==(r=t.exports)?void 0:r.get("export="))??t).declarations&&bT(r.declarations,EC),e.typeOnlyDeclaration=t??le(r).typeOnlyDeclaration??!1),!!e.typeOnlyDeclaration}function Eo(e,t){var r,n,i;if(2097152&e.flags)return void 0===(n=le(e)).typeOnlyDeclaration&&(n.typeOnlyDeclaration=!1,i=To(e),No(null==(r=e.declarations)?void 0:r[0],io(e)&&Ty(e),i,!0)),void 0===t?n.typeOnlyDeclaration||void 0:n.typeOnlyDeclaration&&wo(278===n.typeOnlyDeclaration.kind?To(Ho(n.typeOnlyDeclaration.symbol.parent).get(n.typeOnlyExportStarName||e.escapedName)):Co(n.typeOnlyDeclaration.symbol))&t?n.typeOnlyDeclaration:void 0}function Po(e,t){return 80===(e=80===e.kind&&$N(e)?e.parent:e).kind||166===e.parent.kind?Ao(e,1920,!1,t):(Y4.assert(271===e.parent.kind),Ao(e,901119,!1,t))}function Fo(e,t){return e.parent?Fo(e.parent,t)+"."+_e(e):_e(e,t,void 0,36)}function Ao(r,n,i,e,a){if(!W7(r)){var o=1920|(oT(r)?111551&n:0);let t;if(80===r.kind){var s=n===o||rN(r)?eT.Cannot_find_namespace_0:Mh(VN(r)),c=oT(r)&&!rN(r)?function(e,t){if(rd(e.parent)){var r=function(e){var t=tT(e,e=>m7(e)||16777216&e.flags?iw(e):"quit");if(!t){t=fw(e);if(t&&$P(t)&&Q8(t.expression)){var r=F(t.expression.left);if(r)return Io(r)}if(t&&OP(t)&&Q8(t.parent)&&$P(t.parent.parent)){r=F(t.parent.left);if(r)return Io(r)}if(t&&(H5(t)||FF(t))&&pT(t.parent.parent)&&6===V8(t.parent.parent)){t=F(t.parent.parent.left);if(t)return Io(t)}t=pw(e);if(t&&jC(t))return(e=F(t))&&e.valueDeclaration}}(e.parent);if(r)return St(r,e,t,void 0,!0)}}(r,n):void 0;if(!(t=S(St(a||r,r,n,i||c?void 0:s,!0,!1))))return S(c)}else if(166===r.kind||211===r.kind){var s=166===r.kind?r.left:r.expression,c=166===r.kind?r.right:r.name;let e=Ao(s,o,i,!1,a);if(!e||W7(c))return;if(e===j)return e;if(e.valueDeclaration&&oT(e.valueDeclaration)&&100!==xD(ee)&&eF(e.valueDeclaration)&&e.valueDeclaration.initializer&&B2(e.valueDeclaration.initializer)&&(o=Oo(s=e.valueDeclaration.initializer.arguments[0],s))&&(a=Mo(o))&&(e=a),!(t=!(t=S(Ka(Wo(e),c.escapedText,n)))&&2097152&e.flags?S(Ka(Wo(Co(e)),c.escapedText,n)):t)){if(!i){s=Fo(e),o=d5(c),a=Dv(c,e);if(a)return void ce(c,eT._0_has_no_exported_member_named_1_Did_you_mean_2,s,o,_e(a));i=WE(r)&&function(e){for(;WE(e.parent);)e=e.parent;return e}(r);if(It&&788968&n&&i&&!jP(i.parent)&&function(e){let t=VN(e),r=St(t,t,111551,void 0,!0);if(r){for(;WE(t.parent);){var n=pe(r);if(!(r=me(n,t.parent.right.escapedText)))return;t=t.parent}return r}}(i))return void ce(i,eT._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,g5(i));if(1920&n&&WE(r.parent)){a=S(Ka(Wo(e),c.escapedText,788968));if(a)return void ce(r.parent.right,eT.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,_e(a),X3(r.parent.right.escapedText))}ce(c,eT.Namespace_0_has_no_exported_member_1,s,o)}return}}else Y4.assertNever(r,"Unknown entity name kind.");return!rN(r)&&OC(r)&&(2097152&t.flags||277===r.parent.kind)&&No(Pw(r),t,void 0,!0),t.flags&n||e?t:Co(t)}}function Io(e){e=e.parent.valueDeclaration;if(e)return(I8(e)?j8(e):x7(e)?L8(e):void 0)||e}function Oo(e,t,r){var n=1===xD(ee)?eT.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:eT.Cannot_find_module_0_or_its_corresponding_type_declarations;return Lo(e,t,r?void 0:n)}function Lo(e,t,r,n=!1){return k7(t)?jo(e,t.text,r,t,n):void 0}function jo(t,n,e,r,i=!1){f3(n,"@types/")&&ce(r,eT.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,m3(n,"@types/"),n);var a=Z_(n,!0);if(a)return a;var a=iT(t),o=k7(t)?t:(null==(o=sF(t)?t:t.parent&&sF(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:o.name)||(null==(o=I5(t)?t:void 0)?void 0:o.argument.literal)||(oT(t)&&n9(t)?t.moduleSpecifier:void 0)||(eF(t)&&t.initializer&&E8(t.initializer,!0)?t.initializer.arguments[0]:void 0)||(null==(o=tT(t,A5))?void 0:o.arguments[0])||(null==(o=tT(t,uF))?void 0:o.moduleSpecifier)||(null==(o=tT(t,x8))?void 0:o.moduleReference.expression)||(null==(o=tT(t,hF))?void 0:o.moduleSpecifier);let s=o&&k7(o)?p.getModeForUsageLocation(a,o):a.impliedNodeFormat;var o=xD(ee),c=null==(c=p.getResolvedModule(a,n,s))?void 0:c.resolvedModule,l=c&&WJ(ee,c,a),_=c&&(!l||l===eT.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&p.getSourceFile(c.resolvedFileName);if(_){if(l&&ce(r,l,n,c.resolvedFileName),c.resolvedUsingTsExtension&&x9(n)?((u=(null==(u=tT(t,uF))?void 0:u.importClause)||tT(t,h3(_F,hF)))&&!u.isTypeOnly||tT(t,A5))&&ce(r,eT.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){var t=jD(n,e);{var r;if(ED(v)||99===s)return r=x9(n)&&eL(ee),t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(Y4.checkDefined(eD(n)))):!c.resolvedUsingTsExtension||eL(ee,a.fileName)||null!=(u=(null==(u=tT(t,uF))?void 0:u.importClause)||tT(t,h3(_F,hF)))&&u.isTypeOnly||tT(t,kP)||(u=Y4.checkDefined(eD(n)),ce(r,eT.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,u)),_.symbol){if(c.isExternalLibraryImport&&!RD(c.extension)&&Ro(!1,r,a,s,c,n),3===o||99===o){var u=1===a.impliedNodeFormat&&!tT(t,A5)||!!tT(t,_F),d=tT(t,e=>kP(e)||hF(e)||uF(e));if(u&&99===_.impliedNodeFormat&&!NE(d))if(tT(t,_F))ce(r,eT.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;var u=MD(a.fileName);".ts"!==u&&".js"!==u&&".tsx"!==u&&".jsx"!==u||(d=a.packageJsonScope,t=".ts"===u?".mts":".js"===u?".mjs":void 0,e=d&&!d.contents.packageJsonContent.type?t?gD(void 0,eT.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,t,E3(d.packageDirectory,"package.json")):gD(void 0,eT.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,E3(d.packageDirectory,"package.json")):t?gD(void 0,eT.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,t):gD(void 0,eT.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)),se.add(y5(iT(r),r,gD(e,eT.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,n)))}}return S(_.symbol)}e&&ce(r,eT.File_0_is_not_a_module,_.fileName)}else{if(Ft){u=p3(Ft,e=>e.pattern,n);if(u)return S(At&&At.get(n)||u.symbol)}if(c&&!RD(c.extension)&&void 0===l||l===eT.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)i?ce(r,eT.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,c.resolvedFileName):Ro(Te&&!!e,r,a,s,c,n);else if(e){if(c){var d=p.getProjectReferenceRedirect(c.resolvedFileName);if(d)return void ce(r,eT.Output_file_0_has_not_been_built_from_source_file_1,d,c.resolvedFileName)}if(l)ce(r,l,n,c.resolvedFileName);else{t=T3(n)&&!C3(n),_=3===o||99===o;if(!CD(ee)&&w3(n,".json")&&1!==o&&PD(ee))ce(r,eT.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===s&&_&&t){let t=P3(n,D3(a.path));i=null==(u=fa.find(([e])=>p.fileExists(t+e)))?void 0:u[1];i?ce(r,eT.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+i):ce(r,eT.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!=(d=p.getResolvedModule(a,n,s))&&d.alternateResult?Fa(!0,r,gD(J7(a,p,n,s,n),e,n)):ce(r,e,n)}}}}function Ro(e,t,r,n,{packageId:i,resolvedFileName:a},o){let s;Fa(e,t,gD(s=!B3(o)&&i?J7(r,p,o,n,i.name):s,eT.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,o,a))}function Mo(e,t){if(null!=e&&e.exports)return t=function(e,t){if(!e||e===j||e===t||1===t.exports.size||2097152&e.flags)return e;var r=le(e);if(r.cjsExportMerged)return r.cjsExportMerged;let n=33554432&e.flags?e:za(e);n.flags=512|n.flags,void 0===n.exports&&(n.exports=I7());t.exports.forEach((e,t)=>{"export="!==t&&n.exports.set(t,n.exports.has(t)?qa(n.exports.get(t),e):e)}),n===e&&(le(n).resolvedExports=void 0,le(n).resolvedMembers=void 0);return le(n).cjsExportMerged=n,r.cjsExportMerged=n}(S(To(e.exports.get("export="),t)),S(e)),S(t)||e}function Bo(t,r,n,i){var a=Mo(t,n);if(!n&&a){if(!(i||1539&a.flags||F7(a,307)))return ce(r,eT.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,5<=v?"allowSyntheticDefaultImports":"esModuleInterop"),a;n=r.parent;if(uF(n)&&tw(n)||A5(n)){var i=A5(n)?n.arguments[0]:n.moduleSpecifier,r=pe(a),o=R2(r,a,t,i);if(o)return Jo(a,o,n);o=null==(o=null==t?void 0:t.declarations)?void 0:o.find(LF),o=o&&uo(_o(i),o.impliedNodeFormat);if(kD(ee)||o){let e=B_(r,0);if((e=e&&e.length?e:B_(r,1))&&e.length||me(r,"default",!0)||o)return Jo(a,3670016&r.flags?M2(r,a,t,i):j2(a,a.parent),n)}}}return a}function Jo(e,t,r){var n=O(e.flags,e.escapedName),r=(n.declarations=e.declarations?e.declarations.slice():[],n.parent=e.parent,n.links.target=e,n.links.originatingImport=r,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(n.constEnumOnlyModule=!0),e.members&&(n.members=new Map(e.members)),e.exports&&(n.exports=new Map(e.exports)),o_(t));return n.links.type=fs(n,r.members,H4,H4,r.indexInfos),n}function zo(e){return void 0!==e.exports.get("export=")}function qo(e){return Y_(Ho(e))}function Uo(e,t){t=Ho(t);if(t)return t.get(e)}function Vo(e){return!(402784252&e.flags||1&sT(e)||og(e)||Se(e))}function Wo(e){return 6256&e.flags?kl(e,"resolvedExports"):1536&e.flags?Ho(e):e.exports||y}function Ho(e){var t,r=le(e);return r.resolvedExports||({exports:e,typeOnlyExportStarMap:t}=Go(e),r.resolvedExports=e,r.typeOnlyExportStarMap=t),r.resolvedExports}function Ko(n,e,i,a){e&&e.forEach((e,t)=>{var r;"default"!==t&&((r=n.get(t))?i&&a&&r&&To(r)!==To(e)&&((r=i.get(t)).exportsWithDuplicate?r.exportsWithDuplicate.push(a):r.exportsWithDuplicate=[a]):(n.set(t,e),i&&a&&i.set(t,{specifierText:K7(a.moduleSpecifier)})))})}function Go(e){let n=[],c,l=new Set;e=function i(e,r,a){!a&&null!=e&&e.exports&&e.exports.forEach((e,t)=>l.add(t));if(!(e&&e.exports&&JT(n,e)))return;let o=new Map(e.exports);let t=e.exports.get("__export");if(t){let r=I7(),n=new Map;if(t.declarations)for(var s of t.declarations){let e=Oo(s,s.moduleSpecifier),t=i(e,s,a||s.isTypeOnly);Ko(r,t,n,s)}n.forEach(({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!o.has(t))for(var r of e)se.add(aT(r,eT.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,X3(t)))}),Ko(o,r)}null!=r&&r.isTypeOnly&&(c=c??new Map,o.forEach((e,t)=>c.set(t,r)));return o}(e=Mo(e))||y;return c&&l.forEach(e=>c.delete(e)),{exports:e,typeOnlyExportStarMap:c}}function S(e){let t;return e&&e.mergeId&&(t=Ji[e.mergeId])?t:e}function F(e){return S(e.symbol&&Cl(e.symbol))}function $o(e){return l7(e)?F(e):void 0}function Xo(e){return S(e.parent&&Cl(e.parent))}function Qo(e){var t;return(219===(null==(t=e.valueDeclaration)?void 0:t.kind)||218===(null==(t=e.valueDeclaration)?void 0:t.kind))&&$o(e.valueDeclaration.parent)||e}function Yo(a,o,s){let r=Xo(a);if(r&&!(262144&a.flags))return _(r);var n,i=AT(a.declarations,e=>{if(!Z7(e)&&e.parent){if(Cs(e.parent))return F(e.parent);if(cF(e.parent)&&e.parent.parent&&Mo(F(e.parent.parent))===a)return F(e.parent.parent)}if(JP(e)&&pT(e.parent)&&64===e.parent.operatorToken.kind&&lD(e.parent.left)&&UN(e.parent.left.expression))return U8(e.parent.left)||z8(e.parent.left.expression)?F(iT(e)):(lx(e.parent.left.expression),P(e.parent.left.expression).resolvedSymbol)});if(K4(i)){let e=[],t=[];for(n of AT(i,e=>es(e,a)?e:void 0)){var[c,...l]=_(n);e=Q4(e,c),t=BT(t,l)}return LT(e,t);function _(t){var e,r=AT(t.declarations,u),n=o&&function(e,t){var r,n,i=iT(t),a=oj(i),o=le(e);let s;if(o.extendedContainersByFile&&(s=o.extendedContainersByFile.get(a)))return s;if(i&&i.imports){for(var c of i.imports)rN(c)||(c=Oo(t,c,!0))&&es(c,e)&&(s=Q4(s,c));if(K4(s))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(a,s),s}if(o.extendedContainers)return o.extendedContainers;for(r of p.getSourceFiles())b9(r)&&es(n=F(r),e)&&(s=Q4(s,n));return o.extendedContainers=s||H4}(a,o),i=function(e,t){e=!!K4(e.declarations)&&WT(e.declarations);if(111551&t&&e&&e.parent&&eF(e.parent)&&(DP(e)&&e===e.parent.initializer||uP(e)&&e===e.parent.type))return F(e.parent)}(t,s);return o&&t.flags&gs(s)&&hs(t,o,1920,!1)?Q4(LT(LT([t],r),n),i):BT(Q4((e=!(t.flags&gs(s))&&788968&t.flags&&524288&cl(t).flags&&111551===s?ms(o,e=>j7(e,e=>{if(e.flags&gs(s)&&pe(e)===cl(t))return e})):void 0)?[e,...r,t]:[...r,t],i),n)}function u(e){return r&&Zo(e,r)}}}function Zo(e,t){var e=ks(e),r=e&&e.exports&&e.exports.get("export=");return r&&ts(r,t)?e:void 0}function es(e,t){var r;return e===Xo(t)?t:(r=e.exports&&e.exports.get("export="))&&ts(r,t)?e:(e=(r=Wo(e)).get(t.escapedName))&&ts(e,t)?e:j7(r,e=>{if(ts(e,t))return e})}function ts(e,t){if(S(To(S(e)))===S(To(S(t))))return e}function rs(e){return S(e&&0!=(1048576&e.flags)&&e.exportSymbol||e)}function ns(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&wo(e,!t))}function is(e){e=new r(Tt,e);return i++,e.id=i,null!=Z4&&Z4.recordType(e),e}function as(e,t){e=is(e);return e.symbol=t,e}function os(e){return new r(Tt,e)}function ss(e,t,r=0,n){var i=t,a=n,o=i+","+(a??""),i=(an.has(o)&&Y4.fail(`Duplicate intrinsic type name ${i}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),an.add(o),is(e));return i.intrinsicName=t,i.debugIntrinsicName=n,i.objectFlags=52953088|r,i}function cs(e,t){t=as(524288,t);return t.objectFlags=e,t.members=void 0,t.properties=void 0,t.callSignatures=void 0,t.constructSignatures=void 0,t.indexInfos=void 0,t}function ls(e){return as(262144,e)}function _s(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 r;return e.forEach((e,t)=>{ds(e,t)&&(r=r||[]).push(e)}),r||H4}function ds(e,t){return!_s(t)&&ns(e)}function ps(e,t,r,n,i){return e.members=t,e.properties=H4,e.callSignatures=r,e.constructSignatures=n,e.indexInfos=i,t!==y&&(e.properties=us(t)),e}function fs(e,t,r,n,i){return ps(cs(16,e),t,r,n,i)}function ms(t,n){let i;for(let e=t;e;e=e.parent){if(_7(e)&&e.locals&&!w5(e)&&(i=n(e.locals,void 0,!0,e)))return i;switch(e.kind){case 307:if(!N5(e))break;case 267:var a=F(e);if(i=n((null==a?void 0:a.exports)||y,void 0,!0,e))return i;break;case 263:case 231:case 264:let r;if((F(e).members||y).forEach((e,t)=>{788968&e.flags&&(r=r||I7()).set(t,e)}),r&&(i=n(r,void 0,!1,e)))return i}}return n(pt,void 0,!0)}function gs(e){return 111551===e?111551:1920}function hs(i,a,o,s,r=new Map){if(i&&!function(e){if(e.declarations&&e.declarations.length){for(var t of e.declarations)switch(t.kind){case 172:case 174:case 177:case 178:continue;default:return}return 1}return}(i)){var e=le(i),e=e.accessibleChainCache||(e.accessibleChainCache=new Map),t=ms(a,(e,t,r,n)=>n),t=`${s?0:1}|${t&&oj(t)}|`+o;if(e.has(t))return e.get(t);var c=sj(i);let n=r.get(c);n||r.set(c,n=[]);c=ms(a,l);return e.set(t,c),c;function l(e,t,r){if(JT(n,e))return e=function(e,r,n){if(u(e.get(i.escapedName),void 0,r))return[i];var t=j7(e,e=>{if(2097152&e.flags&&"export="!==e.escapedName&&"default"!==e.escapedName&&!(sD(e)&&a&&b9(iT(a)))&&(!s||X4(e.declarations,x8))&&(!n||!X4(e.declarations,b8))&&(r||!F7(e,281))){var t=d(e,Co(e),r);if(t)return t}if(e.escapedName===i.escapedName&&e.exportSymbol&&u(S(e.exportSymbol),void 0,r))return[i]});return t||(e===pt?d(mt,mt,r):void 0)}(e,t,r),n.pop(),e}function _(e,t){return!ys(e,a,t)||!!hs(e.parent,a,gs(t),s,r)}function u(e,t,r){return(i===(t||e)||S(i)===S(t||e))&&!X4(e.declarations,Cs)&&(r||_(S(e),o))}function d(e,t,r){return u(e,t,r)?[e]:(t=(r=Wo(t))&&l(r,!0))&&_(e,gs(o))?[e].concat(t):void 0}}}function ys(r,e,n){let i=!1;return ms(e,e=>{var t;return!!(e=S(e.get(r.escapedName)))&&(e===r||(e=(t=2097152&e.flags&&!F7(e,281))?Co(e):e,!!((t?wo(e):e.flags)&n)&&(i=!0)))}),i}function vs(e,t){return 0===Ss(e,t,111551,!1,!0).accessibility}function bs(e,t,r){return 0===Ss(e,t,r,!1,!1).accessibility}function xs(e,t,r,n){return Ss(e,t,r,n,!0)}function Ss(e,t,r,n,i){if(e&&t){n=function r(n,i,a,o,s,c){if(K4(n)){let e,t=!1;for(var l of n){var _=hs(l,i,o,!1);if(_&&(e=l,_=ws(_[0],s)))return _;if(c&&X4(l.declarations,Cs)){if(s){t=!0;continue}return{accessibility:0}}if(_=r(Yo(l,i,o),i,a,a===l?gs(o):o,s,c))return _}return t?{accessibility:0}:e?{accessibility:1,errorSymbolName:_e(a,i,o),errorModuleName:e!==a?_e(e,i,1920):void 0}:void 0}}([e],t,e,r,n,i);if(n)return n;i=G4(e.declarations,ks);if(i)if(i!==ks(t))return{accessibility:2,errorSymbolName:_e(e,t,r),errorModuleName:_e(i),errorNode:oT(t)?t:void 0};return{accessibility:1,errorSymbolName:_e(e,t,r)}}return{accessibility:0}}function ks(e){e=tT(e,Ts);return e&&F(e)}function Ts(e){return Z7(e)||307===e.kind&&N5(e)}function Cs(e){return e5(e)||307===e.kind&&N5(e)}function ws(r,n){let i;if(vT(NT(r.declarations,e=>80!==e.kind),function(e){if(zs(e))return 1;{var t=no(e);if(t&&!TN(t,32)&&zs(t.parent))return a(e,t);if(eF(e)&&GP(e.parent.parent)&&!TN(e.parent.parent,32)&&zs(e.parent.parent.parent))return a(e,e.parent.parent);if(s5(e)&&!TN(e,32)&&zs(e.parent))return a(e,e);if(wP(e)){if(2097152&r.flags&&oT(e)&&null!=(t=e.parent)&&t.parent&&eF(e.parent.parent)&&null!=(t=e.parent.parent.parent)&&t.parent&&GP(e.parent.parent.parent.parent)&&!TN(e.parent.parent.parent.parent,32)&&e.parent.parent.parent.parent.parent&&zs(e.parent.parent.parent.parent.parent))return a(e,e.parent.parent.parent.parent);if(2&r.flags)return TN(t=tT(e,GP),32)?1:zs(t.parent)&&a(e,t)}}}))return{accessibility:0,aliasesToMakeVisible:i};function a(e,t){return n&&(P(e).isVisible=!0,i=zT(i,t)),!0}}function Ns(e){let t;return t=186===e.parent.kind||233===e.parent.kind&&!O5(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}function Ds(e,t,r=!0){var n=Ns(e),e=VN(e),t=St(t,e.escapedText,n,void 0,!1);return t&&262144&t.flags&&788968&n||!t&&fN(e)&&0===xs(F(t8(e,!1,!1)),e,n,!1).accessibility?{accessibility:0}:t?ws(t,r)||{accessibility:1,errorSymbolName:K7(e),errorNode:e}:{accessibility:3,errorSymbolName:K7(e),errorNode:e}}function _e(i,a,o,e=4,t){let s=70221824,c=(2&e&&(s|=128),1&e&&(s|=512),8&e&&(s|=16384),32&e&&(s|=134217728),16&e&&(s|=1073741824),4&e?N.symbolToNode:N.symbolToEntityName);return t?r(t).getText():B7(r);function r(e){var t=c(i,o,a,s),r=(307===(null==a?void 0:a.kind)?bB:vB)(),n=a&&iT(a);return r.writeNode(4,t,n,e),e}}function Es(a,o,s=0,c,e){return e?t(e).getText():B7(t);function t(e){let t;t=262144&s?1===c?185:184:1===c?180:179;var r=N.signatureToSignatureDeclaration(a,t,o,70222336|Is(s)),n=xB(),i=o&&iT(o);return n.writeNode(4,r,i,lN(e)),e}}function ue(e,t,r=1064960,n=cN("")){var i=ee.noErrorTruncation||1&r,r=N.typeToTypeNode(e,t,70221824|Is(r)|(i?1:0));return void 0===r?Y4.fail("should always get typenode"):(e=(e!==ln?vB:yB)(),t=t&&iT(t),e.writeNode(4,r,t,n),e=n.getText(),(r=i?2*P7:2*E7)&&e&&e.length>=r?e.substr(0,r-"...".length)+"...":e)}function Ps(e,t){let r=As(e.symbol)?ue(e,e.symbol.valueDeclaration):ue(e),n=As(t.symbol)?ue(t,t.symbol.valueDeclaration):ue(t);return r===n&&(r=Fs(e),n=Fs(t)),[r,n]}function Fs(e){return ue(e,void 0,64)}function As(e){return e&&e.valueDeclaration&&nT(e.valueDeclaration)&&!Qf(e.valueDeclaration)}function Is(e=0){return 848330095&e}function Os(e){return e.symbol&&32&e.symbol.flags&&(e===tl(e.symbol)||524288&e.flags&&16777216&sT(e))}function Ls(i,a,o=16384,e){return e?t(e).getText():B7(t);function t(e){var t=70222336|Is(o),t=N.typePredicateToTypePredicateNode(i,a,t),r=vB(),n=a&&iT(a);return r.writeNode(4,t,n,e),e}}function js(e){return 2===e?"private":4===e?"protected":"public"}function Rs(e){return e&&e.parent&&268===e.parent.kind&&i5(e.parent.parent)}function Ms(e){return 307===e.kind||Z7(e)}function Bs(e,t){var r,e=le(e).nameType;if(e)return 384&e.flags?R3(r=""+e.value,vD(ee))||sE(r)?sE(r)&&f3(r,"-")?`[${r}]`:r:`"${aN(r,34)}"`:8192&e.flags?`[${Js(e.symbol,t)}]`:void 0}function Js(t,r){if(null!=(n=null==r?void 0:r.remappedSymbolReferences)&&n.has(sj(t))&&(t=r.remappedSymbolReferences.get(sj(t))),r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&tT(t.declarations[0],Ms)!==tT(r.enclosingDeclaration,Ms)))return"default";if(t.declarations&&t.declarations.length){let e=yT(t.declarations,e=>tC(e)?e:void 0);var n=e&&tC(e);if(e&&n){if(PP(e)&&W8(e))return Y3(t);if(HE(n)&&!(4096&tD(t))){var i=le(t).nameType;if(i&&384&i.flags){i=Bs(t,r);if(void 0!==i)return i}}return d5(n)}if((e=e||t.declarations[0]).parent&&260===e.parent.kind)return d5(e.parent.name);switch(e.kind){case 231:case 218:case 219:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),231===e.kind?"(Anonymous class)":"(Anonymous function)"}}i=Bs(t,r);return void 0!==i?i:Y3(t)}function zs(t){var e;return!!t&&(void 0===(e=P(t)).isVisible&&(e.isVisible=!!function(){switch(t.kind){case 338:case 346:case 340:return t.parent&&t.parent.parent&&t.parent.parent.parent&&LF(t.parent.parent.parent);case 208:return zs(t.parent.parent);case 260:if(GC(t.name)&&!t.name.elements.length)return;case 267:case 263:case 264:case 265:case 262:case 266:case 271:var e;return i5(t)?1:(e=Hs(t),(32&U4(t)||271!==t.kind&&307!==e.kind&&33554432&e.flags?zs:w5)(e));case 172:case 171:case 177:case 178:case 174:case 173:if(kN(t,6))return;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 zs(t.parent);case 273:case 274:case 276:return;case 168:case 307:case 270:return 1;default:return}}()),e.isVisible)}function qs(e,t){let r;e.parent&&277===e.parent.kind?r=St(e,e,2998271,void 0,!1):281===e.parent.kind&&(r=bo(e.parent,2998271));let a,o;return r&&((o=new Set).add(sj(r)),function i(e){G4(e,n=>{let e=no(n)||n;if(t?P(n).isVisible=!0:JT(a=a||[],e),T8(n)){let e=n.moduleReference,t=VN(e),r=St(n,t.escapedText,901119,void 0,!1);r&&o&&OT(o,sj(r))&&i(r.declarations)}})}(r.declarations)),a}function Us(e,t){var r=Vs(e,t);if(!(0<=r))return Ii.push(e),Oi.push(!0),Li.push(t),1;var n=Ii["length"];for(let e=r;e=ji;e--){if(function(e,t){switch(t){case 0:return le(e).type;case 2:return le(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 le(e).writeType;case 8:return void 0!==P(e).parameterInitializerContainsUndefined}return Y4.assertNever(t)}(Ii[e],Li[e]))return-1;if(Ii[e]===t&&Li[e]===r)return e}return-1}function Ws(){return Ii.pop(),Li.pop(),Oi.pop()}function Hs(e){return tT(eN(e),e=>{switch(e.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Ks(e,t){e=me(e,t);return e?pe(e):void 0}function Gs(e,t){return Ks(e,t)||(t=null==(e=X_(e,t))?void 0:e.type)&&sc(t,!0,!0)}function B(e){return e&&0!=(1&e.flags)}function de(e){return e===R||1&e.flags&&e.aliasSymbol}function $s(e,t){var r;return 0===t&&(r=F(e))&&le(r).type||cc(e,!1,t)}function Xs(e,t,r){if(131072&(e=w0(e,e=>!(98304&e.flags))).flags)return zn;if(1048576&e.flags)return D0(e,e=>Xs(e,t,r));let n=ye($4(t,dp));var i,a=[],o=[];for(i of fe(e)){var s=pp(i,8576);xe(s,n)||6&rD(i)||!sf(i)?o.push(s):a.push(i)}if(Ap(e)||Ip(n))return 131072&(n=o.length?ye([n,...o]):n).flags?e:(_=(vr=vr||ud("Omit",2,!0)||j)===j?void 0:vr)?Uu(_,[e,n]):R;var c,l=I7();for(c of a)l.set(c.escapedName,cf(c,!1));var _=fs(r,l,H4,H4,W_(e));return _.objectFlags|=4194304,_}function Qs(e){return!!(465829888&e.flags)&&Gb(y_(e)||ne,32768)}function Ys(e){return a0(T0(e,Qs)?D0(e,e=>465829888&e.flags?v_(e):e):e,524288)}function Zs(e,t){e=ec(e);return e?G0(e,t):t}function ec(e){var t=function(e){var t=e.parent.parent;switch(t.kind){case 208:case 303:return ec(t);case 209:return ec(e.parent);case 260:return t.initializer;case 226:return t.right}}(e);if(t&&sw(t)&&t.flowNode){var r,n=tc(e);if(n)return n=fT(g9.createStringLiteral(n),e),r=t7(t)?t:g9.createParenthesizedExpression(t),tE(n,n=fT(g9.createElementAccessExpression(r,n),e)),tE(n,e),r!==t&&tE(r,n),n.flowNode=t.flowNode,n}}function tc(e){var t=e.parent;return 208===e.kind&&206===t.kind?rc(e.propertyName||e.name):303===e.kind||304===e.kind?rc(e.name):""+t.elements.indexOf(e)}function rc(e){e=dp(e);return 384&e.flags?""+e.value:void 0}function nc(e){var t=e.dotDotDotToken?32:0,t=$s(e.parent.parent,t);return t&&ic(e,t,!1)}function ic(e,r,n){if(B(r))return r;var i=e.parent;te&&33554432&e.flags&&Zw(e)?r=Bg(r):te&&i.parent.initializer&&!n0(h0(i.parent.initializer),65536)&&(r=a0(r,524288));let a;if(206===i.kind)if(e.dotDotDotToken){if(2&(r=I_(r)).flags||!wy(r))return ce(e,eT.Rest_types_may_only_be_created_from_object_types),R;var t,o=[];for(t of i.elements)t.dotDotDotToken||o.push(t.propertyName||t.name);a=Xs(r,o,e.symbol)}else{var s=e.propertyName||e.name,s=Bp(r,dp(s),32,s);a=Zs(e,s)}else{s=$S(65|(e.dotDotDotToken?0:128),r,ie,i);let t=i.elements.indexOf(e);a=e.dotDotDotToken?C0(i=D0(r,e=>58982400&e.flags?v_(e):e),Se)?D0(i,e=>qd(e,t)):Fd(s):ug(r)?Zs(e,zp(r,ff(t),32|(n||hy(e)?16:0),e.name)||R):s}return e.initializer?hN(V3(e))?te&&!n0(ux(e,0),16777216)?Ys(a):a:dx(e,ye([Ys(a),ux(e,0)],2)):a}function ac(e){e=uC(e);if(e)return V(e)}function oc(e){e=Cw(e,!0);return 209===e.kind&&0===e.elements.length}function sc(e,t=!1,r=!0){return te&&r?Mg(e,t):e}function cc(e,t,r){if(eF(e)&&249===e.parent.parent.kind)return 4456448&(n=gp(nv(A(e.parent.parent.expression,r)))).flags?hp(n):ae;if(eF(e)&&250===e.parent.parent.kind)return GS(e.parent.parent)||re;if(GC(e.parent))return nc(e);var n=QE(e)&&!PN(e)||XE(e)||t9(e),t=t&&mE(e),i=Cc(e);if(Y7(e))return i?B(i)||i===ne?i:R:k?ne:re;if(i)return sc(i,n,t);if((Te||oT(e))&&eF(e)&&!GC(e.name)&&!(32&U4(e))&&!(33554432&e.flags)){if(!(6&V4(e)||e.initializer&&106!==(i=Cw(i=e.initializer,!0)).kind&&(80!==i.kind||Bh(i)!==ft)))return on;if(e.initializer&&oc(e.initializer))return Wt}if(GE(e)){if(!e.symbol)return;var i=e.parent;if(178===i.kind&&xl(i)){var a=F7(F(e.parent),177);if(a)return a=au(a),(o=D4(i))&&e===o?(Y4.assert(!o.type),pe(a.thisParameter)):he(a)}var o=function(e,t){var r=ou(e);if(r)return e=e.parameters.indexOf(t),(t.dotDotDotToken?ib:rb)(r,e)}(i,e);if(o)return o;var a="this"===e.symbol.escapedName?j1(i):R1(e);if(a)return sc(a,!1,t)}if(x7(e)&&e.initializer){if(oT(e)&&!GE(e)){var o=mc(e,F(e),L8(e));if(o)return o}return sc(dx(e,ux(e,r)),n,t)}return QE(e)&&(Te||oT(e))?wN(e)?(a=(i=NT(e.parent.members,eP)).length?function(e,t){var r=f3(e.escapedName,"__#")?cT.createPrivateIdentifier(e.escapedName.split("@")[1]):X3(e.escapedName);for(var n of t){var i=cT.createPropertyAccessExpression(cT.createThis(),r),n=(tE(i.expression,i),tE(i,n),i.flowNode=n.returnFlowNode,pc(i,e));if(!Te||n!==on&&n!==Wt||ce(e.valueDeclaration,eT.Member_0_implicitly_has_an_1_type,_e(e),ue(n)),!C0(n,rv))return jS(n)}}(e.symbol,i):128&ON(e)?Ym(e.symbol):void 0)&&sc(a,!0,t):(r=(o=AE(e.parent))?dc(e.symbol,o):128&ON(e)?Ym(e.symbol):void 0)&&sc(r,!0,t):CF(e)?xn:GC(e.name)?vc(e.name,!1,!0):void 0}function lc(t){var e;return!(!t.valueDeclaration||!pT(t.valueDeclaration))&&(void 0===(e=le(t)).isConstructorDeclaredProperty&&(e.isConstructorDeclaredProperty=!1,e.isConstructorDeclaredProperty=!!uc(t)&&vT(t.declarations,e=>pT(e)&&W1(e)&&(212!==e.left.kind||qw(e.left.argumentExpression))&&!gc(void 0,e,t,e))),e.isConstructorDeclaredProperty)}function _c(e){e=e.valueDeclaration;return e&&QE(e)&&!hN(e)&&!e.initializer&&(Te||oT(e))}function uc(e){if(e.declarations)for(var t of e.declarations){t=t8(t,!1,!1);if(t&&(176===t.kind||E2(t)))return t}}function dc(e,t){var r=f3(e.escapedName,"__#")?cT.createPrivateIdentifier(e.escapedName.split("@")[1]):X3(e.escapedName),r=cT.createPropertyAccessExpression(cT.createThis(),r),t=(tE(r.expression,r),tE(r,t),r.flowNode=t.returnFlowNode,pc(r,e));return!Te||t!==on&&t!==Wt||ce(e.valueDeclaration,eT.Member_0_implicitly_has_an_1_type,_e(e),ue(t)),C0(t,rv)?void 0:jS(t)}function pc(e,t){t=(null==t?void 0:t.valueDeclaration)&&(!_c(t)||128&ON(t.valueDeclaration))&&Ym(t)||ie;return G0(e,on,t)}function fc(r,n){var i,a,o=j8(r.valueDeclaration);if(o)return(i=oT(o)?_C(o):void 0)&&i.typeExpression?V(i.typeExpression):r.valueDeclaration&&mc(r.valueDeclaration,r,o)||Cg(lx(o));let s,c=!1,l=!1;if(!(s=lc(r)?dc(r,uc(r)):s)){let t;if(r.declarations){let e;for(var _ of r.declarations){var u,d=pT(_)||PP(_)?_:lD(_)?pT(_.parent)?_.parent:_:void 0;!d||((4===(u=(lD(d)?$8:V8)(d))||pT(d)&&W1(d,u))&&(hc(d)?c=!0:l=!0),e=PP(d)?e:gc(e,d,r,_))||(t=t||[]).push(pT(d)||PP(d)?function(e,t,r,n){if(PP(r)){if(t)return pe(t);var i=lx(r.arguments[2]),a=Ks(i,"value");if(a)return a;a=Ks(i,"get");if(a){a=Gv(a);if(a)return he(a)}a=Ks(i,"set");if(a){i=Gv(a);if(i)return ub(i)}return re}if(function(t,e){return dT(t)&&110===t.expression.kind&&y9(e,e=>zh(t,e))}(r.left,r.right))return re;a=1===n&&(dT(r.left)||EP(r.left))&&(U8(r.left.expression)||uT(r.left.expression)&&z8(r.left.expression)),i=t?pe(t):(a?uf:Cg)(lx(r.right));if(524288&i.flags&&2===n&&"export="===e.escapedName){n=o_(i);let a=I7();M7(n.members,a);var o=a.size,t=(t&&!t.exports&&(t.exports=I7()),(t||e).exports.forEach((e,t)=>{var r,n,i=a.get(t);!i||i===e||2097152&e.flags?a.set(t,e):111551&e.flags&&111551&i.flags?(e.valueDeclaration&&i.valueDeclaration&&iT(e.valueDeclaration)!==iT(i.valueDeclaration)&&(r=X3(e.escapedName),n=(null==(n=o3(i.valueDeclaration,eC))?void 0:n.name)||i.valueDeclaration,JD(ce(e.valueDeclaration,eT.Duplicate_identifier_0,r),aT(n,eT._0_was_also_declared_here,r)),JD(ce(n,eT.Duplicate_identifier_0,r),aT(e.valueDeclaration,eT._0_was_also_declared_here,r))),(n=O(e.flags|i.flags,t)).links.type=ye([pe(e),pe(i)]),n.valueDeclaration=i.valueDeclaration,n.declarations=LT(i.declarations,e.declarations),a.set(t,n)):a.set(t,qa(e,i))}),fs(o!==a.size?void 0:n.symbol,a,n.callSignatures,n.constructSignatures,n.indexInfos));return o===a.size&&(i.aliasSymbol&&(t.aliasSymbol=i.aliasSymbol,t.aliasTypeArguments=i.aliasTypeArguments),4&sT(i))&&(t.aliasSymbol=i.symbol,e=Ju(i),t.aliasTypeArguments=K4(e)?e:void 0),t.objectFlags|=Lu([i])|20608&sT(i),t.symbol&&32&t.symbol.flags&&i===tl(t.symbol)&&(t.objectFlags|=16777216),t}if(mg(i))return th(r,Vt),Vt;return i}(r,n,d,u):M)}s=e}if(!s){if(!K4(t))return R;let e=c&&r.declarations?(i=t,a=r.declarations,Y4.assert(i.length===a.length),i.filter((e,t)=>{t=a[t],t=pT(t)?t:pT(t.parent)?t.parent:void 0;return t&&hc(t)})):void 0;l&&(o=Ym(r))&&((e=e||[]).push(o),c=!0);o=X4(e,e=>!!(-98305&e.flags))?e:t;s=ye(o)}}o=Zg(sc(s,!1,l&&!c));return r.valueDeclaration&&oT(r.valueDeclaration)&&w0(o,e=>!!(-98305&e.flags))===M?(th(r.valueDeclaration,re),re):o}function mc(e,t,r){var n;if(oT(e)&&r&&DP(r)&&!r.properties.length){for(var i=I7();pT(e)||dT(e);){var a=$o(e);null!=(n=null==a?void 0:a.exports)&&n.size&&Wa(i,a.exports),e=(pT(e)?e:e.parent).parent}var r=$o(e),o=(null!=(o=null==r?void 0:r.exports)&&o.size&&Wa(i,r.exports),fs(t,i,H4,H4,H4));return o.objectFlags|=4096,o}}function gc(e,t,r,n){t=hN(t.parent);if(t){t=Zg(V(t));if(!e)return t;de(e)||de(t)||tm(e,t)||MS(void 0,e,n,t)}if(null!=(n=r.parent)&&n.valueDeclaration){t=Qo(r.parent);if(t.valueDeclaration){n=hN(t.valueDeclaration);if(n){t=me(V(n),r.escapedName);if(t)return Mc(t)}}}return e}function hc(e){e=t8(e,!1,!1);return 176===e.kind||262===e.kind||218===e.kind&&!Q8(e.parent)}function yc(e,t,r){return e.initializer?sc(dx(e,ux(e,r?0:1,GC(e.name)?vc(e.name,!0,!1):ne))):GC(e.name)?vc(e.name,t,r):(r&&!Tc(e)&&th(e,re),t?_n:re)}function vc(e,t=!1,r=!1){return(206===e.kind?function(e,r,n){let i=I7(),a,o=131200;G4(e.elements,e=>{var t=e.propertyName||e.name;e.dotDotDotToken?a=Cu(ae,re,!1):TE(t=dp(t))?(t=CE(t),(t=O(4|(e.initializer?16777216:0),t)).links.type=yc(e,r,n),t.links.bindingElement=e,i.set(t.escapedName,t)):o|=512});var t=fs(void 0,i,H4,H4,a?[a]:H4);return t.objectFlags|=o,r&&(t.pattern=e,t.objectFlags|=131072),t}:function(e,t,r){var n=e.elements,i=KT(n);let a=i&&208===i.kind&&i.dotDotDotToken?i:void 0;if(0===n.length||1===n.length&&a)return 2<=U?Pd(re):Vt;i=$4(n,e=>zP(e)?re:yc(e,t,r));let o=kT(n,e=>!(e===a||zP(e)||hy(e)),n.length-1)+1,s=Md(i,$4(n,(e,t)=>e===a?4:t>=o?2:1));return t&&((s=Mu(s)).pattern=e,s.objectFlags|=131072),s})(e,t,r)}function bc(e,t){return kc(cc(e,!0,0),e,t)}function xc(e){var t=P(e);if(!t.resolvedType){let r=O(4096,"__importAttributes"),n=I7();G4(e.elements,e=>{var t=O(4,DE(e));t.parent=r,t.links.type=uf(lx(e.value)),t.links.target=t,n.set(t.escapedName,t)});e=fs(r,n,H4,H4,H4);e.objectFlags|=262272,t.resolvedType=e}return t.resolvedType}function Sc(e){e=$o(e);$t=$t||_d("SymbolConstructor",!1);return $t&&e&&e===$t}function kc(e,t,r){return e?(4096&e.flags&&Sc(t.parent)&&(e=gf(t)),r&&rh(t,e),Zg(e=8192&e.flags&&(wP(t)||!t.type)&&e.symbol!==F(t)?Tn:e)):(e=GE(t)&&t.dotDotDotToken?Vt:re,r&&!Tc(t)&&th(t,e),e)}function Tc(e){e=eN(e);return Kx(169===e.kind?e.parent:e)}function Cc(e){e=hN(e);if(e)return V(e)}function wc(e,t){var r,n=le(e);return n.type||(r=function(t,r){if(4194304&t.flags)return function(e){return(e=cl(Xo(e))).typeParameters?Ru(e,$4(e.typeParameters,e=>re)):e}(t);if(t===ht)return re;{var e;if(134217728&t.flags&&t.valueDeclaration)return e=F(iT(t.valueDeclaration)),(n=O(e.flags,"exports")).declarations=e.declarations?e.declarations.slice():[],n.parent=t,(n.links.target=e).valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),e.members&&(n.members=new Map(e.members)),e.exports&&(n.exports=new Map(e.exports)),(e=I7()).set("exports",n),fs(t,e,H4,H4,H4)}Y4.assertIsDefined(t.valueDeclaration);var n=t.valueDeclaration;if(LF(n)&&D5(n))return n.statements.length?Zg(Cg(A(n.statements[0].expression))):zn;if(UC(n))return Ec(t);if(Us(t,0)){let e;if(277===n.kind)e=kc(Cc(n)||lx(n.expression),n);else if(pT(n)||oT(n)&&(PP(n)||(dT(n)||H8(n))&&pT(n.parent)))e=fc(t);else if(dT(n)||EP(n)||uT(n)||k7(n)||zE(n)||nF(n)||rF(n)||ZE(n)&&!H5(n)||YE(n)||LF(n)){if(9136&t.flags)return Ac(t);e=pT(n.parent)?fc(t):Cc(n)||re}else if(FF(n))e=Cc(n)||gx(n);else if(CF(n))e=Cc(n)||Ey(n);else if(AF(n))e=Cc(n)||mx(n.name,0);else if(H5(n))e=Cc(n)||hx(n,0);else if(GE(n)||QE(n)||XE(n)||eF(n)||wP(n)||TC(n))e=bc(n,!0);else if(oF(n))e=Ac(t);else{if(!OF(n))return Y4.fail("Unhandled declaration kind! "+Y4.formatSyntaxKind(n.kind)+" for "+Y4.formatSymbol(t));e=Ic(t)}if(Ws())return e;if(512&t.flags&&!(67108864&t.flags))return Ac(t);if(wP(n)&&1===r)return e}else{if(512&t.flags&&!(67108864&t.flags))return Ac(t);if(wP(n)&&1===r)return R}return Lc(t)}(e,t),n.type||function(e){let t=e.valueDeclaration;return t&&GE(t=wP(t)?V3(t):t)&&Zf(t.parent)}(e)||t||(n.type=r),r)}function Nc(e){if(e)switch(e.kind){case 177:return yN(e);case 178:return bN(e);case 172:return Y4.assert(PN(e)),hN(e)}}function Dc(e){e=Nc(e);return e&&V(e)}function Ec(t){var r=le(t);if(!r.type){if(!Us(t,0))return R;var n=F7(t,177),i=F7(t,178),a=o3(F7(t,172),VC);let e=n&&oT(n)&&ac(n)||Dc(n)||Dc(i)||Dc(a)||n&&n.body&&Pb(n)||a&&a.initializer&&bc(a,!0);e||(i&&!Kx(i)?Fa(Te,i,eT.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,_e(t)):n&&!Kx(n)?Fa(Te,n,eT.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,_e(t)):a&&!Kx(a)&&Fa(Te,a,eT.Member_0_implicitly_has_an_1_type,_e(t),"any"),e=re),Ws()||(Nc(n)?ce(n,eT._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,_e(t)):Nc(i)||Nc(a)?ce(i,eT._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,_e(t)):n&&Te&&ce(n,eT._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,_e(t)),e=re),r.type??(r.type=e)}return r.type}function Pc(t){var r=le(t);if(!r.writeType){if(!Us(t,7))return R;var n=F7(t,178)??o3(F7(t,172),VC);let e=Dc(n);Ws()||(Nc(n)&&ce(n,eT._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,_e(t)),e=re),r.writeType??(r.writeType=e||Ec(t))}return r.writeType}function Fc(e){e=Qc(tl(e));return 8650752&e.flags?e:2097152&e.flags?bT(e.types,e=>!!(8650752&e.flags)):void 0}function Ac(e){let t=le(e);var r,n=t;return t.type||((r=e.valueDeclaration&&F2(e.valueDeclaration,!1))&&(r=P2(e,r))&&(e=r,t=r.links),n.type=t.type=function(e){var t=e.valueDeclaration;{if(1536&e.flags&&t5(e))return re;if(t&&(226===t.kind||lD(t)&&226===t.parent.kind))return fc(e);if(512&e.flags&&t&&LF(t)&&t.commonJsModuleIndicator){t=Mo(e);if(t!==e)return Us(e,0)?(r=S(e.exports.get("export=")),r=fc(r,r===t?void 0:t),Ws()?r:Lc(e)):R}}t=cs(16,e);{var r;return 32&e.flags?(r=Fc(e))?ve([t,r]):t:te&&16777216&e.flags?Mg(t,!0):t}}(e)),t.type}function Ic(e){var t=le(e);return t.type||(t.type=ol(e))}function Oc(e){var t,r,n,i=le(e);if(!i.type){if(!Us(e,0))return R;var a=Co(e),o=e.declarations&&So(io(e),!0),s=yT(null==o?void 0:o.declarations,e=>gF(e)?Cc(e):void 0);if(i.type??(i.type=null!=o&&o.declarations&&n6(o.declarations)&&e.declarations.length?(r=iT((t=o).declarations[0]),n=X3(t.escapedName),n=(t=t.declarations.every(e=>oT(e)&&lD(e)&&U8(e.expression)))?cT.createPropertyAccessExpression(cT.createPropertyAccessExpression(cT.createIdentifier("module"),cT.createIdentifier("exports")),n):cT.createPropertyAccessExpression(cT.createIdentifier("exports"),n),t&&tE(n.expression.expression,n.expression),tE(n.expression,n),tE(n,r),n.flowNode=r.endFlowNode,G0(n,on,ie)):n6(e.declarations)?on:s||(111551&wo(a)?pe(a):R)),!Ws())return Lc(o??e),i.type??(i.type=R)}return i.type}function Lc(e){var t=e.valueDeclaration;if(t){if(hN(t))return ce(e.valueDeclaration,eT._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,_e(e)),R;Te&&(169!==t.kind||t.initializer)&&ce(e.valueDeclaration,eT._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,_e(e))}else 2097152&e.flags&&(t=io(e))&&ce(t,eT.Circular_definition_of_import_alias_0,_e(e));return re}function jc(e){e=le(e);return e.type||(Y4.assertIsDefined(e.deferralParent),Y4.assertIsDefined(e.deferralConstituents),e.type=(1048576&e.deferralParent.flags?ye:ve)(e.deferralConstituents)),e.type}function Rc(e){var t,r=tD(e);return 4&e.flags?2&r?65536&r?(!(t=le(t=e)).writeType&&t.deferralWriteConstituents&&(Y4.assertIsDefined(t.deferralParent),Y4.assertIsDefined(t.deferralConstituents),t.writeType=(1048576&t.deferralParent.flags?ye:ve)(t.deferralWriteConstituents)),t.writeType||jc(e)):e.links.writeType||e.links.type:Vg(pe(e),!!(16777216&e.flags)):98304&e.flags?1&r?(t=le(t=e)).writeType||(t.writeType=be(Rc(t.target),t.mapper)):Pc(e):pe(e)}function pe(e,t){var r=tD(e);if(65536&r)return jc(e);if(1&r)return(n=le(n=e)).type||(n.type=be(pe(n.target),n.mapper));if(262144&r){var n=e;if(!n.links.type){var i=n.links.mappedType;if(!Us(n,0))return i.containsError=!0,R;var a=Ql(i.target||i),o=Of(i.mapper,Gl(i),n.links.keyType),a=be(a,o);let e=te&&16777216&n.flags&&!Gb(a,49152)?Mg(a,!0):524288&n.links.checkFlags?Hg(a):a;Ws()||(ce(ke,eT.Type_of_property_0_circularly_references_itself_in_mapped_type_1,_e(n),ue(i)),e=R),(o=n.links).type??(o.type=e)}return n.links.type}return 8192&r?((i=le(a=e)).type||(i.type=hh(a.links.propertyType,a.links.mappedType,a.links.constraintType)||ne),i.type):7&e.flags?wc(e,t):9136&e.flags?Ac(e):8&e.flags?Ic(e):98304&e.flags?Ec(e):2097152&e.flags?Oc(e):R}function Mc(e){return Vg(pe(e),!!(16777216&e.flags))}function Bc(e,t){return void 0!==e&&void 0!==t&&0!=(4&sT(e))&&e.target===t}function Jc(e){return 4&sT(e)?e.target:e}function zc(e,n){return function t(r){{if(7&sT(r)){let e=Jc(r);return e===n||X4(Zc(e),t)}if(2097152&r.flags)return X4(r.types,t)}return!1}(e)}function qc(e,t){for(var r of t)e=zT(e,sl(F(r)));return e}function Uc(t,e){for(;;){var r;if((t=t.parent)&&pT(t)&&(6!==(r=V8(t))&&3!==r||(r=F(t.left))&&r.parent&&!tT(r.parent.valueDeclaration,e=>t===e)&&(t=r.parent.valueDeclaration)),!t)return;switch(t.kind){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:var n=Uc(t,e);return 200===t.kind?Q4(n,sl(F(t.typeParameter))):194===t.kind?LT(n,Xp(t)):(n=qc(n,mC(t)),(i=e&&(263===t.kind||231===t.kind||264===t.kind||E2(t))&&tl(F(t)).thisType)?Q4(n,i):n);case 341:var i=lw(t);i&&(t=i.valueDeclaration);break;case 320:n=Uc(t,e);return t.tags?qc(n,FT(t.tags,e=>ZF(e)?e.typeParameters:void 0)):n}}}function Vc(e){e=32&e.flags||16&e.flags?e.valueDeclaration:null==(e=e.declarations)?void 0:e.find(e=>{return 264===e.kind||260===e.kind&&!!(e=e.initializer)&&(218===e.kind||219===e.kind)});return Y4.assert(!!e,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Uc(e)}function Wc(t){if(t.declarations){let e;for(var r of t.declarations)(264===r.kind||263===r.kind||231===r.kind||E2(r)||aw(r))&&(r=r,e=qc(e,mC(r)));return e}}function Hc(e){e=ge(e,1);if(1===e.length){var e=e[0];if(!e.typeParameters&&1===e.parameters.length&&pj(e))return B(e=Q2(e.parameters[0]))||_g(e)===re}return!1}function Kc(e){return 0(i||n>=nu(e.typeParameters))&&n<=K4(e.typeParameters))}function Xc(e,t,r){e=$c(e,t,r);let n=$4(t,V);return ET(e,e=>X4(e.typeParameters)?gu(e,n,oT(r)):e)}function Qc(e){if(!e.resolvedBaseConstructorType){var t=oD(e.symbol),t=t&&Lw(t),r=Gc(e);if(!r)return e.resolvedBaseConstructorType=ie;if(!Us(e,1))return R;var n=A(r.expression);if(t&&r!==t&&(Y4.assert(!t.typeArguments),A(t.expression)),2621440&n.flags&&o_(n),!Ws())return ce(e.symbol.valueDeclaration,eT._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,_e(e.symbol)),e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=R);if(!(1&n.flags||n===hn||Kc(n))){t=ce(r.expression,eT.Type_0_is_not_a_constructor_function_type,ue(n));if(262144&n.flags){var r=Fu(n);let e=ne;r&&(r=ge(r,1))[0]&&(e=he(r[0])),n.symbol.declarations&&JD(t,aT(n.symbol.declarations[0],eT.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,_e(n.symbol),ue(e)))}return e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=R)}e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=n)}return e.resolvedBaseConstructorType}function Yc(e,t){ce(e,eT.Type_0_recursively_references_itself_as_a_base_type,ue(t,void 0,2))}function Zc(e){if(!e.baseTypesResolved){if(Us(e,6)){if(8&e.objectFlags)e.resolvedBaseTypes=[Fd(ye(ET((o=e).typeParameters,(e,t)=>8&o.elementFlags[t]?Bp(e,oe):e)||H4),o.readonly)];else if(96&e.symbol.flags){if(32&e.symbol.flags&&!function(e){e.resolvedBaseTypes=N7;var t=D_(Qc(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=H4;let r=Gc(e),n,i=t.symbol?cl(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){var t=e.outerTypeParameters;{var r;if(t)return r=t.length-1,e=Ju(e),t[r].symbol!==e[r].symbol}return 1}(i))n=qu(r,t.symbol);else if(1&t.flags)n=t;else{t=Xc(t,r.typeArguments,r);if(!t.length)return ce(r.expression,eT.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=H4;n=he(t[0])}if(de(n))return e.resolvedBaseTypes=H4;t=I_(n);{var a;if(!el(t))return a=gD(M_(void 0,n),eT.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ue(t)),se.add(y5(iT(r.expression),r.expression,a)),e.resolvedBaseTypes=H4}if(e===t||zc(t,e))return ce(e.symbol.valueDeclaration,eT.Type_0_recursively_references_itself_as_a_base_type,ue(e,void 0,2)),e.resolvedBaseTypes=H4;e.resolvedBaseTypes===N7&&(e.members=void 0);e.resolvedBaseTypes=[t]}(e),64&e.symbol.flags){var t=e;if(t.resolvedBaseTypes=t.resolvedBaseTypes||H4,t.symbol.declarations)for(var r of t.symbol.declarations)if(264===r.kind&&Mw(r))for(var n of Mw(r)){var i=I_(V(n));de(i)||(el(i)?t===i||zc(i,t)?Yc(r,t):t.resolvedBaseTypes===H4?t.resolvedBaseTypes=[i]:t.resolvedBaseTypes.push(i):ce(n,eT.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}else Y4.fail("type must be class or interface");if(!Ws()&&e.symbol.declarations)for(var a of e.symbol.declarations)263!==a.kind&&264!==a.kind||Yc(a,e)}e.baseTypesResolved=!0}var o;return e.resolvedBaseTypes}function el(e){if(262144&e.flags){var t=y_(e);if(t)return el(t)}return!!(67633153&e.flags&&!i_(e)||2097152&e.flags&&vT(e.types,el))}function tl(e){let t=le(e);var r,n,i,a,o=t;return!t.declaredType&&(r=32&e.flags?1:2,(a=P2(e,e.valueDeclaration&&((a=(null==(a=null==(a=null==(a=(a=e.valueDeclaration)&&F2(a,!0))?void 0:a.exports)?void 0:a.get("prototype"))?void 0:a.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&211===t.kind;)t=t.parent;if(t&&pT(t)&&GN(t.left)&&64===t.operatorToken.kind)return DP(e=X8(t))&&e}(a.valueDeclaration))?F(a):void 0)))&&(e=a,t=a.links),o=o.declaredType=t.declaredType=cs(r,e),n=Vc(e),i=Wc(e),n||i||1==r||!function(e){if(e.declarations)for(var t of e.declarations)if(264===t.kind){if(256&t.flags)return;t=Mw(t);if(t)for(var r of t)if(UN(r.expression)){r=Ao(r.expression,788968,!0);if(!r||!(64&r.flags)||tl(r).thisType)return}}return 1}(e))&&(o.objectFlags|=4,o.typeParameters=LT(n,i),o.outerTypeParameters=n,o.localTypeParameters=i,o.instantiations=new Map,o.instantiations.set(Iu(o.typeParameters),o),(o.target=o).resolvedTypeArguments=o.typeParameters,o.thisType=ls(e),o.thisType.isThisType=!0,o.thisType.constraint=o),t.declaredType}function rl(t){var r=le(t);if(!r.declaredType){if(!Us(t,2))return R;var n=Y4.checkDefined(null==(n=t.declarations)?void 0:n.find(aw),"Type alias symbol with no valid declaration found"),i=iw(n)?n.typeExpression:n.type;let e=i?V(i):R;Ws()?(i=Wc(t))&&(r.typeParameters=i,r.instantiations=new Map,r.instantiations.set(Iu(i),e)):(e=R,340===n.kind?ce(n.typeExpression.type,eT.Type_alias_0_circularly_references_itself,_e(t)):ce(eC(n)&&n.name||n,eT.Type_alias_0_circularly_references_itself,_e(t))),r.declaredType??(r.declaredType=e)}return r.declaredType}function nl(e){return 1056&e.flags&&8&e.symbol.flags?cl(Xo(e.symbol)):e}function il(e){var t=le(e);if(!t.declaredType){var r,n=[];if(e.declarations)for(var i of e.declarations)if(266===i.kind)for(var a of i.members)xl(a)&&(r=F(a),a=_f(void 0!==(a=H6(a).value)?function(e,t,r){let n,i=t+("string"==typeof e?"@":"#")+e,a=1024|("string"==typeof e?128:256);return Vr.get(i)||(Vr.set(i,n=lf(a,e,r)),n)}(a,sj(e),r):al(r)),le(r).declaredType=a,n.push(uf(a)));var o=n.length?ye(n,1,e,void 0):al(e);1048576&o.flags&&(o.flags|=1024,o.symbol=e),t.declaredType=o}return t.declaredType}function al(e){var t=as(32,e),e=as(32,e);return((t.regularType=t).freshType=e).regularType=t,e.freshType=e,t}function ol(e){var t=le(e);return t.declaredType||(e=il(Xo(e)),t.declaredType)||(t.declaredType=e),t.declaredType}function sl(e){var t=le(e);return t.declaredType||(t.declaredType=ls(e))}function cl(e){return ll(e)||R}function ll(e){return 96&e.flags?tl(e):524288&e.flags?rl(e):262144&e.flags?sl(e):384&e.flags?il(e):8&e.flags?ol(e):2097152&e.flags?(t=le(e=e)).declaredType||(t.declaredType=cl(Co(e))):void 0;var t}function _l(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 _l(e.elementType);case 183:return!e.typeArguments||e.typeArguments.every(_l)}return!1}function ul(e){e=gC(e);return!e||_l(e)}function dl(e){var t=hN(e);return t?_l(t):!b7(e)}function pl(e){if(e.declarations&&1===e.declarations.length){var t=e.declarations[0];if(t)switch(t.kind){case 172:case 171:return dl(t);case 174:case 173:case 176:case 177:case 178:return n=yN(r=t),i=mC(r),(176===r.kind||!!n&&_l(n))&&r.parameters.every(dl)&&i.every(ul)}}var r,n,i}function fl(e,t,r){var n,i=I7();for(n of e)i.set(n.escapedName,r&&pl(n)?n:Rf(n,t));return i}function ml(e,t){for(var r of t){var n;!gl(r)&&(!(n=e.get(r.escapedName))||n.valueDeclaration&&pT(n.valueDeclaration)&&!lc(n)&&!Y5(n.valueDeclaration))&&(e.set(r.escapedName,r),e.set(r.escapedName,r))}}function gl(e){return e.valueDeclaration&&FC(e.valueDeclaration)&&CN(e.valueDeclaration)}function hl(e){var t,r;return e.declaredProperties||(r=Tl(t=e.symbol),e.declaredProperties=us(r),e.declaredCallSignatures=H4,e.declaredConstructSignatures=H4,e.declaredIndexInfos=H4,e.declaredCallSignatures=cu(r.get("__call")),e.declaredConstructSignatures=cu(r.get("__new")),e.declaredIndexInfos=wu(t)),e}function yl(e){var t;return!(!HE(e)&&!EP(e))&&UN(t=HE(e)?e.expression:e.argumentExpression)&&TE(HE(e)?xy(e):lx(t))}function vl(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function bl(e){e=tC(e);return!!e&&yl(e)}function xl(e){return!Uw(e)||bl(e)}function Sl(t,r,n,i){Y4.assert(!!i.symbol,"The member is expected to have a symbol.");var a=P(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=pT(i)?i.left:i.name,s=EP(o)?lx(o.argumentExpression):xy(o);if(TE(s)){var c=CE(s),l=i.symbol.flags;let e=n.get(c);e||n.set(c,e=O(0,c,4096));var n=r&&r.get(c);if(!(32&t.flags)&&e.flags&Ba(l)){var r=n?LT(n.declarations,e.declarations):e.declarations;let t=!(8192&s.flags)&&X3(c)||d5(o);G4(r,e=>ce(tC(e)||e,eT.Property_0_was_also_declared_here,t)),ce(o||i,eT.Duplicate_property_0,t),e=O(0,c,4096)}return e.links.nameType=s,n=e,r=i,o=l,Y4.assert(!!(4096&tD(n)),"Expected a late-bound symbol."),n.flags|=o,(le(r.symbol).lateSymbol=n).declarations?r.symbol.isReplaceableByMethod||n.declarations.push(r):n.declarations=[r],111551&o&&(n.valueDeclaration&&n.valueDeclaration.kind===r.kind||(n.valueDeclaration=r)),e.parent?Y4.assert(e.parent===t,"Existing symbol parent should match new one"):e.parent=t,a.resolvedSymbol=e}}a.resolvedSymbol}function kl(e,t){var r,i,a=le(e);if(!a[t]){var o,s="resolvedExports"===t,c=s?(1536&e.flags?Go(e):e).exports:e.members,l=(a[t]=c||y,I7());for(o of e.declarations||H4){var _=M5(o);if(_)for(var u of _)s===wN(u)&&bl(u)&&Sl(e,c,l,u)}var d,p=Qo(e).assignmentDeclarationMembers;if(p)for(d of ZT(p.values())){var f=V8(d);s==!(3===f||pT(d)&&W1(d,f)||9===f||6===f)&&bl(d)&&Sl(e,c,l,d)}p=l;let n=null!=(r=c)&&r.size?null!=p&&p.size?(Wa(i=I7(),r),Wa(i,p),i):r:p;if(33554432&e.flags&&a.cjsExportMerged&&e.declarations)for(var m of e.declarations){m=le(m.symbol)[t];n?m&&m.forEach((e,t)=>{var r=n.get(t);r?r!==e&&n.set(t,qa(r,e)):n.set(t,e)}):n=m}a[t]=n||y}return a[t]}function Tl(e){return 6256&e.flags?kl(e,"resolvedMembers"):e.members||y}function Cl(e){var t,r;return 106500&e.flags&&"__computed"===e.escapedName?(!(t=le(e)).lateSymbol&&X4(e.declarations,bl)&&(r=S(e.parent),(X4(e.declarations,wN)?Wo:Tl)(r)),t.lateSymbol||(t.lateSymbol=e)):e}function wl(e,t,r){var n,i;return 4&sT(e)?(n=e.target,i=Ju(e),K4(n.typeParameters)===K4(i)?Ru(n,LT(i,[t||n.thisType])):e):2097152&e.flags?(i=ET(e.types,e=>wl(e,t,r)))!==e.types?ve(i):e:r?D_(e):e}function Nl(e,t,r,n){let i,a,o,s,c;c=qT(r,n,0,r.length)?(a=t.symbol?Tl(t.symbol):I7(t.declaredProperties),o=t.declaredCallSignatures,s=t.declaredConstructSignatures,t.declaredIndexInfos):(i=Cf(r,n),a=fl(t.declaredProperties,i,1===r.length),o=kf(t.declaredCallSignatures,i),s=kf(t.declaredConstructSignatures,i),Tf(t.declaredIndexInfos,i));r=Zc(t);if(r.length){t.symbol&&a===Tl(t.symbol)&&(l=I7(t.declaredProperties),(t=ku(t.symbol))&&l.set("__index",t),a=l),ps(e,a,o,s,c);var l,_,u=KT(n);for(_ of r){var d=u?wl(be(_,i),u):_,d=(ml(a,fe(d)),o=LT(o,ge(d,0)),s=LT(s,ge(d,1)),d!==re?W_(d):[Cu(ae,re,!1)]);c=LT(c,NT(d,e=>!z_(c,e.keyType)))}}ps(e,a,o,s,c)}function Dl(e,t,r,n,i,a,o,s){s=new c(Tt,s);return s.declaration=e,s.typeParameters=t,s.parameters=n,s.thisParameter=r,s.resolvedReturnType=i,s.resolvedTypePredicate=a,s.minArgumentCount=o,s.resolvedMinArgumentCount=void 0,s.target=void 0,s.mapper=void 0,s.compositeSignatures=void 0,s.compositeKind=void 0,s}function El(e){var t=Dl(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 Pl(e,t){e=El(e);return e.compositeSignatures=t,e.compositeKind=1048576,e.target=void 0,e.mapper=void 0,e}function Fl(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});var r=8===t?"inner":"outer";return e.optionalCallSignatureCache[r]||(e.optionalCallSignatureCache[r]=function(e,t){Y4.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.");e=El(e);return e.flags|=t,e}(e,t))}function Al(o,e){if(pj(o)){let t=o.parameters.length-1,r=o.parameters[t].escapedName;var n=pe(o.parameters[t]);if(Se(n))return[i(n,t,r)];if(!e&&1048576&n.flags&&vT(n.types,Se))return $4(n.types,e=>i(e,t,r))}return[o.parameters];function i(n,i,e){var t=Ju(n);let a=function(e,r){let n=new Map;return $4(e.target.labeledElementDeclarations,(e,t)=>{e=Y2(e,t,r),t=n.get(e);return void 0===t?(n.set(e,1),e):(n.set(e,t+1),e+"_"+t)})}(n,e);e=$4(t,(e,t)=>{var r=a&&a[t]?a[t]:Z2(o,i+t,n),t=n.target.elementFlags[t],r=O(1,r,12&t?32768:2&t?16384:0);return r.links.type=4&t?Fd(e):e,r});return LT(o.parameters.slice(0,i),e)}}function Il(e,t,r,n,i){for(var a of e)if(ig(a,t,r,n,i,r?im:rm))return a}function Ol(t){let r,n;for(let e=0;ee.thisParameter);s&&(o=ve(AT(a,e=>e.thisParameter&&pe(e.thisParameter))),e=Gg(s,o)),(t=Pl(i,a)).thisParameter=e}(r=r||[]).push(t)}}}if(!K4(r)&&-1!==n){var l,c=t[void 0!==n?n:0];let e=c.slice();for(l of t)if(l!==c){let c=l[0];if(Y4.assert(!!c,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(e=c.typeParameters&&X4(e,e=>!!e.typeParameters&&!Ll(c.typeParameters,e.typeParameters))?void 0:$4(e,r=>{{var n=c;let e=r.typeParameters||n.typeParameters,t;r.typeParameters&&n.typeParameters&&(t=Cf(n.typeParameters,r.typeParameters));var i=r.declaration,a=function(n,i,a){var o=ob(n),s=ob(i),c=s<=o?n:i,l=c===n?i:n,_=c===n?o:s,u=cb(n)||cb(i),d=u&&!cb(c),p=new Array(_+(d?1:0));for(let r=0;r<_;r++){let e=nb(c,r),t=(c===i&&(e=be(e,a)),nb(l,r)||ne);l===i&&(t=be(t,a));var f=ve([e,t]),m=u&&!d&&r===_-1,g=r>=sb(c)&&r>=sb(l),h=r>=o?void 0:Z2(n,r),y=r>=s?void 0:Z2(i,r),h=O(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg"+r,m?32768:g?16384:0);h.links.type=m?Fd(f):f,p[r]=h}{var e;d&&((e=O(1,"args",32768)).links.type=Fd(rb(l,_)),l===i&&(e.links.type=be(e.links.type,a)),p[_]=e)}return p}(r,n,t),o=function(e,t,r){if(!e||!t)return e||t;t=ve([pe(e),be(pe(t),r)]);return Gg(e,t)}(r.thisParameter,n.thisParameter,t),s=Math.max(r.minArgumentCount,n.minArgumentCount),i;return(i=Dl(i,e,o,a,void 0,void 0,s,167&(r.flags|n.flags))).compositeKind=1048576,i.compositeSignatures=LT(2097152!==r.compositeKind&&r.compositeSignatures||[r],[n]),t?i.mapper=2097152!==r.compositeKind&&r.mapper&&r.compositeSignatures?Af(r.mapper,t):t:2097152!==r.compositeKind&&r.mapper&&r.compositeSignatures&&(i.mapper=r.mapper),i}})))break}r=e}return r||H4}function Ll(t,r){if(K4(t)===K4(r)){if(t&&r){var n=Cf(r,t);for(let e=0;e!!H_(e,t))&&n.push(Cu(t,ye($4(e,e=>K_(e,t))),X4(e,e=>H_(e,t).isReadonly)))}return n}return H4}function Rl(e,t){return e?t?ve([e,t]):e:t}function Ml(e){var t=wT(e,e=>0e)&&(t=e.indexOf(!0),e[t]=!1),e}function Bl(e){let t,n,i,a=e.types,o=Ml(a);var s=wT(o,e=>e);for(let r=0;r{var t=El(e);return t.resolvedReturnType=function(t,r,n,i){var a=[];for(let e=0;ezl(e,t,!1),i)}ps(e,y,t||H4,n||H4,i||H4)}function Jl(e,r){for(let t of r)e&&!vT(e,e=>!ig(e,t,!1,!1,!1,rm))||(e=Q4(e,t));return e}function zl(t,r,n){if(t)for(let e=0;e{var t;418&e.flags||512&e.flags&&null!=(t=e.declarations)&&t.length&&vT(e.declarations,Z7)||r.set(e.escapedName,e)}),e=r}let r;ps(n,e,H4,H4,H4),32&i.flags&&(11272192&(a=Qc(tl(i))).flags?ml(e=I7((s=e,o=us(s),(s=Tu(s))?LT(o,[s]):o)),fe(a)):a===re&&(r=Cu(ae,re,!1)));var a,o,s=Tu(e);if(s?t=Nu(s):(r&&(t=Q4(t,r)),384&i.flags&&(32&cl(i).flags||X4(n.properties,e=>!!(296&pe(e).flags)))&&(t=Q4(t,ci))),ps(n,e,H4,H4,t||H4),8208&i.flags&&(n.callSignatures=cu(i)),32&i.flags){let t=tl(i),e=i.members?cu(i.members.get("__constructor")):H4;(e=16&i.flags?BT(e.slice(),AT(n.callSignatures,e=>E2(e.declaration)?Dl(e.declaration,e.typeParameters,e.thisParameter,e.parameters,t,void 0,e.minArgumentCount,167&e.flags):void 0)):e).length||(e=function(e){var t=ge(Qc(e),1),r=oD(e.symbol),n=!!r&&TN(r,64);if(0===t.length)return[Dl(void 0,e.localTypeParameters,void 0,H4,e,void 0,0,n?4:0)];var i,a=oT(r=Gc(e)),o=od(r),s=K4(o),c=[];for(i of t){var l=nu(i.typeParameters),_=K4(i.typeParameters);(a||l<=s&&s<=_)&&((_=_?yu(i,iu(o,i.typeParameters,l,a)):El(i)).typeParameters=e.localTypeParameters,_.resolvedReturnType=e,_.flags=n?4|_.flags:-5&_.flags,c.push(_))}return c}(t)),n.constructSignatures=e}}}}function Ul(e){var t,r,n,i,a=H_(e.source,ae),o=t_(e.mappedType),s=!(1&o),c=4&o?0:16777216,o=a?[Cu(ae,hh(a.type,e.mappedType,e.constraintType)||ne,s&&a.isReadonly)]:H4,l=I7(),_=(1048576&(a=$l((t=e).mappedType)).flags||2097152&a.flags)&&(a=1048576&a.flags?a.origin:a)&&2097152&a.flags&&(a=ve(a.types.filter(e=>e!==t.constraintType)))!==M?a:void 0;for(r of fe(e.source)){if(_)if(!xe(pp(r,8576),_))continue;var u,d,p=8192|(s&&zb(r)?8:0),p=O(4|r.flags&c,r.escapedName,p);p.declarations=r.declarations,p.links.nameType=le(r).nameType,p.links.propertyType=pe(r),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags?(u=e.constraintType.type.objectType,d=e.mappedType,n=e.constraintType.type,i=u,d=be(d,Cf([n.indexType,n.objectType],[ff(0),Md([i])])),p.links.mappedType=d,p.links.constraintType=gp(u)):(p.links.mappedType=e.mappedType,p.links.constraintType=e.constraintType),l.set(r.escapedName,p)}ps(e,l,H4,H4,o)}function Vl(e){if(4194304&e.flags)return(Eg(t=D_(e.type))?Ud:gp)(t);if(16777216&e.flags){if(e.root.isDistributive){var t=e.checkType,r=Vl(t);if(r!==t)return Hf(e,If(e.root.checkType,r,e.mapper),!1)}return e}return 1048576&e.flags?D0(e,Vl,!0):!(2097152&e.flags)||2===(t=e.types).length&&76&t[0].flags&&t[1]===Vn?e:ve(ET(e.types,Vl))}function Wl(e){return 4096&tD(e)}function Hl(e,t,r,n){for(var i of fe(e))n(pp(i,t));if(1&e.flags)n(ae);else for(var a of W_(e))(!r||134217732&a.keyType.flags)&&n(a.keyType)}function Kl(l){let _=I7(),u,d=(ps(l,y,H4,H4,H4),Gl(l));var e=$l(l),t=l.target||l;let r=Xl(t),p=2!==a_(t),f=Ql(t),m=D_(e_(l)),g=t_(l);function n(c){k0(r?be(r,Of(l.mapper,d,c)):c,e=>{var t,r,n,i,a,o,s=c;TE(e)?(o=CE(e),(a=_.get(o))?(a.links.nameType=ye([a.links.nameType,e]),a.links.keyType=ye([a.links.keyType,s])):(a=TE(s)?me(m,CE(s)):void 0,t=!!(4&g||!(8&g)&&a&&16777216&a.flags),n=!!(1&g||!(2&g)&&a&&zb(a)),i=te&&!t&&a&&16777216&a.flags,r=a?Wl(a):0,(t=O(4|(t?16777216:0),o,262144|r|(n?8:0)|(i?524288:0))).links.mappedType=l,t.links.nameType=e,t.links.keyType=s,a&&(t.links.syntheticOrigin=a,t.declarations=p?a.declarations:void 0),_.set(o,t))):(Du(e)||33&e.flags)&&(r=5&e.flags?ae:40&e.flags?oe:e,n=be(f,Of(l.mapper,d,s)),i=$_(m,e),a=!!(1&g||!(2&g)&&null!=i&&i.isReadonly),o=Cu(r,n,a),u=zl(u,o,!0))})}Zl(l)?Hl(m,8576,!1,n):k0(Vl(e),n),ps(l,_,H4,H4,u||H4)}function Gl(e){return e.typeParameter||(e.typeParameter=sl(F(e.declaration.typeParameter)))}function $l(e){return e.constraintType||(e.constraintType=u_(Gl(e))||R)}function Xl(e){return e.declaration.nameType?e.nameType||(e.nameType=be(V(e.declaration.nameType),e.mapper)):void 0}function Ql(e){return e.templateType||(e.templateType=e.declaration.type?be(sc(V(e.declaration.type),!0,!!(4&t_(e))),e.mapper):R)}function Yl(e){return gC(e.declaration.typeParameter)}function Zl(e){e=Yl(e);return 198===e.kind&&143===e.operator}function e_(e){var t;return e.modifiersType||(Zl(e)?e.modifiersType=be(V(Yl(e).type),e.mapper):(t=(t=$l(Up(e.declaration)))&&262144&t.flags?u_(t):t,e.modifiersType=t&&4194304&t.flags?be(t.type,e.mapper):ne)),e.modifiersType}function t_(e){e=e.declaration;return(e.readonlyToken?41===e.readonlyToken.kind?2:1:0)|(e.questionToken?41===e.questionToken.kind?8:4:0)}function r_(e){e=t_(e);return 8&e?-1:4&e?1:0}function n_(e){if(32&sT(e))return r_(e)||n_(e_(e));if(2097152&e.flags){let r=n_(e.types[0]);return vT(e.types,(e,t)=>0===t||n_(e)===r)?r:0}return 0}function i_(e){if(32&sT(e)){var t=$l(e);if(Ip(t))return!0;var r=Xl(e);if(r&&Ip(be(r,Nf(Gl(e),t))))return!0}return!1}function a_(e){var t=Xl(e);return t?xe(t,Gl(e))?1:2:0}function o_(e){var t,r,n,i;return e.members||(524288&e.flags?4&e.objectFlags?(r=hl((t=e).target),n=LT(r.typeParameters,[r.thisType]),i=Ju(t),Nl(t,r,n,i.length===n.length?i:LT(i,[t]))):3&e.objectFlags?Nl(e,hl(e),H4,H4):1024&e.objectFlags?Ul(e):16&e.objectFlags?ql(e):32&e.objectFlags?Kl(e):Y4.fail("Unhandled object type "+Y4.formatObjectFlags(e.objectFlags)):1048576&e.flags?(n=Ol($4((r=e).types,e=>e===Ot?[ai]:ge(e,0))),i=Ol($4(r.types,e=>ge(e,1))),t=jl(r.types),ps(r,y,n,i,t)):2097152&e.flags?Bl(e):Y4.fail("Unhandled type "+Y4.formatTypeFlags(e.flags))),e}function s_(e){return 524288&e.flags?o_(e).properties:H4}function c_(e,t){if(524288&e.flags){e=o_(e).members.get(t);if(e&&ns(e))return e}}function l_(e){if(!e.resolvedProperties){var t,r,n=I7();for(t of e.types){for(var i of fe(t))n.has(i.escapedName)||(r=A_(e,i.escapedName,!!(2097152&e.flags)))&&n.set(i.escapedName,r);if(1048576&e.flags&&0===W_(t).length)break}e.resolvedProperties=us(n)}return e.resolvedProperties}function fe(e){return(3145728&(e=E_(e)).flags?l_:s_)(e)}function __(e){{if(262144&e.flags)return u_(e);if(!(8388608&e.flags))return(16777216&e.flags?h_:y_)(e);if(b_(r=e)){if(N_(r))return Mp(r.objectType,r.indexType);var t=p_(r.indexType);if(t&&t!==r.indexType){t=zp(r.objectType,t,r.accessFlags);if(t)return t}return(t=p_(r.objectType))&&t!==r.objectType?zp(t,r.indexType,r.accessFlags):void 0}}var r}function u_(e){return b_(e)?Fu(e):void 0}function d_(r,n=0){var e,t;return n<5&&!(!r||!(262144&r.flags&&X4(null==(t=r.symbol)?void 0:t.declarations,e=>TN(e,4096))||3145728&r.flags&&X4(r.types,e=>d_(e,n))||8388608&r.flags&&d_(r.objectType,n+1)||16777216&r.flags&&d_(h_(r),n+1)||33554432&r.flags&&d_(r.baseType,n)||32&sT(r)&&(t=n,e=Jf(e=r))&&d_(e,t)||Eg(r)&&0<=ST(Hd(r),(e,t)=>!!(8&r.target.elementFlags[t])&&d_(e,n))))}function p_(e){var t=Lp(e,!1);return t!==e?t:__(e)}function f_(e){var t,r;return e.resolvedDefaultConstraint||(r=(r=e).resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?be(V(r.root.node.trueType),r.combinedMapper):Gp(r)),t=$p(e),e.resolvedDefaultConstraint=B(r)?t:B(t)?r:ye([r,t])),e.resolvedDefaultConstraint}function m_(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=Lp(e.checkType,!1),t=t===e.checkType?__(t):t;if(t&&t!==e.checkType){t=Hf(e,If(e.root.checkType,t,e.mapper),!0);if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t}}e.resolvedConstraintOfDistributive=!1}function g_(e){return m_(e)||f_(e)}function h_(e){return b_(e)?g_(e):void 0}function y_(e){var t;return 464781312&e.flags||Eg(e)?(t=x_(e))!==$n&&t!==Xn?t:void 0:4194304&e.flags?Fn:void 0}function v_(e){return y_(e)||e}function b_(e){return x_(e)!==Xn}function x_(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;let i=[];return e.resolvedBaseConstraint=t(e);function t(t){if(!t.immediateBaseConstraint){if(!Us(t,4))return Xn;let e;var r,n=rg(t);(i.length<10||i.length<50&&!TT(i,n))&&(i.push(n),e=function(r){if(262144&r.flags)return n=Fu(r),r.isThisType||!n?n:c(n);if(3145728&r.flags){var t,n=r.types,i=[];let e=!1;for(t of n){var a=c(t);a?(a!==t&&(e=!0),i.push(a)):e=!0}return e?1048576&r.flags&&i.length===n.length?ye(i):2097152&r.flags&&i.length?ve(i):void 0:r}if(4194304&r.flags)return Fn;if(134217728&r.flags)return e=r.types,(o=AT(e,c)).length===e.length?yp(r.texts,o):ae;{var e;if(268435456&r.flags)return(e=c(r.type))&&e!==r.type?bp(r.symbol,e):ae}{var o;if(8388608&r.flags)return N_(r)?c(Mp(r.objectType,r.indexType)):(o=c(r.objectType),s=c(r.indexType),(s=o&&s&&zp(o,s,r.accessFlags))&&c(s))}{var s;if(16777216&r.flags)return(s=g_(r))&&c(s)}if(33554432&r.flags)return c(Zu(r));if(Eg(r))return Md($4(Hd(r),(e,t)=>{t=262144&e.flags&&8&r.target.elementFlags[t]&&c(e)||e;return t!==e&&C0(t,e=>cg(e)&&!Eg(e))?t:e}),r.target.elementFlags,r.target.readonly,r.target.labeledElementDeclarations);return r}(Lp(t,!1)),i.pop()),Ws()||(262144&t.flags&&(n=Eu(t))&&(r=ce(n,eT.Type_parameter_0_has_a_circular_constraint,ue(t)),!ke||Nw(n,ke)||Nw(ke,n)||JD(r,aT(ke,eT.Circularity_originates_in_type_at_this_location))),e=Xn),t.immediateBaseConstraint??(t.immediateBaseConstraint=e||$n)}return t.immediateBaseConstraint}function c(e){e=t(e);return e!==$n&&e!==Xn?e:void 0}}function S_(e){var t;return e.default?e.default===Qn&&(e.default=Xn):e.target?(t=S_(e.target),e.default=t?be(t,e.mapper):$n):(e.default=Qn,t=(t=e.symbol&&G4(e.symbol.declarations,e=>KE(e)&&e.default))?V(t):$n,e.default===Qn&&(e.default=t)),e.default}function k_(e){e=S_(e);return e!==$n&&e!==Xn?e:void 0}function T_(e){return e.symbol&&G4(e.symbol.declarations,e=>KE(e)&&e.default)}function C_(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=e.target??e,r=Jf(t);if(r&&!t.declaration.nameType){var n=e_(e),n=(i_(n)?C_:y_)(n);if(n&&C0(n,e=>cg(e)||w_(e)))return be(t,If(r,n,e.mapper))}return e}(e))}function w_(e){return!!(2097152&e.flags)&&vT(e.types,cg)}function N_(e){let t;return 8388608&e.flags&&32&sT(t=e.objectType)&&!i_(t)&&Ip(e.indexType)&&!(8&t_(t))&&!t.declaration.nameType}function D_(e){var t,r=465829888&e.flags?y_(e)||ne:e,n=sT(r);return 32&n?C_(r):4&n&&r!==e?wl(r,e):2097152&r.flags?(n=r)===(e=e)?n.resolvedApparentType||(n.resolvedApparentType=wl(n,e,!0)):ka(t=`I${n.id},`+e.id)??Ta(t,wl(n,e,!0)):402653316&r.flags?Bt:296&r.flags?Jt:2112&r.flags?(xr=xr||pd("BigInt",0,!1))||zn:528&r.flags?zt:12288&r.flags?vd():67108864&r.flags?zn:4194304&r.flags?Fn:2&r.flags&&!te?zn:r}function E_(e){return I_(D_(I_(e)))}function P_(o,s,e){let c,l,_,u,d,p;var t,f,m=1048576&o.flags;let g,h=4,y=m?0:8,v=!1;for(t of o.types){var r,n,i,a=D_(t);de(a)||131072&a.flags||(n=(r=me(a,s,e))?rD(r):0,r?(106500&r.flags&&(g=g??(m?0:16777216),m?g|=16777216&r.flags:g&=r.flags),u?r!==u&&((Lk(r)||r)===(Lk(u)||u)&&-1===ng(u,r,(e,t)=>e===t?-1:0)?v=!!u.parent&&!!K4(Wc(u.parent)):(d||(d=new Map).set(sj(u),u),i=sj(r),d.has(i)||d.set(i,r))):u=r,m&&zb(r)?y|=8:m||zb(r)||(y&=-9),y|=(6&n?0:256)|(4&n?512:0)|(2&n?1024:0)|(256&n?2048:0),Qy(r)||(h=2)):m&&((i=!vl(s)&&X_(a,s))?(y|=32|(i.isReadonly?8:0),p=Q4(p,Se(a)?Fg(a)||ie:i.type)):!Fh(a)||2097152&sT(a)?y|=16:(y|=32,p=Q4(p,ie))))}if(u&&(!(m&&(d||48&y)&&1536&y)||d&&function(e){let r;for(let t of e){if(!t.declarations)return;if(r){if(r.forEach(e=>{TT(t.declarations,e)||r.delete(e)}),0===r.size)return}else r=new Set(t.declarations)}return r}(d.values()))){if(!(d||16&y||p))return v?(T=null==(c=o3(u,O7))?void 0:c.links,(f=Gg(u,null==T?void 0:T.type)).parent=null==(_=null==(l=u.valueDeclaration)?void 0:l.symbol)?void 0:_.parent,f.links.containingType=o,f.links.mapper=null==T?void 0:T.mapper,f.links.writeType=Rc(u),f):u;let e,t,r;var b,x=[];let n,i,a=!1;for(b of d?ZT(d.values()):[u]){i?b.valueDeclaration&&b.valueDeclaration!==i&&(a=!0):i=b.valueDeclaration,e=BT(e,b.declarations);var S=pe(b),k=(t||(t=S,r=le(b).nameType),Rc(b));!n&&k===S||(n=Q4(n||x.slice(),k)),S!==t&&(y|=64),(Sg(S)||Ep(S))&&(y|=128),131072&S.flags&&S!==Rn&&(y|=131072),x.push(S)}BT(x,p);var T=O(4|(g??0),s,h|y);return T.links.containingType=o,!a&&i&&(T.valueDeclaration=i).symbol.parent&&(T.parent=i.symbol.parent),T.declarations=e,T.links.nameType=r,2{var t;return!(null==(t=e.symbol)||!t.parent||!((t=e.symbol.parent)&&Rt.symbol&&Mt.symbol)||!ts(t,Rt.symbol)&&!ts(t,Mt.symbol)||(r?r!==e.symbol.escapedName:(r=e.symbol.escapedName,0)))}))return n=Fd(D0(e,e=>wf((J_(e.symbol.parent)?Mt:Rt).typeParameters[0],e.mapper)),T0(e,e=>J_(e.symbol.parent))),e.arrayFallbackSignatures=ge(Ks(n,r),t);e.arrayFallbackSignatures=i}return i}function J_(e){return!(!e||!Mt.symbol||!ts(e,Mt.symbol))}function z_(e,t){return bT(e,e=>e.keyType===t)}function q_(e,t){let r,n,i;for(var a of e)a.keyType===ae?r=a:U_(t,a.keyType)&&(n?(i=i||[n]).push(a):n=a);return i?Cu(ne,ve($4(i,e=>e.type)),QT(i,(e,t)=>e&&t.isReadonly,!0)):n||(r&&U_(t,ae)?r:void 0)}function U_(e,t){return xe(e,t)||t===ae&&xe(e,oe)||t===oe&&(e===On||!!(128&e.flags)&&sE(e.value))}function V_(e){return 3670016&e.flags?o_(e).indexInfos:H4}function W_(e){return V_(E_(e))}function H_(e,t){return z_(W_(e),t)}function K_(e,t){return null==(e=H_(e,t))?void 0:e.type}function G_(e,t){return W_(e).filter(e=>U_(t,e.keyType))}function $_(e,t){return q_(W_(e),t)}function X_(e,t){return $_(e,vl(t)?Tn:pf(X3(t)))}function Q_(e){let t,r;for(var n of mC(e))r=zT(r,sl(n.symbol));return null!=r&&r.length?r:!rF(e)||null==(t=ou(e))?void 0:t.typeParameters}function Y_(e){let r=[];return e.forEach((e,t)=>{_s(t)||r.push(e)}),r}function Z_(e,t){if(!B3(e))return(e=Ka(pt,'"'+e+'"',512))&&t?S(e):e}function eu(e){return rw(e)||dE(e)||GE(e)&&fE(e)}function tu(e){var t,r;return!!eu(e)||!!GE(e)&&(e.initializer?(t=au(e.parent),r=e.parent.parameters.indexOf(e),Y4.assert(0<=r),r>=sb(t,3)):!!(r=o8(e.parent))&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=l2(r).length)}function ru(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function nu(t){let r=0;if(t)for(let e=0;ec.arguments.length&&!u);d||(n=s.length)}}177!==o.kind&&178!==o.kind||!xl(o)||a&&i||(l=177===o.kind?178:177,(l=F7(F(o),l))&&(i=(l=D4(l=l))&&l.symbol)),e&&e.typeExpression&&(i=Gg(O(1,"this"),V(e.typeExpression)));l=KF(o)?pw(o):o,l=l&&tP(l)?tl(S(l.parent.symbol)):void 0,l=l?l.localTypeParameters:Q_(o);(C7(o)||oT(o)&&function(e,t){if(KF(e)||!su(e))return;var r=KT(e.parameters),r=r?iC(r):dC(e).filter(QF),e=yT(r,e=>e.typeExpression&&WF(e.typeExpression.type)?e.typeExpression.type:void 0),r=O(3,"args",32768);e?r.links.type=Fd(V(e.type)):(r.links.checkFlags|=65536,r.links.deferralParent=M,r.links.deferralConstituents=[Vt],r.links.deferralWriteConstituents=[Vt]);e&&t.pop();return t.push(r),1}(o,s))&&(r|=1),(lP(o)&&TN(o,64)||tP(o)&&TN(o.parent,64))&&(r|=4),t.resolvedSignature=Dl(o,l,i,s,void 0,void 0,n,r)}return t.resolvedSignature}function ou(e){if(oT(e)&&MC(e))return(null==(e=_C(e))?void 0:e.typeExpression)&&Gv(V(e.typeExpression))}function su(e){var t=P(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===gt.escapedName&&i4(t)===gt;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!tN(t)&&!O5(t)&&!!h9(t,e)}}(e.body)),t.containsArgumentsReference}function cu(t){if(!t||!t.declarations)return H4;var r=[];for(let e=0;ee.escapedName===r.escapedText),n)}(r,t):e||ni:t.declaration&&MC(t.declaration)&&(!t.resolvedReturnType||16&t.resolvedReturnType.flags)&&0{if(t||!e.expression)return!0;t=e.expression})||!t||Lb(e))return;return function(n,i){var e=lx(i=Cw(i,!0));if(16&e.flags)return G4(n.parameters,(e,t)=>{var r=pe(e.symbol);return!(!r||16&r.flags||!uT(e.name)||X0(e.symbol)||w7(e))&&(r=function(e,t,r,n){var i=t.flowNode||253===t.parent.kind&&t.parent.flowNode||lL(2,void 0,void 0),a=lL(32,t,i),a=G0(r.name,n,n,e,a);if(a!==n)return t=lL(64,t,i),131072&G0(r.name,n,a,e,t).flags?a:void 0}(n,i,e,r))?ru(1,X3(e.name.escapedText),t,r):void 0})}(e,t)}}(n)||ni):t.resolvedTypePredicate=ni}Y4.assert(!!t.resolvedTypePredicate)}var i;return t.resolvedTypePredicate===ni?void 0:t.resolvedTypePredicate}function du(e,t,r){return 2097152!==t?ye(e,r):ve(e)}function he(t){if(!t.resolvedReturnType){if(!Us(t,3))return R;let e=t.target?be(he(t.target),t.mapper):t.compositeSignatures?be(du($4(t.compositeSignatures,he),t.compositeKind,2),t.mapper):pu(t.declaration)||(W7(t.declaration.body)?re:Pb(t.declaration));var r,n;8&t.flags?e=Jg(e):16&t.flags&&(e=Mg(e)),Ws()||(t.declaration&&((r=yN(t.declaration))?ce(r,eT.Return_type_annotation_circularly_references_itself):Te&&((n=tC(r=t.declaration))?ce(n,eT._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,d5(n)):ce(r,eT.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))),e=re),t.resolvedReturnType??(t.resolvedReturnType=e)}return t.resolvedReturnType}function pu(e){if(176===e.kind)return tl(S(e.parent.symbol));var t=yN(e);if(KF(e)){var r=mw(e);if(r&&tP(r.parent)&&!t)return tl(S(r.parent.parent.symbol))}if(nw(e))return V(e.parameters[0].type);if(t)return V(t);if(177===e.kind&&xl(e)){var r=oT(e)&&ac(e);if(r)return r;t=Dc(F7(F(e),178));if(t)return t}return(r=ou(r=e))&&he(r)}function fu(e){return e.compositeSignatures&&X4(e.compositeSignatures,fu)||!e.resolvedReturnType&&0<=Vs(e,3)}function mu(e){if(pj(e))return(e=Se(e=pe(e.parameters[e.parameters.length-1]))?Fg(e):e)&&K_(e,oe)}function gu(e,t,r,n){t=hu(e,iu(t,e.typeParameters,nu(e.typeParameters),r));if(n){var e=$v(he(t));if(e)return(r=El(e)).typeParameters=n,(e=El(t)).resolvedReturnType=Su(r),e}return t}function hu(e,t){var r=e.instantiations||(e.instantiations=new Map),n=Iu(t);let i=r.get(n);return i||r.set(n,i=yu(e,t)),i}function yu(e,t){return jf(e,Cf(e.typeParameters,t),!0)}function vu(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=jf(e,Ff(e.typeParameters),!0)):e}function bu(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=gu(t=e,$4(t.typeParameters,e=>e.target&&!u_(e.target)?e.target:e),oT(t.declaration))):e;var t}function xu(e){return e.typeParameters?e.implementationSignatureCache||(e.implementationSignatureCache=(t=e).typeParameters?jf(t,Cf([],[])):t):e;var t}function Su(e,t){var r,n;return e.isolatedSignatureType||(r=void 0===(r=null==(r=e.declaration)?void 0:r.kind)||176===r||180===r||185===r,n=cs(134217744,O(16,"__function")),e.declaration&&!rN(e.declaration)&&(n.symbol.declarations=[e.declaration],n.symbol.valueDeclaration=e.declaration),t=t||e.declaration&&Uc(e.declaration,!0),n.outerTypeParameters=t,n.members=y,n.properties=H4,n.callSignatures=r?H4:[e],n.constructSignatures=r?[e]:H4,n.indexInfos=H4,e.isolatedSignatureType=n),e.isolatedSignatureType}function ku(e){return e.members?Tu(e.members):void 0}function Tu(e){return e.get("__index")}function Cu(e,t,r,n){return{keyType:e,type:t,isReadonly:r,declaration:n}}function wu(e){e=ku(e);return e?Nu(e):H4}function Nu(e){if(e.declarations){let r=[];for(let t of e.declarations){var n;1===t.parameters.length&&(n=t.parameters[0]).type&&k0(V(n.type),e=>{Du(e)&&!z_(r,e)&&r.push(Cu(e,t.type?V(t.type):re,kN(t,8),t))})}return r}return H4}function Du(e){return!!(4108&e.flags)||Ep(e)||!!(2097152&e.flags)&&!Fp(e)&&X4(e.types,Du)}function Eu(e){return AT(NT(e.symbol&&e.symbol.declarations,KE),gC)[0]}function Pu(e,t){let r,n;if(null!=(r=e.symbol)&&r.declarations)for(var o of e.symbol.declarations)if(195===o.parent.kind){var s,[c=o.parent,l]=kw(o.parent.parent);if(183!==l.kind||t)169===l.kind&&l.dotDotDotToken||191===l.kind||202===l.kind&&l.dotDotDotToken?n=Q4(n,Fd(ne)):204===l.kind?n=Q4(n,ae):168===l.kind&&200===l.parent.kind?n=Q4(n,Fn):200===l.kind&&l.type&&Cw(l.type)===o.parent&&194===l.parent.kind&&l.parent.extendsType===l&&200===l.parent.checkType.kind&&l.parent.checkType.type&&(s=V((o=l.parent.checkType).type),n=Q4(n,be(s,Nf(sl(F(o.typeParameter)),o.typeParameter.constraint?V(o.typeParameter.constraint):Fn))));else{let i=l,a=zx(i);a&&(s=i.typeArguments.indexOf(c))()=>{var e=i,t=a,r=n;return e.typeArguments&&rR))||H4;var r=e.node,r=r?183===r.kind?LT(e.target.outerTypeParameters,Bx(r,e.target.localTypeParameters)):188===r.kind?[V(r.elementType)]:$4(r.elements,V):H4;Ws()?e.resolvedTypeArguments??(e.resolvedTypeArguments=e.mapper?Sf(r,e.mapper):r):(e.resolvedTypeArguments??(e.resolvedTypeArguments=(null==(t=e.target.localTypeParameters)?void 0:t.map(()=>R))||H4),ce(e.node||ke,e.target.symbol?eT.Type_arguments_for_0_circularly_reference_themselves:eT.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&_e(e.target.symbol)))}return e.resolvedTypeArguments}function zu(e){return K4(e.target.typeParameters)}function qu(e,t){var r=cl(S(t)),n=r.localTypeParameters;if(n){var i=K4(e.typeArguments),a=nu(n),o=oT(e);if(!(!Te&&o)&&(in.length)){i=o&&qP(e)&&!GF(e.parent);if(ce(e,a===n.length?i?eT.Expected_0_type_arguments_provide_these_with_an_extends_tag:eT.Generic_type_0_requires_1_type_argument_s:i?eT.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:eT.Generic_type_0_requires_between_1_and_2_type_arguments,ue(r,void 0,2),a,n.length),!o)return R}return 183===e.kind&&jd(e,K4(e.typeArguments)!==n.length)?Bu(r,e,void 0):Ru(r,LT(r.outerTypeParameters,iu(od(e),n,a,o)))}return nd(e,t)?r:R}function Uu(e,t,r,n){var i=cl(e);if(i===un){var a=nj.get(e.escapedName);if(void 0!==a&&t&&1===t.length)return 4===a?Gu(t[0]):bp(e,t[0])}var a=le(e),o=a.typeParameters,s=Iu(t)+Ou(r,n);let c=a.instantiations.get(s);return c||a.instantiations.set(s,c=Kf(i,Cf(o,iu(t,o,nu(o),oT(e.valueDeclaration))),r,n)),c}function Vu(e){e=null==(e=e.declarations)?void 0:e.find(aw);return e&&X5(e)}function Wu(t){var r=(166===t.kind?t.right:211===t.kind?t.name:t).escapedText;if(r){var t=166===t.kind?Wu(t.left):211===t.kind?Wu(t.expression):void 0,n=t?function e(t){return t.parent?e(t.parent)+"."+t.escapedName:t.escapedName}(t)+"."+r:r;let e=rn.get(n);return e||(rn.set(n,e=O(524288,r,1048576)),e.parent=t,e.links.declaredType=ln),e}return j}function Hu(e,t,r){e=function(e){switch(e.kind){case 183:return e.typeName;case 233:var t=e.expression;if(UN(t))return t}}(e);return e?(t=Ao(e,t,r))&&t!==j?t:r?j:Wu(e):j}function Ku(e,t){if(t===j)return R;if(96&(t=function(e){var t=e.valueDeclaration;if(t&&oT(t)&&!(524288&e.flags)&&!R8(t,!1)){t=(eF(t)?L8:j8)(t);if(t){t=$o(t);if(t)return P2(t,e)}}}(t)||t).flags)return qu(e,t);if(524288&t.flags){var r=e,n=t;if(1048576&tD(n)){var i=od(r),a=Ou(n,i);let e=nn.get(a);return e||((e=ss(1,"error",void 0,"alias "+a)).aliasSymbol=n,e.aliasTypeArguments=i,nn.set(a,e)),e}if(i=cl(n),a=le(n).typeParameters){var o=K4(r.typeArguments),s=nu(a);if(oa.length)return ce(r,s===a.length?eT.Generic_type_0_requires_1_type_argument_s:eT.Generic_type_0_requires_between_1_and_2_type_arguments,_e(n),s,a.length),R;var o=ef(r);let e=!o||!Vu(n)&&Vu(o)?void 0:o,t;return e?t=tf(e):S7(r)&&(s=Hu(r,2097152,!0))&&s!==j&&(o=Co(s))&&524288&o.flags&&(e=o,t=od(r)||(a?[]:void 0)),Uu(n,od(r),e,t)}return nd(r,n)?i:R}s=ll(t);return s?nd(e,t)?uf(s):R:111551&t.flags&&rd(e)?function(t,r){var n=P(t);if(!n.resolvedJSDocType){var i,a=pe(r);let e=a;r.valueDeclaration&&(i=205===t.kind&&t.qualifier,a.symbol)&&a.symbol!==r&&i&&(e=Ku(t,a.symbol)),n.resolvedJSDocType=e}return n.resolvedJSDocType}(e,t)||(Hu(e,788968),pe(t)):R}function Gu(e){return $u(e)?Yu(e,ne):e}function $u(e){return!!(3145728&e.flags&&X4(e.types,$u)||33554432&e.flags&&!Xu(e)&&$u(e.baseType)||524288&e.flags&&!wm(e)||432275456&e.flags&&!Ep(e))}function Xu(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function Qu(e,t){return 3&t.flags||t===e||1&e.flags?e:Yu(e,t)}function Yu(e,t){var r=e.id+">"+t.id,n=Gr.get(r);return n||((n=is(33554432)).baseType=e,n.constraint=t,Gr.set(r,n),n)}function Zu(e){return Xu(e)?e.baseType:ve([e.constraint,e.baseType])}function ed(e){return 189===e.kind&&1===e.elements.length}function td(e,t){let r,n=!0;for(;t&&!d7(t)&&320!==t.kind;){var i,a,o=t.parent;((n=169===o.kind?!n:n)||8650752&e.flags)&&194===o.kind&&t===o.trueType?(i=function e(t,r,n){return ed(r)&&ed(n)?e(t,r.elements[0],n.elements[0]):Vp(V(r))===Vp(t)?V(n):void 0}(e,o.checkType,o.extendsType))&&(r=Q4(r,i)):262144&e.flags&&200===o.kind&&!o.nameType&&t===o.type&&Gl(i=V(o))===Vp(e)&&(a=Jf(i))&&(a=u_(a))&&C0(a,cg)&&(r=Q4(r,ye([oe,On]))),t=o}return r?Qu(e,ve(r)):e}function rd(e){return!!(16777216&e.flags)&&(183===e.kind||205===e.kind)}function nd(e,t){if(!e.typeArguments)return 1;ce(e,eT.Type_0_is_not_generic,t?_e(t):e.typeName?d5(e.typeName):KL)}function id(e){if(uT(e.typeName)){var t,r,n=e.typeArguments;switch(e.typeName.escapedText){case"String":return nd(e),ae;case"Number":return nd(e),oe;case"Boolean":return nd(e),kn;case"Void":return nd(e),Cn;case"Undefined":return nd(e),ie;case"Null":return nd(e),gn;case"Function":case"function":return nd(e),Ot;case"array":return n&&n.length||Te?void 0:Vt;case"promise":return n&&n.length||Te?void 0:Nb(re);case"Object":return n&&2===n.length?D8(e)?(r=V(n[0]),t=V(n[1]),r=r===ae||r===oe?[Cu(r,t,!1)]:H4,fs(void 0,y,H4,H4,r)):re:(nd(e),Te?void 0:re)}}}function ad(r){var n=P(r);if(!n.resolvedType){if(kC(r)&&r7(r.parent))return n.resolvedSymbol=j,n.resolvedType=lx(r.parent.expression);let e,t;var i=788968;!rd(r)||(t=id(r))||((e=Hu(r,i,!0))===j?e=Hu(r,900095):Hu(r,i),t=Ku(r,e)),t||(e=Hu(r,i),t=Ku(r,e)),n.resolvedSymbol=e,n.resolvedType=t}return n.resolvedType}function od(e){return $4(e.typeArguments,V)}function sd(e){var t=P(e);return t.resolvedType||(e=W2(e),t.resolvedType=uf(Zg(e))),t.resolvedType}function cd(e,t){function r(e){e=e.declarations;if(e)for(var t of e)switch(t.kind){case 263:case 264:case 266:return t}}var n;return e?524288&(n=cl(e)).flags?K4(n.typeParameters)!==t?(ce(r(e),eT.Global_type_0_must_have_1_type_parameter_s,Y3(e),t),t?Kn:zn):n:(ce(r(e),eT.Global_type_0_must_be_a_class_or_interface_type,Y3(e)),t?Kn:zn):t?Kn:zn}function ld(e,t){return dd(e,111551,t?eT.Cannot_find_global_value_0:void 0)}function _d(e,t){return dd(e,788968,t?eT.Cannot_find_global_type_0:void 0)}function ud(e,t,r){e=dd(e,788968,r?eT.Cannot_find_global_type_0:void 0);if(e&&(cl(e),K4(le(e).typeParameters)!==t))return void ce(e.declarations&&bT(e.declarations,aF),eT.Global_type_0_must_have_1_type_parameter_s,Y3(e),t);return e}function dd(e,t,r){return St(void 0,e,t,r,!1,!1)}function pd(e,t,r){e=_d(e,r);return e||r?cd(e,t):void 0}function fd(){return dr=dr||pd("ImportMeta",0,!0)||zn}function md(){var e,t,r;return pr||(e=O(0,"ImportMetaExpression"),r=fd(),(t=O(4,"meta",8)).parent=e,t.links.type=r,r=I7([t]),e.members=r,pr=fs(e,r,H4,H4,H4)),pr}function gd(e){return(fr=fr||pd("ImportCallOptions",0,e))||zn}function hd(e){return(mr=mr||pd("ImportAttributes",0,e))||zn}function yd(e){return Gt=Gt||ld("Symbol",e)}function vd(){return(e=e||pd("Symbol",0,!1))||zn}function bd(e){return(Qt=Qt||pd("Promise",1,e))||Kn}function xd(e){return(Yt=Yt||pd("PromiseLike",1,e))||Kn}function Sd(e){return Zt=Zt||ld("Promise",e)}function kd(e){return(sr=sr||pd("AsyncIterable",1,e))||Kn}function Td(e){return(tr=tr||pd("Iterable",1,e))||Kn}function Cd(e){return(gr=gr||pd("Disposable",0,e))||zn}function wd(e,t=0){e=dd(e,788968,void 0);return e&&cd(e,t)}function Nd(e){return(br=br||ud("Awaited",1,e)||(e?j:void 0))===j?void 0:br}function Dd(e,t){return e!==Kn?Ru(e,t):zn}function Ed(e){return Dd(Xt=Xt||pd("TypedPropertyDescriptor",1,!0)||Kn,[e])}function Pd(e){return Dd(Td(!0),[e])}function Fd(e,t){return Dd(t?Mt:Rt,[e])}function Ad(e){switch(e.kind){case 190:return 2;case 191:return Id(e);case 202:return e.questionToken?2:e.dotDotDotToken?Id(e):1;default:return 1}}function Id(e){return vf(e.type)?4:8}function Od(e){var t=vP(t=e.parent)&&148===t.operator;return vf(e)?t?Mt:Rt:Bd($4(e.elements,Ad),t,$4(e.elements,Ld))}function Ld(e){return pP(e)||GE(e)?e:void 0}function jd(e,t){return ef(e)||function e(t){let r=t.parent;switch(r.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return e(r);case 265:return!0}return!1}(e)&&(188===e.kind?Rd(e.elementType):189===e.kind?X4(e.elements,Rd):t||X4(e.typeArguments,Rd))}function Rd(e){switch(e.kind){case 183:return rd(e)||!!(524288&Hu(e,788968).flags);case 186:return!0;case 198:return 158!==e.operator&&Rd(e.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return Rd(e.type);case 191:return 188!==e.type.kind||Rd(e.type.elementType);case 192:case 193:return X4(e.types,Rd);case 199:return Rd(e.objectType)||Rd(e.indexType);case 194:return Rd(e.checkType)||Rd(e.extendsType)||Rd(e.trueType)||Rd(e.falseType)}return!1}function Md(e,t,r=!1,n=[]){t=Bd(t||$4(e,e=>1),r,n);return t===Kn?zn:e.length?Jd(t,e):t}function Bd(e,t,r){if(1===e.length&&4&e[0])return t?Mt:Rt;var n=$4(e,e=>1&e?"#":2&e?"?":4&e?".":"*").join()+(t?"R":"")+(X4(r,e=>!!e)?","+$4(r,e=>e?oj(e):"_").join(","):"");let i=Rr.get(n);return i||Rr.set(n,i=function(t,r,n){let i=t.length,a=wT(t,e=>!!(9&e)),o,s=[],c=0;if(i){o=new Array(i);for(let e=0;e!!(8&n.elementFlags[t]&&1179648&e.flags));if(0<=t)return op($4(i,(e,t)=>8&n.elementFlags[t]?e:ne))?D0(i[t],e=>zd(n,$T(i,t,e))):R}let a=[],o=[],s=[],c=-1,l=-1,_=-1;for(let e=0;e{return p(e,r.target.elementFlags[t],null==(e=r.target.labeledElementDeclarations)?void 0:e[t])})}else p(ug(r)&&K_(r,oe)||R,4,null==(d=n.labeledElementDeclarations)?void 0:d[e]);else p(r,u,null==(u=n.labeledElementDeclarations)?void 0:u[e])}for(let e=0;e8&o[l+t]?Bp(e,oe):e)),a.splice(l+1,_-l),o.splice(l+1,_-l),s.splice(l+1,_-l));var e=Bd(o,n.readonly,s);return e===Kn?zn:o.length?Ru(e,a):e;function p(e,t,r){1&t&&(c=o.length),4&t&&l<0&&(l=o.length),6&t&&(_=o.length),a.push(2&t?sc(e,!0):e),o.push(t),s.push(r)}}function qd(e,t,r=0){var n=e.target,r=zu(e)-r;return t>n.fixedLength?function(e){e=Fg(e);return e&&Fd(e)}(e)||Md(H4):Md(Ju(e).slice(t,r),n.elementFlags.slice(t,r),!1,n.labeledElementDeclarations&&n.labeledElementDeclarations.slice(t,r))}function Ud(e){return ye(Q4(YT(e.target.fixedLength,e=>pf(""+e)),gp(e.target.readonly?Mt:Rt)))}function Vd(e,t){return e.elementFlags.length-kT(e.elementFlags,e=>!(e&t))-1}function Wd(e){return e.fixedLength+Vd(e,3)}function Hd(e){var t=Ju(e),e=zu(e);return t.length===e?t:t.slice(0,e)}function Kd(e){return e.id}function Gd(e,t){return 0<=XT(e,t,Kd,l3)}function $d(e,t){var r=XT(e,t,Kd,l3);return r<0&&(e.splice(~r,0,t),1)}function Xd(t,r,n){let i;for(let e of n)e!==i&&(r=1048576&e.flags?Xd(t,r|(1048576&(c=e).flags&&(c.aliasSymbol||c.origin)?1048576:0),e.types):(c=t,a=r,o=e,s=void 0,131072&(s=o.flags)||(a|=473694207&s,465829888&s&&(a|=33554432),2097152&s&&67108864&sT(o)&&(a|=536870912),o===sn&&(a|=8388608),de(o)&&(a|=1073741824),!te&&98304&s?65536&sT(o)||(a|=4194304):(s=(s=c.length)&&o.id>c[s-1].id?~s:XT(c,o,Kd,l3))<0&&c.splice(~s,0,o)),a),i=e);var a,o,s,c;return r}function Qd(t){var n=NT(t,Ep);if(n.length){let e=t.length;for(;0{return t=r,(134217728&(e=e).flags?wh:Th)(t,e);var t})&&d3(t,e)}}}function Yd(e,t){e=os(e);return e.types=t,e}function ye(t,r=1,n,i,a){if(0===t.length)return M;if(1===t.length)return t[0];if(2!==t.length||a||!(1048576&t[0].flags||1048576&t[1].flags))return Zd(t,r,n,i,a);{a=t[0].idGd(t,e))){let e=g.length;for(;0!!(524288&e.flags)&&!i_(e)&&Tm(o_(e))),s=n.length;let e=s,r=0;for(;0e===t?M:e)),la)&&d3(n,e);else{var c,l=61603840&t.flags?bT(fe(t),e=>bg(pe(e))):void 0,_=l&&uf(pe(l));for(c of n)if(t!==c){if(1e5===r)if(1e6e.id)}),void ce(ke,eT.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(r++,l&&61603840&c.flags){var u=Ks(c,l.escapedName);if(u&&bg(u)&&uf(u)!==_)continue}if(Fm(t,c,la)&&(!(1&sT(Jc(t)))||!(1&sT(Jc(c)))||sm(t,c))){d3(n,e);break}}}}$r.set(i,n)}return n}(a,!!(524288&o))))return R;if(0===a.length)return 65536&o?4194304&o?gn:hn:32768&o?4194304&o?ie:dn:M}if(!i&&1048576&o){var x=[],S=(!function e(t,r){for(var n of r){var i;1048576&n.flags&&(i=n.origin,n.aliasSymbol||i&&!(1048576&i.flags)?JT(t,n):i&&1048576&i.flags&&e(t,i.types))}}(x,e),[]);for(let t of a)X4(x,e=>Gd(e.types,t))||S.push(t);if(!r&&1===x.length&&0===S.length)return x[0];if(QT(x,(e,t)=>e+t.types.length,0)+S.length===a.length){for(var k of x)$d(S,k);i=Yd(1048576,S)}}return tp(a,(36323331&o?0:32768)|(2097152&o?16777216:0),r,n,i)}function ep(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function tp(e,t,r,n,i){if(0===e.length)return M;if(1===e.length)return e[0];var a=(i?1048576&i.flags?"|"+Iu(i.types):2097152&i.flags?"&"+Iu(i.types):`#${i.type.id}|`+Iu(e):Iu(e))+Ou(r,n);let o=Mr.get(a);return o||((o=is(1048576)).objectFlags=t|Lu(e,98304),o.types=e,o.origin=i,o.aliasSymbol=r,o.aliasTypeArguments=n,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),Mr.set(a,o)),o}function rp(e,t,r){for(var n of r)i=e,a=t,n=uf(n),o=void 0,t=2097152&(o=n.flags)?rp(i,a,n.types):(wm(n)?16777216&a||(a|=16777216,i.set(n.id.toString(),n)):(3&o?(n===sn&&(a|=8388608),de(n)&&(a|=1073741824)):!te&&98304&o||(n===pn&&(a|=262144,n=ie),i.has(n.id.toString()))||(109472&n.flags&&109472&a&&(a|=67108864),i.set(n.id.toString(),n)),a|=473694207&o),a);var i,a,o;return t}function np(t,r){for(let e=0;e!(e.flags&r))}function ip(t){let r;var n=ST(t,e=>!!(32768&sT(e)));if(!(n<0)){let e=n+1;for(;e!!(128&e.flags));0!!(469893116&e.flags)||wm(e))){if(om(l,t))return _;if(!(1048576&l.flags&&T0(l,e=>om(e,t))||om(t,l)))return M;a=67108864}}}_=Iu(i)+(2&e?"*":Ou(t,n));let u=Jr.get(_);if(!u){if(1048576&r)if(ip(i))u=ve(i,e,t,n);else if(vT(i,e=>!!(1048576&e.flags&&32768&e.types[0].flags))){var l=X4(i,Wg)?pn:ie;np(i,32768),u=ye([ve(i,e),l],1,t,n)}else if(vT(i,e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags))))np(i,65536),u=ye([ve(i,e),gn],1,t,n);else if(4<=i.length){r=Math.floor(i.length/2);u=ve([ve(i.slice(0,r),e),ve(i.slice(r),e)],e,t,n)}else{if(!op(i))return R;l=function(r,n){var t=ap(r),i=[];for(let e=0;e!!(2097152&e.flags))&&sp(l)>sp(i)?Yd(2097152,i):void 0;u=ye(l,1,t,n,r)}else u=(e=i,l=a,r=t,i=n,(t=is(2097152)).objectFlags=l|Lu(e,98304),t.types=e,t.aliasSymbol=r,t.aliasTypeArguments=i,t);Jr.set(_,u)}return u}function ap(e){return QT(e,(e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e,1)}function op(e){var t=ap(e);if(!(1e5<=t))return 1;null!=Z4&&Z4.instant(Z4.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map(e=>e.id),size:t}),ce(ke,eT.Expression_produces_a_union_type_that_is_too_complex_to_represent)}function sp(e){return QT(e,(e,t)=>e+function e(t){return 3145728&t.flags&&!t.aliasSymbol?1048576&t.flags&&t.origin?e(t.origin):sp(t.types):1}(t),0)}function cp(e,t){var r=is(4194304);return r.type=e,r.indexFlags=t,r}function lp(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=cp(e,1)):e.resolvedIndexType||(e.resolvedIndexType=cp(e,0))}function _p(t,e){let r=Gl(t);var n=$l(t);let i=Xl(t.target||t);if(!(i||2&e))return n;let a=[];if(Ip(n)){if(Zl(t))return lp(t,e);k0(n,o)}else Zl(t)?Hl(D_(e_(t)),8576,!!(1&e),o):k0(Vl(n),o);e=2&e?w0(ye(a),e=>!(5&e.flags)):ye(a);return 1048576&e.flags&&1048576&n.flags&&Iu(e.types)===Iu(n.types)?n:e;function o(e){e=i?be(i,Of(t.mapper,r,e)):e;a.push(e===ae?Pn:e)}}function up(e){let r=Gl(e);return function e(t){return!!(470810623&t.flags)||(16777216&t.flags?t.root.isDistributive&&t.checkType===r:137363456&t.flags?vT(t.types,e):8388608&t.flags?e(t.objectType)&&e(t.indexType):33554432&t.flags?e(t.baseType)&&e(t.constraint):!!(268435456&t.flags)&&e(t.type))}(Xl(e)||r)}function dp(e){var t;return UE(e)?M:zE(e)?uf(A(e)):HE(e)?uf(xy(e)):void 0!==(t=Ww(e))?pf(X3(t)):nT(e)?uf(A(e)):M}function pp(t,r,n){if(n||!(6&rD(t))){let e=le(Cl(t)).nameType;if(e||(n=tC(t.valueDeclaration),e="default"===t.escapedName?pf("default"):n&&dp(n)||(Xw(t)?void 0:pf(Y3(t)))),e&&e.flags&r)return e}return M}function fp(e,t,r){var n,r=r&&(7&sT(e)||e.aliasSymbol)?(r=e,(n=os(4194304)).type=r,n):void 0;return ye(LT($4(fe(e),e=>pp(e,t)),$4(W_(e),e=>e!==ci&&function t(e,r){return!!(e.flags&r||2097152&e.flags&&X4(e.types,e=>t(e,r)))}(e.keyType,t)?e.keyType===ae&&8&t?Pn:e.keyType:M)),1,void 0,void 0,r)}function mp(e,t=0){return!!(58982400&e.flags||Eg(e)||i_(e)&&(!up(e)||2===a_(e))||1048576&e.flags&&!(4&t)&&R_(e)||2097152&e.flags&&Gb(e,465829888)&&X4(e.types,wm))}function gp(e,t=0){return Xu(e=I_(e))?Gu(gp(e.baseType,t)):mp(e,t)?lp(e,t):1048576&e.flags?ve($4(e.types,e=>gp(e,t))):2097152&e.flags?ye($4(e.types,e=>gp(e,t))):32&sT(e)?_p(e,t):e===sn?sn:2&e.flags?M:131073&e.flags?Fn:fp(e,(2&t?128:402653316)|(1&t?0:12584),0===t)}function hp(e){var t=(yr=yr||ud("Extract",2,!0)||j)===j?void 0:yr;return t?Uu(t,[e,ae]):ae}function yp(t,r){let n=ST(r,e=>!!(1179648&e.flags));if(0<=n)return op(r)?D0(r[n],e=>yp(t,$T(r,n,e))):R;if(TT(r,sn))return sn;let a=[],o=[],s=t[0];if(!function r(n,i){for(let t=0;t""===e)){if(vT(a,e=>!!(4&e.flags)))return ae;if(1===a.length&&Ep(a[0]))return a[0]}var e,i,c=`${Iu(a)}|${$4(o,e=>e.length).join(",")}|`+o.join("");let l=Hr.get(c);return l||Hr.set(c,l=(c=o,e=a,(i=is(134217728)).texts=c,i.types=e,i)),l}function vp(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?KD(e.value):98816&e.flags?e.intrinsicName:void 0}function bp(t,e){return 1179648&e.flags?D0(e,e=>bp(t,e)):128&e.flags?pf(xp(t,e.value)):134217728&e.flags?yp(...function(t,e,r){switch(nj.get(t.escapedName)){case 0:return[e.map(e=>e.toUpperCase()),r.map(e=>bp(t,e))];case 1:return[e.map(e=>e.toLowerCase()),r.map(e=>bp(t,e))];case 2:return[""===e[0]?e:[e[0].charAt(0).toUpperCase()+e[0].slice(1),...e.slice(1)],""===e[0]?[bp(t,r[0]),...r.slice(1)]:r];case 3:return[""===e[0]?e:[e[0].charAt(0).toLowerCase()+e[0].slice(1),...e.slice(1)],""===e[0]?[bp(t,r[0]),...r.slice(1)]:r]}return[e,r]}(t,e.texts,e.types)):268435456&e.flags&&t===e.symbol?e:268435461&e.flags||Ip(e)?Sp(t,e):Dp(e)?Sp(t,yp(["",""],[e])):e}function xp(e,t){switch(nj.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 Sp(e,t){var r=sj(e)+","+t.id;let n=Kr.get(r);return n||Kr.set(r,n=function(e,t){e=as(268435456,e);return e.type=t,e}(e,t)),n}function kp(e){var t;return!Te&&(!!(4096&sT(e))||(1048576&e.flags?vT(e.types,kp):2097152&e.flags?X4(e.types,kp):!!(465829888&e.flags)&&(t=x_(e))!==e&&kp(t)))}function Tp(e,t){return TE(e)?CE(e):t&&LC(t)?Ww(t):void 0}function Cp(e,t){var r;return!(8208&t.flags)||(ZC(r=tT(e.parent,e=>!lD(e))||e.parent)?e7(r)&&uT(e)&&Yh(r,e):vT(t.declarations,e=>!jC(e)||La(e)))}function wp(t,r,n,i,e,a){let o=e&&212===e.kind?e:void 0;var s=e&&UE(e)?void 0:Tp(n,e);if(void 0!==s){if(256&a)return K1(r,s)||re;var c=me(r,s);if(c){if(64&a&&e&&c.declarations&&Oa(c)&&Cp(e,c)&&ja((null==o?void 0:o.argumentExpression)??(bP(e)?e.indexType:e),c.declarations,s),o){if(Pv(c,o,Fv(o.expression,r.symbol)),qb(o,c,hw(o)))return void ce(o.argumentExpression,eT.Cannot_assign_to_0_because_it_is_a_read_only_property,_e(c));if(8&a&&(P(e).resolvedSymbol=c),gv(o,c))return on}c=(4&a?Rc:pe)(c);return o&&1!==hw(o)?G0(o,c):e&&bP(e)&&Wg(c)?ye([c,ie]):c}if(C0(r,Se)&&sE(s)){c=+s;if(e&&C0(r,e=>!e.target.hasRestElement)&&!(16&a)){var l=Np(e);if(Se(r)){if(c<0)return ce(l,eT.A_tuple_type_cannot_be_indexed_with_a_negative_value),ie;ce(l,eT.Tuple_type_0_of_length_1_has_no_element_at_index_2,ue(r),zu(r),X3(s))}else ce(l,eT.Property_0_does_not_exist_on_type_1,X3(s),ue(r))}if(0<=c)return _(H_(r,oe)),Ag(r,c,1&a?pn:void 0)}}if(!(98304&n.flags)&&$b(n,402665900)){if(131073&r.flags)return r;l=$_(r,n)||H_(r,ae);if(l)return 2&a&&l.keyType!==oe?void(o&&(4&a?ce(o,eT.Type_0_is_generic_and_can_only_be_indexed_for_reading,ue(t)):ce(o,eT.Type_0_cannot_be_used_to_index_type_1,ue(n),ue(t)))):e&&l.keyType===ae&&!$b(n,12)?(ce(Np(e),eT.Type_0_cannot_be_used_as_an_index_type,ue(n)),1&a?ye([l.type,pn]):l.type):(_(l),1&a&&!(r.symbol&&384&r.symbol.flags&&n.symbol&&1024&n.flags&&Xo(n.symbol)===r.symbol)?ye([l.type,pn]):l.type);if(131072&n.flags)return M;if(kp(r))return re;if(o&&!Qb(r)){if(Fh(r)){if(Te&&384&n.flags)return se.add(aT(o,eT.Property_0_does_not_exist_on_type_1,n.value,ue(r))),ie;if(12&n.flags)return ye(Q4($4(r.properties,e=>pe(e)),ie))}if(r.symbol===mt&&void 0!==s&&mt.exports.has(s)&&418&mt.exports.get(s).flags)ce(o,eT.Property_0_does_not_exist_on_type_1,X3(s),ue(r));else if(Te&&!(128&a))if(void 0!==s&&Sv(s,r)){c=ue(r);ce(o,eT.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,c,c+"["+K7(o.argumentExpression)+"]")}else if(K_(r,oe))ce(o.argumentExpression,eT.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=wv(s,r)))void 0!==e&&ce(o.argumentExpression,eT.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,ue(r),e);else{t=function(t,r,n){var i=yw(r)?"set":"get";if(function(e){e=c_(t,e);if(e)return(e=Gv(pe(e)))&&1<=sb(e)&&xe(n,rb(e,0));return}(i)){let e=KN(r.expression);return void 0===e?e=i:e+="."+i,e}}(r,o,n);if(void 0!==t)ce(o,eT.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ue(r),t);else{let e;1024&n.flags?e=gD(void 0,eT.Property_0_does_not_exist_on_type_1,"["+ue(n)+"]",ue(r)):8192&n.flags?(l=Fo(n.symbol,o),e=gD(void 0,eT.Property_0_does_not_exist_on_type_1,"["+l+"]",ue(r))):128&n.flags||256&n.flags?e=gD(void 0,eT.Property_0_does_not_exist_on_type_1,n.value,ue(r)):12&n.flags&&(e=gD(void 0,eT.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ue(n),ue(r))),e=gD(e,eT.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ue(i),ue(r)),se.add(y5(iT(o),o,e))}}}return}}return kp(r)?re:(e&&(a=Np(e),384&n.flags?ce(a,eT.Property_0_does_not_exist_on_type_1,""+n.value,ue(r)):12&n.flags?ce(a,eT.Type_0_has_no_matching_index_signature_for_type_1,ue(r),ue(n)):ce(a,eT.Type_0_cannot_be_used_as_an_index_type,ue(n))),B(n)?n:void 0);function _(e){e&&e.isReadonly&&o&&(yw(o)||ww(o))&&ce(o,eT.Index_signature_in_type_0_only_permits_reading,ue(r))}}function Np(e){return 212===e.kind?e.argumentExpression:199===e.kind?e.indexType:167===e.kind?e.expression:e}function Dp(t){if(2097152&t.flags){let e=!1;for(var r of t.types)if(101248&r.flags||Dp(r))e=!0;else if(!(524288&r.flags))return!1;return e}return!!(77&t.flags)||Ep(t)}function Ep(e){return!!(134217728&e.flags)&&vT(e.types,Dp)||!!(268435456&e.flags)&&Dp(e.type)}function Pp(e){return 402653184&e.flags&&!Ep(e)}function Fp(e){return!!Op(e)}function Ap(e){return 4194304&Op(e)}function Ip(e){return!!(8388608&Op(e))}function Op(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|QT(e.types,(e,t)=>e|Op(t),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Op(e.baseType)|Op(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||i_(e)||Eg(e)?4194304:0)|(63176704&e.flags||Pp(e)?8388608:0)}function Lp(e,t){if(8388608&e.flags){var r=e,n=t,i=n?"simplifiedForWriting":"simplifiedForReading";if(r[i])return r[i]===Xn?r:r[i];r[i]=Xn;var a=Lp(r.objectType,n),o=Lp(r.indexType,n),s=function(t,e,r){if(1048576&e.flags)return e=$4(e.types,e=>Lp(Bp(t,e),r)),(r?ve:ye)(e)}(a,o,n);if(s)return r[i]=s;if(!(465829888&o.flags)){s=jp(a,o,n);if(s)return r[i]=s}if(Eg(a)&&296&o.flags){s=Ig(a,8&o.flags?0:a.target.fixedLength,0,n);if(s)return r[i]=s}return i_(a)&&2!==a_(a)?r[i]=D0(Mp(a,r.indexType),e=>Lp(e,n)):r[i]=r}if(16777216&e.flags){o=e,s=t,a=o.checkType,i=o.extendsType,r=Gp(o),t=$p(o);if(131072&t.flags&&Vp(r)===Vp(a)){if(1&a.flags||xe($f(a),$f(i)))return Lp(r,s);if(Rp(a,i))return M}else if(131072&r.flags&&Vp(t)===Vp(a)){if(!(1&a.flags)&&xe($f(a),$f(i)))return M;if(1&a.flags||Rp(a,i))return Lp(t,s)}return o}return e}function jp(e,t,r){var n;if(1048576&e.flags||2097152&e.flags&&!mp(e))return n=$4(e.types,e=>Lp(Bp(e,t),r)),(2097152&e.flags||r?ve:ye)(n)}function Rp(e,t){return 131072&ye([Rl(e,t),M]).flags}function Mp(e,t){var r=Cf([Gl(e)],[t]),r=Af(e.mapper,r);return sc(be(Ql(e.target||e),r),!0,0!!(16777216&e.flags)&&xe(pp(e,8576),r))}(e,t)))}function Bp(e,t,r=0,n,i,a){return zp(e,t,r,n,i,a)||(n?R:ne)}function Jp(e,t){return C0(e,e=>{if(384&e.flags){var e=CE(e);if(sE(e))return 0<=(e=+e)&&efP(e)||mP(e)||pP(e)&&!(!e.questionToken&&!e.dotDotDotToken))}function Hp(e,t){return Fp(e)||t&&Se(e)&&X4(Hd(e),Fp)}function Kp(i,a,r,o,s){let n,c,l=0;for(;;){if(1e3===l)return ce(ke,eT.Type_instantiation_is_excessively_deep_and_possibly_infinite),R;let t=be(Vp(i.checkType),a);var _=be(i.extendsType,a);if(t===R||_===R)return R;if(t===sn||_===sn)return sn;var u=Tw(i.node.checkType),d=Tw(i.node.extendsType),u=Wp(u)&&Wp(d)&&K4(u.elements)===K4(d.elements),d=Hp(t,u);let e;i.inferTypeParameters&&(p=ah(i.inferTypeParameters,void 0,0),a&&(p.nonFixingMapper=Af(p.nonFixingMapper,a)),d||Dh(p.inferences,t,_,1536),e=a?Af(p.mapper,a):p.mapper);var p=e?be(i.extendsType,e):_;if(!d&&!Hp(p,u)){if(!(3&p.flags)&&(1&t.flags||!xe(Gf(t),Gf(p)))){(1&t.flags||r&&!(131072&p.flags)&&T0(Gf(p),e=>xe(e,Gf(t))))&&(c=c||[]).push(be(V(i.node.trueType),e||a));_=V(i.node.falseType);if(16777216&_.flags){d=_.root;if(d.node.parent===i.node&&(!d.isDistributive||d.checkType===i.checkType)){i=d;continue}if(f(_,a))continue}n=be(_,a);break}if(3&p.flags||xe($f(t),$f(p))){u=V(i.node.trueType),d=e||a;if(f(u,d))continue;n=be(u,d);break}}(n=is(16777216)).root=i,n.checkType=be(i.checkType,a),n.extendsType=be(i.extendsType,a),n.mapper=a,n.combinedMapper=e,n.aliasSymbol=o||i.aliasSymbol,n.aliasTypeArguments=o?s:Sf(i.aliasTypeArguments,a);break}return c?ye(Q4(c,n)):n;function f(e,r){if(16777216&e.flags&&r){var n=e.root;if(n.outerTypeParameters){let t=Af(e.mapper,r);e=$4(n.outerTypeParameters,e=>wf(e,t)),r=Cf(n.outerTypeParameters,e),e=n.isDistributive?wf(n.checkType,r):void 0;if(!(e&&e!==n.checkType&&1179648&e.flags))return a=r,s=o=void 0,(i=n).aliasSymbol&&l++,1}}}}function Gp(e){return e.resolvedTrueType||(e.resolvedTrueType=be(V(e.root.node.trueType),e.mapper))}function $p(e){return e.resolvedFalseType||(e.resolvedFalseType=be(V(e.root.node.falseType),e.mapper))}function Xp(e){let t;return e.locals&&e.locals.forEach(e=>{262144&e.flags&&(t=Q4(t,cl(e)))}),t}function Qp(t){var r=P(t);if(!r.resolvedType){if(!I5(t))return ce(t.argument,eT.String_literal_expected),r.resolvedSymbol=j,r.resolvedType=R;var n=t.isTypeOf?111551:16777216&t.flags?900095:788968,e=Oo(t,t.argument.literal);if(!e)return r.resolvedSymbol=j,r.resolvedType=R;var i=!(null==(a=e.exports)||!a.get("export=")),a=Mo(e,!1);if(W7(t.qualifier))a.flags&n?r.resolvedType=Yp(t,r,a,n):(ce(t,111551==n?eT.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:eT.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),r.resolvedSymbol=j,r.resolvedType=R);else{var o,s=function e(t){return uT(t)?[t]:Q4(e(t.left),t.right)}(t.qualifier);let e=a;for(;o=s.shift();){var c=s.length?1920:n,l=S(To(e)),_=t.isTypeOf||oT(t)&&i?me(pe(l),o.escapedText,!1,!0):void 0,l=(t.isTypeOf?void 0:Ka(Wo(l),o.escapedText,c))??_;if(!l)return ce(o,eT.Namespace_0_has_no_exported_member_1,Fo(e),d5(o)),r.resolvedType=R;P(o).resolvedSymbol=l,P(o.parent).resolvedSymbol=l,e=l}r.resolvedType=Yp(t,r,e,n)}}return r.resolvedType}function Yp(e,t,r,n){var i=To(r);return t.resolvedSymbol=i,111551===n?H2(pe(r),e):Ku(e,i)}function Zp(t){var r=P(t);if(!r.resolvedType){var n=ef(t);if(0!==Tl(t.symbol).size||n){let e=cs(16,t.symbol);e.aliasSymbol=n,e.aliasTypeArguments=tf(n),HF(t)&&t.isArrayType&&(e=Fd(e)),r.resolvedType=e}else r.resolvedType=Vn}return r.resolvedType}function ef(e){let t=e.parent;for(;hP(t)||jF(t)||vP(t)&&148===t.operator;)t=t.parent;return aw(t)?F(t):void 0}function tf(e){return e?Wc(e):void 0}function rf(e){return!!(524288&e.flags)&&!i_(e)}function nf(e){return Cm(e)||!!(474058748&e.flags)}function af(e,t){if(!(1048576&e.flags))return e;if(vT(e.types,nf))return bT(e.types,Cm)||zn;let r=bT(e.types,e=>!nf(e));if(!r)return e;if(bT(e.types,e=>e!==r&&!nf(e)))return e;var n,i,a,e=r,o=I7();for(n of fe(e))6&rD(n)||sf(n)&&(i=65536&n.flags&&!(32768&n.flags),(a=O(16777220,n.escapedName,Wl(n)|(t?8:0))).links.type=i?ie:sc(pe(n),!0),a.declarations=n.declarations,a.links.nameType=le(n).nameType,a.links.syntheticOrigin=n,o.set(n.escapedName,a));return(e=fs(e.symbol,o,H4,H4,W_(e))).objectFlags|=131200,e}function of(t,r,n,i,a){if(1&t.flags||1&r.flags)return re;if(2&t.flags||2&r.flags)return ne;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&(t=af(t,a)).flags)return op([t,r])?D0(t,e=>of(e,r,n,i,a)):R;if(1048576&(r=af(r,a)).flags)return op([t,r])?D0(r,e=>of(t,e,n,i,a)):R;if(473960444&r.flags)return t;if(Ap(t)||Ap(r)){if(Cm(t))return r;if(2097152&t.flags){var e=t.types,o=e[e.length-1];if(rf(o)&&rf(r))return ve(LT(e.slice(0,e.length-1),[of(o,r,n,i,a)]))}return ve([t,r])}var s,c,l,_,u,d,p,f,m=I7(),g=new Set,e=t===zn?W_(r):jl([t,r]);for(s of fe(r))6&rD(s)?g.add(s.escapedName):sf(s)&&m.set(s.escapedName,cf(s,a));for(c of fe(t))!g.has(c.escapedName)&&sf(c)&&(m.has(c.escapedName)?(f=pe(l=m.get(c.escapedName)),16777216&l.flags&&(_=LT(c.declarations,l.declarations),u=O(4|16777216&c.flags,c.escapedName),p=Hg(d=pe(c)),f=Hg(f),u.links.type=p===f?d:ye([d,f],2),u.links.leftSpread=c,u.links.rightSpread=l,u.declarations=_,u.links.nameType=le(c).nameType,m.set(c.escapedName,u))):m.set(c.escapedName,cf(c,a)));o=fs(n,m,H4,H4,ET(e,e=>{return t=a,(e=e).isReadonly!==t?Cu(e.keyType,e.type,t,e.declaration):e;var t}));return o.objectFlags|=2228352|i,o}function sf(e){return!(X4(e.declarations,FC)||106496&e.flags&&null!=(e=e.declarations)&&e.some(e=>qC(e.parent)))}function cf(e,t){var r=65536&e.flags&&!(32768&e.flags);return r||t!==zb(e)?((t=O(4|16777216&e.flags,e.escapedName,Wl(e)|(t?8:0))).links.type=r?ie:pe(e),t.declarations=e.declarations,t.links.nameType=le(e).nameType,t.links.syntheticOrigin=e,t):e}function lf(e,t,r,n){e=as(e,r);return e.value=t,e.regularType=n||e,e}function _f(e){var t;return 2976&e.flags?(e.freshType||((t=lf(e.flags,e.value,e.symbol,e)).freshType=t,e.freshType=t),e.freshType):e}function uf(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=D0(e,uf)):e}function df(e){return!!(2976&e.flags)&&e.freshType===e}function pf(e){return zr.get(e)||(zr.set(e,e=lf(128,e)),e)}function ff(e){return qr.get(e)||(qr.set(e,e=lf(256,e)),e)}function mf(e){var t=KD(e);return Ur.get(t)||(Ur.set(t,t=lf(2048,e)),t)}function gf(e){if(V5(e=oT(e)&&jF(e)&&(t=fw(e))?ow(t)||t:e)){var t=U5(e)?$o(e.left):$o(e);if(t)return(e=le(t)).uniqueESSymbolType||(e.uniqueESSymbolType=((e=as(8192,e=t)).escapedName=`__@${e.symbol.escapedName}@`+sj(e.symbol),e))}return Tn}function hf(e){var t,r,n,i=P(e);return i.resolvedType||(i.resolvedType=(r=t8(e=e,!1,!1),!(n=r&&r.parent)||!qC(n)&&264!==n.kind||CN(r)||tP(r)&&!Nw(e,r.body)?n&&DP(n)&&pT(n.parent)&&6===V8(n.parent)?tl($o(n.parent.left).parent).thisType:(t=16777216&e.flags?dw(e):void 0)&&OP(t)&&pT(t.parent)&&3===V8(t.parent)?tl($o(t.parent.left).parent).thisType:E2(r)&&Nw(e,r.body)?tl(F(r)).thisType:(ce(e,eT.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),R):tl(F(n)).thisType)),i.resolvedType}function yf(e){return V(vf(e.type)||e.type)}function vf(e){switch(e.kind){case 196:return vf(e.type);case 189:if(1===e.elements.length&&(191===(e=e.elements[0]).kind||202===e.kind&&e.dotDotDotToken))return vf(e.type);break;case 188:return e.elementType}}function V(e){return td(bf(e),e)}function bf(e){switch(e.kind){case 133:case 312:case 313:return re;case 159:return ne;case 154:return ae;case 150:return oe;case 163:return yn;case 136:return kn;case 155:return Tn;case 116:return Cn;case 157:return ie;case 106:return gn;case 146:return M;case 151:return 524288&e.flags&&!Te?re:En;case 141:return un;case 197:case 110:return hf(e);case 201:return 106===(y=e).literal.kind?gn:((v=P(y)).resolvedType||(v.resolvedType=uf(A(y.literal))),v.resolvedType);case 183:return ad(e);case 182:return e.assertsModifier?Cn:kn;case 233:return ad(e);case 186:return sd(e);case 188:case 189:return(v=P(y=e)).resolvedType||((g=Od(y))===Kn?v.resolvedType=zn:189===y.kind&&X4(y.elements,e=>!!(8&Ad(e)))||!jd(y)?(h=188===y.kind?[V(y.elementType)]:$4(y.elements,V),v.resolvedType=Jd(g,h)):v.resolvedType=189===y.kind&&0===y.elements.length?g:Bu(g,y,void 0)),v.resolvedType;case 190:return sc(V(e.type),!0);case 192:return(g=P(h=e)).resolvedType||(m=ef(h),g.resolvedType=ye($4(h.types,V),1,m,tf(m))),g.resolvedType;case 193:return(f=P(m=e)).resolvedType||(d=ef(m),p=!!(76&(p=0<=(p=2===(m=$4(m.types,V)).length?m.indexOf(Vn):-1)?m[1-p]:ne).flags||134217728&p.flags&&Ep(p)),f.resolvedType=ve(m,p?1:0,d,tf(d))),f.resolvedType;case 314:return p=V((p=e).type),te?Rg(p,65536):p;case 316:return sc(V(e.type));case 202:return(f=P(d=e)).resolvedType||(f.resolvedType=d.dotDotDotToken?yf(d):sc(V(d.type),!0,!!d.questionToken));case 196:case 315:case 309:return V(e.type);case 191:return yf(e);case 318:var t=V((i=e).type),r=i["parent"],n=i.parent.parent;if(jF(i.parent)&&QF(n)){var i=dw(n),a=$F(n.parent.parent);if(i||a){a=KT((a?n.parent.parent.typeExpression:i).parameters),i=lw(n);if(!a||i&&a.symbol===i&&w7(a))return Fd(t)}}return GE(r)&&VF(r.parent)?Fd(t):sc(t);case 184:case 185:case 187:case 322:case 317:case 323:return Zp(e);case 198:var o=e,s=P(o);if(!s.resolvedType)switch(o.operator){case 143:s.resolvedType=gp(V(o.type));break;case 158:s.resolvedType=155===o.type.kind?gf(xw(o.parent)):R;break;case 148:s.resolvedType=V(o.type);break;default:Y4.assertNever(o.operator)}return s.resolvedType;case 199:return qp(e);case 200:return Up(e);case 194:return(n=P(u=e)).resolvedType||(i=V(u.checkType),r=tf(a=ef(u)),t=Uc(u,!0),t=r?t:NT(t,e=>Bf(e,u)),i={node:u,checkType:i,extendsType:V(u.extendsType),isDistributive:!!(262144&i.flags),inferTypeParameters:Xp(u),outerTypeParameters:t,instantiations:void 0,aliasSymbol:a,aliasTypeArguments:r},n.resolvedType=Kp(i,void 0,!1),t&&(i.instantiations=new Map,i.instantiations.set(Iu(t),n.resolvedType))),n.resolvedType;case 195:return(_=P(l=e)).resolvedType||(_.resolvedType=sl(F(l.typeParameter))),_.resolvedType;case 203:return(_=P(l=e)).resolvedType||(_.resolvedType=yp([l.head.text,...$4(l.templateSpans,e=>e.literal.text)],$4(l.templateSpans,e=>V(e.type)))),_.resolvedType;case 205:return Qp(e);case 80:case 166:case 211:var c=x6(e);return c?cl(c):R;default:return R}var l,_,u,d,p,f,m,g,h,y,v}function xf(t,r,n){if(t&&t.length)for(let e=0;eX4(r,e=>Bf(t,e))):l,s.outerTypeParameters=l}if(l.length){let t=Af(n.mapper,r);var _=$4(l,e=>wf(e,t)),o=i||n.aliasSymbol,s=i?a:Sf(n.aliasTypeArguments,r),i=(134217728&n.objectFlags?"S":"")+Iu(_)+Ou(o,s);c.instantiations||(c.instantiations=new Map,c.instantiations.set(Iu(l)+Ou(c.aliasSymbol,c.aliasTypeArguments),c));let e=c.instantiations.get(i);if(!e){if(134217728&n.objectFlags)return e=Wf(n,r),c.instantiations.set(i,e),e;var a=Cf(l,_),r=(e=4&c.objectFlags?Bu(n.target,n.node,a,o,s):(32&c.objectFlags?function(n,i,e,t){let a=Jf(n);if(a){var r=be(a,i);if(a!==r)return E0(I_(r),function t(r){if(61603843&r.flags&&r!==sn&&!de(r)){if(!n.declaration.nameType){let e;if(og(r)||1&r.flags&&Vs(a,4)<0&&(e=u_(a))&&C0(e,cg))return Uf(r,n,If(a,r,i));if(Se(r))return qf(r,n,a,i);if(w_(r))return ve($4(r.types,t))}return Wf(n,If(a,r,i))}return r},e,t)}return be($l(n),i)===sn?sn:Wf(n,i,e,t)}:Wf)(c,a,o,s),c.instantiations.set(i,e),sT(e));3899393&e.flags&&!(524288&r)&&(a=X4(_,dh),524288&sT(e)||(e.objectFlags|=52&r?524288|(a?1048576:0):a?0:524288))}return e}return n}function Bf(a,t){if(a.symbol&&a.symbol.declarations&&1===a.symbol.declarations.length){var r=a.symbol.declarations[0].parent;for(let e=t;e!==r;e=e.parent)if(!e||241===e.kind||194===e.kind&&h9(e.extendsType,o))return!0;return o(t)}return!0;function o(e){switch(e.kind){case 197:return!!a.isThisType;case 80:return!a.isThisType&&O5(e)&&!(183===(i=e).parent.kind&&i.parent.typeArguments&&i===i.parent.typeName||205===i.parent.kind&&i.parent.typeArguments&&i===i.parent.qualifier)&&bf(e)===a;case 186:i=VN(e.exprName);if(!fN(i)){var r=Bh(i),n=a.symbol.declarations[0];let t=168===n.kind?n.parent:a.isThisType?n:void 0;if(r.declarations&&t)return X4(r.declarations,e=>Nw(e,t))||X4(e.typeArguments,o)}return!0;case 174:case 173:return!e.type&&!!e.body||X4(e.typeParameters,o)||X4(e.parameters,o)||!!e.type&&o(e.type)}var i;return!!h9(e,o)}}function Jf(e){e=$l(e);if(4194304&e.flags){e=Vp(e.type);if(262144&e.flags)return e}}function zf(e,t){return!!(1&t)||!(2&t)&&e}function qf(e,n,i,a){let o=e.target.elementFlags,s=e.target.fixedLength,c=s?If(i,e,a):a;var t=$4(Hd(e),(e,t)=>{var r=o[t];return t1&e?2:e):8&r?$4(o,e=>2&e?1:e):o,l=zf(e.target.readonly,t_(n));return TT(t,R)?R:Md(t,r,l,e.target.labeledElementDeclarations)}function Uf(e,t,r){r=Vf(t,oe,!0,r);return de(r)?R:Fd(r,zf(sg(e),t_(t)))}function Vf(e,t,r,n){n=Of(n,Gl(e),t),t=be(Ql(e.target||e),n),n=t_(e);return te&&4&n&&!Gb(t,49152)?Mg(t,!0):te&&8&n&&r?a0(t,524288):t}function Wf(e,t,r,n){Y4.assert(e.symbol,"anonymous type must have symbol to be instantiated");var i,a,o=cs(-1572865&e.objectFlags|64,e.symbol);return 32&e.objectFlags&&(o.declaration=e.declaration,a=Lf(i=Gl(e)),t=Af(Nf(i,o.typeParameter=a),t),a.mapper=t),8388608&e.objectFlags&&(o.node=e.node),134217728&e.objectFlags&&(o.outerTypeParameters=e.outerTypeParameters),o.target=e,o.mapper=t,o.aliasSymbol=r||e.aliasSymbol,o.aliasTypeArguments=r?n:Sf(e.aliasTypeArguments,t),o.objectFlags|=o.aliasTypeArguments?Lu(o.aliasTypeArguments):0,o}function Hf(e,t,n,i,a){let o=e.root;if(o.outerTypeParameters){var s=$4(o.outerTypeParameters,e=>wf(e,t)),c=(n?"C":"")+Iu(s)+Ou(i,a);let e=o.instantiations.get(c);if(!e){let t=Cf(o.outerTypeParameters,s),r=o.checkType;s=o.isDistributive?I_(wf(r,t)):void 0;e=s&&r!==s&&1179648&s.flags?E0(s,e=>Kp(o,If(r,e,t),n),i,a):Kp(o,t,n,i,a),o.instantiations.set(c,e)}return e}return e}function be(e,t){return e&&t?Kf(e,t,void 0,void 0):e}function Kf(e,t,r,n){if(!dh(e))return e;if(100===_||5e6<=l)return null!=Z4&&Z4.instant(Z4.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:_,instantiationCount:l}),ce(ke,eT.Type_instantiation_is_excessively_deep_and_possibly_infinite),R;o++,l++,_++;e=function(e,t,r,n){var i=e.flags;if(262144&i)return wf(e,t);if(524288&i){var a=e.objectFlags;if(52&a)return 4&a&&!e.node?(o=e.resolvedTypeArguments,(s=Sf(o,t))!==o?Jd(e.target,s):e):1024&a?function(e,t){var r=be(e.mappedType,t);if(32&sT(r)){var n=be(e.constraintType,t);if(4194304&n.flags){t=mh(be(e.source,t),r,n);if(t)return t}}return e}(e,t):Mf(e,t,r,n)}else{var o,s,c,l;if(3145728&i)return o=1048576&e.flags?e.origin:void 0,s=(o&&3145728&o.flags?o:e).types,(a=Sf(s,t))===s&&r===e.aliasSymbol?e:(c=r||e.aliasSymbol,l=r?n:Sf(e.aliasTypeArguments,t),2097152&i||o&&2097152&o.flags?ve(a,0,c,l):ye(a,1,c,l));if(4194304&i)return gp(be(e.type,t));if(134217728&i)return yp(e.texts,Sf(e.types,t));if(268435456&i)return bp(e.symbol,be(e.type,t));if(8388608&i)return c=r||e.aliasSymbol,l=r?n:Sf(e.aliasTypeArguments,t),Bp(be(e.objectType,t),be(e.indexType,t),e.accessFlags,void 0,c,l);if(16777216&i)return Hf(e,Af(e.mapper,t),!1,r,n);if(33554432&i)return r=be(e.baseType,t),Xu(e)?Gu(r):(n=be(e.constraint,t),8650752&r.flags&&Fp(n)?Qu(r,n):3&n.flags||xe($f(r),$f(n))?r:8650752&r.flags?Qu(r,n):ve([n,r]))}return e}(e,t,r,n);return _--,e}function Gf(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=be(e,jn))}function $f(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=be(e,Ln),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function Xf(e,t){return Cu(e.keyType,be(e.type,t),e.isReadonly,e.declaration)}function Qf(e){switch(Y4.assert(174!==e.kind||H5(e)),e.kind){case 218:case 219:case 174:case 262:return Yf(e);case 210:return X4(e.properties,Qf);case 209:return X4(e.elements,Qf);case 227:return Qf(e.whenTrue)||Qf(e.whenFalse);case 226:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(Qf(e.left)||Qf(e.right));case 303:return Qf(e.initializer);case 217:return Qf(e.expression);case 292:return X4(e.properties,Qf)||kF(e.parent)&&X4(e.parent.parent.children,Qf);case 291:var t=e["initializer"];return!!t&&Qf(t);case 294:t=e["expression"];return!!t&&Qf(t)}return!1}function Yf(e){return nE(e)||function(e){if(e.typeParameters||yN(e)||!e.body)return!1;return 241===e.body.kind?!!L5(e.body,e=>!!e.expression&&Qf(e.expression)):Qf(e.body)}(e)}function Zf(e){return(oE(e)||H5(e))&&Yf(e)}function em(e){if(524288&e.flags){var t,r=o_(e);if(r.constructSignatures.length||r.callSignatures.length)return(t=cs(16,e.symbol)).members=r.members,t.properties=r.properties,t.callSignatures=H4,t.constructSignatures=H4,t.indexInfos=H4,t}else if(2097152&e.flags)return ve($4(e.types,em));return e}function tm(e,t){return Fm(e,t,da)}function rm(e,t){return Fm(e,t,da)?-1:0}function nm(e,t){return Fm(e,t,_a)?-1:0}function im(e,t){return Fm(e,t,ca)?-1:0}function am(e,t){return Fm(e,t,ca)}function om(e,t){return Fm(e,t,la)}function xe(e,t){return Fm(e,t,_a)}function sm(t,r){return 1048576&t.flags?vT(t.types,e=>sm(e,r)):1048576&r.flags?X4(r.types,e=>sm(t,e)):2097152&t.flags?X4(t.types,e=>sm(e,r)):58982400&t.flags?sm(y_(t)||ne,r):wm(r)?!!(67633152&t.flags):r===It?!!(67633152&t.flags)&&!wm(t):r===Ot?!!(524288&t.flags)&&t0(t):zc(t,Jc(r))||og(r)&&!sg(r)&&sm(t,Mt)}function cm(e,t){return Fm(e,t,ua)}function lm(e,t){return cm(e,t)||cm(t,e)}function _m(e,t,r,n,i,a){return Om(e,t,_a,r,n,i,a)}function um(e,t,r,n,i,a){return dm(e,t,_a,r,n,i,a,void 0)}function dm(e,t,r,n,i,a,o,s){return!!Fm(e,t,r)||(!n||!fm(i,e,t,r,a,o,s))&&Om(e,t,r,n,a,o,s)}function pm(e){return!!(16777216&e.flags||2097152&e.flags&&X4(e.types,pm))}function fm(e,r,n,a,t,o,s){if(e&&!pm(n)){if(!Om(r,n,a,void 0)&&function(e,t,r,n,i,a,o){var s=ge(t,0),c=ge(t,1);for(var l of[c,s]){var _;if(X4(l,e=>{e=he(e);return!(131073&e.flags)&&Om(e,r,n,void 0)}))return _m(t,r,e,i,a,_=o||{}),JD(_.errors[_.errors.length-1],aT(e,l===c?eT.Did_you_mean_to_use_new_with_this_expression:eT.Did_you_mean_to_call_this_expression)),1}return}(e,r,n,a,t,o,s))return!0;switch(e.kind){case 234:if(!FE(e))break;case 294:case 217:return fm(e.expression,r,n,a,t,o,s);case 226:switch(e.operatorToken.kind){case 64:case 28:return fm(e.right,r,n,a,t,o,s)}break;case 210:return i=e,S=r,T=a,C=o,w=s,!(402915324&(k=n).flags)&&hm(function*(e){if(K4(e.properties))for(var t of e.properties)if(!IF(t)){var r=pp(F(t),8576);if(r&&!(131072&r.flags))switch(t.kind){case 178:case 177:case 174:case 304:yield{errorNode:t.name,innerExpression:void 0,nameType:r};break;case 303:yield{errorNode:t.name,innerExpression:t.initializer,nameType:r,errorMessage:f5(t.name)?eT.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:Y4.assertNever(t)}}}(i),S,k,T,C,w);case 209:i=e,S=r,k=n,T=a,C=o,w=s;if(!(402915324&k.flags)){if(gg(S))return hm(vm(i,k),S,k,T,C,w);oy(i,k,!1);S=yy(i,1,!0);if(sy(),gg(S))return hm(vm(i,k),S,k,T,C,w)}return!1;case 292:{var c=e;var l=r;var _=n;var u=a;var d=o;var p=s;let t=hm(function*(e){if(K4(e.properties))for(var t of e.properties)NF(t)||Ny(xE(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:pf(xE(t.name))})}(c),l,_,u,d,p),i;if(kF(c.parent)&&xF(c.parent.parent)){var f=c.parent.parent,m=My(jy(c)),m=void 0===m?"children":X3(m),g=pf(m),h=Bp(_,g),y=nN(f.children);if(!K4(y))return t;var v,b=1xe(e,t)),r=w0(h,e=>!xe(e,t))}else e=w0(h,hg),r=w0(h,e=>!hg(e));if(b)e!==M?(b=Md(Py(f,0)),v=function*(r,n){if(K4(r.children)){let t=0;for(let e=0;e!hg(e)),c=s!==M?QS(13,0,s,void 0):void 0,l=!1;for(let t=e.next();!t.done;t=e.next()){var{errorNode:_,innerExpression:u,nameType:d,errorMessage:p}=t.value;let e=c;var f,m,g=o!==M?mm(r,o,d):void 0;(e=!g||8388608&g.flags?e:c?ye([c,g]):g)&&(g=zp(r,d))&&(d=Tp(d,void 0),Om(g,e,n,void 0)||(f=u&&fm(u,g,e,n,void 0,i,a),l=!0,f)||(f=a||{},u=u?gm(u,g):g,Ce&&Rm(u,e)?(m=aT(_,eT.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ue(u),ue(e)),se.add(m),f.errors=[m]):(m=!!(d&&16777216&(me(o,d)||j).flags),d=!!(d&&16777216&(me(r,d)||j).flags),e=Vg(e,m),g=Vg(g,m&&d),Om(u,e,n,_,p,i,f)&&u!==g&&Om(g,e,n,_,p,i,f))))}return l}(v,b,e,u,d,p)||t):Fm(Bp(l,g),h,u)||(t=!0,v=ce(f.openingElement.tagName,eT.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,m,ue(h)),p&&p.skipLogging&&(p.errors||(p.errors=[])).push(v));else if(r!==M){let e=ym(y[0],g,x);e&&(t=hm(function*(){yield e}(),l,_,u,d,p)||t)}else Fm(Bp(l,g),h,u)||(t=!0,b=ce(f.openingElement.tagName,eT.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,m,ue(h)),p&&p.skipLogging&&(p.errors||(p.errors=[])).push(b))}return t;function x(){var e,t,r,n;return i||(e=K7(c.parent.tagName),t=void 0===(t=My(jy(c)))?"children":X3(t),r=Bp(_,pf(t)),n=eT._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2,i={...n,key:"!!ALREADY FORMATTED!!",message:fD(n,e,t,ue(r))}),i}return}case 219:y=e,d=r,l=n,g=a,u=o,f=s;if(!KP(y.body)&&!X4(y.parameters,v7)){d=Gv(d);if(d){m=ge(l,0);if(K4(m)){h=y.body,d=he(d),m=ye($4(m,he));if(!Om(d,m,g,void 0)){p=h&&fm(h,d,m,g,void 0,u,f);if(p)return p;p=f||{};if(Om(d,m,g,h,void 0,u,p),p.errors)return l.symbol&&K4(l.symbol.declarations)&&JD(p.errors[p.errors.length-1],aT(l.symbol.declarations[0],eT.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&zw(y))&&!Ks(d,"then")&&Om(Nb(d),m,g,void 0)&&JD(p.errors[p.errors.length-1],aT(y,eT.Did_you_mean_to_mark_this_function_as_async)),!0}}}}return!1}var i,S,k,T,C,w}return!1}function mm(e,t,r){var n=zp(t,r);if(n)return n;if(1048576&t.flags){n=Mm(e,t);if(n)return zp(n,r)}}function gm(e,t){oy(e,t,!1);t=mx(e,1);return sy(),t}function hm(e,t,r,n,i,a){let o=!1;for(var s of e){var{errorNode:s,innerExpression:c,nameType:l,errorMessage:_}=s,u=mm(t,r,l);if(u&&!(8388608&u.flags))if(m=zp(t,l)){var d=Tp(l,void 0);if(!Om(m,u,n,void 0)){var p=c&&fm(c,m,u,n,void 0,i,a);if(o=!0,!p){var f,p=a||{},c=c?gm(c,m):m;if(Ce&&Rm(c,u)?(f=aT(s,eT.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ue(c),ue(u)),se.add(f),p.errors=[f]):(f=!!(d&&16777216&(me(r,d)||j).flags),d=!!(d&&16777216&(me(t,d)||j).flags),u=Vg(u,f),m=Vg(m,f&&d),Om(c,u,n,s,_,i,p)&&c!==m&&Om(m,u,n,s,_,i,p)),p.errors){var d=p.errors[p.errors.length-1],c=TE(l)?CE(l):void 0,m=void 0!==c?me(r,c):void 0;let e=!1;m||(u=$_(r,l))&&u.declaration&&!iT(u.declaration).hasNoDefaultLib&&(e=!0,JD(d,aT(u.declaration,eT.The_expected_type_comes_from_this_index_signature))),e||!(m&&K4(m.declarations)||r.symbol&&K4(r.symbol.declarations))||iT(s=(m&&K4(m.declarations)?m:r.symbol).declarations[0]).hasNoDefaultLib||JD(d,aT(s,eT.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!c||8192&l.flags?ue(l):X3(c),ue(r)))}}}}}return o}function ym(e,t,r){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:r()};case 284:case 285:case 288:return{errorNode:e,innerExpression:e,nameType:t};default:return Y4.assertNever(e,"Found invalid jsx child")}}function*vm(t,r){var n,i,a=K4(t.elements);if(a)for(let e=0;ee:sb(r)>e))return!a||8&i||o(eT.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,sb(r),e),0;var t=ob(r=r.typeParameters&&r.typeParameters!==n.typeParameters?Qv(r,n=bu(n),void 0,c):r),_=_b(r),u=_b(n),d=((_||u)&&be(_||u,l),n.declaration?n.declaration.kind:0),p=!(3&i)&&H&&174!==d&&173!==d&&176!==d;let f=-1;d=_u(r);if(d&&d!==Cn){var m=_u(n);if(m){m=!p&&c(d,m,!1)||c(m,d,a);if(!m)return a&&o(eT.The_this_types_of_each_signature_are_incompatible),0;f&=m}}var g=_||u?Math.min(t,e):Math.max(t,e),h=_||u?g-1:-1;for(let t=0;t=sb(r)&&t25165824&e.flags?Lp(e,t):e);return r!==n?zd(e.target,n):e}(e,t):4&sT(e)?e.node?Ru(e.target,Ju(e)):pg(e)||e:3145728&e.flags?function(e,t){var r=I_(e);if(r!==e)return r;if(2097152&e.flags&&function(e){let t=!1,r=!1;for(var n of e.types)if(t=t||!!(465829888&n.flags),r=r||!!(98304&n.flags)||wm(n),t&&r)return 1;return}(e)){r=ET(e.types,e=>Im(e,t));if(r!==e.types)return ve(r)}return e}(e,t):33554432&e.flags?t?e.baseType:Zu(e):25165824&e.flags?Lp(e,t):e;if(r===e)return r;e=r}}function Om(t,r,A,d,I,n,i){let O,a,p,f,F,L,m=0,j=0,R=0,g=0,h=!1,M=0,o=0,_,u,y=16e6-A.size>>3;Y4.assert(A!==da||!d,"no error reporting in identity checking");var s=q(t,r,3,!!d,I);if(u&&l(),h){var c=$m(t,r,0,A,!1),c=(A.set(c,6),null!=Z4&&Z4.instant(Z4.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:j,targetDepth:R}),y<=0?eT.Excessive_complexity_comparing_types_0_and_1:eT.Excessive_stack_depth_comparing_types_0_and_1),c=ce(d||ke,c,ue(t),ue(r));i&&(i.errors||(i.errors=[])).push(c)}else if(O){n&&(c=n())&&(hD(c,O),O=c);let e;I&&d&&!s&&t.symbol&&(n=le(t.symbol)).originatingImport&&!A5(n.originatingImport)&&Om(pe(n.target),r,A,void 0)&&(c=aT(n.originatingImport,eT.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),e=Q4(e,c));t=y5(iT(d),d,O,e);a&&JD(t,...a),i&&(i.errors||(i.errors=[])).push(t),i&&i.skipLogging||se.add(t)}return d&&i&&i.skipLogging&&0===s&&Y4.assert(!!i.errors,"missed opportunity to interact with error."),0!==s;function B(e){O=e.errorInfo,_=e.lastSkippedInfo,u=e.incompatibleStack,M=e.overrideNextErrorInfo,o=e.skipParentCounter,a=e.relatedInfo}function T(){return{errorInfo:O,lastSkippedInfo:_,incompatibleStack:null==u?void 0:u.slice(),overrideNextErrorInfo:M,skipParentCounter:o,relatedInfo:null==a?void 0:a.slice()}}function J(e,...t){M++,_=void 0,(u=u||[]).push([e,...t])}function l(){var t=u||[],e=(u=void 0,_);if(_=void 0,1===t.length)z(...t[0]);else{let e="";for(var r,n,i=[];t.length;){var[a,...o]=t.pop();switch(a.code){case eT.Types_of_property_0_are_incompatible.code:0===e.indexOf("new ")&&(e=`(${e})`);var s=""+o[0];0===e.length?e=s:R3(s,vD(ee))?e=e+"."+s:e+="["===s[0]&&"]"===s[s.length-1]?s:`[${s}]`;break;case eT.Call_signature_return_types_0_and_1_are_incompatible.code:case eT.Construct_signature_return_types_0_and_1_are_incompatible.code:case eT.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case eT.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===e.length){let e=a;a.code===eT.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=eT.Call_signature_return_types_0_and_1_are_incompatible:a.code===eT.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=eT.Construct_signature_return_types_0_and_1_are_incompatible),i.unshift([e,o[0],o[1]])}else{var s=a.code===eT.Construct_signature_return_types_0_and_1_are_incompatible.code||a.code===eT.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",c=a.code===eT.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||a.code===eT.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";e=s+e+`(${c})`}break;case eT.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:i.unshift([eT.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,o[0],o[1]]);break;case eT.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:i.unshift([eT.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,o[0],o[1],o[2]]);break;default:return Y4.fail("Unhandled Diagnostic: "+a.code)}}e?z(")"===e[e.length-1]?eT.The_types_returned_by_0_are_incompatible_between_these_types:eT.The_types_of_0_are_incompatible_between_these_types,e):i.shift();for([r,...n]of i){var l=r.elidedInCompatabilityPyramid;r.elidedInCompatabilityPyramid=!1,z(r,...n),r.elidedInCompatabilityPyramid=l}}e&&v(void 0,...e)}function z(e,...t){Y4.assert(!!d),u&&l(),e.elidedInCompatabilityPyramid||(0===o?O=gD(O,e,...t):o--)}function b(e,...t){z(e,...t),o++}function H(e){Y4.assert(!!O),a?a.push(e):a=[e]}function v(e,t,r){u&&l();var[n,i]=Ps(t,r);let a=t,o=n;if(Sg(t)&&!Lm(r)&&(a=kg(t),Y4.assert(!xe(a,r),"generalized source shouldn't be assignable"),o=Fs(a)),262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType:r).flags&&r!==ti&&r!==ri){var s=y_(r);let e;s&&(xe(a,s)||(e=xe(t,s)))?z(eT._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,e?n:o,i,ue(s)):(O=void 0,z(eT._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,i,o))}if(e)e===eT.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ce&&jm(t,r).length&&(e=eT.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(A===ua)e=eT.Type_0_is_not_comparable_to_type_1;else if(n===i)e=eT.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ce&&jm(t,r).length)e=eT.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){s=function(e,t){t=t.types.filter(e=>!!(128&e.flags));return _3(e.value,t,e=>e.value)}(t,r);if(s)return void z(eT.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,o,i,ue(s))}e=eT.Type_0_is_not_assignable_to_type_1}z(e,o,i)}function K(e,t,r){return Se(e)?e.target.readonly&&lg(t)?void(r&&z(eT.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ue(e),ue(t))):cg(t):sg(e)&&lg(t)?void(r&&z(eT.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ue(e),ue(t))):!Se(t)||og(e)}function G(e,t,r){return q(e,t,3,r)}function q(e,t,r=3,n=!1,i,a=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return A===ua&&!(131072&t.flags)&&Pm(t,e,A)||Pm(e,t,A,n?z:void 0)?-1:(n&&x(e,t,e,t,i),0);var o=Im(e,!1);let s=Im(t,!0);if(o===s)return-1;if(A===da)return o.flags!==s.flags?0:67358815&o.flags?-1:(S(o,s),N(o,s,!1,0,r));if(262144&o.flags&&__(o)===s)return-1;if(470302716&o.flags&&1048576&s.flags){var c=s.types,c=2===c.length&&98304&c[0].flags?c[1]:3===c.length&&98304&c[0].flags&&98304&c[1].flags?c[2]:void 0;if(c&&!(98304&c.flags)&&o===(s=Im(c,!0)))return-1}if(A===ua&&!(131072&s.flags)&&Pm(s,o,A)||Pm(o,s,A,n?z:void 0))return-1;if(469499904&o.flags||469499904&s.flags){c=!(2&a)&&Fh(o)&&8192&sT(o);if(c&&function(r,n,i){if(!(!Gy(n)||!Te&&4096&sT(n))){var a=!!(2048&sT(r));if(A!==_a&&A!==ua||!(S0(It,n)||!a&&Cm(n))){let e=n,t;1048576&n.flags&&(e=z4(r,n,q)||function(e){if(Gb(e,67108864)){var t=w0(e,e=>!(402784252&e.flags));if(!(131072&t.flags))return t}return e}(n),t=1048576&e.flags?e.types:[e]);for(var o of fe(r))if(function(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}(o,r.symbol)&&!Am(r,o)){if(!Ky(e,o.escapedName,a)){if(i){var s,c=w0(e,Gy);if(!d)return Y4.fail();if(wF(d)||f7(d)||f7(d.parent)){o.valueDeclaration&&CF(o.valueDeclaration)&&iT(d)===iT(o.valueDeclaration.name)&&(d=o.valueDeclaration.name);var l=_e(o),_=Cv(l,c),_=_?_e(_):void 0;_?z(eT.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,ue(c),_):z(eT.Property_0_does_not_exist_on_type_1,l,ue(c))}else{let t=(null==(_=r.symbol)?void 0:_.declarations)&&UT(r.symbol.declarations),e;void 0!==(e=o.valueDeclaration&&tT(o.valueDeclaration,e=>e===t)&&iT(t)===iT(d)&&(l=o.valueDeclaration,Y4.assertNode(l,HC),s=l.name,uT(d=s))?wv(s,c):e)?b(eT.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,_e(o),ue(c),e):b(eT.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,_e(o),ue(c))}}return 1}if(t&&!q(pe(o),function(e,n){var t=(e,t)=>{var r=(3145728&(t=D_(t)).flags?A_:c_)(t,n);return Q4(e,r&&pe(r)||(null==(e=X_(t,n))?void 0:e.type)||ie)};return ye(QT(e,t,void 0)||H4)}(t,o.escapedName),3,i))return i&&J(eT.Types_of_property_0_are_incompatible,_e(o)),1}}}return}(o,s,n))return n&&v(i,o,t.aliasSymbol?t:s),0;var l,c=(A!==ua||bg(o))&&!(2&a)&&405405692&o.flags&&o!==It&&2621440&s.flags&&Jm(s)&&(0=o.types.length&&a.length%o.types.length==0){var c=q(s,o.types[e%o.types.length],3,!1,void 0,n);if(c){i&=c;continue}}c=q(s,t,1,r,void 0,n);if(!c)return 0;i&=c}return i})(r,n,i&&!(402784252&r.flags),e)}if(1048576&n.flags)return k($g(r),n,i&&!(402784252&r.flags)&&!(402784252&n.flags),e);if(2097152&n.flags){var o=r;a=n;var s=i;var c=2;let e=-1,t=a.types;for(var l of t){l=q(o,l,2,s,void 0,c);if(!l)return 0;e&=l}return e}if(A===ua&&402784252&n.flags){e=ET(r.types,e=>465829888&e.flags?y_(e)||ne:e);if(e!==r.types){if(131072&(r=ve(e)).flags)return 0;if(!(2097152&r.flags))return q(r,n,1,!1)||q(n,r,1,!1)}}return w(r,n,!1,1)}function X(e,t){let r=-1;var n;for(n of e.types){var i=k(n,t,!1,0);if(!i)return 0;r&=i}return r}function k(e,t,r,n){var i,a=t.types;if(1048576&t.flags){if(Gd(a,e))return-1;if(A!==ua&&32768&sT(t)&&!(1024&e.flags)&&(2688&e.flags||(A===ca||A===la)&&256&e.flags))return s=e===e.regularType?e.freshType:e.regularType,(o=128&e.flags?ae:256&e.flags?oe:2048&e.flags?yn:void 0)&&Gd(a,o)||s&&Gd(a,s)?-1:0;var o=Xh(t,e);if(o){var s=q(e,o,2,!1,void 0,n);if(s)return s}}for(i of a){var c=q(e,i,2,!1,void 0,n);if(c)return c}return r&&(o=Mm(e,t,q))&&q(e,o,2,!0,void 0,n),0}function w(e,t,r,n){var i=e.types;if(1048576&e.flags&&Gd(i,t))return-1;var a=i.length;for(let e=0;e(_|=e?16:8,l(e)));let u;return 3===g?(null!=Z4&&Z4.instant(Z4.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:F.map(e=>e.id),targetId:t.id,targetIdStack:L.map(e=>e.id),depth:j,targetDepth:R}),u=3):(null!=Z4&&Z4.push(Z4.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),u=function(t,r,e,n){let i=T(),a=function(r,n,i,e,a){let o,s,c=!1,t=r.flags,l=n.flags;if(A===da){if(3145728&t){let e=X(r,n);return e&&(e&=X(n,r)),e}if(4194304&t)return q(r.type,n.type,3,!1);if(8388608&t&&(o=q(r.objectType,n.objectType,3,!1))&&(o&=q(r.indexType,n.indexType,3,!1)))return o;if(16777216&t&&r.root.isDistributive===n.root.isDistributive&&(o=q(r.checkType,n.checkType,3,!1))&&(o&=q(r.extendsType,n.extendsType,3,!1))&&(o&=q(Gp(r),Gp(n),3,!1))&&(o&=q($p(r),$p(n),3,!1)))return o;if(33554432&t&&(o=q(r.baseType,n.baseType,3,!1))&&(o&=q(r.constraint,n.constraint,3,!1)))return o;if(!(524288&t))return 0}else if(3145728&t||3145728&l){if(o=$(r,n,i,e))return o;if(!(465829888&t||524288&t&&1048576&l||2097152&t&&467402752&l))return 0}if(17301504&t&&r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===n.aliasSymbol&&!Wm(r)&&!Wm(n)){var _=qm(r.aliasSymbol);if(_===H4)return 1;var u=le(r.aliasSymbol).typeParameters,d=nu(u),p=iu(r.aliasTypeArguments,u,d,oT(r.aliasSymbol.valueDeclaration)),u=iu(n.aliasTypeArguments,u,d,oT(r.aliasSymbol.valueDeclaration)),d=P(p,u,_,e);if(void 0!==d)return d}if(Pg(r)&&!r.target.readonly&&(o=q(Ju(r)[0],n,1))||Pg(n)&&(n.target.readonly||lg(y_(r)||r))&&(o=q(r,Ju(n)[0],2)))return o;if(262144&l){if(32&sT(r)&&!r.declaration.nameType&&q(gp(n),$l(r),3)&&!(4&t_(r))){p=Ql(r),u=Bp(n,Gl(r));if(o=q(p,u,3,i))return o}if(A===ua&&262144&t){let e=u_(r);if(e)for(;e&&T0(e,e=>!!(262144&e.flags));){if(o=q(e,n,1,!1))return o;e=u_(e)}return 0}}else if(4194304&l){_=n.type;if(4194304&t&&(o=q(_,r.type,3,!1)))return o;if(Se(_)){if(o=q(r,Ud(_),2,i))return o}else{d=p_(_);if(d){if(-1===q(r,gp(d,4|n.indexFlags),2,i))return-1}else if(i_(_)){var f=Xl(_),m=$l(_);let e;if(e=f&&Zl(_)?ye([Q(f,_),f]):f||m,-1===q(r,e,2,i))return-1}}}else if(8388608&l){if(8388608&t){if((o=q(r.objectType,n.objectType,3,i))&&(o&=q(r.indexType,n.indexType,3,i)),o)return o;i&&(s=O)}if(A===_a||A===ua){var f=n.objectType,m=n.indexType,g=y_(f)||f,h=y_(m)||m;if(!Ap(g)&&!Ip(h)){h=zp(g,h,4|(g!==f?2:0));if(h){if(i&&s&&B(a),o=q(r,h,2,i,void 0,e))return o;i&&s&&(O=O&&(E([s])<=E([O])?s:O))}}}i&&(s=void 0)}else if(i_(n)&&A!==da){var g=!!n.declaration.nameType,h=Ql(n),y=t_(n);if(!(8&y)){if(!g&&8388608&h.flags&&h.objectType===r&&h.indexType===Gl(n))return-1;if(!i_(r)){var v=(g?Xl:$l)(n),b=gp(r,2),y=4&y,x=y?Rl(v,b):void 0;if(y?!(131072&x.flags):q(v,b,3)){var y=Ql(n),b=Gl(n),S=P0(y,-98305);if(!g&&8388608&S.flags&&S.indexType===b){if(o=q(r,S.objectType,2,i))return o}else{S=g?x||v:x?ve([x,b]):b,v=Bp(r,S);if(o=q(v,y,3,i))return o}}s=O,B(a)}}}else if(16777216&l){if(eg(n,L,R,10))return 3;x=n;if(!(x.root.inferTypeParameters||function(e){return e.isDistributive&&(Bf(e.checkType,e.node.trueType)||Bf(e.checkType,e.node.falseType))}(x.root)||16777216&r.flags&&r.root===x.root)){b=!xe(Gf(x.checkType),Gf(x.extendsType)),S=!b&&xe($f(x.checkType),$f(x.extendsType));if((o=b?-1:q(r,Gp(x),2,!1,void 0,e))&&(o&=S?-1:q(r,$p(x),2,!1,void 0,e)))return o}}else if(134217728&l){if(134217728&t){if(A===ua)return function(e,t){var r=e.texts[0],n=t.texts[0],e=e.texts[e.texts.length-1],t=t.texts[t.texts.length-1],i=Math.min(r.length,n.length),a=Math.min(e.length,t.length);return r.slice(0,i)!==n.slice(0,i)||e.slice(e.length-a)!==t.slice(t.length-a)}(r,n)?0:-1;be(r,Bn)}if(wh(r,n))return-1}else if(268435456&n.flags&&!(268435456&r.flags)&&Th(r,n))return-1;if(8650752&t){if(!(8388608&t&&8388608&l)){v=__(r)||ne;if(o=q(v,n,1,!1,void 0,e))return o;if(o=q(wl(v,r),n,1,i&&v!==ne&&!(l&t&262144),void 0,e))return o;if(N_(r)){y=__(r.indexType);if(y&&(o=q(Bp(r.objectType,y),n,1,i)))return o}}}else if(4194304&t){var k=mp(r.type,r.indexFlags)&&32&sT(r.type);if(o=q(Fn,n,1,i&&!k))return o;if(k){var k=r.type,T=Xl(k),T=T&&Zl(k)?Q(T,k):T||$l(k);if(o=q(T,n,1,i))return o}}else if(134217728&t&&!(524288&l)){if(!(134217728&l)){k=y_(r);if(k&&k!==r&&(o=q(k,n,1,i)))return o}}else if(268435456&t)if(268435456&l){if(r.symbol!==n.symbol)return 0;if(o=q(r.type,n.type,3,i))return o}else{T=y_(r);if(T&&(o=q(T,n,1,i)))return o}else if(16777216&t){if(eg(r,F,j,10))return 3;if(16777216&l){var C=r.root.inferTypeParameters;let e=r.extendsType,t;if(C&&(Dh((C=ah(C,void 0,0,G)).inferences,n.extendsType,e,1536),e=be(e,C.mapper),t=C.mapper),tm(e,n.extendsType)&&(q(r.checkType,n.checkType,3)||q(n.checkType,r.checkType,3))&&((o=q(be(Gp(r),t),Gp(n),3,i))&&(o&=q($p(r),$p(n),3,i)),o))return o}C=f_(r);if(C&&(o=q(C,n,1,i)))return o;var w=16777216&l||!b_(r)?void 0:m_(r);if(w&&(B(a),o=q(w,n,1,i)))return o}else{if(A!==ca&&A!==la&&function(e){return 32&sT(e)&&4&t_(e)}(n)&&Cm(r))return-1;if(i_(n))return i_(r)&&(o=function(e,t,r){var n=A===ua||(A===da?t_(e)===t_(t):n_(e)<=n_(t));if(n){var n=$l(t),i=be($l(e),n_(e)<0?Jn:Bn);if(n=q(n,i,3,r)){i=Cf([Gl(e)],[Gl(t)]);if(be(Xl(e),i)===be(Xl(t),i))return n&q(be(Ql(e),i),Ql(t),3,r)}}return 0}(r,n,i))?o:0;w=!!(402784252&t);if(A!==da)r=D_(r),t=r.flags;else if(i_(r))return 0;if(4&sT(r)&&4&sT(n)&&r.target===n.target&&!Se(r)&&!Wm(r)&&!Wm(n)){if(mg(r))return-1;var N=zm(r.target);if(N===H4)return 1;N=P(Ju(r),Ju(n),N,e);if(void 0!==N)return N}else{if(sg(n)?C0(r,cg):og(n)&&C0(r,e=>Se(e)&&!e.target.readonly))return A!==da?q(K_(r,oe)||re,K_(n,oe)||re,3,i):0;if(Eg(r)&&Se(n)&&!Eg(n)){N=v_(r);if(N!==r)return q(N,n,1,i)}else if((A===ca||A===la)&&Cm(n)&&8192&sT(n)&&!Cm(r))return 0}if(2621440&t&&524288&l){var D=i&&O===a.errorInfo&&!w;if((o=V(r,n,D,void 0,!1,e))&&(o&=W(r,n,0,D,e))&&(o&=W(r,n,1,D,e))&&(o&=Z(r,n,w,D,e)),c&&o)O=s||O||a.errorInfo;else if(o)return o}if(2621440&t&&1048576&l){D=P0(n,36175872);if(1048576&D.flags){e=function(n,i){var e=fe(n),a=Kh(e,i);if(!a)return 0;let t=1;for(var r of a)if(25<(t*=function(e){return 1048576&e.flags?e.types.length:1}(Mc(r))))return null!=(r=Z4)&&r.instant(Z4.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:n.id,targetId:i.id,numCombinations:t}),0;var o=new Array(a.length),s=new Set;for(let e=0;er[t],!1,0,te||A===ua))continue e}JT(_,u,c3),e=!0}if(!e)return 0}let f=-1;for(var m of _)if(!(f&=V(n,m,!1,s,!1,0))||!(f&=W(n,m,0,!1,0))||!(f&=W(n,m,1,!1,0))||Se(n)&&Se(m)||(f&=Z(n,m,!1,!1,0)),!f)return f;return f}(r,D);if(e)return e}}}return 0;function E(e){return e?QT(e,(e,t)=>e+1+E(t.next),0):0}function P(e,t,r,n){if(o=function(r=H4,n=H4,e=H4,i,a){if(r.length!==n.length&&A===da)return 0;var o=(r.length<=n.length?r:n).length;let s=-1;for(let t=0;t!!(24&e)))s=void 0,B(a);else{e=t&&function(t,r){for(let e=0;e0==(7&e))))return 0;s=O,B(a)}}}}(t,r,e,n,i);{var o;A!==da&&((a=!a&&(2097152&t.flags||262144&t.flags&&1048576&r.flags)&&(o=function(e,t){let r,n=!1;for(var i of e)if(465829888&i.flags){let e=__(i);for(;e&&21233664&e.flags;)e=__(e);e&&(r=Q4(r,e),t)&&(r=Q4(r,i))}else(469892092&i.flags||wm(i))&&(n=!0);if(r&&(t||n)){if(n)for(var a of e)(469892092&a.flags||wm(a))&&(r=Q4(r,a));return Im(ve(r,2),!1)}}(2097152&t.flags?t.types:[t],!!(1048576&r.flags)))&&C0(o,e=>e!==t)?q(o,r,1,!1,void 0,n):a)&&!(2&n)&&2097152&r.flags&&!Ap(r)&&2621440&t.flags?(a&=V(t,r,e,void 0,!1,0))&&Fh(t)&&8192&sT(t)&&(a&=Z(t,r,!1,e,0)):a&&rf(r)&&!cg(r)&&2097152&t.flags&&3670016&D_(t).flags&&!X4(t.types,e=>e===r||!!(262144&sT(e)))&&(a&=V(t,r,e,void 0,!0,n)))}a&&B(i);return a}(e,t,r,n),null!=Z4&&Z4.pop()),Dt=Dt&&l,1&i&&j--,2&i&&R--,g=o,u?(-1===u||0===j&&0===R)&&(-1===u||3===u?d(!0):d(!1)):(A.set(a,2|(r?4:0)|_),y--,d(!1)),u;function d(t){for(let e=c;e{n.push(be(t,Of(r.mapper,Gl(r),e)))}),ye(n)}function U(t,r){if(!r||0===t.length)return t;let n;for(let e=0;e{return!!(4&rD(e))&&(t=c,r=Qm(e),!Xm(t,e=>{e=Qm(e);return!!e&&zc(e,r)}));var t,r}))return a&&z(eT.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,_e(n),ue(Qm(r)||e),ue(Qm(n)||t)),0}else if(4&u)return a&&z(eT.Property_0_is_protected_in_type_1_but_public_in_type_2,_e(n),ue(e),ue(t)),0;return A===la&&zb(r)&&!zb(n)?0:(d=r,u=n,i=i,l=a,o=o,_=te&&!!(48&tD(u)),u=sc(Mc(u),!1,_),(_=q(i(d),u,3,l,void 0,o))?!s&&16777216&r.flags&&106500&n.flags&&!(16777216&n.flags)?(a&&z(eT.Property_0_is_optional_in_type_1_but_required_in_type_2,_e(n),ue(e),ue(t)),0):_:(a&&J(eT.Types_of_property_0_are_incompatible,_e(n)),0))}function V(n,i,a,o,e,s){if(A===da){var c=n;var t=i;var l=o;if(!(524288&c.flags&&524288&t.flags))return 0;c=U(s_(c),l),l=U(s_(t),l);if(c.length!==l.length)return 0;let e=-1;for(var r of c){var _=c_(t,r.escapedName);if(!_)return 0;r=ng(r,_,q);if(!r)return 0;e&=r}return e}{let r=-1;if(Se(i)){if(cg(n)){if(!i.target.readonly&&(sg(n)||Se(n)&&n.target.readonly))return 0;var u=zu(n),d=zu(i),l=Se(n)?4&n.target.combinedFlags:4,c=4&i.target.combinedFlags,p=Se(n)?n.target.minLength:0,f=i.target.minLength;if(!l&&u!(e&w)))?f:p.elementFlags.length),y=Vd(i.target,11),v=i.target.hasRestElement;let t=!!o;for(let e=0;e=h?d-1-Math.min(x,y):e,k=i.target.elementFlags[S];if(8&k&&!(8&b))return a&&z(eT.Source_provides_no_match_for_variadic_element_at_position_0_in_target,S),0;if(8&b&&!(12&k))return a&&z(eT.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,e,S),0;if(1&k&&!(1&b))return a&&z(eT.Source_provides_no_match_for_required_element_at_position_0_in_target,S),0;if(!(t=t&&!(12&b||12&k)&&t)||null==o||!o.has(""+e)){var T=Vg(m[e],!!(b&k&2)),C=g[S],T=q(T,8&b&&4&k?Fd(C):Vg(C,!!(2&k)),3,a,void 0,s);if(!T)return a&&(1=h&&y<=x&&h!==u-y-1?J(eT.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,h,u-y-1,S):J(eT.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,e,S)),0;r&=T}}return r}if(12&i.target.combinedFlags)return 0}var w,f=!(A!==ca&&A!==la||Fh(n)||mg(n)||Se(n)),p=vh(n,i,f,!1);if(p)return a&&function(e,t){var r=B_(e,0),n=B_(e,1),e=s_(e);if(!r.length&&!n.length||e.length)return 1;if(ge(t,0).length&&r.length||ge(t,1).length&&n.length)return 1;return}(n,i)&&function(e,t,r,n){let i=!1;if(r.valueDeclaration&&eC(r.valueDeclaration)&&UE(r.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){var a,o=r.valueDeclaration.name.escapedText,s=$w(e.symbol,o);if(s&&me(e,s))return s=cT.getDeclarationName(e.symbol.valueDeclaration),a=cT.getDeclarationName(t.symbol.valueDeclaration),z(eT.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Ya(o),Ya(""===s.escapedText?KL:s),Ya(""===a.escapedText?KL:a))}o=ZT(yh(e,t,n,!1)),I&&(I.code===eT.Class_0_incorrectly_implements_interface_1.code||I.code===eT.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)||(i=!0),1===o.length?(s=_e(r,void 0,0,20),z(eT.Property_0_is_missing_in_type_1_but_required_in_type_2,s,...Ps(e,t)),K4(r.declarations)&&H(aT(r.declarations[0],eT._0_is_declared_here,s)),i&&O&&M++):K(e,t,!1)&&(5_e(e)).join(", "),o.length-4):z(eT.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ue(e),ue(t),$4(o,e=>_e(e)).join(", ")),i)&&O&&M++}(n,i,p,f),0;if(Fh(i))for(var N of U(fe(n),o))if(!c_(i,N.escapedName))if(!(32768&pe(N).flags))return a&&z(eT.Property_0_does_not_exist_on_type_1,_e(N),ue(i)),0;var D,E=fe(i),P=Se(n)&&Se(i);for(D of U(E,o)){var F=D.escapedName;if(!(4194304&D.flags)&&(!P||sE(F)||"length"===F)&&(!e||16777216&D.flags)){F=me(n,F);if(F&&F!==D){F=Y(n,i,F,D,Mc,a,s,A===ua);if(!F)return 0;r&=F}}}return r}}function W(r,e,n,i,a){if(A===da){var o=r;var s=e;var c=n;var l=ge(o,c),_=ge(s,c);if(l.length!==_.length)return 0;let t=-1;for(let e=0;eEs(e,void 0,262144,n))(y),g(v)),z(eT.Types_of_construct_signatures_are_incompatible)}else e:for(var b of p){var x,S=T();let e=i;for(x of d){var k=C(x,b,!0,e,a,m(x,b));if(k){t&=k,B(S);continue e}e=!1}return e&&z(eT.Type_0_provides_no_match_for_the_signature_1,ue(r),Es(b,void 0,void 0,n)),0}return t}}function D(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>J(eT.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ue(e),ue(t)):(e,t)=>J(eT.Call_signature_return_types_0_and_1_are_incompatible,ue(e),ue(t))}function E(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>J(eT.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ue(e),ue(t)):(e,t)=>J(eT.Construct_signature_return_types_0_and_1_are_incompatible,ue(e),ue(t))}function C(e,t,r,n,i,a){var o=A===ca?16:A===la?24:0;return Sm(r?vu(e):e,r?vu(t):t,o,n,z,a,function(e,t,r){return q(e,t,3,r,void 0,i)},Bn)}function P(e,t,r,n){n=q(e.type,t.type,3,r,void 0,n);return!n&&r&&(e.keyType===t.keyType?z(eT._0_index_signatures_are_incompatible,ue(e.keyType)):z(eT._0_and_1_index_signatures_are_incompatible,ue(e.keyType),ue(t.keyType))),n}function Z(e,t,r,n,i){if(A===da){var a,o=e,s=t,c=W_(o),s=W_(s);if(c.length!==s.length)return 0;for(a of s){var l=H_(o,a.keyType);if(!l||!q(l.type,a.type,3)||l.isReadonly!==a.isReadonly)return 0}return-1}var _,c=W_(t),u=X4(c,e=>e.keyType===ae);let d=-1;for(_ of c){var p=A!==la&&!r&&u&&1&_.type.flags?-1:i_(e)&&u?q(Ql(e),_.type,3,n):function(e,t,r,n){var i=$_(e,t.keyType);if(i)return P(i,t,r,n);if(!(1&n)&&(A!==la||8192&sT(e))&&Kg(e))return function(e,t,r,n){let i=-1;var a,o,s=t.keyType;for(a of(2097152&e.flags?l_:s_)(e))if(!Am(e,a)&&U_(pp(a,8576),s)){var c=Mc(a),c=q(Ce||32768&c.flags||s===oe||!(16777216&a.flags)?c:a0(c,524288),t.type,3,r,void 0,n);if(!c)return r&&z(eT.Property_0_is_incompatible_with_index_signature,_e(a)),0;i&=c}for(o of W_(e))if(U_(o.keyType,s)){var l=P(o,t,r,n);if(!l)return 0;i&=l}return i}(e,t,r,n);r&&z(eT.Index_signature_for_type_0_is_missing_in_type_1,ue(t.keyType),ue(e));return 0}(e,_,n,i);if(!p)return 0;d&=p}return d}}function Lm(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!G4(e.types,Lm);if(465829888&e.flags){var t=__(e);if(t&&t!==e)return Lm(t)}return bg(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function jm(t,e){return Se(t)&&Se(e)?H4:fe(e).filter(e=>Rm(Ks(t,e.escapedName),pe(e)))}function Rm(e,t){return!!e&&!!t&&Gb(e,32768)&&!!Wg(t)}function Mm(e,t,r=nm){return z4(e,t,r)||function(r,e){let n=sT(r);if(20&n&&1048576&e.flags)return bT(e.types,e=>{if(524288&e.flags){var t=n&sT(e);if(4&t)return r.target===e.target;if(16&t)return!!r.aliasSymbol&&r.aliasSymbol===e.aliasSymbol}return!1})}(e,t)||function(e,t){if(128&sT(e)&&T0(t,ug))return bT(t.types,e=>!ug(e))}(e,t)||function(e,t){let r=0,n=00=e&&(n=i,e=a)}}return n}(e,t)}function Bm(e,t,r){var n,i,a,o=e.types;let s=o.map(e=>402784252&e.flags?0:-1);for([n,i]of t){let t=!1;for(let e=0;es[t]),0):e;return 131072&t.flags?e:t}function Jm(e){var t;return 524288&e.flags?0===(t=o_(e)).callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&0!!(16777216&e.flags)):33554432&e.flags?Jm(e.baseType):!!(2097152&e.flags)&&vT(e.types,Jm)}function zm(e){return e===Rt||e===Mt||8&e.objectFlags?u:Um(e.symbol,e.typeParameters)}function qm(e){return Um(e,le(e).typeParameters)}function Um(n,e=H4){var t=le(n);if(!t.variances){null!=Z4&&Z4.push(Z4.Phase.CheckTypes,"getVariancesWorker",{arity:e.length,id:cl(n).id});var i,r=Ri,a=ji,o=(Ri||(Ri=!0,ji=Ii.length),t.variances=H4,[]);for(i of e){var s=Hm(i);let e=16384&s?8192&s?0:1:8192&s?2:void 0;if(void 0===e){let t=!1,r=!1;var s=Dt,c=(Dt=e=>e?r=!0:t=!0,Vm(n,i,Yn)),l=Vm(n,i,Zn);3===(e=(xe(l,c)?1:0)|(xe(c,l)?2:0))&&xe(Vm(n,i,ei),c)&&(e=4),Dt=s,(t||r)&&(t&&(e|=8),r)&&(e|=16)}o.push(e)}r||(Ri=!1,ji=a),t.variances=o,null!=Z4&&Z4.pop({variances:o.map(Y4.formatVariance)})}return t.variances}function Vm(e,t,r){t=Nf(t,r),r=cl(e);return de(r)?r:(e=524288&e.flags?Uu(e,Sf(le(e).typeParameters,t)):Ru(r,Sf(r.typeParameters,t)),en.add(e.id),e)}function Wm(e){return en.has(e.id)}function Hm(e){return 28672&QT(null==(e=e.symbol)?void 0:e.declarations,(e,t)=>e|ON(t),0)}function Km(e){return!!(4&sT(t=e))&&!t.node&&X4(Ju(e),e=>!!(262144&e.flags)||Km(e));var t}function Gm(e,t,r,a){let o=[],s="";e=c(e,0),t=c(t,0);return""+s+e+","+t+r;function c(e,r=0){let n=""+e.target.id;for(let t of Ju(e)){if(262144&t.flags){if(a||262144&(i=t).flags&&!u_(i)){let e=o.indexOf(t);e<0&&(e=o.length,o.push(t)),n+="="+e;continue}s="*"}else if(r<4&&Km(t)){n+="<"+c(t,r+1)+">";continue}n+="-"+t.id}var i;return n}}function $m(e,t,r,n,i){n===da&&e.id>t.id&&(n=e,e=t,t=n);n=r?":"+r:"";return Km(e)&&Km(t)?Gm(e,t,n,i):e.id+","+t.id+n}function Xm(e,t){if(!(6&tD(e)))return t(e);for(var r of e.links.containingType.types){r=me(r,e.escapedName),r=r&&Xm(r,t);if(r)return r}}function Qm(e){return e.parent&&32&e.parent.flags?cl(Xo(e)):void 0}function Ym(e){var t=Qm(e),t=t&&Zc(t)[0];return t&&Ks(t,e.escapedName)}function Zm(t,e,r){return Xm(e,e=>!!(4&rD(e,r))&&!zc(t,Qm(e)))?void 0:t}function eg(e,n,i,a=3){if(a<=i){if(2097152&(e=96==(96&sT(e))?tg(e):e).flags)return X4(e.types,e=>eg(e,n,i,a));var o=rg(e);let t=0,r=0;for(let e=0;et(e,r));return rg(e)===r}(s,o)){if(s.id>=r&&++t>=a)return!0;r=s.id}}}return!1}function tg(e){let t;for(;96==(96&sT(e))&&(t=e_(e))&&(t.symbol||2097152&t.flags&&X4(t.types,e=>!!e.symbol));)e=t;return e}function rg(e){if(524288&e.flags&&!Ah(e)){if(4&sT(e)&&e.node)return e.node;if(e.symbol&&!(16&sT(e)&&32&e.symbol.flags))return e.symbol;if(Se(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){for(;8388608&(e=e.objectType).flags;);return e}return 16777216&e.flags?e.root:e}function ng(e,t,r){if(e===t)return-1;var n=6&rD(e);if(n!=(6&rD(t)))return 0;if(n){if(Lk(e)!==Lk(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return zb(e)!==zb(t)?0:r(pe(e),pe(t))}function ig(t,r,e,n,i,a){if(t===r)return-1;if(p=r,e=e,_=ob(d=t),u=ob(p),f=sb(d),m=sb(p),d=cb(d),p=cb(p),(_!==u||f!==m||d!==p)&&!(e&&f<=m))return 0;if(K4(t.typeParameters)!==K4(r.typeParameters))return 0;if(r.typeParameters){var o=Cf(t.typeParameters,r.typeParameters);for(let e=0;ew0(e,e=>!(98304&e.flags))):e)?ye(t):QT(t,(e,t)=>am(e,t)?t:e),t===e?r:Rg(r,98304&function r(e){return QT(e,(e,t)=>e|(1048576&t.flags?r(t.types):t.flags),0)}(e)))}function og(e){return!!(4&sT(e))&&(e.target===Rt||e.target===Mt)}function sg(e){return!!(4&sT(e))&&e.target===Mt}function cg(e){return og(e)||Se(e)}function lg(e){return og(e)&&!sg(e)||Se(e)&&!e.target.readonly}function _g(e){return og(e)?Ju(e)[0]:void 0}function ug(e){return og(e)||!(98304&e.flags)&&xe(e,Ht)}function dg(e){return lg(e)||!(98305&e.flags)&&xe(e,Vt)}function pg(t){if(4&sT(t)&&3&sT(t.target)){if(33554432&sT(t))return 67108864&sT(t)?t.cachedEquivalentBaseType:void 0;t.objectFlags|=33554432;var r=t.target;if(1&sT(r)){var n=Gc(r);if(n&&80!==n.expression.kind&&211!==n.expression.kind)return}n=Zc(r);if(1===n.length&&!Tl(t.symbol).size){let e=K4(r.typeParameters)?be(n[0],Cf(r.typeParameters,Ju(t).slice(0,r.typeParameters.length))):n[0];return K4(Ju(t))>K4(r.typeParameters)&&(e=wl(e,GT(Ju(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=e}}}function fg(e){return te?e===Nn:e===dn}function mg(e){e=_g(e);return e&&fg(e)}function gg(e){let t;return Se(e)||!!me(e,"0")||ug(e)&&!!(t=Ks(e,"length"))&&C0(t,e=>!!(256&e.flags))}function hg(e){return ug(e)||gg(e)}function yg(e,t){var r=Ks(e,""+t);return r||(C0(e,Se)?Ag(e,t,ee.noUncheckedIndexedAccess?ie:void 0):void 0)}function vg(e){return!(240544&e.flags)}function bg(e){return!!(109472&e.flags)}function xg(e){e=v_(e);return 2097152&e.flags?X4(e.types,bg):bg(e)}function Sg(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||vT(e.types,bg):bg(e))}function kg(e){return 1056&e.flags?nl(e):402653312&e.flags?ae:256&e.flags?oe:2048&e.flags?yn:512&e.flags?kn:1048576&e.flags?ka(r="B"+(t=e).id)??Ta(r,D0(t,kg)):e;var t,r}function Tg(e){return 402653312&e.flags?ae:288&e.flags?oe:2048&e.flags?yn:512&e.flags?kn:1048576&e.flags?D0(e,Tg):e}function Cg(e){return 1056&e.flags&&df(e)?nl(e):128&e.flags&&df(e)?ae:256&e.flags&&df(e)?oe:2048&e.flags&&df(e)?yn:512&e.flags&&df(e)?kn:1048576&e.flags?D0(e,Cg):e}function wg(e){return 8192&e.flags?Tn:1048576&e.flags?D0(e,wg):e}function Ng(e,t){return uf(e=px(e,t)?e:wg(Cg(e)))}function Dg(e,t,r,n){return e=e&&bg(e)?Ng(e,t?hk(r,t,n):void 0):e}function Se(e){return!!(4&sT(e)&&8&e.target.objectFlags)}function Eg(e){return Se(e)&&!!(8&e.target.combinedFlags)}function Pg(e){return Eg(e)&&1===e.target.elementFlags.length}function Fg(e){return Ig(e,e.target.fixedLength)}function Ag(e,r,n){return D0(e,e=>{var t=Fg(e);return t?n&&r>=Wd(e.target)?ye([t,n]):t:ie})}function Ig(t,r,e=0,n=!1,i=!1){var a=zu(t)-e;if(rn0(e,4194304))}function jg(e){return 4&e.flags?Pi:8&e.flags?Fi:64&e.flags?Ai:e===bn||e===vn||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&Og(e)?e:M}function Rg(e,t){t=t&~e.flags&98304;return 0==t?e:ye(32768==t?[e,ie]:65536==t?[e,gn]:[e,ie,gn])}function Mg(e,t=!1){Y4.assert(te);t=t?fn:ie;return e===t||1048576&e.flags&&e.types[0]===t?e:ye([e,t])}function Bg(e){return te?o0(e,2097152):e}function Jg(e){return te?ye([e,mn]):e}function zg(e){return te?N0(e,mn):e}function qg(e,t,r){return r?(SC(t)?Mg:Jg)(e):e}function Ug(e,t){return xC(t)?Bg(e):vC(t)?zg(e):e}function Vg(e,t){return Ce&&t?N0(e,pn):e}function Wg(e){return e===pn||!!(1048576&e.flags)&&e.types[0]===pn}function Hg(e){return Ce?N0(e,pn):a0(e,524288)}function Kg(e){var t=sT(e);return 2097152&e.flags?vT(e.types,Kg):!(!e.symbol||0==(7040&e.symbol.flags)||32&e.symbol.flags||D6(e))||!!(4194304&t)||!!(1024&t&&Kg(e.source))}function Gg(e,t){var r=O(e.flags,e.escapedName,8&tD(e)),t=(r.declarations=e.declarations,r.parent=e.parent,r.links.type=t,(r.links.target=e).valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),le(e).nameType);return t&&(r.links.nameType=t),r}function $g(e){var t,r;return Fh(e)&&8192&sT(e)?e.regularType||(r=function(e,t){var r,n=I7();for(r of s_(e)){var i=pe(r),a=t(i);n.set(r.escapedName,a===i?r:Gg(r,a))}return n}(t=e,$g),(r=fs(t.symbol,r,t.callSignatures,t.constructSignatures,t.indexInfos)).flags=t.flags,r.objectFlags|=-8193&t.objectFlags,e.regularType=r):e}function Xg(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function Qg(e){if(!e.resolvedProperties){var t,r=new Map;for(t of function e(r){if(!r.siblings){let t=[];for(var n of e(r.parent))Fh(n)&&(n=c_(n,r.propertyName))&&k0(pe(n),e=>{t.push(e)});r.siblings=t}return r.siblings}(e))if(Fh(t)&&!(2097152&sT(t)))for(var n of fe(t))r.set(n.escapedName,n);e.resolvedProperties=ZT(r.values())}return e.resolvedProperties}function Yg(e,t){var r,n,i,a,o,s=I7();for(r of s_(e))s.set(r.escapedName,(n=r,i=t,a=void 0,!(4&n.flags)||(i=eh(a=pe(n),i&&Xg(i,n.escapedName,void 0)))===a?n:Gg(n,i)));if(t)for(var c of Qg(t))s.has(c.escapedName)||s.set(c.escapedName,(c=c,o=void 0,(o=Zr.get(c.escapedName))||((o=Gg(c,fn)).flags|=16777216,Zr.set(c.escapedName,o),o)));var l=fs(e.symbol,s,H4,H4,ET(W_(e),e=>Cu(e.keyType,Zg(e.type),e.isReadonly)));return l.objectFlags|=266240&sT(e),l}function Zg(e){return eh(e,void 0)}function eh(r,n){if(196608&sT(r)){if(void 0===n&&r.widened)return r.widened;let e;if(98305&r.flags)e=re;else if(Fh(r))e=Yg(r,n);else if(1048576&r.flags){let t=n||Xg(void 0,void 0,r.types);var i=ET(r.types,e=>98304&e.flags?e:eh(e,t));e=ye(i,X4(i,Cm)?2:1)}else 2097152&r.flags?e=ve(ET(r.types,Zg)):cg(r)&&(e=Ru(r.target,ET(Ju(r),Zg)));return e&&void 0===n&&(r.widened=e),e||r}return r}function th(t,e,r){var n=ue(Zg(e));if(!oT(t)||BD(iT(t),ee)){let e;switch(t.kind){case 226:case 172:case 171:e=Te?eT.Member_0_implicitly_has_an_1_type:eT.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:var i=t;if(uT(i.name)){var a=Q3(i.name);if((iP(i.parent)||YE(i.parent)||cP(i.parent))&&i.parent.parameters.includes(i)&&(St(i,i.name.escapedText,788968,void 0,!0)||a&&cD(a)))return a="arg"+i.parent.parameters.indexOf(i),i=d5(i.name)+(i.dotDotDotToken?"[]":""),void Fa(Te,t,eT.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,a,i)}e=t.dotDotDotToken?Te?eT.Rest_parameter_0_implicitly_has_an_any_type:eT.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Te?eT.Parameter_0_implicitly_has_an_1_type:eT.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(e=eT.Binding_element_0_implicitly_has_an_1_type,Te)break;return;case 317:return void ce(t,eT.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);case 323:return void(Te&&XF(t.parent)&&ce(t.parent.tagName,eT.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,n));case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Te&&!t.name)return void ce(t,3===r?eT.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:eT.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);e=Te?3===r?eT._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:eT._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:eT._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:return void(Te&&ce(t,eT.Mapped_object_type_implicitly_has_an_any_template_type));default:e=Te?eT.Variable_0_implicitly_has_an_1_type:eT.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Fa(Te,t,e,d5(tC(t)),n)}}function rh(e,t,r){J(()=>{!(Te&&65536&sT(t))||r&&fy(e)||!function e(t){let r=!1;if(65536&sT(t)){if(1048576&t.flags)if(X4(t.types,Cm))r=!0;else for(var n of t.types)e(n)&&(r=!0);if(cg(t))for(var i of Ju(t))e(i)&&(r=!0);if(Fh(t))for(var a of s_(t)){var o=pe(a);65536&sT(o)&&(e(o)||ce(a.valueDeclaration,eT.Object_literal_s_property_0_implicitly_has_an_1_type,_e(a),ue(Zg(o))),r=!0)}}return r}(t)&&th(e,t,r)})}function nh(t,r,n){var e=ob(t),i=ob(r),a=lb(t),o=lb(r),i=o?i-1:i,s=a?i:Math.min(e,i),a=_u(t);a&&(e=_u(r))&&n(a,e);for(let e=0;ee.typeParameter),$4(a.inferences,(n,i)=>()=>{if(!n.isFixed){var e=a;if(e.intraExpressionInferenceSites){for(var{node:t,type:r}of e.intraExpressionInferenceSites){t=(174===t.kind?G1:iy)(t,2);t&&Dh(e.inferences,r,t)}e.intraExpressionInferenceSites=void 0}sh(a.inferences),n.isFixed=!0}return Lh(a,i)})),e.nonFixingMapper=Ef($4((i=e).inferences,e=>e.typeParameter),$4(i.inferences,(e,t)=>()=>Lh(i,t))),e}function sh(e){for(var t of e)t.isFixed||(t.inferredType=void 0)}function ch(e,t,r){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:r})}function lh(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function _h(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 uh(e){return e&&e.mapper}function dh(e){var t=sT(e);return 524288&t?!!(1048576&t):(t=!!(465829888&e.flags||524288&e.flags&&!ph(e)&&(4&t&&(e.node||X4(Ju(e),dh))||134217728&t&&K4(e.outerTypeParameters)||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!ph(e)&&X4(e.types,dh)),3899393&e.flags&&(e.objectFlags|=524288|(t?1048576:0)),t)}function ph(e){if(e.aliasSymbol&&!e.aliasTypeArguments)return(e=F7(e.aliasSymbol,265))&&tT(e.parent,e=>307===e.kind||267!==e.kind&&"quit")}function fh(e,t,r=0){return!!(e===t||3145728&e.flags&&X4(e.types,e=>fh(e,t,r))||r<3&&16777216&e.flags&&(fh(Gp(e),t,r+1)||fh($p(e),t,r+1)))}function mh(e,t,r){var n=e.id+","+t.id+","+r.id;return gi.has(n)?gi.get(n):(e=function(e,t,r){var n,i;if(H_(e,ae)||0!==fe(e).length&&gh(e))return og(e)?(n=hh(Ju(e)[0],t,r))?Fd(n,sg(e)):void 0:Se(e)?vT(n=$4(Hd(e),e=>hh(e,t,r)),e=>!!e)?(i=4&t_(t)?ET(e.target.elementFlags,e=>2&e?1:e):e.target.elementFlags,Md(n,i,e.target.readonly,e.target.labeledElementDeclarations)):void 0:((i=cs(1040,void 0)).source=e,i.mappedType=t,i.constraintType=r,i)}(e,t,r),gi.set(n,e),e)}function gh(e){return!(262144&sT(e))||Fh(e)&&X4(fe(e),e=>gh(pe(e)))||Se(e)&&X4(Hd(e),gh)}function hh(e,t,r){var n=e.id+","+t.id+","+r.id;if(gi.has(n))return gi.get(n)||ne;na.push(e),ia.push(t);var i=aa;eg(e,na,na.length,2)&&(aa|=1),eg(t,ia,ia.length,2)&&(aa|=2);let a;return 3!==aa&&(a=(e=e,t=t,r=Bp((r=r).type,Gl(t)),t=Ql(t),Dh([r=lh(r)],e,t),bh(r)||ne)),na.pop(),ia.pop(),aa=i,gi.set(n,a),a}function*yh(e,t,r,n){var i,a,o;for(i of fe(t))gl(i)||!r&&(16777216&i.flags||48&tD(i))||((o=me(e,i.escapedName))?n&&109472&(a=pe(i)).flags&&(1&(o=pe(o)).flags||uf(o)===uf(a)||(yield i)):yield i)}function vh(e,t,r,n){return VT(yh(e,t,r,n))}function bh(e){return e.candidates?ye(e.candidates,2):e.contraCandidates?ve(e.contraCandidates):void 0}function xh(e){return!!P(e).skipDirectInference}function Sh(e){return e.symbol&&X4(e.symbol.declarations,xh)}function kh(e,t){var r;if(""!==e)return r=+e,isFinite(r)&&(!t||""+r===e)}function Th(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return xe(e,t);if(268435456&t.flags){for(var r=[];268435456&t.flags;)r.unshift(t.symbol),t=t.type;return QT(r,(e,t)=>bp(t,e),e)===e&&Th(e,t)}return!1}function Ch(e,r){return 128&e.flags?Nh([e.value],H4,r):134217728&e.flags?CT(e.texts,r.texts)?$4(e.types,(e,t)=>{return xe(v_(e),v_(r.types[t]))?e:402653317&(t=e).flags?t:yp(["",""],[t])}):Nh(e.texts,e.types,r):void 0}function wh(e,r){e=Ch(e,r);return!!e&&vT(e,(e,t)=>function t(r,e){var n;return 2097152&e.flags?vT(e.types,e=>e===Vn||t(r,e)):!!(4&e.flags||xe(r,e))||(128&r.flags?(n=r.value,!!(8&e.flags&&kh(n,!1)||64&e.flags&&$D(n,!1)||98816&e.flags&&n===e.intrinsicName||268435456&e.flags&&Th(pf(n),e)||134217728&e.flags&&wh(r,e))):!!(134217728&r.flags)&&2===(n=r.texts).length&&""===n[0]&&""===n[1]&&xe(r.types[0],e))}(e,r.types[t]))}function Nh(o,s,e){let r=o.length-1;var t=o[0],c=o[r],l=e.texts,_=l.length-1,e=l[0],u=l[_];if(!(0==r&&t.length{var t,r;128&e.flags&&((r=O(4,t=$3(e.value))).links.type=re,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),n.set(t,r))}),e=4&e.flags?[Cu(ae,zn,!1)]:H4,fs(void 0,n,H4,H4,e)}(e);c=t.type,p=g,g|=256,w(a,c),g=p}else if(8388608&e.flags&&8388608&t.flags)x(e.objectType,t.objectType),x(e.indexType,t.indexType);else if(268435456&e.flags&&268435456&t.flags)e.symbol===t.symbol&&x(e.type,t.type);else if(33554432&e.flags)x(e.baseType,t),S(Zu(e),t,4);else if(16777216&t.flags)k(e,t,E);else if(3145728&t.flags)D(e,t.types,t.flags);else if(1048576&e.flags)for(r of e.types)x(r,t);else if(134217728&t.flags){var c=t,l=Ch(e,c),_=c.types;if(l||vT(c.texts,e=>0===e.length))for(let e=0;e<_.length;e++){let i=l?l[e]:M;var u=_[e];if(128&i.flags&&8650752&u.flags){var d=N(u),d=d?y_(d.typeParameter):void 0;if(d&&!B(d)){d=1048576&d.flags?d.types:[d];let n=QT(d,(e,t)=>e|t.flags,0);if(!(4&n)){let r=i.value;296&n&&!kh(r,!0)&&(n&=-297),2112&n&&!$D(r,!0)&&(n&=-2113);d=QT(d,(e,t)=>{return!(t.flags&n)||4&e.flags?e:4&t.flags?i:134217728&e.flags?e:134217728&t.flags&&wh(i,t)?i:268435456&e.flags?e:268435456&t.flags&&r===xp(t.symbol,r)?i:128&e.flags?e:128&t.flags&&t.value===r?t:8&e.flags?e:8&t.flags?ff(+r):32&e.flags?e:32&t.flags?ff(+r):256&e.flags?e:256&t.flags&&t.value===+r?t:64&e.flags?e:64&t.flags?mf(GD(r)):2048&e.flags?e:2048&t.flags&&KD(t.value)===r?t:16&e.flags?e:16&t.flags?"true"===r?xn:"false"===r?vn:kn:!(512&e.flags)&&(512&t.flags&&t.intrinsicName===r||!(32768&e.flags)&&(32768&t.flags&&t.intrinsicName===r||!(65536&e.flags)&&65536&t.flags&&t.intrinsicName===r))?t:e},M);if(!(131072&d.flags)){x(d,u);continue}}}}x(i,u)}}else{if(i_(e=I_(e))&&i_(t)&&k(e,t,P),!(512&g&&467927040&e.flags)){var p=D_(e);if(p!==e&&!(2621440&p.flags))return x(p,t);e=p}2621440&e.flags&&k(e,t,F)}else C(Ju(e),Ju(t),zm(e.target))}}function S(e,t,r){var n=g;g|=r,x(e,t),g=n}function k(e,t,r){var n,i=e.id+","+t.id,a=o&&o.get(i);b=(void 0!==a||((o=o||new Map).set(i,-1),a=b,b=2048,n=l,(s=s??[]).push(e),(c=c??[]).push(t),eg(e,s,s.length,2)&&(l|=1),eg(t,c,c.length,2)&&(l|=2),3!==l?r(e,t):b=-1,c.pop(),s.pop(),l=n,o.set(i,b)),Math.min(b,a))}function T(e,t,r){let n,i;for(var a of t)for(var o of e)r(o,a)&&(x(o,a),n=zT(n,o),i=zT(i,a));return[n?NT(e,e=>!TT(n,e)):e,i?NT(t,e=>!TT(i,e)):t]}function C(t,r,n){var i=(t.length!!N(e));if(!r||t&&r!==t)return;t=r}return t}(i))&&S(n,l,1));if(1===a&&!t){var l=FT(s,(e,t)=>r[t]?void 0:e);if(l.length)return void x(ye(l),e)}}else for(var t of i)N(t)?a++:x(n,t);if(2097152&e?1===a:0e!==ci?e.type:M))),Ql(n)),!0)}(t,e,$l(e)))return;if(p=e,!(Se(d=t)&&Se(p)?(f=d,!(8&(n=p).target.combinedFlags)&&n.target.minLength>f.target.minLength||!n.target.hasRestElement&&(f.target.hasRestElement||n.target.fixedLength(12&e)==(12&r.target.elementFlags[t]))){for(let e=0;eu_(e)||ne)),r=$4(n,e=>be(e,t)||ne);for(let e=0;eam(t,e)?t:e)}function Oh(e,t){var r,n=function(e){if(1!Ah(e)),[t])}return e}(e.candidates),i=!!(i=u_(i=e.typeParameter))&&Gb(16777216&i.flags?f_(i):i,406978556)||d_(e.typeParameter),a=!i&&e.topLevel&&(e.isFixed||(t=t,r=e.typeParameter,!((a=uu(t))?a.type&&fh(a.type,r):fh(he(t),r)))),t=i?ET(n,uf):a?ET(n,Cg):n;return Zg(416&e.priority?ye(t,2):ag(t))}function Lh(n,i){let a=n.inferences[i];if(!a.inferredType){let e,r;if(n.signature){let t=a.candidates?Oh(a,n.signature):void 0;var o=a.contraCandidates?Ih(a):void 0;t||o?(s=t&&(!o||!(131072&t.flags)&&X4(a.contraCandidates,e=>am(t,e))&&vT(n.inferences,e=>e!==a&&u_(e.typeParameter)!==a.typeParameter||vT(e.candidates,e=>am(e,t)))),e=s?t:o,r=s?o:t):1&n.flags?e=wn:(s=k_(a.typeParameter))&&(e=be(s,(s=Cf($4(o=(o=n).inferences.slice(i),e=>e.typeParameter),$4(o,()=>ne)),i=n.nonFixingMapper,s?Pf(5,s,i):i)))}else e=bh(a);a.inferredType=e||jh(!!(2&n.flags));o=u_(a.typeParameter);o&&(i=be(o,n.nonFixingMapper),e&&n.compareTypes(e,wl(i,e))||(a.inferredType=r&&n.compareTypes(r,wl(i,r))?r:i))}var s;return a.inferredType}function jh(e){return e?re:ne}function Rh(t){var r=[];for(let e=0;eiF(e)||aF(e)||uP(e)))}function zh(e,t){switch(t.kind){case 217:case 235:return zh(e,t.expression);case 226:return zN(t)&&zh(e,t.left)||pT(t)&&28===t.operatorToken.kind&&zh(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 gN(e)?110===t.kind:80===t.kind&&Bh(e)===Bh(t)||(eF(t)||wP(t))&&rs(Bh(e))===F(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 235:case 217:return zh(e.expression,t);case 211:case 212:var r=qh(e);if(void 0!==r){var n=lD(t)?qh(t):void 0;if(void 0!==n)return n===r&&zh(e.expression,t.expression)}if(EP(e)&&EP(t)&&uT(e.argumentExpression)&&uT(t.argumentExpression)){n=Bh(e.argumentExpression);if(n===Bh(t.argumentExpression)&&(t1(n)||r1(n)&&!X0(n)))return zh(e.expression,t.expression)}break;case 166:return lD(t)&&e.right.escapedText===qh(t)&&zh(e.left,t.expression);case 226:return pT(e)&&28===e.operatorToken.kind&&zh(e.right,t)}return!1}function qh(e){if(dT(e))return e.name.escapedText;if(EP(e))if(qw((t=e).argumentExpression))return $3(t.argumentExpression.text);else{if(UN(t.argumentExpression)){var t=t.argumentExpression,r=Ao(t,111551,!0);if(r&&(t1(r)||8&r.flags)){r=r.valueDeclaration;if(void 0!==r){var n=Cc(r);if(n){n=Uh(n);if(void 0!==n)return n}if(x7(r)&&Ga(r,t)){n=O8(r);if(n)return(t=GC(r.parent)?nc(r):Tx(n))&&Uh(t);if(OF(r))return m5(r.name)}}}return}return}var t;return wP(e)?(n=tc(e))?$3(n):void 0:GE(e)?""+e.parent.parameters.indexOf(e):void 0}function Uh(e){return 8192&e.flags?e.escapedName:384&e.flags?$3(""+e.value):void 0}function Vh(e,t){for(;lD(e);)if(zh(e=e.expression,t))return!0;return!1}function Wh(e,t){for(;vC(e);)if(zh(e=e.expression,t))return 1}function Hh(e,t){if(e&&1048576&e.flags){e=F_(e,t);if(e&&2&tD(e))return void 0===e.links.isDiscriminantProperty&&(e.links.isDiscriminantProperty=192==(192&e.links.checkFlags)&&!Fp(pe(e))),!!e.links.isDiscriminantProperty}return!1}function Kh(e,t){let r;for(var n of e)Hh(t,n.escapedName)&&(r?r.push(n):r=[n]);return r}function Gh(e){var t,r=e.types;if(!(r.length<10||32768&sT(e)||wT(r,e=>!!(59506688&e.flags))<10))return void 0===e.keyPropertyName&&(r=(t=G4(r,e=>59506688&e.flags?G4(fe(e),e=>bg(pe(e))?e.escapedName:void 0):void 0))&&function(e,t){let i=new Map,a=0;for(let n of e)if(61603840&n.flags){var o=Ks(n,t);if(o){if(!Sg(o))return;let r=!1;k0(o,e=>{var e=uf(e).id,t=i.get(e);t?t!==ne&&(i.set(e,ne),r=!0):i.set(e,n)}),r||a++}}return 10<=a&&2*a>=e.length?i:void 0}(r,t),e.keyPropertyName=r?t:"",e.constituentMap=r),e.keyPropertyName.length?e.keyPropertyName:void 0}function $h(e,t){e=null==(e=e.constituentMap)?void 0:e.get(uf(t).id);return e!==ne?e:void 0}function Xh(e,t){var r=Gh(e),t=r&&Ks(t,r);return t&&$h(e,t)}function Qh(e,t){return zh(e,t)||Vh(e,t)}function Yh(e,t){if(e.arguments)for(var r of e.arguments)if(Qh(t,r)||Wh(r,t))return!0;return!(211!==e.expression.kind||!Qh(t,e.expression.expression))}function Zh(e){return e.id<=0&&(e.id=QL,QL++),e.id}function e0(e,t){var r,n,i,a;return e===t?e:131072&t.flags?t:ka(r=`A${e.id},`+t.id)??Ta(r,(i=t,a=w0(n=e,e=>{var t,r=i,n=e;if(!(1048576&r.flags))return xe(r,n);for(t of r.types)if(xe(t,n))return!0;return!1}),a=512&i.flags&&df(i)?D0(a,_f):a,xe(i,a)?a:n))}function t0(e){var t=o_(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&am(e,Ot))}function r0(e,t){return i0(e,t)&t}function n0(e,t){return 0!==r0(e,t)}function i0(n,i){var e=(n=467927040&n.flags?y_(n)||ne:n).flags;if(268435460&e)return te?16317953:16776705;if(134217856&e)return a=128&e&&""===n.value,te?a?12123649:7929345:a?12582401:16776705;if(40&e)return te?16317698:16776450;if(256&e)return a=0===n.value,te?a?12123394:7929090:a?12582146:16776450;if(64&e)return te?16317188:16775940;if(2048&e)return a=Og(n),te?a?12122884:7928580:a?12581636:16775940;if(16&e)return te?16316168:16774920;if(528&e)return te?n===vn||n===bn?12121864:7927560:n===vn||n===bn?12580616:16774920;if(524288&e)return 0==(i&(te?83427327:83886079))?0:16&sT(n)&&Cm(n)?te?83427327:83886079:t0(n)?te?7880640:16728e3:te?7888800:16736160;if(16384&e)return 9830144;if(32768&e)return 26607360;if(65536&e)return 42917664;if(12288&e)return te?7925520:16772880;if(67108864&e)return te?7888800:16736160;if(131072&e)return 0;if(1048576&e)return QT(n.types,(e,t)=>e|i0(t,i),0);if(2097152&e){var a=n;var o=i;let e=Gb(a,402784252),t=0,r=134217727;for(var s of a.types)e&&524288&s.flags||(s=i0(s,o),t|=s,r&=s);return 8256&t|134209471&r}return 83886079}function a0(e,t){return w0(e,e=>n0(e,t))}function o0(e,t){var r=c0(a0(te&&2&e.flags?Hn:e,t));if(te)switch(t){case 524288:return s0(r,65536,131072,33554432,gn);case 1048576:return s0(r,131072,65536,16777216,ie);case 2097152:case 4194304:return D0(r,e=>{return n0(e,262144)?(t=e,(Kt=Kt||dd("NonNullable",524288,void 0)||j)!==j?Uu(Kt,[t]):ve([t,zn])):e;var t})}return r}function s0(e,t,r,n,i){let a=r0(e,50528256);if(!(a&t))return e;let o=ye([zn,i]);return D0(e,e=>n0(e,t)?ve([e,a&n||!n0(e,r)?zn:o]):e)}function c0(e){return e===Hn?ne:e}function l0(e,t){return t?ye([Ys(e),Tx(t)]):e}function _0(e,t){var t=dp(t);return TE(t)&&(Ks(e,t=CE(t))||d0(null==(e=X_(e,t))?void 0:e.type))||R}function u0(e,t){return C0(e,gg)&&yg(e,t)||d0($S(65,e,ie,void 0))||R}function d0(e){return e&&(ee.noUncheckedIndexedAccess?ye([e,pn]):e)}function p0(e){return Fd($S(65,e,ie,void 0)||R)}function f0(e){return 226===e.parent.kind&&e.parent.left===e||250===e.parent.kind&&e.parent.initializer===e}function m0(e){return _0(g0(e.parent),e.name)}function g0(e){var t,r,n=e["parent"];switch(n.kind){case 249:return ae;case 250:return GS(n)||R;case 226:return 209===(r=n).parent.kind&&f0(r.parent)||303===r.parent.kind&&f0(r.parent.parent)?l0(g0(r),r.right):Tx(r.right);case 220:return ie;case 209:return r=e,u0(g0(t=n),t.elements.indexOf(r));case 230:return p0(g0(n.parent));case 303:return m0(n);case 304:return l0(m0(t=n),t.objectAssignmentInitializer)}return R}function h0(e){return P(e).resolvedType||Tx(e)}function y0(e){return 260===e.kind?(r=e).initializer?h0(r.initializer):249===r.parent.parent.kind?ae:250===r.parent.parent.kind&&GS(r.parent.parent)||R:(e=(r=e).parent,t=y0(e.parent),l0(206===e.kind?_0(t,r.propertyName||r.name):r.dotDotDotToken?p0(t):u0(t,e.elements.indexOf(r)),r.initializer));var t,r}function v0(e){switch(e.kind){case 217:return v0(e.expression);case 226:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return v0(e.left);case 28:return v0(e.right)}}return e}function b0(t){var r,n=P(t);if(!n.switchTypes){n.switchTypes=[];for(let e of t.caseBlock.clauses)n.switchTypes.push(296===(r=e).kind?uf(Tx(r.expression)):M)}return n.switchTypes}function x0(e){if(!X4(e.caseBlock.clauses,e=>296===e.kind&&!k7(e.expression))){var t,r=[];for(t of e.caseBlock.clauses){var n=296===t.kind?t.expression.text:void 0;r.push(n&&!TT(r,n)?n:void 0)}return r}}function S0(e,t){return e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(var r of e.types)if(!Gd(t.types,r))return;return 1}if(1056&e.flags&&nl(e)===t)return 1;return Gd(t.types,e)}(e,t)}function k0(e,t){return 1048576&e.flags?G4(e.types,t):t(e)}function T0(e,t){return 1048576&e.flags?X4(e.types,t):t(e)}function C0(e,t){return 1048576&e.flags?vT(e.types,t):t(e)}function w0(t,r){if(1048576&t.flags){var n=t.types,i=NT(n,r);if(i===n)return t;var a=t.origin;let e;if(a&&1048576&a.flags){var a=a.types,o=NT(a,e=>!!(1048576&e.flags)||r(e));if(a.length-o.length==n.length-i.length){if(1===o.length)return o[0];e=Yd(1048576,o)}}return tp(i,16809984&t.objectFlags,void 0,void 0,e)}return 131072&t.flags||r(t)?t:M}function N0(e,t){return w0(e,e=>e!==t)}function D0(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);var n,i=e.origin;let a,o=!1;for(n of(i&&1048576&i.flags?i:e).types){var s=1048576&n.flags?D0(n,t,r):t(n);o=o||n!==s,s&&(a?a.push(s):a=[s])}return o?a&&ye(a,r?0:1):e}function E0(e,t,r,n){return 1048576&e.flags&&r?ye($4(e.types,t),1,r,n):D0(e,t)}function P0(e,t){return w0(e,e=>0!=(e.flags&t))}function F0(e,t){return Gb(e,134217804)&&Gb(t,402655616)?D0(e,e=>4&e.flags?P0(t,402653316):Ep(e)&&!Gb(t,402653188)?P0(t,128):8&e.flags?P0(t,264):64&e.flags?P0(t,2112):e):e}function A0(e){return 0===e.flags}function I0(e){return 0===e.flags?e.type:e}function O0(e,t){return t?{flags:0,type:131072&e.flags?wn:e}:e}function L0(e){return Yr[e.id]||(Yr[e.id]=(e=e,(t=cs(256)).elementType=e,t));var t}function j0(e,t){t=$g(kg(wx(t)));return S0(t,e.elementType)?e:L0(ye([e.elementType,t]))}function R0(e){return e.finalArrayType||(e.finalArrayType=131072&(e=e.elementType).flags?Wt:Fd(1048576&e.flags?ye(e.types,2):e))}function M0(e){return 256&sT(e)?R0(e):e}function B0(e){return 256&sT(e)?e.elementType:M}function J0(e){var e=function e(t){var r=t.parent;return 217===r.kind||226===r.kind&&64===r.operatorToken.kind&&r.left===t||226===r.kind&&28===r.operatorToken.kind&&r.right===t?e(r):t}(e),t=e.parent,r=dT(t)&&("length"===t.name.escapedText||213===t.parent.kind&&uT(t.name)&&Yw(t.name)),e=212===t.kind&&t.expression===e&&226===t.parent.kind&&64===t.parent.operatorToken.kind&&t.parent.left===t&&!yw(t.parent)&&$b(Tx(t.argumentExpression),296);return r||e}function z0(e,t){if(8752&(e=To(e)).flags)return pe(e);if(7&e.flags){if(262144&tD(e)){var r=e.links.syntheticOrigin;if(r&&z0(r))return pe(e)}r=e.valueDeclaration;if(r){if((eF(n=r)||QE(n)||XE(n)||GE(n))&&(hN(n)||oT(n)&&b7(n)&&n.initializer&&oE(n.initializer)&&yN(n.initializer)))return pe(e);if(eF(r)&&250===r.parent.parent.kind){var n=r.parent.parent,i=q0(n.expression,void 0);if(i)return $S(n.awaitModifier?15:13,i,ie,void 0)}t&&JD(t,aT(r,eT._0_needs_an_explicit_type_annotation,_e(e)))}}var n}function q0(t,r){if(!(67108864&t.flags))switch(t.kind){case 80:return z0(rs(Bh(t)),r);case 110:var n=t;if(jC(n=t8(n,!1,!1))){var e=au(n);if(e.thisParameter)return z0(e.thisParameter)}return qC(n.parent)?(e=F(n.parent),CN(n)?pe(e):cl(e).thisType):void 0;case 108:return A1(t);case 211:n=q0(t.expression,r);if(n){var i=t.name;let e;if(UE(i)){if(!n.symbol)return;e=me(n,$w(n.symbol,i.escapedText))}else e=me(n,i.escapedText);return e&&z0(e,r)}return;case 217:return q0(t.expression,r)}}function U0(t){var r=P(t);let n=r.effectsSignature;if(void 0===n){let e;pT(t)?(i=tv(t.right),e=Zb(i)):244===t.parent.kind?e=q0(t.expression,void 0):108!==t.expression.kind&&(e=vC(t)?sv(Ug(A(t.expression),t.expression),t.expression):tv(t.expression));var i=ge(e&&D_(e)||ne,0),t=1!==i.length||i[0].typeParameters?X4(i,V0)?D2(t):void 0:i[0];n=r.effectsSignature=t&&V0(t)?t:ai}return n===ai?void 0:n}function V0(e){return!!(uu(e)||e.declaration&&131072&(pu(e.declaration)||ne).flags)}function W0(e){var t=function n(i,t){for(;;){if(i===Ar)return Ir;let e=i.flags;if(4096&e){if(!t){let e=Zh(i),t=$i[e];return void 0!==t?t:$i[e]=n(i,!0)}t=!1}if(368&e)i=i.antecedent;else if(512&e){let e=U0(i.node);if(e){let t=uu(e);if(t&&3===t.kind&&!t.type){let e=i.node.arguments[t.parameterIndex];if(e&&H0(e))return!1}if(131072&he(e).flags)return!1}i=i.antecedent}else{if(4&e)return X4(i.antecedent,e=>n(e,!1));if(8&e){let e=i.antecedent;if(void 0===e||0===e.length)return!1;i=e[0]}else{if(!(128&e)){if(1024&e){Ar=void 0;let e=i.node.target,t=e.antecedent,r=(e.antecedent=i.node.antecedents,n(i.antecedent,!1));return e.antecedent=t,r}return!(1&e)}{let e=i.node;if(e.clauseStart===e.clauseEnd&&Ob(e.switchStatement))return!1;i=i.antecedent}}}}}(e,!1);return Ar=e,Ir=t}function H0(e){e=Cw(e,!0);return 97===e.kind||226===e.kind&&(56===e.operatorToken.kind&&(H0(e.left)||H0(e.right))||57===e.operatorToken.kind&&H0(e.left)&&H0(e.right))}function K0(e){switch(e.kind){case 110:return!0;case 80:if(gN(e))break;return t1(t=Bh(e))||r1(t)&&!X0(t)||!!t.valueDeclaration&&OP(t.valueDeclaration);case 211:case 212:return K0(e.expression)&&zb(P(e).resolvedSymbol||j);case 206:case 207:var t=eN(e.parent);return GE(t)||aE(t)?!Y0(t):eF(t)&&W4(t)}return!1}function G0(u,l,_=l,s,e=(e=>null==(e=o3(u,sw))?void 0:e.flowNode)()){let t,r=!1,c=0;if(xi)return R;if(!e)return l;Si++;let d=bi;e=I0(f(e)),bi=d,e=256&sT(e)&&J0(u)?Wt:M0(e);return e===Dn||u.parent&&235===u.parent.kind&&!(131072&e.flags)&&131072&a0(e,2097152).flags?l:e;function p(){return r?t:(r=!0,t=function e(t,r,n,i){switch(t.kind){case 80:if(!gN(t))return(a=Bh(t))!==j?`${i?oj(i):"-1"}|${r.id}|${n.id}|`+sj(a):void 0;case 110:return`0|${i?oj(i):"-1"}|${r.id}|`+n.id;case 235:case 217:return e(t.expression,r,n,i);case 166:var a=e(t.left,r,n,i);return a&&a+"."+t.right.escapedText;case 211:case 212:if(void 0!==(a=qh(t)))return(o=e(t.expression,r,n,i))&&o+"."+a;if(EP(t)&&uT(t.argumentExpression)){var o=Bh(t.argumentExpression);if(t1(o)||r1(o)&&!X0(o))return(a=e(t.expression,r,n,i))&&a+".@"+sj(o)}break;case 206:case 207:case 262:case 218:case 219:case 174:return oj(t)+"#"+r.id}}(u,l,_,s))}function f(t){var e,r;if(2e3===c)return null!=Z4&&Z4.instant(Z4.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:t.id}),xi=!0,r=tT(e=u,JC),r=k5(e=iT(e),r.statements.pos),se.add(pD(e,r.start,r.length,eT.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),R;c++;let n;for(;;){var i=t.flags;if(4096&i){for(let e=d;e297===e.kind),e=n===i||n<=e&&er0(e,t)===t)}e=a.slice(n,i);return ye($4(e,e=>e?E(r,e):M))}(n,e.node):112===t.kind?n=function(t,{switchStatement:r,clauseStart:n,clauseEnd:i}){var e=ST(r.caseBlock.clauses,e=>297===e.kind),e=n===i||n<=e&&e296===e.kind?L(t,e.expression,!0):M))}(n,e.node):(te&&(Wh(t,u)?n=N(n,e.node,e=>!(163840&e.flags)):221===t.kind&&Wh(t.expression,u)&&(n=N(n,e.node,e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))),(i=h(t,n))&&(n=function(t,e,r){if(r.clauseStart$h(t,e)||ne));if(n!==ne)return n}return y(t,e,e=>D(e,r))}(n,i,e.node)))}return O0(n,A0(r))}(t);else if(12&i){if(1===t.antecedent.length){t=t.antecedent[0];continue}e=(4&i?function(e){let t=[],r=!1,n=!1,i;for(var a of e.antecedent)if(!i&&128&a.flags&&a.node.clauseStart===a.node.clauseEnd)i=a;else{var a=f(a),o=I0(a);if(o===l&&l===_)return o;JT(t,o),S0(o,_)||(r=!0),A0(a)&&(n=!0)}if(i){var e=f(i),s=I0(e);if(!(131072&s.flags||TT(t,s)||Ob(i.node.switchStatement))){if(s===l&&l===_)return s;t.push(s),S0(s,_)||(r=!0),A0(e)&&(n=!0)}}return O0(g(t,r?2:1),n)}:function(t){var e=Zh(t),r=Ui[e]||(Ui[e]=new Map),n=p();if(!n)return l;e=r.get(n);if(e)return e;for(let e=yi;e{e=Gs(e,n)||ne;return!(131072&e.flags)&&!(131072&o.flags)&&lm(o,e)})}function v(e,t,r,n,i){if((37===r||38===r)&&1048576&e.flags){var a=Gh(e);if(a&&a===qh(t)){var o=$h(e,Tx(n));if(o)return r===(i?37:38)?o:bg(Ks(o,a)||ne)?N0(e,o):e}}return y(e,t,e=>C(e,r,n,i))}function b(e,t,r){return zh(u,t)?o0(e,r?4194304:8388608):(t=h(t,e=te&&r&&Wh(t,u)?o0(e,2097152):e))?y(e,t,e=>a0(e,r?4194304:8388608)):e}function a(e,t,r){var n=me(e,t);return n?!!(16777216&n.flags||48&tD(n))||r:!!X_(e,t)||!r}function x(e,t,r){let n=CE(t);if(T0(e,e=>a(e,n,!0)))return w0(e,e=>a(e,n,r));if(r){var i=(kr=kr||ud("Record",2,!0)||j)===j?void 0:kr;if(i)return ve([e,Uu(i,[t,ne])])}return e}function S(e,t,r,n,i){return L(e,t,i=i!==(112===r.kind)!=(38!==n&&36!==n))}function k(e,t,r){switch(t.operatorToken.kind){case 64:case 76:case 77:case 78:return b(L(e,t.right,r),t.left,r);case 35:case 36:case 37:case 38:var n=t.operatorToken.kind,i=v0(t.left),a=v0(t.right);if(221===i.kind&&k7(a))return w(e,i,n,a,r);if(221===a.kind&&k7(i))return w(e,a,n,i,r);if(zh(u,i))return C(e,n,a,r);if(zh(u,a))return C(e,n,i,r);te&&(Wh(i,u)?e=T(e,n,a,r):Wh(a,u)&&(e=T(e,n,i,r)));var o=h(i,e);if(o)return v(e,o,n,a,r);o=h(a,e);if(o)return v(e,o,n,i,r);if(P(i))return F(e,n,a,r);if(P(a))return F(e,n,i,r);if(BC(a)&&!lD(i))return S(e,i,a,n,r);if(BC(i)&&!lD(a))return S(e,a,i,n,r);break;case 104:o=e,a=t,i=r,n=v0(a.left);return zh(u,n)?sm(n=Tx(n=a.right),It)?(a=(a=U0(a))&&uu(a))&&1===a.kind&&0===a.parameterIndex?I(o,a.type,i,!0):sm(n,Ot)&&(a=D0(n,A),!B(o)||a!==It&&a!==Ot)&&(i||524288&a.flags&&!wm(a))?I(o,a,i,!0):o:o:i&&te&&Wh(n,u)?o0(o,2097152):o;case 103:var s;if(UE(t.left))return l=e,s=r,_=v0((c=t).right),!zh(u,_)||(Y4.assertNode(c.left,UE),void 0===(_=fv(c.left)))?l:(c=_.parent,_=(wN(Y4.checkDefined(_.valueDeclaration,"should always have a declaration"))?pe:cl)(c),I(l,_,s,!0));var c=v0(t.right);if(Wg(e)&&lD(u)&&zh(u.expression,c)){var l=Tx(t.left);if(TE(l)&&qh(u)===CE(l))return a0(e,r?524288:65536)}if(zh(u,c)){var _=Tx(t.left);if(TE(_))return x(e,_,r)}break;case 28:return L(e,t.right,r);case 56:return r?L(L(e,t.left,!0),t.right,!0):ye([L(e,t.left,!1),L(e,t.right,!1)]);case 57:return r?ye([L(e,t.left,!0),L(e,t.right,!0)]):L(L(e,t.left,!1),t.right,!1)}return e}function T(e,t,r,n){var i=35===t||37===t;let a=35===t||36===t?98304:32768;t=Tx(r);return i!==n&&C0(t,e=>!!(e.flags&a))||i===n&&C0(t,e=>!(e.flags&(3|a)))?o0(e,2097152):e}function C(e,t,r,n){if(1&e.flags)return e;36!==t&&38!==t||(n=!n);let i=Tx(r),a=35===t||36===t;if(98304&i.flags)return te?o0(e,a?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288):e;if(n){if(!a&&(2&e.flags||T0(e,wm))){if(469893116&i.flags||wm(i))return i;if(524288&i.flags)return En}return F0(w0(e,e=>{return lm(e,i)||a&&(e=e,t=i,0!=(524&e.flags))&&0!=(28&t.flags);var t}),i)}return bg(i)?w0(e,e=>!(xg(e)&&lm(e,i))):e}function w(e,t,r,n,i){36!==r&&38!==r||(i=!i);r=v0(t.expression);return zh(u,r)?o(e,n,i):(t=h(r,e=te&&Wh(r,u)&&i===("undefined"!==n.text)?o0(e,2097152):e))?y(e,t,e=>o(e,n,i)):e}function o(e,t,r){return r?E(e,t.text):o0(e,ZL.get(t.text)||32768)}function N(e,{switchStatement:t,clauseStart:r,clauseEnd:n},i){return r!==n&&vT(b0(t).slice(r,n),i)?a0(e,2097152):e}function D(r,{switchStatement:e,clauseStart:t,clauseEnd:n}){let i=b0(e);if(!i.length)return r;var a=i.slice(t,n),e=t===n||TT(a,M);if(2&r.flags&&!e){let t;for(let e=0;elm(s,e)),s);return e?(n=w0(r,e=>{return!(xg(e)&&TT(i,32768&e.flags?ie:uf(2097152&(e=e).flags&&bT(e.types,bg)||e)))}),131072&t.flags?n:ye([t,n])):t}function E(e,t){switch(t){case"string":return n(e,ae,1);case"number":return n(e,oe,2);case"bigint":return n(e,yn,4);case"boolean":return n(e,kn,8);case"symbol":return n(e,Tn,16);case"object":return 1&e.flags?e:ye([n(e,En,32),n(e,gn,131072)]);case"function":return 1&e.flags?e:n(e,Ot,64);case"undefined":return n(e,ie,65536)}return n(e,En,128)}function n(e,t,r){return D0(e,e=>Fm(e,t,la)?n0(e,r)?e:M:am(t,e)?t:n0(e,r)?ve([e,t]):M)}function P(e){return(dT(e)&&"constructor"===rT(e.name)||EP(e)&&k7(e.argumentExpression)&&"constructor"===e.argumentExpression.text)&&zh(u,e.expression)}function F(e,t,r,n){if(n?35!==t&&37!==t:36!==t&&38!==t)return e;n=Tx(r);if(!$6(n)&&!Kc(n))return e;t=me(n,"prototype");if(!t)return e;r=pe(t);let i=B(r)?void 0:r;return i&&i!==It&&i!==Ot?B(e)?i:w0(e,e=>{var t=i;return 524288&e.flags&&1&sT(e)||524288&t.flags&&1&sT(t)?e.symbol===t.symbol:am(e,t)}):e}function A(e){var t=Ks(e,"prototype");return t&&!B(t)?t:(t=ge(e,1)).length?ye($4(t,e=>he(vu(e)))):zn}function I(e,t,r,n){var i=1048576&e.flags?`N${e.id},${t.id},`+((r?1:0)|(n?2:0)):void 0;return ka(i)??Ta(i,function(r,n,e,i){if(!e){if(r===n)return M;if(i)return w0(r,e=>!sm(e,n));let t=I(r,n,!0,!1);return w0(r,e=>!S0(e,t))}if(3&r.flags)return n;if(r===n)return n;let a=i?sm:am,o=1048576&r.flags?Gh(r):void 0,t=D0(n,t=>{var e=o&&Ks(t,o),e=D0(e&&$h(r,e)||r,i?e=>sm(e,t)?e:sm(t,e)?t:M:e=>om(e,t)?e:om(t,e)?t:am(e,t)?e:am(t,e)?t:M);return 131072&e.flags?D0(r,e=>Gb(e,465829888)&&a(t,y_(e)||ne)?ve([e,t]):M):e});return 131072&t.flags?am(n,r)?n:xe(r,n)?r:xe(n,r)?n:ve([r,n]):t}(e,t,r,n))}function O(e,t,r,n){if(t.type&&(!B(e)||t.type!==It&&t.type!==Ot)){r=r;r=1===(i=t).kind||3===i.kind?r.arguments[i.parameterIndex]:lD(i=Cw(r.expression))?Cw(i.expression):void 0;if(r){if(zh(u,r))return I(e,t.type,n,!1);i=h(r,e=te&&Wh(r,u)&&(n&&!n0(t.type,65536)||!n&&C0(t.type,rv))?o0(e,2097152):e);if(i)return y(e,i,e=>I(e,t.type,n,!1))}}var i;return e}function L(e,t,r){var n,i,a;if(xC(t)||pT(t.parent)&&(61===t.parent.operatorToken.kind||78===t.parent.operatorToken.kind)&&t.parent.left===t)return n=e,a=r,zh(u,i=t)?o0(n,a?2097152:262144):(i=h(i,n))?y(n,i,e=>a0(e,a?2097152:262144)):n;switch(t.kind){case 80:if(!zh(u,t)&&z<5){var o=Bh(t);if(t1(o)){var o=o.valueDeclaration;if(o&&eF(o)&&!o.type&&o.initializer&&K0(u))return z++,o=L(e,o.initializer,r),z--,o}}case 110:case 108:case 211:case 212:return b(e,t,r);case 213:var o=e,s=t,c=r;if(Yh(s,u)){var l=c||!yC(s)?U0(s):void 0,l=l&&uu(l);if(l&&(0===l.kind||1===l.kind))return O(o,l,s,c)}if(Wg(o)&&lD(u)&&dT(s.expression)){l=s.expression;if(zh(u.expression,v0(l.expression))&&uT(l.name)&&"hasOwnProperty"===l.name.escapedText&&1===s.arguments.length){l=s.arguments[0];if(k7(l)&&qh(u)===$3(l.text))return a0(o,c?524288:65536)}}return o;case 217:case 235:return L(e,t.expression,r);case 226:return k(e,t,r);case 224:if(54===t.operator)return L(e,t.operand,!r)}return e}}function $0(e){return tT(e.parent,e=>jC(e)&&!o8(e)||268===e.kind||307===e.kind||172===e.kind)}function X0(e){return!Q0(e,void 0)}function Q0(e,t){var r,n=tT(e.valueDeclaration,Z0);if(n)return 131072&(r=P(n)).flags||(r.flags|=131072,tT(n.parent,e=>Z0(e)&&!!(131072&P(e).flags)))||e1(n),!e.lastAssignmentPos||t&&e.lastAssignmentPos232!==e.kind&&t(e.name))}(e.name)}function Z0(e){return MC(e)||LF(e)}function e1(e){switch(e.kind){case 80:var t;return void(yw(e)&&r1(t=Bh(e))&&t.lastAssignmentPos!==Number.MAX_VALUE&&(n=tT(e,Z0),r=tT(t.valueDeclaration,Z0),t.lastAssignmentPos=n===r?function(e,t){let r=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:r=e.end}e=e.parent}return r}(e,t.valueDeclaration):Number.MAX_VALUE));case 281:var r,n=e.parent.parent;return void(e.isTypeOnly||n.isTypeOnly||n.moduleSpecifier||(r=Ao(e.propertyName||e.name,111551,!0,!0))&&r1(r)&&(r.lastAssignmentPos=Number.MAX_VALUE));case 264:case 265:case 266:return}KC(e)||h9(e,e1)}function t1(e){return 3&e.flags&&0!=(6&Xy(e))}function r1(e){var e=e.valueDeclaration&&eN(e.valueDeclaration);return!!e&&(GE(e)||eF(e)&&(PF(e.parent)||!!(1&(e=e).parent.flags)&&!(32&W3(e)||243===e.parent.parent.kind&&w5(e.parent.parent.parent))))}function n1(e,t){return te&&169===t.kind&&t.initializer&&n0(e,16777216)&&!function(e){var t=P(e);if(void 0===t.parameterInitializerContainsUndefined){if(!Us(e,8))return Lc(e.symbol),1;var r=!!n0(ux(e,0),16777216);if(!Ws())return Lc(e.symbol),1;t.parameterInitializerContainsUndefined??(t.parameterInitializerContainsUndefined=r)}return t.parameterInitializerContainsUndefined}(t)?a0(e,524288):e}function i1(e){return 2097152&e.flags?X4(e.types,i1):!!(465829888&e.flags&&1146880&v_(e).flags)}function a1(e){return 2097152&e.flags?X4(e.types,a1):!(!(465829888&e.flags)||Gb(v_(e),98304))}function o1(e,t,r){var n,i,a;return Xu(e)&&(e=e.baseType),!(r&&2&r)&&T0(e,i1)&&(n=e,211===(a=(i=t).parent).kind||166===a.kind||213===a.kind&&a.expression===i||214===a.kind&&a.expression===i||212===a.kind&&a.expression===i&&!(T0(n,a1)&&Ip(Tx(a.argumentExpression)))||(i=r,(n=(uT(n=t)||dT(n)||EP(n))&&!((kF(n.parent)||SF(n.parent))&&n.parent.tagName===n)&&iy(n,i&&32&i?8:void 0))&&!Fp(n)))?D0(e,v_):e}function s1(e){return tT(e,e=>{var t=e.parent;return void 0===t?"quit":gF(t)?t.expression===e&&UN(e):!!vF(t)&&(t.name===e||t.propertyName===e)})}function c1(t,e,r,n){if(vt&&!(33554432&t.flags))switch(e){case 1:return l1(t);case 2:return _1(t,r,n);case 3:return u1(t);case 4:return d1(t);case 5:return p1(t);case 6:return f1(t);case 7:return m1(t);case 8:return g1(t);case 0:if(uT(t)&&(h8(t)||AF(t.parent)||_F(t.parent)&&t.parent.moduleReference===t)&&T1(t)){if(QC(t.parent))if((dT(t.parent)?t.parent.expression:t.parent.left)!==t)return;return void l1(t)}if(QC(t)){let e=t;for(;QC(e);){if(O5(e))return;e=e.parent}return _1(t)}return gF(t)?u1(t):f7(t)||TF(t)?d1(t):_F(t)?T8(t)||Kk(t)?f1(t):void 0:vF(t)?m1(t):((MC(t)||YE(t))&&p1(t),ee.emitDecoratorMetadata&&m9(t)&&AN(t)&&t.modifiers&&p8(b,t,t.parent,t.parent.parent)?g1(t):void 0);default:Y4.assertNever(e,"Unhandled reference hint: "+e)}}function l1(e){var t=Bh(e);t&&t!==gt&&t!==j&&!gN(e)&&h1(t,e)}function _1(t,r,n){var i=dT(t)?t.expression:t.left;if(!fN(i)&&uT(i)){var a=Bh(i);if(a&&a!==j)if(SD(ee)||ND(ee)&&s1(t))h1(a,t);else{var i=n||lx(i);if(B(i)||i===wn)h1(a,t);else{let e=r;e||n||(n=UE(r=dT(t)?t.name:t.right)&&dv(r.escapedText,r),i=D_(0!==hw(t)||uv(t)?Zg(i):i),e=UE(r)?n&&mv(i,n)||void 0:me(i,r.escapedText)),e&&(B6(e)||8&e.flags&&306===t.parent.kind)||h1(a,t)}}}}function u1(e){var t;uT(e.expression)&&(e=rs(Ao(t=e.expression,-1,!0,!0,e)))&&h1(e,t)}function d1(t){if(!Ly(t)){var r=se&&2===ee.jsx?eT.Cannot_find_name_0:void 0,n=Ca(t),i=f7(t)?t.tagName:t;let e;(e=TF(t)&&"null"===n?e:St(i,n,111551,r,!0))&&(e.isReferenced=-1,vt)&&2097152&e.flags&&!Eo(e)&&y1(e),TF(t)&&(n=wa(iT(t)))&&St(i,n,111551,r,!0)}}function p1(e){U<2&&2&zw(e)&&(e=yN(e),b1((e=e)&&u8(e),!1))}function f1(e){TN(e,32)&&v1(e)}function m1(e){var t;e.parent.parent.moduleSpecifier||e.isTypeOnly||e.parent.parent.isTypeOnly||(t=e.propertyName||e.name,(t=St(t,t.escapedText,2998271,void 0,!0))&&(t===ft||t===mt||t.declarations&&w5(Hs(t.declarations[0]))))||(!(t=t&&(2097152&t.flags?Co(t):t))||111551&wo(t))&&(v1(e),l1(e.propertyName||e.name))}function g1(e){if(ee.emitDecoratorMetadata){var t=bT(e.modifiers,$E);if(t)switch(p4(t,16),e.kind){case 263:var r=_N(e);if(r)for(var n of r.parameters)x1(fS(n));break;case 177:case 178:r=177===e.kind?178:177,r=F7(F(e),r);x1(Nc(e)||r&&Nc(r));break;case 174:for(var i of e.parameters)x1(fS(i));x1(yN(e));break;case 172:x1(hN(e));break;case 169:x1(fS(e));var a,r=e.parent;for(a of r.parameters)x1(fS(a));x1(yN(r))}}}function h1(e,t){var r;vt&&ko(e,111551)&&!mN(t)&&(r=Co(e),1160127&wo(e,!0))&&(SD(ee)||ND(ee)&&s1(t)||!B6(rs(r)))&&y1(e)}function y1(e){Y4.assert(vt);var t=le(e);if(!t.referenced){t.referenced=!0;t=io(e);if(!t)return Y4.fail();T8(t)&&111551&wo(To(e))&&l1(VN(t.moduleReference))}}function v1(e){var e=F(e),t=Co(e);t&&(t===j||111551&wo(e,!0)&&!B6(t))&&y1(e)}function b1(e,t){var r,n;e&&(r=VN(e),n=2097152|(80===e.kind?788968:1920),n=St(r,r.escapedText,n,void 0,!0))&&2097152&n.flags&&(vt&&ns(n)&&!B6(Co(n))&&!Eo(n)?y1(n):t&&SD(ee)&&5<=bD(ee)&&!ns(n)&&!X4(n.declarations,EC)&&(t=ce(e,eT.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),e=bT(n.declarations||H4,ao))&&JD(t,aT(e,eT._0_was_imported_here,rT(r))))}function x1(e){e=dS(e);e&&OC(e)&&b1(e,!0)}function S1(t,e){if(!gN(t))if(e===gt){if(bv(t))return void ce(t,eT.arguments_cannot_be_referenced_in_property_initializers);let e=X5(t);if(e)for(U<2&&(219===e.kind?ce(t,eT.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):TN(e,1024)&&ce(t,eT.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),P(e).flags|=512;e&&LP(e);)(e=X5(e))&&(P(e).flags|=512)}else{var r=rs(e),n=$k(r,t),i=(Oa(n)&&Cp(t,n)&&n.declarations&&ja(t,n.declarations,t.escapedText),r.valueDeclaration);if(i&&32&r.flags&&qC(i)&&i.name!==t){let e=t8(t,!1,!1);for(;307!==e.kind&&e.parent!==i;)e=t8(e,!1,!1);307!==e.kind&&(P(i).flags|=262144,P(e).flags|=262144,P(t).flags|=536870912)}n=t,r=e;if(!(2<=U||0==(34&r.flags)||!r.valueDeclaration||LF(r.valueDeclaration)||299===r.valueDeclaration.parent.kind)){var a,o,t=_5(r.valueDeclaration),e=function(e,t){return!!tT(e,e=>e===t?"quit":jC(e)||e.parent&&QE(e.parent)&&!wN(e.parent)&&e.parent.initializer===e)}(n,t),s=C1(t);if(s){if(e){let e=!0;(e=QP(t)&&(a=Bw(r.valueDeclaration,261))&&a.parent===t&&(a=function(e,t){return tT(e,e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement)}(n.parent,t))&&((o=P(a)).flags|=8192,JT(o.capturedBlockScopeBindings||(o.capturedBlockScopeBindings=[]),r),a===t.initializer)?!1:e)&&(P(s).flags|=4096)}QP(t)&&(o=Bw(r.valueDeclaration,261))&&o.parent===t&&function(e,t){let r=e;for(;217===r.parent.kind;)r=r.parent;let n=!1;yw(r)?n=!0:224!==r.parent.kind&&225!==r.parent.kind||(e=r.parent,n=46===e.operator||47===e.operator);return n&&!!tT(r,e=>e===t?"quit":e===t.statement)}(n,t)&&(P(r.valueDeclaration).flags|=65536),P(r.valueDeclaration).flags|=32768}e&&(P(r.valueDeclaration).flags|=16384)}}}function k1(e,t){if(gN(e))return P1(e);var r=Bh(e);if(r===j)return R;if(S1(e,r),r===gt)return bv(e)?R:pe(r);T1(e)&&c1(e,1);var n=rs(r);let i=n.valueDeclaration;var a=function(e,t,r){if(r=pe(e,r),e=e.valueDeclaration){if(wP(e)&&!e.initializer&&!e.dotDotDotToken&&2<=e.parent.elements.length){var n=e.parent.parent,i=eN(n);if(260===i.kind&&6&V4(i)||169===i.kind){var a=P(n);if(!(4194304&a.flags)){a.flags|=4194304;n=$s(n,0),n=n&&D0(n,v_);if(a.flags&=-4194305,n&&1048576&n.flags&&(169!==i.kind||!Y0(i)))return 131072&(a=G0(e.parent,n,n,void 0,t.flowNode)).flags?M:ic(e,a,!0)}}}if(GE(e)&&!e.type&&!e.initializer&&!e.dotDotDotToken){i=e.parent;if(2<=i.parameters.length&&Zf(i)){n=my(i);if(n&&1===n.parameters.length&&pj(n)){n=E_(be(pe(n.parameters[0]),null==(a=ly(i))?void 0:a.nonFixingMapper));if(1048576&n.flags&&C0(n,Se)&&!X4(i.parameters,Y0))return Bp(G0(i,n,n,void 0,t.flowNode),ff(i.parameters.indexOf(e)-(dN(i)?1:0)))}}}}return r}(n,e,t),o=hw(e);if(o){if(!(3&n.flags||oT(e)&&512&n.flags))return ce(e,384&n.flags?eT.Cannot_assign_to_0_because_it_is_an_enum:32&n.flags?eT.Cannot_assign_to_0_because_it_is_a_class:1536&n.flags?eT.Cannot_assign_to_0_because_it_is_a_namespace:16&n.flags?eT.Cannot_assign_to_0_because_it_is_a_function:2097152&n.flags?eT.Cannot_assign_to_0_because_it_is_an_import:eT.Cannot_assign_to_0_because_it_is_not_a_variable,_e(r)),R;if(zb(n))return 3&n.flags?ce(e,eT.Cannot_assign_to_0_because_it_is_a_constant,_e(r)):ce(e,eT.Cannot_assign_to_0_because_it_is_a_read_only_property,_e(r)),R}var s=2097152&n.flags;if(3&n.flags){if(1===o)return vw(e)?kg(a):a}else{if(!s)return a;i=io(r)}if(!i)return a;var a=o1(a,e,t),t=169===eN(i).kind,c=$0(i);let l=$0(e);for(var _=l!==c,u=e.parent&&e.parent.parent&&IF(e.parent)&&f0(e.parent.parent),d=134217728&r.flags,p=a===on||a===Wt,f=p&&235===e.parent.kind;l!==c&&(218===l.kind||219===l.kind||K5(l))&&(t1(n)&&a!==Wt||r1(n)&&Q0(n,e));)l=$0(l);s=t||s||_||u||d||function(e,t){if(wP(t))return(e=tT(e,wP))&&eN(e)===eN(t)}(e,i)||a!==on&&a!==Wt&&(!te||0!=(16387&a.flags)||mN(e)||Jh(e)||281===e.parent.kind)||235===e.parent.kind||260===i.kind&&i.exclamationToken||33554432&i.flags,_=f?ie:s?t?n1(a,i):a:p?ie:Mg(a),u=f?Bg(G0(e,a,_,l)):G0(e,a,_,l);if(J0(e)||a!==on&&a!==Wt){if(!s&&!Nm(a)&&Nm(u))return ce(e,eT.Variable_0_is_used_before_being_assigned,_e(r)),a}else if(u===on||u===Wt)return Te&&(ce(tC(i),eT.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,_e(r),ue(u)),ce(e,eT.Variable_0_implicitly_has_an_1_type,_e(r),ue(u))),jS(u);return o?kg(u):u}function T1(e){var t=e.parent;if(t){if(dT(t)&&t.expression===e)return;if(vF(t)&&t.isTypeOnly)return;t=null==(e=t.parent)?void 0:e.parent;if(t&&hF(t)&&t.isTypeOnly)return}return 1}function C1(e){return tT(e,e=>!e||tN(e)?"quit":n7(e,!1))}function w1(e,t){P(e).flags|=2,172===t.kind||176===t.kind?P(t.parent).flags|=4:P(t).flags|=4}function N1(e){return F5(e)?e:jC(e)?void 0:h9(e,N1)}function D1(e){return Qc(cl(F(e)))===hn}function E1(e,t,r){t=t.parent;jw(t)&&!D1(t)&&sw(e)&&e.flowNode&&!function t(e,r){for(;;){var n,i,a,o=e.flags;if(4096&o){if(!r)return i=Zh(e),void 0!==(n=Xi[i])?n:Xi[i]=t(e,!0);r=!1}if(496&o)e=e.antecedent;else if(512&o){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&o)return vT(e.antecedent,e=>t(e,!1));if(!(8&o))return 1024&o?(i=(n=e.node.target).antecedent,n.antecedent=e.node.antecedents,a=t(e.antecedent,!1),n.antecedent=i,a):!!(1&o);e=e.antecedent[0]}}}(e.flowNode,!1)&&ce(e,r)}function P1(e){var t=mN(e);let r=t8(e,!0,!0),n=!1,i=!1;for(176===r.kind&&E1(e,r,eT.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(219===r.kind&&(r=t8(r,!1,!i),n=!0),167!==r.kind)break;r=t8(r,!n,!1),i=!0}if(a=e,QE(s=r)&&wN(s)&&b&&s.initializer&&q3(s.initializer,a.pos)&&AN(s.parent)&&ce(a,eT.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class),i)ce(e,eT.this_cannot_be_referenced_in_a_computed_property_name);else switch(r.kind){case 267:ce(e,eT.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:ce(e,eT.this_cannot_be_referenced_in_current_location)}!t&&n&&U<2&&w1(e,r);var a,o,s=F1(e,!0,r);return m&&(s===(a=pe(mt))&&n?ce(e,eT.The_containing_arrow_function_captures_the_global_value_of_this):s||(t=ce(e,eT.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),LF(r))||(o=F1(r))&&o!==a&&JD(t,aT(r,eT.An_outer_value_of_this_is_shadowed_by_this_container))),s||re}function F1(t,e=!0,r=t8(t,!1,!1)){var n,i=oT(t);if(jC(r)&&(!B1(t)||dN(r))){let e=_u(au(r))||i&&function(e){var t=lC(e);if(t&&t.typeExpression)return V(t.typeExpression);t=ou(e);if(t)return _u(t)}(r);if(e||(n=218===(n=r).kind&&pT(n.parent)&&3===V8(n.parent)?n.parent.left.expression.expression:174===n.kind&&210===n.parent.kind&&pT(n.parent.parent)&&6===V8(n.parent.parent)?n.parent.parent.left.expression:218===n.kind&&303===n.parent.kind&&210===n.parent.parent.kind&&pT(n.parent.parent.parent)&&6===V8(n.parent.parent.parent)?n.parent.parent.parent.left.expression:218===n.kind&&FF(n.parent)&&uT(n.parent.name)&&("value"===n.parent.name.escapedText||"get"===n.parent.name.escapedText||"set"===n.parent.name.escapedText)&&DP(n.parent.parent)&&PP(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&9===V8(n.parent.parent.parent)?n.parent.parent.parent.arguments[0].expression:ZE(n)&&uT(n.name)&&("value"===n.name.escapedText||"get"===n.name.escapedText||"set"===n.name.escapedText)&&DP(n.parent)&&PP(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&9===V8(n.parent.parent)?n.parent.parent.arguments[0].expression:void 0,i&&n?(i=A(n).symbol)&&i.members&&16&i.flags&&(e=cl(i).thisType):E2(r)&&(e=cl(S(r.symbol)).thisType),e=e||j1(r)),e)return G0(t,e)}return qC(r.parent)?(n=F(r.parent),G0(t,CN(r)?pe(n):cl(n).thisType)):LF(r)?r.commonJsModuleIndicator?(i=F(r))&&pe(i):r.externalModuleIndicator?ie:e?pe(mt):void 0:void 0}function A1(e){let t=213===e.parent.kind&&e.parent.expression===e;var r,n,i=a8(e,!0);let a=i,o=!1,s=!1;if(!t){for(;a&&219===a.kind;)TN(a,1024)&&(s=!0),a=a8(a,!0),o=U<2;a&&TN(a,1024)&&(s=!0)}let c=0;return a&&function(e){{if(t)return 176===e.kind;if(qC(e.parent)||210===e.parent.kind)return CN(e)?174===e.kind||173===e.kind||177===e.kind||178===e.kind||172===e.kind||175===e.kind:174===e.kind||173===e.kind||177===e.kind||178===e.kind||172===e.kind||171===e.kind||176===e.kind}return}(a)?(t||176!==i.kind||E1(e,a,eT.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),CN(a)||t?(c=32,!t&&2<=U&&U<=8&&(QE(a)||eP(a))&&u5(e.parent,e=>{LF(e)&&!N5(e)||(P(e).flags|=2097152)})):c=16,P(e).flags|=c,174===a.kind&&s&&(s8(e.parent)&&yw(e.parent)?P(a).flags|=256:P(a).flags|=128),o&&w1(e.parent,a),210===a.parent.kind?U<2?(ce(e,eT.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),R):re:jw(i=a.parent)?D1(i)?t?R:hn:(r=(i=cl(F(i)))&&Zc(i)[0])?176===a.kind&&(n=a,tT(e,e=>MC(e)?"quit":169===e.kind&&e.parent===n))?(ce(e,eT.super_cannot_be_referenced_in_constructor_arguments),R):32===c?Qc(i):wl(r,i.thisType):R:(ce(e,eT.super_can_only_be_referenced_in_a_derived_class),R)):((r=tT(e,e=>e===a?"quit":167===e.kind))&&167===r.kind?ce(e,eT.super_cannot_be_referenced_in_a_computed_property_name):t?ce(e,eT.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):a&&a.parent&&(qC(a.parent)||210===a.parent.kind)?ce(e,eT.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):ce(e,eT.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),R)}function I1(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 O1(e){return 4&sT(e)&&e.target===Ut?Ju(e)[0]:void 0}function L1(e,t){let r=e,n=t;for(;n;){var i=D0(n,e=>2097152&e.flags?G4(e.types,O1):O1(e));if(i)return i;if(303!==r.parent.kind)break;r=r.parent.parent,n=ty(r,void 0)}}function j1(e){if(219!==e.kind){if(Zf(e)){var t=my(e);if(t){t=t.thisParameter;if(t)return pe(t)}}t=oT(e);if(m||t){var r=I1(e);if(r)return(n=L1(r,i=ty(r,void 0)))?be(n,uh(ly(r))):Zg(i?Bg(i):lx(r));var n=Sw(e.parent);if(zN(n)){var i=n.left;if(lD(i)){r=i["expression"];if(t&&uT(r)){e=iT(n);if(e.commonJsModuleIndicator&&Bh(r)===e.symbol)return}return Zg(lx(r))}}}}}function R1(e){var t,r,n,i,a=e.parent;if(Zf(a))return(i=o8(a))&&i.arguments?(r=l2(i),n=a.parameters.indexOf(e),e.dotDotDotToken?t2(r,n,r.length,re,void 0,0):(t=(i=P(i)).resolvedSignature,i.resolvedSignature=ii,r=n!!(58998787&e.flags)||Fx(e,t,void 0)):2&t?w0(r,e=>!!(58998787&e.flags)||!!Qx(e)):r}r=o8(e);return r?iy(r,t):void 0}function q1(e,t){t=l2(e).indexOf(t);return-1===t?void 0:U1(e,t)}function U1(e,t){var r;return A5(e)?0===t?ae:1===t?gd(!1):re:(r=P(e).resolvedSignature===oi?oi:D2(e),f7(e)&&0===t?_y(r,e):(e=r.parameters.length-1,pj(r)&&e<=t?Bp(pe(r.parameters[e]),ff(t-e),256):rb(r,t)))}function V1(e,t){var r=e.parent,{left:n,operatorToken:i,right:a}=r;switch(i.kind){case 64:case 77:case 76:case 78:if(e===a){var o=r;var s=V8(o);switch(s){case 0:case 4:var c=function(e){if(l7(e)&&e.symbol)return e.symbol;if(uT(e))return Bh(e);if(dT(e))return t=Tx(e.expression),UE(e.name)?function(e,t){t=dv(t.escapedText,t);return t&&mv(e,t)}(t,e.name):me(t,e.name.escapedText);{var t;if(EP(e))return TE(t=lx(e.argumentExpression))?me(Tx(e.expression),CE(t)):void 0}}(o.left),l=c&&c.valueDeclaration;return l&&(QE(l)||XE(l))?(_=hN(l))&&be(V(_),le(c).mapper)||(QE(l)?l.initializer&&Tx(o.left):void 0):0===s?Tx(o.left):H1(o);case 5:if(W1(o,s))return H1(o);if(l7(o.left)&&o.left.symbol){var _=o.left.symbol.valueDeclaration;if(!_)return;c=s3(o.left,lD),l=hN(_);if(l)return V(l);if(uT(c.expression)){var u=c.expression,u=St(u,u.escapedText,111551,void 0,!0);if(u){u=u.valueDeclaration&&hN(u.valueDeclaration);if(u){var d=G8(c);if(void 0!==d)return K1(V(u),d)}return}}return oT(_)||_===o.left?void 0:Tx(o.left)}return Tx(o.left);case 1:case 6:case 3:case 2:let e;var p=(e=(e=2!==s?!l7(o.left)||null==(u=o.left.symbol)?void 0:u.valueDeclaration:e)||(null==(d=o.symbol)?void 0:d.valueDeclaration))&&hN(e);return p?V(p):void 0;case 7:case 8:case 9:return Y4.fail("Does not apply");default:return Y4.assertNever(s)}return}else return void 0;case 57:case 61:var f=iy(r,t);return e===a&&(f&&f.pattern||!f&&!M8(r))?Tx(n):f;case 56:case 28:return e===a?iy(r,t):void 0;default:return}}function W1(e,t=V8(e)){return 4===t||!(!oT(e)||5!==t||!uT(e.left.expression))&&(t=e.left.expression.escapedText,l8(null==(t=St(e.left,t,111551,void 0,!0,!0))?void 0:t.valueDeclaration))}function H1(e){if(!e.symbol)return Tx(e.left);if(e.symbol.valueDeclaration){var t=hN(e.symbol.valueDeclaration);if(t){t=V(t);if(t)return t}}var t=s3(e.left,lD);return H5(t8(t.expression,!1,!1))&&(e=P1(t.expression),void 0!==(t=G8(t)))&&K1(e,t)||void 0}function K1(e,i,a){return D0(e,e=>{if(i_(e)&&!e.declaration.nameType){var t=$l(e),t=y_(t)||t,r=a||pf(X3(i));if(xe(r,t))return Mp(e,r)}else if(3670016&e.flags){t=me(e,i);if(t)return 262144&tD(r=t)&&!r.links.type&&0<=Vs(r,0)?void 0:Vg(pe(t),!!(16777216&t.flags));if(Se(e)&&sE(i)&&0<=+i){var n=Ig(e,e.target.fixedLength,0,!1,!0);if(n)return n}return null==(n=q_(V_(e),a||pf(X3(i))))?void 0:n.type}},!0)}function G1(e,t){if(Y4.assert(H5(e)),!(67108864&e.flags))return $1(e,t)}function $1(e,t){var r=e.parent,n=FF(e)&&M1(e,t);if(n)return n;n=ty(r,t);if(n){if(xl(e))return K1(n,(r=F(e)).escapedName,le(r).nameType);if(Uw(e)){t=tC(e);if(t&&HE(t)){r=A(t.expression),t=TE(r)&&K1(n,CE(r));if(t)return t}}if(e.name){let t=dp(e.name);return D0(n,e=>{return null==(e=q_(V_(e),t))?void 0:e.type},!0)}}}function X1(e,n,i,a,o){return e&&D0(e,e=>{var t,r;return Se(e)?(void 0===a||nug(e)?Bp(e,ff(t)):e,!0))}}}}function Y1(e,t){var r;return CF(e)?(r=ty(e.parent,t))&&!B(r)?K1(r,bE(e.name)):void 0:iy(e.parent,t)}function Z1(e){switch(e.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return Z1(e.expression);case 294:return!e.expression||Z1(e.expression)}return!1}function ey(r,n){var e=`D${oj(r)},`+n.id;return ka(e)??Ta(e,function(e,t){let r=Gh(e);return(t=(t=r&&bT(t.properties,e=>e.symbol&&303===e.kind&&e.symbol.escapedName===r&&Z1(e.initializer)))&&wx(t.initializer))&&$h(e,t)}(n,r)??Bm(n,LT($4(NT(r.properties,e=>!!e.symbol&&(303===e.kind?Z1(e.initializer)&&Hh(n,e.symbol.escapedName):304===e.kind&&Hh(n,e.symbol.escapedName))),e=>[()=>wx(303===e.kind?e.initializer:e.name),e.symbol.escapedName]),$4(NT(fe(n),e=>{var t;return!!(16777216&e.flags)&&!(null==(t=null==r?void 0:r.symbol)||!t.members)&&!r.symbol.members.has(e.escapedName)&&Hh(n,e.escapedName)}),e=>[()=>ie,e.escapedName])),xe))}function ty(e,t){var n=ry((H5(e)?G1:iy)(e,t),e,t);if(n&&!(t&&2&t&&8650752&n.flags)){t=D0(n,e=>32&sT(e)?e:D_(e),!0);if(1048576&t.flags&&DP(e))return ey(e,t);else if(1048576&t.flags&&wF(e)){var i=e;var a=t;n=`D${oj(i)},`+a.id,e=ka(n);if(e)return e;let r=My(jy(i));return Ta(n,Bm(a,LT($4(NT(i.properties,e=>!!e.symbol&&291===e.kind&&Hh(a,e.symbol.escapedName)&&(!e.initializer||Z1(e.initializer))),e=>[e.initializer?()=>wx(e.initializer):()=>xn,e.symbol.escapedName]),$4(NT(fe(a),e=>{var t;return!(!(16777216&e.flags&&null!=(t=null==i?void 0:i.symbol)&&t.members)||(t=i.parent.parent,e.escapedName===r&&xF(t)&&nN(t.children).length)||i.symbol.members.has(e.escapedName))&&Hh(a,e.escapedName)}),e=>[()=>ie,e.escapedName])),xe));return}else return t}}function ry(e,t,r){if(e&&Gb(e,465829888)){t=ly(t);if(t&&1&r&&X4(t.inferences,xx))return ny(e,t.nonFixingMapper);if(null!=t&&t.returnMapper)return 1048576&(r=ny(e,t.returnMapper)).flags&&Gd(r.types,bn)&&Gd(r.types,Sn)?w0(r,e=>e!==bn&&e!==Sn):r}return e}function ny(e,t){return 465829888&e.flags?be(e,t):1048576&e.flags?ye($4(e.types,e=>ny(e,t)),0):2097152&e.flags?ve($4(e.types,e=>ny(e,t))):e}function iy(e,t){if(!(67108864&e.flags)){var r=cy(e,!t);if(0<=r)return Ti[r];var n=e["parent"];switch(n.kind){case 260:case 169:case 172:case 171:case 208:var i=e,a=t,o=i.parent;if(b7(o)&&i===o.initializer){i=M1(o,a);if(i)return i;if(!(8&a)&&GC(o.name)&&0!!hk(1,e,t)));a=hk(1,e,0!=(2&i));if(!a)return;e=a}return 2&i?(a=D0(e,oS))&&ye([a,Db(a)]):e}}return;case 229:var o=n,s=t,c=X5(o);if(c){var l=zw(c);let e=z1(c,s);if(e){let t=0!=(2&l);return!o.asteriskToken&&1048576&e.flags&&(e=w0(e,e=>!!hk(1,e,t))),o.asteriskToken?(c=Fb(l=(null==(c=yk(e,t))?void 0:c.yieldType)??wn,o=iy(o,s)??wn,s=(null==c?void 0:c.nextType)??ne,!1),t?ye([c,Fb(l,o,s,!0)]):c):hk(0,e,t)}}return;case 223:l=n,s=t;return(l=iy(l,s))?(s=oS(l))&&ye([s,Db(s)]):void 0;case 213:case 214:return q1(n,e);case 170:return(c=wb(c=n))?Su(c):void 0;case 216:case 234:return kC(n.type)?iy(n,t):V(n.type);case 226:return V1(e,t);case 303:case 304:return $1(n,t);case 305:return iy(n.parent,t);case 209:var _=n,u=ty(_,t),d=G7(_.elements,e),p=(p=P(_)).spreadIndices??(p.spreadIndices=function(t){let r,n;for(let e=0;e{{if(r===n||!r)return r;if(Ll(r.typeParameters,n.typeParameters)){var i=r;let e=i.typeParameters||n.typeParameters,t;i.typeParameters&&n.typeParameters&&(t=Cf(n.typeParameters,i.typeParameters));var a=i.declaration,o=function(n,i,a){var o=ob(n),s=ob(i),c=s<=o?n:i,l=c===n?i:n,_=c===n?o:s,u=cb(n)||cb(i),d=u&&!cb(c),p=new Array(_+(d?1:0));for(let r=0;r<_;r++){let e=nb(c,r),t=(c===i&&(e=be(e,a)),nb(l,r)||ne);l===i&&(t=be(t,a));var f=ye([e,t]),m=u&&!d&&r===_-1,g=r>=sb(c)&&r>=sb(l),h=r>=o?void 0:Z2(n,r),y=r>=s?void 0:Z2(i,r),g=O(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg"+r);g.links.type=m?Fd(f):f,p[r]=g}{var e;d&&((e=O(1,"args")).links.type=Fd(rb(l,_)),l===i&&(e.links.type=be(e.links.type,a)),p[_]=e)}return p}(i,n,t),s=function(e,t,r){if(!e||!t)return e||t;t=ye([pe(e),be(pe(t),r)]);return Gg(e,t)}(i.thisParameter,n.thisParameter,t),c=Math.max(i.minArgumentCount,n.minArgumentCount),a;return(a=Dl(a,e,s,o,void 0,void 0,c,167&(i.flags|n.flags))).compositeKind=2097152,a.compositeSignatures=LT(2097152===i.compositeKind&&i.compositeSignatures||[i],[n]),t&&(a.mapper=2097152===i.compositeKind&&i.mapper&&i.compositeSignatures?Af(i.mapper,t):t),a}}}):void 0}function py(e,i){e=NT(ge(e,0),t=>{{var r=i;let e=0;for(;e{{var e=t;let o=iT(e);if(!O4(o)&&!e.isUnterminated){let a;(s=s??M3(99,!0)).setScriptTarget(o.languageVersion),s.setLanguageVariant(o.languageVariant),s.setOnError((e,t,r)=>{var n,i=s.getTokenEnd();3===e.category&&a&&i===a.start&&t===a.length?(n=dD(o.fileName,o.text,i,t,e,r),JD(a,n)):a&&i===a.start||(a=pD(o,i,t,e,r),se.add(a))}),s.setText(o.text,e.pos,e.end-e.pos);try{return s.scan(),Y4.assert(14===s.reScanSlashToken(!0),"Expected scanner to rescan RegularExpressionLiteral"),!!a}finally{s.setText(""),s.setOnError(void 0)}}return!1}})),qt}function hy(e){return 208===e.kind&&!!e.initializer||226===e.kind&&64===e.operatorToken.kind}function yy(t,r,n){var i=t.elements,a=i.length,o=[];let s=[];ay(t);var e,c=yw(t),l=fx(t),_=ty(t,void 0),u=BP(e=Sw((e=t).parent))&&e7(e.parent)||!!_&&T0(_,e=>gg(e)||i_(e)&&!e.nameType&&!!Jf(e.target||e));let d=!1;for(let e=0;e8&s[t]?zp(e,oe)||re:e),2):te?Nn:dn,l))}function vy(e){if(!(4&sT(e)))return e;let t=e.literalType;return t||((t=e.literalType=Mu(e)).objectFlags|=147456),t}function by(e){switch(e.kind){case 167:return $b(xy(e),296);case 80:return sE(e.escapedText);case 9:case 11:return sE(e.text);default:return!1}}function xy(e){var t,r=P(e.expression);if(!r.resolvedType){if((uP(e.parent.parent)||qC(e.parent.parent)||iF(e.parent.parent))&&pT(e.expression)&&103===e.expression.operatorToken.kind&&177!==e.parent.kind&&178!==e.parent.kind)return r.resolvedType=R;r.resolvedType=A(e.expression),QE(e.parent)&&!wN(e.parent)&&JP(e.parent.parent)&&(t=C1(_5(e.parent.parent)))&&(P(t).flags|=4096,P(e).flags|=32768,P(e.parent.parent).flags|=32768),(98304&r.resolvedType.flags||!$b(r.resolvedType,402665900)&&!xe(r.resolvedType,Fn))&&ce(e,eT.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return r.resolvedType}function Sy(e){var t=null==(t=e.declarations)?void 0:t[0];return Xw(e)||t&&eC(t)&&HE(t.name)&&$b(xy(t.name),4096)}function ky(e,t,r,n){var i,a=[];for(let e=t;e260===e.kind||226===e.kind||169===e.kind);if(305!==tT(r,e=>e===t||305===e.kind).kind)for(var D of fe(_))o.get(D.escapedName)||me(c,D.escapedName)||(16777216&D.flags||ce(D.valueDeclaration||(null==(e=o3(D,O7))?void 0:e.links.bindingElement),eT.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),o.set(D.escapedName,D),s.push(D))}return de(c)?R:c!==zn?(0e===zn?E():e)):E();function E(){var e=[],e=(v&&e.push(ky(r,S,s,ae)),b&&e.push(ky(r,S,s,oe)),x&&e.push(ky(r,S,s,Tn)),fs(r.symbol,o,H4,H4,e));return e.objectFlags|=131200|h,g&&(e.objectFlags|=4096),y&&(e.objectFlags|=512),i&&(e.pattern=r),e}}function wy(e){e=Lg(D0(e,v_));return!!(126615553&e.flags||3145728&e.flags&&vT(e.types,wy))}function Ny(e){return e.includes("-")}function Dy(e){return uT(e)&&sN(e.escapedText)||DF(e)}function Ey(e,t){return e.initializer?mx(e.initializer,t):xn}function Py(e,t){var r,n=[];for(r of e.children)12===r.kind?r.containsOnlyTriviaWhiteSpaces||n.push(ae):294===r.kind&&!r.expression||n.push(mx(r,t));return n}function Fy(e,t,r){for(var n of fe(e))16777216&n.flags||(n=t.get(n.escapedName))&&JD(ce(n.valueDeclaration,eT._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,X3(n.escapedName)),aT(r,eT.This_spread_always_overwrites_this_property))}function Ay(s,c){{var[s,l=0]=[s.parent,c];let t=s.attributes;var _=iy(t,0),u=te?I7():void 0;let r=I7(),e=qn,n=!1,i,a=!1,o=2048;var d,p=My(jy(s)),f,c;for(d of t.properties){var m,g,h=d.symbol;CF(d)?(m=Ey(d,l),o|=458752&sT(m),(g=O(4|h.flags,h.escapedName)).declarations=h.declarations,g.parent=h.parent,h.valueDeclaration&&(g.valueDeclaration=h.valueDeclaration),g.links.type=m,g.links.target=h,r.set(g.escapedName,g),null!=u&&u.set(g.escapedName,g),bE(d.name)===p&&(a=!0),_&&(g=me(_,h.escapedName))&&g.declarations&&Oa(g)&&uT(d.name)&&ja(d.name,g.declarations,d.name.escapedText),_&&2&l&&!(4&l)&&Qf(d)&&(h=ly(t),Y4.assert(h),ch(h,d.initializer.expression,m))):(Y4.assert(293===d.kind),0=r.length)return 0===K4(i=iu(r,i,r.length,t))?n:Uu(e,i)}if(K4(n.typeParameters)>=r.length)return Ru(n,iu(r,n.typeParameters,r.length,t))}function Hy(e){var t,r,n=f7(e);if(n&&!function(e){(function(e){if(dT(e)&&DF(e.expression))return L(e.expression,eT.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(DF(e)&&ID(ee)&&!sN(e.namespace.escapedText))L(e,eT.React_components_cannot_include_JSX_namespace_names)})(e.tagName),b4(e,e.typeArguments);var t=new Map;for(var r of e.attributes.properties)if(293!==r.kind){var{name:r,initializer:n}=r,i=bE(r);if(t.get(i))return L(r,eT.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),n&&294===n.kind&&!n.expression)return L(n,eT.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),i=e,0===(ee.jsx||0)&&ce(i,eT.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===qy(i)&&Te&&ce(i,eT.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),c1(e,4),n){var i=e,n=D2(i),e=(A2(n,e),Vy(i));if(void 0!==e){let t=i.tagName;Om(Dy(t)?pf(kE(t)):A(t),e,_a,t,eT.Its_type_0_is_not_a_valid_JSX_element_type,()=>{var e=K7(t);return gD(void 0,eT._0_cannot_be_used_as_a_JSX_component,e)})}else e=n2(i),n=he(n),t=i,1===e?(r=Uy(t))&&Om(n,r,_a,t.tagName,eT.Its_return_type_0_is_not_a_valid_JSX_element,a):0===e?(r=zy(t))&&Om(n,r,_a,t.tagName,eT.Its_instance_type_0_is_not_a_valid_JSX_element,a):(e=Uy(t),r=zy(t),e&&r&&Om(n,ye([e,r]),_a,t.tagName,eT.Its_element_type_0_is_not_a_valid_JSX_element,a))}function a(){var e=K7(t.tagName);return gD(void 0,eT._0_cannot_be_used_as_a_JSX_component,e)}}function Ky(e,t,r){if(524288&e.flags&&(c_(e,t)||X_(e,t)||vl(t)&&H_(e,ae)||r&&Ny(t)))return!0;if(33554432&e.flags)return Ky(e.baseType,t,r);if(3145728&e.flags&&Gy(e))for(var n of e.types)if(Ky(n,t,r))return!0;return!1}function Gy(e){return!!(524288&e.flags&&!(512&sT(e))||67108864&e.flags||33554432&e.flags&&Gy(e.baseType)||1048576&e.flags&&X4(e.types,Gy)||2097152&e.flags&&vT(e.types,Gy))}function $y(e,t){var r=e;if(r.expression&&o9(r.expression))L(r.expression,eT.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array);return e.expression?(r=A(e.expression,t),e.dotDotDotToken&&r!==re&&!og(r)&&ce(e,eT.JSX_spread_child_must_be_an_array_type),r):R}function Xy(e){return e.valueDeclaration?V4(e.valueDeclaration):0}function Qy(e){return 8192&e.flags||4&tD(e)||(oT(e.valueDeclaration)?(e=e.valueDeclaration.parent)&&pT(e)&&3===V8(e):void 0)}function Yy(e,t,r,n,i,a=!0){Zy(e,t,r,n,i,a?166===e.kind?e.right:205===e.kind?e:208===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function Zy(e,t,r,n,i,a){var o=rD(i,r);if(t){if(U<2&&ev(i))return a&&ce(a,eT.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&o)return a&&ce(a,eT.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,_e(i),ue(Qm(i))),!1;if(!(256&o)&&null!=(s=i.declarations)&&s.some(WC))return a&&ce(a,eT.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,_e(i)),!1}if(64&o&&ev(i)&&(c8(e)||_8(e)||TP(e.parent)&&l8(e.parent.parent))){var s=oD(Xo(i));if(s&&tT(e,e=>!!(tP(e)&&H7(e.body)||QE(e))||!(!qC(e)&&!MC(e))&&"quit"))return a&&ce(a,eT.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,_e(i),Kw(s.name)),!1}if(!(6&o))return!0;if(2&o)return s=oD(Xo(i)),!!g6(e,s)||(a&&ce(a,eT.Property_0_is_private_and_only_accessible_within_class_1,_e(i),ue(Qm(i))),!1);if(t)return!0;let c=m6(e,e=>{return Zm(cl(F(e)),i,r)});return!c&&(c=(c=function(e){let t=function(e){e=t8(e,!1,!1);return e&&jC(e)?dN(e):void 0}(e),r=(null==t?void 0:t.type)&&V(t.type);r&&262144&r.flags&&(r=u_(r));if(r&&7&sT(r))return Jc(r)}(e))&&Zm(c,i,r),256&o||!c)?(a&&ce(a,eT.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,_e(i),ue(Qm(i)||n)),!1):!!(256&o)||!(!(n=262144&n.flags?(n.isThisType?u_:y_)(n):n)||!zc(n,c))||(a&&ce(a,eT.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,_e(i),ue(c),ue(n)),!1)}function ev(e){return Xm(e,e=>!(8192&e.flags))}function tv(e){return sv(A(e),e)}function rv(e){return n0(e,50331648)}function nv(e){return rv(e)?Bg(e):e}function iv(e,t){var r=UN(e)?g5(e):void 0;106===e.kind?ce(e,eT.The_value_0_cannot_be_used_here,"null"):void 0!==r&&r.length<100?uT(e)&&"undefined"===r?ce(e,eT.The_value_0_cannot_be_used_here,"undefined"):ce(e,16777216&t?33554432&t?eT._0_is_possibly_null_or_undefined:eT._0_is_possibly_undefined:eT._0_is_possibly_null,r):ce(e,16777216&t?33554432&t?eT.Object_is_possibly_null_or_undefined:eT.Object_is_possibly_undefined:eT.Object_is_possibly_null)}function av(e,t){ce(e,16777216&t?33554432&t?eT.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:eT.Cannot_invoke_an_object_which_is_possibly_undefined:eT.Cannot_invoke_an_object_which_is_possibly_null)}function ov(e,t,r){if(te&&2&e.flags){if(UN(t)){var n=g5(t);if(n.length<100)return ce(t,eT._0_is_of_type_unknown,n),R}return ce(t,eT.Object_is_of_type_unknown),R}n=r0(e,50331648);return 50331648&n?(r(t,n),229376&(r=Bg(e)).flags?R:r):e}function sv(e,t){return ov(e,t,iv)}function cv(e,t){e=sv(e,t);if(16384&e.flags){if(UN(t)){e=g5(t);if(uT(t)&&"undefined"===e)return void ce(t,eT.The_value_0_cannot_be_used_here,e);if(e.length<100)return void ce(t,eT._0_is_possibly_undefined,e)}ce(t,eT.Object_is_possibly_undefined)}}function lv(e,t,r){return 64&e.flags?(i=t,a=A((n=e).expression),o=Ug(a,n.expression),qg(hv(n,n.expression,sv(o,n.expression),n.name,i),n,o!==a)):hv(e,e.expression,tv(e.expression),e.name,t,r);var n,i,a,o}function _v(e,t){var r=v8(e)&&fN(e.left)?sv(P1(e.left),e.left):tv(e.left);return hv(e,e.left,r,e.right,t)}function uv(e){for(;217===e.parent.kind;)e=e.parent;return e7(e.parent)&&e.parent.expression===e}function dv(t,r){for(let e=e8(r);e;e=Q5(e)){var n=e["symbol"],i=$w(n,t),n=n.members&&n.members.get(i)||n.exports&&n.exports.get(i);if(n)return n}}function pv(e){!function(e){if(!Q5(e))return L(e,eT.Private_identifiers_are_not_allowed_outside_class_bodies);if(!YP(e.parent)){if(!h8(e))return L(e,eT.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);var t=pT(e.parent)&&103===e.parent.operatorToken.kind;if(!fv(e)&&!t)L(e,eT.Cannot_find_name_0,rT(e))}}(e);e=fv(e);return e&&Pv(e,void 0,!1),re}function fv(e){var t;if(h8(e))return void 0===(t=P(e)).resolvedSymbol&&(t.resolvedSymbol=dv(e.escapedText,e)),t.resolvedSymbol}function mv(e,t){return me(e,t.escapedName)}function gv(e,t){return(lc(t)||c8(e)&&_c(t))&&t8(e,!0,!1)===uc(t)}function hv(e,t,r,n,i,a){var o=P(t).resolvedSymbol,s=hw(e),c=D_(0!==s||uv(e)?Zg(r):r),l=B(c)||c===wn;let _;if(UE(n)){(U<9||U<99||!W)&&(0!==s&&p4(e,1048576),1!==s)&&p4(e,524288);var u=dv(n.escapedText,n);if(s&&u&&u.valueDeclaration&&ZE(u.valueDeclaration)&&L(n,eT.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,rT(n)),l){if(u)return de(c)?R:c;if(void 0===e8(n))return L(n,eT.Private_identifiers_are_not_allowed_outside_class_bodies),re}if(void 0===(_=u&&mv(r,u))){if(function(e,r,n){let i;(a=fe(e))&&G4(a,e=>{var t=e.valueDeclaration;if(t&&eC(t)&&UE(t.name)&&t.name.escapedText===r.escapedText)return i=e,!0});var a=Ya(r);if(i){var o=Y4.checkDefined(i.valueDeclaration);let t=Y4.checkDefined(Q5(o));if(null!=n&&n.valueDeclaration){var n=n.valueDeclaration,s=Q5(n);if(Y4.assert(!!s),tT(s,e=>t===e))return JD(ce(r,eT.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,a,ue(e)),aT(n,eT.The_shadowing_declaration_of_0_is_defined_here,a),aT(o,eT.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,a)),1}return ce(r,eT.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,a,Ya(t.name||KL)),1}}(r,n,u))return R;u=e8(n);u&&U7(iT(u),ee.checkJs)&&L(n,eT.Private_field_0_must_be_declared_in_an_enclosing_class,rT(n))}else 65536&_.flags&&!(32768&_.flags)&&1!==s&&ce(e,eT.Private_accessor_was_defined_without_a_getter)}else{if(l)return uT(t)&&o&&c1(e,2,void 0,r),de(c)?R:c;_=me(c,n.escapedText,Qb(c),166===e.kind)}c1(e,2,_,r);let d;if(_){var u=$k(_,n),l=(Oa(u)&&Cp(e,u)&&u.declarations&&ja(n,u.declarations,n.escapedText),_),u=e,p=n,f=l["valueDeclaration"];if(f&&!iT(u).isDeclarationFile){let e;var m=rT(p);!bv(u)||function(e){return QE(e)&&!PN(e)&&e.questionToken}(f)||lD(u)&&lD(u.expression)||Ga(f,p)||ZE(f)&&256&U4(f)||!W&&function(e){if(!(32&e.parent.flags))return;let t=pe(e.parent);for(;;){if(!(t=t.symbol&&function(e){e=Zc(e);if(0!==e.length)return ve(e)}(t)))return;var r=me(t,e.escapedName);if(r&&r.valueDeclaration)return 1}}(l)?263!==f.kind||183===u.parent.kind||33554432&f.flags||Ga(f,p)||(e=ce(p,eT.Class_0_used_before_its_declaration,m)):e=ce(p,eT.Property_0_is_used_before_its_initialization,m),e&&JD(e,aT(f,eT._0_is_declared_here,m))}if(Pv(_,e,Fv(t,o)),P(e).resolvedSymbol=_,Yy(e,108===t.kind,aD(e),c,_),qb(e,_,s))return ce(n,eT.Cannot_assign_to_0_because_it_is_a_read_only_property,rT(n)),R;d=gv(e,_)?on:(a||iD(e)?Rc:pe)(_)}else{l=UE(n)||0!==s&&Ap(r)&&!lE(r)?void 0:X_(c,n.escapedText);if(!l||!l.type)return!(p=yv(e,r.symbol,!0))&&kp(r)?re:r.symbol===mt?(mt.exports.has(n.escapedText)&&418&mt.exports.get(n.escapedText).flags?ce(n,eT.Property_0_does_not_exist_on_type_1,X3(n.escapedText),ue(r)):Te&&ce(n,eT.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,ue(r)),re):(n.escapedText&&!eo(e)&&xv(n,lE(r)?c:r,p),R);l.isReadonly&&(yw(e)||ww(e))&&ce(e,eT.Index_signature_in_type_0_only_permits_reading,ue(c)),d=l.type,ee.noUncheckedIndexedAccess&&1!==hw(e)&&(d=ye([d,pn])),ee.noPropertyAccessFromIndexSignature&&dT(e)&&ce(n,eT.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,X3(n.escapedText)),l.declaration&&La(l.declaration)&&ja(n,[l.declaration],n.escapedText)}return vv(e,_,d,n,i)}function yv(e,t,r){var n,i,a=iT(e);if(a&&(void 0===ee.checkJs&&void 0===a.checkJsDirective&&(1===a.scriptKind||2===a.scriptKind)))return n=G4(null==t?void 0:t.declarations,iT),i=!(null!=t&&t.valueDeclaration)||!qC(t.valueDeclaration)||(null==(i=t.valueDeclaration.heritageClauses)?void 0:i.length)||f8(!1,t.valueDeclaration),!(a!==n&&n&&w5(n)||r&&t&&32&t.flags&&i||e&&r&&dT(e)&&110===e.expression.kind&&i);return!1}function vv(e,t,r,n,i){var a=hw(e);if(1===a)return Vg(r,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&r.flags)&&!n6(t.declarations))return r;if(r===on)return pc(e,t);r=o1(r,e,i);let o=!1;te&&T&&lD(e)&&110===e.expression.kind?(i=t&&t.valueDeclaration)&&Mk(i)&&(CN(i)||176!==(s=$0(e)).kind||s.parent!==i.parent||33554432&i.flags||(o=!0)):te&&t&&t.valueDeclaration&&dT(t.valueDeclaration)&&$8(t.valueDeclaration)&&$0(e)===$0(t.valueDeclaration)&&(o=!0);var s=G0(e,r,o?Mg(r):r);return o&&!Nm(r)&&Nm(s)?(ce(n,eT.Property_0_is_used_before_being_assigned,_e(t)),r):a?kg(s):s}function bv(e){return tT(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!(!KP(e.parent)||!eP(e.parent.parent))||"quit";default:return!h8(e)&&"quit"}})}function xv(e,t,r){let n,i;if(!UE(e)&&1048576&t.flags&&!(402784252&t.flags))for(var a of t.types)if(!me(a,e.escapedText)&&!X_(a,e.escapedText)){n=gD(n,eT.Property_0_does_not_exist_on_type_1,d5(e),ue(a));break}Sv(e.escapedText,t)?(o=d5(e),s=ue(t),n=gD(n,eT.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,o,s,s+"."+o)):(s=Yx(t))&&me(s,e.escapedText)?(n=gD(n,eT.Property_0_does_not_exist_on_type_1,d5(e),ue(t)),i=aT(e,eT.Did_you_forget_to_use_await)):(o=d5(e),s=ue(t),void 0!==(c=function(e,t){t=D_(t).symbol;if(t){t=Y3(t),t=X7().get(t);if(t)for(var[r,n]of t)if(TT(n,e))return r}}(o,t))?n=gD(n,eT.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,s,c):void 0!==(c=Tv(e,t))?(_=Y3(c),l=r?eT.Property_0_may_not_exist_on_type_1_Did_you_mean_2:eT.Property_0_does_not_exist_on_type_1_Did_you_mean_2,n=gD(n,l,o,s,_),i=c.valueDeclaration&&aT(c.valueDeclaration,eT._0_is_declared_here,_)):(l=t,c=ee.lib&&!ee.lib.includes("dom")&&function(e,t){return 3145728&e.flags?vT(e.types,t):t(e)}(l,e=>e.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(X3(e.symbol.escapedName)))&&Cm(l)?eT.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:eT.Property_0_does_not_exist_on_type_1,n=gD(M_(n,t),c,o,s)));var o,s,c,l,_=y5(iT(e),e,n);i&&JD(_,i),Pa(!r||n.code!==eT.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,_)}function Sv(e,t){t=t.symbol&&me(pe(t.symbol),e);return void 0!==t&&t.valueDeclaration&&CN(t.valueDeclaration)}function kv(e,t){return Ev(e,fe(t),106500)}function Tv(e,r){let n=fe(r);if("string"!=typeof e){let t=e.parent;dT(t)&&(n=NT(n,e=>Av(t,r,e))),e=rT(e)}return Ev(e,n,111551)}function Cv(e,t){e=a3(e)?e:rT(e),t=fe(t);return("for"===e?bT(t,e=>"htmlFor"===Y3(e)):"class"===e?bT(t,e=>"className"===Y3(e)):void 0)??Ev(e,t,111551)}function wv(e,t){e=Tv(e,t);return e&&Y3(e)}function Nv(e,t,r){return Y4.assert(void 0!==t,"outername should always be defined"),kt(e,t,r,void 0,!1,!1)}function Dv(e,t){return t.exports&&Ev(rT(e),qo(t),2623475)}function Ev(e,t,r){return _3(e,t,function(e){var t=Y3(e);if(!f3(t,'"')){if(e.flags&r)return t;if(2097152&e.flags){e=function(e){if(le(e).aliasTarget!==tn)return Co(e)}(e);if(e&&e.flags&r)return t}}})}function Pv(e,t,r){var n=e&&106500&e.flags&&e.valueDeclaration;if(n){var n=kN(n,2),i=e.valueDeclaration&&eC(e.valueDeclaration)&&UE(e.valueDeclaration.name);if((n||i)&&(!t||!iD(t)||65536&e.flags)){if(r){n=tT(t,MC);if(n&&n.symbol===e)return}(1&tD(e)?le(e).target:e).isReferenced=-1}}}function Fv(e,t){return 110===e.kind||!!t&&UN(e)&&t===Bh(VN(e))}function Av(e,t,r){return Ov(e,211===e.kind&&108===e.expression.kind,!1,t,r)}function Iv(e,t,r,n){return!!B(n)||!!(r=me(n,r))&&Ov(e,t,!1,n,r)}function Ov(e,t,r,n,i){if(B(n))return!0;if(i.valueDeclaration&&FC(i.valueDeclaration)){let t=Q5(i.valueDeclaration);return!vC(e)&&!!tT(e,e=>e===t)}return Zy(e,t,r,n,i)}function Lv(r){var n,e=Cw(r);if(80===e.kind){var i=Bh(e);if(3&i.flags){let e=r,t=r.parent;for(;t;){if(249===t.kind&&e===t.statement&&function(e){if(261===(e=e.initializer).kind){var t=e.declarations[0];if(t&&!GC(t.name))return F(t)}else if(80===e.kind)return Bh(e)}(t)===i&&1===W_(n=Tx(t.expression)).length&&H_(n,oe))return 1;t=(e=t).parent}}}}function jv(e,t){return 64&e.flags?(n=t,i=A((r=e).expression),a=Ug(i,r.expression),qg(Rv(r,sv(a,r.expression),n),r,a!==i)):Rv(e,tv(e.expression),t);var r,n,i,a}function Rv(e,t,r){var t=0!==hw(e)||uv(e)?Zg(t):t,n=e.argumentExpression,i=A(n);if(de(t)||t===wn)return t;if(Qb(t)&&!k7(n))return ce(n,eT.A_const_enum_member_can_only_be_accessed_using_a_string_literal),R;var i=Lv(n)?oe:i,a=hw(e);let o;0===a?o=32:(o=4|(Ap(t)&&!lE(t)?2:0),2===a&&(o|=32));a=zp(t,i,o,e)||R;return Vx(vv(e,P(e).resolvedSymbol,a,n,r),e)}function Mv(e){return e7(e)||AP(e)||f7(e)}function Bv(e){return Mv(e)&&G4(e.typeArguments,I),215===e.kind?A(e.template):f7(e)?A(e.attributes):pT(e)?A(e.left):e7(e)&&G4(e.arguments,e=>{A(e)}),ii}function Jv(e){return Bv(e),ai}function zv(e){return!!e&&(230===e.kind||237===e.kind&&e.isSpread)}function qv(e){return ST(e,zv)}function Uv(e){return!!(16384&e.flags)}function Vv(e){return!!(49155&e.flags)}function Wv(t,e,r,n=!1){let i,a=!1,o=ob(r),s=sb(r);if(215===t.kind)i=e.length,a=228===t.template.kind?W7((c=GT(t.template.templateSpans)).literal)||!!c.literal.isUnterminated:(c=t.template,Y4.assert(15===c.kind),!!c.isUnterminated);else if(170===t.kind)i=_2(t,r);else if(226===t.kind)i=1;else if(f7(t)){if(a=t.attributes.end===t.end)return 1;i=0===s?e.length:1,o=0===e.length?o:1,s=Math.min(s,1)}else{if(!t.arguments)return Y4.assert(214===t.kind),0===sb(r);i=n?e.length+1:e.length,a=t.arguments.end===t.end;var c=qv(e);if(0<=c)return c>=sb(r)&&(cb(r)||co)){if(!(a||i>=s))for(let e=i;e=e&&t.length<=r}function Kv(e,t){let r;return e.target&&(r=nb(e.target,t))&&Fp(r)}function Gv(e){return Xv(e,0,!1)}function $v(e){return Xv(e,0,!1)||Xv(e,1,!1)}function Xv(e,t,r){if(524288&e.flags){e=o_(e);if(r||0===e.properties.length&&0===e.indexInfos.length){if(0===t&&1===e.callSignatures.length&&0===e.constructSignatures.length)return e.callSignatures[0];if(1===t&&1===e.constructSignatures.length&&0===e.callSignatures.length)return e.constructSignatures[0]}}}function Qv(e,t,r,n){let i=ah(e.typeParameters,e,0,n);n=lb(t),n=r&&(n&&262144&n.flags?r.nonFixingMapper:r.mapper);return nh(n?jf(t,n):t,e,(e,t)=>{Dh(i.inferences,e,t)}),r||ih(t,e,(e,t)=>{Dh(i.inferences,e,t,128)}),gu(e,Rh(i),oT(t.declaration))}function Yv(e){var t;return e?(t=A(e),ZN(e)?t:bC(e.parent)?Bg(t):vC(e.parent)?zg(t):t):Cn}function Zv(e,t,r,n,i){if(f7(e))return a=n,c=i,s=_y(s=t,o=e),o=cx(o.attributes,s,c,a),Dh(c.inferences,o,s),Rh(c);var a,o,s,c,l,_;170!==e.kind&&226!==e.kind&&(a=vT(t.typeParameters,e=>!!k_(e)),o=iy(e,a?8:0))&&dh(s=he(t))&&(c=ly(e),!a&&iy(e,8)!==o||(l=(l=Gv(_=be(o,uh((_=1,(l=c)&&oh($4(l.inferences,_h),l.signature,l.flags|_,l.compareTypes))))))&&l.typeParameters?Su(hu(l,l.typeParameters)):_,Dh(i.inferences,l,s,128)),_=ah(t.typeParameters,t,i.flags),l=be(o,c&&c.returnMapper),Dh(_.inferences,l,s),i.returnMapper=X4(_.inferences,bx)?uh((d=NT((f=_).inferences,bx)).length?oh($4(d,_h),f.signature,f.flags,f.compareTypes):void 0):void 0);let u=_b(t);var d,p=u?Math.min(ob(t)-1,r.length):r.length,f=(u&&262144&u.flags&&(d=bT(i.inferences,e=>e.typeParameter===u))&&(d.impliedArity=ST(r,zv,p)<0?r.length-p:void 0),_u(t));f&&dh(f)&&(e=s2(e),Dh(i.inferences,Yv(e),f));for(let e=0;egD(void 0,eT.Type_0_does_not_satisfy_the_constraint_1):void 0,_=n||eT.Type_0_does_not_satisfy_the_constraint_1,u=(s=s||Cf(a,o),o[e]);if(!_m(u,wl(be(c,s),u),r?t[e]:void 0,_,l))return}}return o}function n2(e){return Dy(e.tagName)?2:K4(ge(e=D_(A(e.tagName)),1))?0:K4(ge(e,0))?1:2}function i2(l,e,t,r,_,n,u){var e=_y(e,l),i=cx(l.attributes,e,void 0,r),r=4&r?$g(i):i;return function(){if(Ly(l))return 1;var e=!kF(l)&&!SF(l)||Dy(l.tagName)||DF(l.tagName)?void 0:A(l.tagName);if(!e)return 1;var e=ge(e,0);if(!K4(e))return 1;var t=l4(l);if(!t)return 1;var r=Ao(t,111551,!0,!1,l);if(!r)return 1;r=pe(r),r=ge(r,0);if(!K4(r))return 1;let n=!1,i=0;for(var a of r){a=ge(rb(a,0),0);if(K4(a))for(var o of a){if(n=!0,cb(o))return 1;o=ob(o);o>i&&(i=o)}}if(!n)return 1;let s=1/0;for(var c of e){c=sb(c);c{t.push(e.expression)}),t}if(170===r.kind){var e=r,t=e.expression;if(e=wb(e)){var n,i=[];for(n of e.parameters){var a=pe(n);i.push(c2(t,a))}return i}return Y4.fail()}if(226===r.kind)return[r.left];if(f7(r))return 0{var r=i.target.elementFlags[t],r=c2(n,4&r?Fd(e):e,!!(12&r),null==(e=i.target.labeledElementDeclarations)?void 0:e[t]);a.push(r)}):a.push(n)}return a}return o}function _2(e,t){if(!ee.experimentalDecorators)return Math.min(Math.max(ob(t),1),2);var r=e,n=t;switch(r.parent.kind){case 263:case 231:return 1;case 172:return PN(r.parent)?3:2;case 174:case 177:case 178:return n.parameters.length<=2?2:3;case 169:return 3;default:return Y4.fail()}}function u2(e){var t=iT(e),{start:e,length:r}=C5(t,dT(e.expression)?e.expression.name:e.expression);return{start:e,length:r,sourceFile:t}}function d2(e,t,...r){var n,i,a;return PP(e)?({sourceFile:n,start:i,length:a}=u2(e),"message"in t?pD(n,i,a,t,...r):b5(n,t)):"message"in t?aT(e,t,...r):y5(iT(e),e,t)}function p2(t,r,n,i){var e,a=qv(n);if(-1c&&(c=u),n.length!!e.typeParameters)?function(e,t,r,n){var i=function(t,r){let n=-1,i=-1;for(let e=0;ei&&(i=o,n=e)}return n}(t,void 0===ct?r.length:ct),a=t[i],o=a["typeParameters"];if(!o)return a;var s=Mv(e)?e.typeArguments:void 0,s=s?yu(a,function(e,t,r){var n=e.map(S6);for(;n.length>t.length;)n.pop();for(;n.lengthe.thisParameter),r;t.length&&(r=g2(t,t.map(Q2)));var{min:n,max:i}=zD(e,m2),a=[];for(let t=0;tpj(e)?tnb(e,t))))}let s=AT(e,e=>pj(e)?GT(e.parameters):void 0),c=128;{var l;0!==s.length&&(l=Fd(ye(AT(e,mu),2)),a.push(h2(s,l)),c|=1)}e.some(fj)&&(c|=2);return Dl(e[0].declaration,void 0,r,a,ve(e.map(he)),void 0,n,c)}(d)),P(c).resolvedSignature=n,r))if(!_&&e&&(_=eT.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),k)if(1===k.length||3e,void 0);if(t)for(var a of t)i.declaration&&3gD(void 0,eT.Overload_0_of_1_2_gave_the_following_error,i+1,m.length,Es(e)),void 0);N?(N.length<=r&&(r=N.length,n=i),t=Math.max(t,N.length),w.push(N)):Y4.fail("No error for 3 or fewer overload signatures"),i++}let a=1e.relatedInformation)];let o;o=vT(a,e=>e.start===a[0].start&&e.length===a[0].length&&e.file===a[0].file)?({file:u,start:p,length:s}=a[0],{file:u,start:p,length:s,code:e.code,category:e.category,messageText:e,relatedInformation:l}):y5(iT(c),e7(d=c)?dT(d.expression)?d.expression.name:d.expression:AP(d)?dT(d.tag)?d.tag.name:d.tag:f7(d)?d.tagName:d,e,l),D(k[0],o),se.add(o)}else T?se.add(p2(c,[T],x,_)):C?r2(C,c.typeArguments,!0,_):0===(r=NT(o,e=>Hv(e,f))).length?se.add(function(e,t,r,n){var i,a,o,s,c=r.length;if(1===t.length)return i=nu((s=t[0]).typeParameters),s=K4(s.typeParameters),n?(o=gD(void 0,eT.Expected_0_type_arguments_but_got_1,iMC(e)&&H7(e.body)):void 0;e&&(n=!(r=au(e)).typeParameters,E([r],_a,n))&&JD(t,aT(e,eT.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible)),k=i,T=a,C=o}function E(t,a,e,o=!1){if(k=void 0,T=void 0,C=void 0,e)return e=t[0],X4(f)||!Wv(c,x,e,o)?void 0:o2(c,x,e,a,0,!1,void 0,void 0)?void(k=[e]):e;for(let e=0;ee===t)&&(i=xu(i));let e;if(X4(f)){if(!(e=r2(i,f,!1))){C=i;continue}}else n=ah(i.typeParameters,i,oT(c)?2:0),e=Sf(Zv(c,i,x,8|S,n),n.nonFixingMapper),S|=4&n.flags?8:0;if(r=gu(i,e,oT(i.declaration),n&&n.inferredTypeParameters),_b(i)&&!Wv(c,x,r,o)){T=r;continue}}else r=i;if(!o2(c,x,r,a,S,!1,void 0,n)){if(S){if(S=0,n){var s=Sf(Zv(c,i,x,S,n),n.mapper);if(r=gu(i,s,oT(i.declaration),n.inferredTypeParameters),_b(i)&&!Wv(c,x,r,o)){T=r;continue}}if(o2(c,x,r,a,S,!1,void 0,n)){(k=k||[]).push(r);continue}}return t[e]=r}(k=k||[]).push(r)}}}}function m2(e){var t=e.parameters.length;return pj(e)?t-1:t}function g2(e,t){return h2(e,ye(t,2))}function h2(e,t){return Gg(WT(e),t)}function y2(e){return!(!e.typeParameters||!$6(he(e)))}function v2(e,t,r,n){return B(e)||B(t)&&262144&e.flags||!r&&!n&&!(1048576&t.flags)&&!(131072&I_(t).flags)&&xe(e,Ot)}function b2(e,t,r){var n=tv(e.expression);if(n===wn)return si;if(!de(n=D_(n))){if(B(n))return e.typeArguments&&ce(e,eT.Untyped_function_calls_may_not_accept_type_arguments),Bv(e);var i=ge(n,1);if(i.length)return function(e,t){if(!t||!t.declaration)return 1;var t=t.declaration,r=IN(t,6);if(!r||176!==t.kind)return 1;var n=oD(t.parent.symbol),i=cl(t.parent.symbol);if(g6(e,n))return 1;{n=Q5(e);if(n&&4&r){n=S6(n);if(function n(i,e){let t=Zc(e);if(!K4(t))return!1;let a=t[0];if(2097152&a.flags){let e=a.types,t=Ml(e),r=0;for(var o of a.types){if(!t[r]&&3&sT(o)){if(o.symbol===i)return!0;if(n(i,o))return!0}r++}return!1}if(a.symbol===i)return!0;return n(i,a)}(t.parent.symbol,n))return 1}2&r&&ce(e,eT.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ue(i)),4&r&&ce(e,eT.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ue(i))}}(e,i[0])?function t(e,r){if(i3(e))return X4(e,e=>t(e,r));return 1048576===e.compositeKind?X4(e.compositeSignatures,r):r(e)}(i,e=>!!(4&e.flags))||(a=n.symbol&&oD(n.symbol))&&TN(a,64)?(ce(e,eT.Cannot_create_an_instance_of_an_abstract_class),Jv(e)):f2(e,i,t,r,0):Jv(e);var a=ge(n,0);if(a.length)return i=f2(e,a,t,r,0),Te||(i.declaration&&!E2(i.declaration)&&he(i)!==Cn&&ce(e,eT.Only_a_void_function_can_be_called_with_the_new_keyword),_u(i)===Cn&&ce(e,eT.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),i;S2(e.expression,n,1)}return Jv(e)}function x2(e,t,r){let n;var i,a=0===r,o=aS(t),o=o&&00===e.minArgumentCount&&!pj(e)&&e.parameters.length<_2(n,e))&&!IP(e.expression)?(i=K7(e.expression,!1),ce(e,eT._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,i),Jv(e)):(o=function(e){switch(e.parent.kind){case 263:case 231:return eT.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return eT.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return eT.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return eT.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return Y4.fail()}}(e),a.length?f2(e,a,t,r,0,o):(a=gD((i=x2(e.expression,s,0)).messageChain,o),t=y5(iT(e.expression),e.expression,a),i.relatedMessage&&JD(t,aT(e.expression,i.relatedMessage)),se.add(t),k2(s,0,t),Jv(e)))))}function C2(e,t){var r=jy(e),r=r&&Wo(r),r=r&&Ka(r,WL.Element,788968),n=r&&N.symbolToEntityName(r,788968,e),e=cT.createFunctionTypeNode(void 0,[cT.createParameterDeclaration(void 0,void 0,"props",void 0,N.typeToTypeNode(t,e))],n?cT.createTypeReferenceNode(n,void 0):cT.createKeywordTypeNode(133)),n=O(1,"props");return n.links.type=t,Dl(e,void 0,void 0,[n],r?cl(r):R,void 0,1,0)}function w2(e,t,r){var n,i;return Dy(e.tagName)?(i=C2(e,n=Jy(e)),um(cx(e.attributes,_y(i,e),void 0,0),n,e.tagName,e.attributes),K4(e.typeArguments)&&(G4(e.typeArguments,I),se.add(h5(iT(e),e.typeArguments,eT.Expected_0_type_arguments_but_got_1,0,K4(e.typeArguments)))),i):de(i=D_(n=A(e.tagName)))?Jv(e):v2(n,i,(i=function t(e,r){if(4&e.flags)return[ii];if(128&e.flags)return(n=By(e,r))?[C2(r,n)]:(ce(r,eT.Property_0_does_not_exist_on_type_1,e.value,"JSX."+WL.IntrinsicElements),H4);var n=D_(e);let i=ge(n,1);return i=0===(i=0===i.length?ge(n,0):i).length&&1048576&n.flags?Ol($4(n.types,e=>t(e,r))):i}(n,e)).length,0)?Bv(e):0===i.length?(ce(e.tagName,eT.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,K7(e.tagName)),Jv(e)):f2(e,i,t,r,0)}function N2(r,n,i){switch(r.kind){case 213:{var a=r;var o=n;var s=i;if(108===a.expression.kind){var c=A1(a.expression);if(B(c)){for(var l of a.arguments)A(l);return ii}if(!de(c)){var _=Lw(Q5(a));if(_)return f2(a,Xc(c,_.typeArguments,_),o,s,0)}return Bv(a)}let e,t=A(a.expression);if(yC(a)?(c=Ug(t,a.expression),e=c===t?0:SC(a)?16:8,t=c):e=0,(t=ov(t,a.expression,av))===wn)return si;if(!de(_=D_(t))){var c=ge(_,0),u=ge(_,1).length;if(v2(t,_,c.length,u))return!de(t)&&a.typeArguments&&ce(a,eT.Untyped_function_calls_may_not_accept_type_arguments),Bv(a);if(c.length)return 8&s&&!a.typeArguments&&c.some(y2)?(vx(a,s),oi):c.some(e=>oT(e.declaration)&&!!oC(e.declaration))?(ce(a,eT.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ue(t)),Jv(a)):f2(a,c,o,s,e);if(u)ce(a,eT.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ue(t));else{let e;1===a.arguments.length&&L3((c=iT(a).text).charCodeAt(j3(c,a.expression.end,!0)-1))&&(e=aT(a.expression,eT.Are_you_missing_a_semicolon)),S2(a.expression,_,0,e)}}return Jv(a);return}case 214:return b2(r,n,i);case 215:return o=n,s=i,c=A((u=r).tag),de(_=D_(c))?Jv(u):(a=ge(_,0),e=ge(_,1).length,v2(c,_,a.length,e)?Bv(u):a.length?f2(u,a,o,s,0):(NP(u.parent)?(c=aT(u.tag,eT.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),se.add(c)):S2(u.tag,_,0),Jv(u)));case 170:return T2(r,n,i);case 286:case 285:return w2(r,n,i);case 226:var e=r,t=n,d=i,p=A(e.right);if(!B(p)){var f=Zb(p);if(f){var m=D_(f);if(de(m))return Jv(e);var g=ge(m,0),h=ge(m,1);if(v2(f,m,g.length,h.length))return Bv(e);if(g.length)return f2(e,g,t,d,0)}else if(!D6(p)&&!am(p,Ot))return ce(e.right,eT.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),Jv(e)}return ii}var e;Y4.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function D2(e,t,r){var n=P(e),i=n.resolvedSignature;if(i&&i!==oi&&!t)return i;var a=ji;i||(ji=Ii.length),n.resolvedSignature=oi;let o=N2(e,t,r||0);return ji=a,o!==oi&&(n.resolvedSignature!==oi&&(o=n.resolvedSignature),n.resolvedSignature=yi===vi?o:i),o}function E2(e){var t;return!(!e||!oT(e)||!(t=rF(e)||OP(e)?e:(eF(e)||FF(e))&&e.initializer&&OP(e.initializer)?e.initializer:void 0)||!oC(e)&&(FF(Sw(t.parent))||null==(t=null==(e=F(t))?void 0:e.members)||!t.size))}function P2(e,t){var r,n;if(t)return(n=le(t)).inferredClassSymbol&&n.inferredClassSymbol.has(sj(e))?n.inferredClassSymbol.get(sj(e)):((e=O7(e)?e:za(e)).exports=e.exports||I7(),e.members=e.members||I7(),e.flags|=32&t.flags,null!=(r=t.exports)&&r.size&&Wa(e.exports,t.exports),null!=(r=t.members)&&r.size&&Wa(e.members,t.members),(n.inferredClassSymbol||(n.inferredClassSymbol=new Map)).set(sj(e),e),e)}function F2(r,n){if(r.parent){let e,t;if(eF(r.parent)&&r.parent.initializer===r){if(!(oT(r)||W4(r.parent)&&MC(r)))return;e=r.parent.name,t=r.parent}else if(pT(r.parent)){var i=r.parent,a=r.parent.operatorToken.kind;if(64!==a||!n&&i.right!==r){if(!(57!==a&&61!==a||(eF(i.parent)&&i.parent.initializer===i?(e=i.parent.name,t=i.parent):pT(i.parent)&&64===i.parent.operatorToken.kind&&(n||i.parent.right===i)&&(e=i.parent.left,t=e),e&&K8(e)&&J8(e,i.left))))return}else e=i.left,t=e}else n&&rF(r)&&(e=r.name,t=r);if(t&&e&&(n||R8(r,GN(e))))return $o(t)}}function A2(e,t){var r,n;128&e.flags||e.declaration&&536870912&e.declaration.flags&&(r=I2(t),t=KN(d8(t)),r=r,n=e.declaration,t=t,e=Es(e),Ia(n,t?aT(r,eT.The_signature_0_of_1_is_deprecated,e,t):aT(r,eT._0_is_deprecated,e)))}function I2(e){switch((e=Cw(e)).kind){case 213:case 170:case 214:return I2(e.expression);case 215:return I2(e.tag);case 286:case 285:return I2(e.tagName);case 212:return e.argumentExpression;case 211:return e.name;case 183:var t=e;return WE(t.typeName)?t.typeName.right:t;default:return e}}function O2(t){if(PP(t)){let e=t.expression;return uT(e=dT(e)&&"for"===e.name.escapedText?e.expression:e)&&"Symbol"===e.escapedText&&(t=yd(!1))?t===St(e,"Symbol",111551,void 0,!1):void 0}}function L2(t){if(function(e){if(ee.verbatimModuleSyntax&&1===v)return L(e,eT.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===v)return L(e,eT.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 L(e,eT.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);var t=e.arguments;if(99!==v&&199!==v&&100!==v)if(g4(t),1!!e.typeParameters&&Hv(e,r)),e=>{var t=r2(e,r,!0);return t?gu(e,t,oT(e.declaration)):e})}}function K2(e,t,r){var r=A(e,r),n=V(t);return de(n)?n:(um(r,n,tT(t.parent,e=>238===e.kind||350===e.kind),e,eT.Type_0_does_not_satisfy_the_expected_type_1),r)}function G2(e){var t,r;return function(e){var t=e.name.escapedText;switch(e.keywordToken){case 105:if("target"!==t)return L(e.name,eT._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,X3(e.name.escapedText),I3(e.keywordToken),"target");break;case 102:if("meta"!==t)L(e.name,eT._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,X3(e.name.escapedText),I3(e.keywordToken),"meta")}}(e),105===e.keywordToken?X2(e):102===e.keywordToken?(t=e,100===v||199===v?99!==iT(t).impliedNodeFormat&&ce(t,eT.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):v<6&&4!==v&&ce(t,eT.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext),r=iT(t),Y4.assert(!!(8388608&r.flags),"Containing file is missing import meta node flag."),"meta"===t.name.escapedText?fd():R):Y4.assertNever(e.keywordToken)}function $2(e){switch(e.keywordToken){case 102:return md();case 105:var t=X2(e);return de(t)?R:(t=t,r=O(0,"NewTargetExpression"),(n=O(4,"target",8)).parent=r,n.links.type=t,t=I7([n]),r.members=t,fs(r,t,H4,H4,H4));default:Y4.assertNever(e.keywordToken)}var r,n}function X2(e){var t=i8(e);return t?176===t.kind?pe(F(t.parent)):pe(F(t)):(ce(e,eT.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),R)}function Q2(e){var t=e.valueDeclaration;return sc(pe(e),!1,!!t&&(b7(t)||mE(t)))}function Y2(e,t,r="arg"){return e?(Y4.assert(uT(e.name)),e.name.escapedText):r+"_"+t}function Z2(e,t,r){var n=e.parameters.length-(pj(e)?1:0);return t!(1&e)))<0?i.target.fixedLength:n)?r.parameters.length-1+i:t)){if(!a&&32&r.flags)return 0;t=r.minArgumentCount}if(e)return t;for(let e=t-1;0<=e;e--){if(131072&w0(rb(r,e),Uv).flags)break;t=e}r.resolvedMinArgumentCount=t}return r.resolvedMinArgumentCount}function cb(e){return!!pj(e)&&(!Se(e=pe(e.parameters[e.parameters.length-1]))||e.target.hasRestElement)}function lb(e){if(pj(e)){e=pe(e.parameters[e.parameters.length-1]);if(!Se(e))return B(e)?Vt:e;if(e.target.hasRestElement)return qd(e,e.target.fixedLength)}}function _b(e){e=lb(e);return!e||og(e)||B(e)?void 0:e}function ub(e){return db(e,M)}function db(e,t){return 0{var t=e.expression?A(e.expression,n):dn;JT(i,Ab(e,t,re,o));let r;(r=e.asteriskToken?(t=ek(t,o?19:17,e.expression))&&t.nextType:iy(e,void 0))&&JT(a,r)}),{yieldTypes:i,nextTypes:a}}(e,t));o=X4(l)?ye(l,2):void 0,s=X4(_)?ve(_):void 0}else{l=jb(e,t);if(!l)return 2&r?Eb(e,M):M;if(0===l.length)return t=(_=z1(e,void 0))&&32768&(bk(_,r)||Cn).flags?ie:Cn,2&r?Eb(e,t):t;a=ye(l,2)}return(a||o||s)&&(o&&rh(e,o,3),a&&rh(e,a,1),s&&rh(e,s,2),(a&&bg(a)||o&&bg(o)||s&&bg(s))&&(r=(_=fy(e))?_===au(e)?i?void 0:a:ry(he(_),e,void 0):void 0,i?(o=Dg(o,r,0,n),a=Dg(a,r,1,n),s=Dg(s,r,2,n)):a=(t=a,l=r,_=n,t=t&&bg(t)?Ng(t,l?_?Yx(l):l:void 0):t)),o=o&&Zg(o),a=a&&Zg(a),s=s&&Zg(s)),i?Fb(o||M,a||c,s||J1(2,e)||ne,n):n?Nb(a||c):a||c}function Fb(e,t,r,n){var i,a,o,n=n?fi:mi,s=n.getGlobalGeneratorType(!1);return e=n.resolveIterationType(e,void 0)||ne,t=n.resolveIterationType(t,void 0)||ne,r=n.resolveIterationType(r,void 0)||ne,s===Kn?(a=(o=(i=n.getGlobalIterableIteratorType(!1))!==Kn?ik(i,n):void 0)?o.returnType:re,o=o?o.nextType:ie,xe(t,a)&&xe(o,r)?i!==Kn?Dd(i,[e]):(n.getGlobalIterableIteratorType(!0),zn):(n.getGlobalGeneratorType(!0),zn)):Dd(s,[e,t,r])}function Ab(e,t,r,n){var i=e.expression||e,r=e.asteriskToken?$S(n?19:17,t,r,i):t;return n?aS(r,i,e.asteriskToken?eT.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:eT.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r}function Ib(t,r,n){let i=0;for(let e=0;e=r?n[e]:void 0;i|=void 0!==a?ZL.get(a)||32768:0}return i}function Ob(e){var t=P(e);return void 0===t.isExhaustive?(t.isExhaustive=0,e=function(e){if(221===e.expression.kind){var r=x0(e);if(!r)return!1;var n=v_(lx(e.expression.expression));let t=Ib(0,0,r);return 3&n.flags?556800==(556800&t):!T0(n,e=>r0(e,t)===t)}r=lx(e.expression);if(!Sg(r))return!1;n=b0(e);var t;return!(!n.length||X4(n,vg))&&(e=D0(r,uf),t=n,1048576&e.flags?!G4(e.types,e=>!TT(t,e)):TT(t,e))}(e),0===t.isExhaustive&&(t.isExhaustive=e)):0===t.isExhaustive&&(t.isExhaustive=!1),t.isExhaustive}function Lb(e){return e.endFlowNode&&W0(e.endFlowNode)}function jb(r,n){let i=zw(r),a=[],o=Lb(r),s=!1;if(L5(r.body,e=>{let t=e.expression;if(t)if(t=Cw(t,!0),213!==(t=2&i&&223===t.kind?Cw(t.expression,!0):t).kind||80!==t.expression.kind||lx(t.expression).symbol!==S(r.symbol)||oE(r.symbol.valueDeclaration)&&!K0(t.expression)){let e=lx(t,n&&-9&n);131072&(e=2&i?rS(Zx(e,!1,r,eT.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)):e).flags&&(s=!0),JT(a,e)}else s=!0;else o=!0}),0!==a.length||o||!s&&!function(e){switch(e.kind){case 218:case 219:return 1;case 174:return 210===e.parent.kind;default:return}}(r))return!(te&&a.length&&o)||E2(r)&&a.some(e=>e.symbol===r.symbol)||JT(a,ie),a}function Rb(n,i){J(function(){var e=zw(n),e=i&&bk(i,e);if((!e||!(Gb(e,16384)||32769&e.flags))&&173!==n.kind&&!W7(n.body)&&241===n.body.kind&&Lb(n)){var t=1024&n.flags,r=yN(n)||n;if(e&&131072&e.flags)ce(r,eT.A_function_returning_never_cannot_have_a_reachable_end_point);else if(e&&!t)ce(r,eT.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(e&&te&&!xe(ie,e))ce(r,eT.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(ee.noImplicitReturns){if(!e){if(!t)return;e=he(au(n));if(xk(n,e))return}ce(r,eT.Not_all_code_paths_return_a_value)}}})}function Mb(e,t){if(Y4.assert(174!==e.kind||H5(e)),o6(e),OP(e)&&LS(e,e.name),t&&4&t&&Qf(e)){if(!yN(e)&&!nE(e)){var r=my(e);if(r&&dh(he(r)))return(r=P(e)).contextFreeType||(n=Pb(e,t),n=Dl(void 0,void 0,void 0,H4,n,void 0,0,64),(n=fs(e.symbol,y,[n],H4,H4)).objectFlags|=262144,r.contextFreeType=n)}return Gn}v4(e)||218!==e.kind||T4(e);var r=e,n=t,t=P(r);if(!(64&t.flags)){var i=my(r);if(!(64&t.flags)){t.flags|=64;t=UT(ge(pe(F(r)),0));if(t){if(Qf(r))if(i){var a,o=ly(r);let e;e=(e=n&&2&n&&(pb(t,i,o),a=lb(i))&&262144&a.flags?jf(i,o.nonFixingMapper):e)||(o?jf(i,o.mapper):i),!function(t,r){if(r.typeParameters){if(t.typeParameters)return;t.typeParameters=r.typeParameters}r.thisParameter&&(!(e=t.thisParameter)||e.valueDeclaration&&!e.valueDeclaration.type)&&(e||(t.thisParameter=Gg(r.thisParameter,void 0)),fb(t.thisParameter,pe(r.thisParameter)));var e,n=t.parameters.length-(pj(t)?1:0);for(let e=0;er.parameters.length&&(a=ly(r),n)&&2&n&&pb(t,i,a);!i||pu(r)||t.resolvedReturnType||(o=Pb(r,n),t.resolvedReturnType)||(t.resolvedReturnType=o),Px(r)}}}return pe(F(e))}function Bb(e,t,r,n=!1){return!!xe(t,An)||(Aa(e,!!(e=n&&Qx(t))&&xe(e,An),r),!1)}function Jb(e){if(!PP(e))return!1;if(!W8(e))return!1;e=lx(e.arguments[2]);if(Ks(e,"value")){var t=me(e,"writable"),r=t&&pe(t);if(!r||r===vn||r===bn)return!0;if(t&&t.valueDeclaration&&FF(t.valueDeclaration)){r=A(t.valueDeclaration.initializer);if(r===vn||r===bn)return!0}return!1}return!me(e,"set")}function zb(e){return!!(8&tD(e)||4&e.flags&&8&rD(e)||3&e.flags&&6&Xy(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||X4(e.declarations,Jb))}function qb(e,t,r){if(0!==r){if(zb(t)){if(4&t.flags&&lD(e)&&110===e.expression.kind){var n,i,r=X5(e);if(!r||176!==r.kind&&!E2(r))return 1;if(t.valueDeclaration)return a=pT(t.valueDeclaration),o=r.parent===t.valueDeclaration.parent,n=r===t.valueDeclaration.parent,i=a&&(null==(i=t.parent)?void 0:i.valueDeclaration)===r.parent,t=a&&(null==(a=t.parent)?void 0:a.valueDeclaration)===r,!(o||n||i||t)}return 1}if(lD(e)){var a=Cw(e.expression);if(80===a.kind){var o,r=P(a).resolvedSymbol;if(2097152&r.flags)return(o=io(r))&&274===o.kind}}}}function Ub(e,t,r){var n=l9(e,7);if(80===n.kind||lD(n)){if(!(64&n.flags))return 1;ce(e,r)}else ce(e,t)}function Vb(e){A(e.expression);var t,r,n,e=Cw(e.expression);return lD(e)?(dT(e)&&UE(e.name)&&ce(e,eT.The_operand_of_a_delete_operator_cannot_be_a_private_identifier),(r=rs(P(e).resolvedSymbol))&&(zb(r)?ce(e,eT.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):(t=e,n=pe(r=r),!te||131075&n.flags||(Ce?16777216&r.flags:n0(n,16777216))||ce(t,eT.The_operand_of_a_delete_operator_must_be_optional)))):ce(e,eT.The_operand_of_a_delete_operator_must_be_a_property_reference),kn}function Wb(t){let r=!1;var e=Z5(t);if(e&&eP(e))ce(t,RP(t)?eT.await_expression_cannot_be_used_inside_a_class_static_block:eT.await_using_statements_cannot_be_used_inside_a_class_static_block),r=!0;else if(!(65536&t.flags))if(n8(t)){var n=iT(t);if(!O4(n)){let e;switch(o5(n,ee)||(e=e??k5(n,t.pos),s=RP(t)?eT.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:eT.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,s=pD(n,e.start,e.length,s),se.add(s),r=!0),v){case 100:case 199:if(1===n.impliedNodeFormat){e=e??k5(n,t.pos),se.add(pD(n,e.start,e.length,eT.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),r=!0;break}case 7:case 99:case 200:case 4:if(4<=U)break;default:e=e??k5(n,t.pos);var i=RP(t)?eT.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:eT.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;se.add(pD(n,e.start,e.length,i)),r=!0}}}else{var a,o,s=iT(t);O4(s)||(a=k5(s,t.pos),o=RP(t)?eT.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:eT.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,s=pD(s,a.start,a.length,o),e&&176!==e.kind&&0==(2&zw(e))&&JD(s,aT(e,eT.Did_you_mean_to_mark_this_function_as_async)),se.add(s),r=!0)}return RP(t)&&B1(t)&&(ce(t,eT.await_expressions_cannot_be_used_in_a_parameter_initializer),r=!0),r}function Hb(e){return Gb(e,2112)?$b(e,3)||Gb(e,296)?An:yn:oe}function Kb(e,t){return Gb(e,t)||(e=v_(e))&&Gb(e,t)}function Gb(e,t){if(e.flags&t)return!0;var r;if(3145728&e.flags)for(r of e.types)if(Gb(r,t))return!0;return!1}function $b(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&xe(e,oe)||!!(2112&t)&&xe(e,yn)||!!(402653316&t)&&xe(e,ae)||!!(528&t)&&xe(e,kn)||!!(16384&t)&&xe(e,Cn)||!!(131072&t)&&xe(e,M)||!!(65536&t)&&xe(e,gn)||!!(32768&t)&&xe(e,ie)||!!(4096&t)&&xe(e,Tn)||!!(67108864&t)&&xe(e,En))}function Xb(e,t,r){return 1048576&e.flags?vT(e.types,e=>Xb(e,t,r)):$b(e,t,r)}function Qb(e){return!!(16&sT(e))&&!!e.symbol&&Yb(e.symbol)}function Yb(e){return 0!=(128&e.flags)}function Zb(e){var t=ok("hasInstance");if(Xb(e,67108864)){e=me(e,t);if(e){t=pe(e);if(t&&0!==ge(t,0).length)return t}}}function ex(e,t,r,n){return r===wn||n===wn?wn:(UE(e)?((U<9||U<99||!W)&&p4(e,2097152),!P(e).resolvedSymbol&&Q5(e)&&xv(e,n,yv(e,n.symbol,!0))):_m(sv(r,e),Fn,e),_m(sv(n,t),En,t)&&T0(n,e=>e===Wn||!!(2097152&e.flags)&&wm(v_(e)))&&ce(t,eT.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,ue(n)),kn)}function tx(e,t,r,n,i=!1){var a,o,e=e.properties,s=e[r];if(303===s.kind||304===s.kind)return TE(o=dp(a=s.name))&&(_=me(t,CE(o)))&&(Pv(_,s,i),Yy(s,!1,!0,t,_)),i=Zs(s,Bp(t,o,32,a)),nx(304===s.kind?s:s.initializer,i);if(305===s.kind){if(!(rqd(e,r)):Fd(n),i);ce(s.operatorToken,eT.A_rest_element_cannot_have_an_initializer)}}}function nx(e,t,n,r){let i;var a,o,s;if(226===(i=304===e.kind?((a=e).objectAssignmentInitializer&&(te&&!n0(A(a.objectAssignmentInitializer),16777216)&&(t=a0(t,524288)),function(e,t,r,n,i){var a=t.kind;if(64===a&&(210===e.kind||209===e.kind))return nx(e,A(r,n),n,110===r.kind);let o;o=(RN(a)?HS:A)(e,n);a=A(r,n);ax(e,t,r,o,a,n,i)}(a.name,a.equalsToken,a.objectAssignmentInitializer,n)),e.name):e).kind&&64===i.operatorToken.kind&&(C(i,n),i=i.left,te)&&(t=a0(t,524288)),210===i.kind){var c=i,l=t,_=r,u=c.properties;if(te&&0===u.length)return sv(l,c);for(let e=0;e$b(e,402655727)&&$b(t,402655727)),re;65===o&&C(t)}return t;case 30:case 32:case 33:case 34:return T(o)&&(c=Tg(sv(c,i)),l=Tg(sv(l,a)),w((e,t)=>{var r,n;return!(!B(e)&&!B(t))||(r=xe(e,An),n=xe(t,An),r&&n)||!r&&!n&&lm(e,t)})),kn;case 35:case 36:case 37:case 38:return r&&64&r||(!wC(i)&&!wC(a)||oT(i)&&37!==o&&38!==o||(n=35===o||37===o,ce(_,eT.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,n?"false":"true")),u=_,n=o,b=a,x=D(Cw(v=i)),S=D(Cw(b)),(x||S)&&(u=ce(u,eT.This_condition_will_always_return_0,I3(37===n||35===n?97:112)),x&&S||(S=38===n||36===n?A3[54]:"",x=Cw(n=x?b:v),JD(u,aT(n,eT.Did_you_mean_0,`${S}Number.isNaN(${UN(x)?g5(x):"..."})`)))),w((e,t)=>ix(e,t)||ix(t,e))),kn;case 104:return b=i,v=a,S=l,x=r,(y=c)===wn||S===wn||(!B(y)&&Xb(y,402784252)&&ce(b,eT.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Y4.assert(YN(b.parent)),(S=D2(b.parent,void 0,x))===oi)?wn:(_m(he(S),kn,v,eT.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),kn);case 103:return ex(i,a,c,l);case 56:case 77:y=n0(c,4194304)?ye([D0(te?c:kg(l),jg),l]):c;return 77===o&&C(l),y;case 57:case 76:var d=n0(c,8388608)?ye([Bg(Lg(c)),l],2):c;return 76===o&&C(l),d;case 61:case 78:d=n0(c,262144)?ye([Bg(c),l],2):c;return 78===o&&C(l),d;case 64:var d=pT(i.parent)?V8(i.parent):0,p=l;if(2===d)for(var f of s_(p)){var m,g=pe(f);g.symbol&&32&g.symbol.flags&&(g=f.escapedName,null!=(m=St(f.valueDeclaration,g,788968,void 0,!1)))&&m.declarations&&m.declarations.some(e9)&&(Ua(m,eT.Duplicate_identifier_0,X3(g),f),Ua(f,eT.Duplicate_identifier_0,X3(g),m))}return function(e){switch(e){case 2:return 1;case 1:case 5:case 6:case 3:case 4:var t=$o(i),r=j8(a);return r&&DP(r)&&null!=(r=null==t?void 0:t.exports)&&r.size;default:return}}(d)?(524288&l.flags&&(2===d||6===d||Cm(l)||t0(l)||1&sT(l))||C(l),c):(C(l),l);case 28:if(!ee.allowUnreachableCode&&function e(t){switch((t=Cw(t)).kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return e(t.whenTrue)&&e(t.whenFalse);case 226:return!BN(t.operatorToken.kind)&&e(t.left)&&e(t.right);case 224:case 225:switch(t.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}(i)&&!(217===(p=i.parent).parent.kind&&zE(p.left)&&"0"===p.left.text&&(PP(p.parent.parent)&&p.parent.parent.expression===p.parent||215===p.parent.parent.kind)&&(lD(p.right)||uT(p.right)&&"eval"===p.right.escapedText))){var h=iT(i);let t=j3(h.text,i.pos);h.parseDiagnostics.some(e=>e.code===eT.JSX_expressions_must_have_one_parent_element.code&&z3(e,t))||ce(i,eT.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return l;default:return Y4.fail()}var y,v,b,x,S;function k(e,t){return $b(e,2112)&&$b(t,2112)}function T(e){var t=Kb(c,12288)?i:Kb(l,12288)?a:void 0;if(!t)return 1;ce(t,eT.The_0_operator_cannot_be_applied_to_type_symbol,I3(e))}function C(n){BN(o)&&J(function(){let t=c;iR(s.kind)&&211===i.kind&&(t=lv(i,void 0,!0));if(Ub(i,eT.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,eT.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let e;var r;Ce&&dT(i)&&Gb(n,32768)&&(r=Ks(Tx(i.expression),i.name.escapedText),Rm(n,r))&&(e=eT.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target),um(n,t,i,a,e)}})}function w(e){e(c,l)||N(e)}function N(e){let t=!1;var r=_||s;e&&(a=oS(c),o=oS(l),t=!(a===c&&o===l)&&!(!a||!o)&&e(a,o));let n=c,i=l;!t&&e&&([n,i]=function(e,t,r){let n=e,i=t,a=kg(e),o=kg(t);r(a,o)||(n=a,i=o);return[n,i]}(c,l,e));var[a,o]=Ps(n,i);!function(e,t,r,n){switch(s.kind){case 37:case 35:case 38:case 36:return Aa(e,t,eT.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,n);default:return}}(r,t,a,o)&&Aa(r,t,eT.Operator_0_cannot_be_applied_to_types_1_and_2,I3(s.kind),a,o)}function D(e){return!(!uT(e)||"NaN"!==e.escapedText||(Sr=Sr||ld("NaN",!1),!Sr)||Sr!==Bh(e))}}function ox(e){var t,r=[e.head.text],n=[];for(t of e.templateSpans){var i=A(t.expression);Kb(i,12288)&&ce(t.expression,eT.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),r.push(t.literal.text),n.push(xe(i,In)?i:ae)}var a=215!==e.parent.kind&&dt(e).value;return a?_f(pf(a)):fx(e)||function e(t){var r=t.parent;return IP(r)&&e(r)||EP(r)&&r.argumentExpression===t}(e)||T0(iy(e,void 0)||ne,sx)?yp(r,n):ae}function sx(e){return!!(134217856&e.flags||58982400&e.flags&&Gb(y_(e)||ne,402653316))}function cx(e,t,r,n){var i=wF(i=e)&&!SF(i.parent)?i.parent.parent:i,i=(oy(i,t,!1),a=r,Ni[Ei]=i,Di[Ei]=a,Ei++,A(e,1|n|(r?2:0))),a=(r&&r.intraExpressionInferenceSites&&(r.intraExpressionInferenceSites=void 0),Gb(i,2944)&&px(i,ry(t,e,void 0))?uf(i):i);return Ei--,sy(),a}function lx(e,t){var r,n,i;return t?A(e,t):((r=P(e)).resolvedType||(n=yi,i=Or,yi=vi,Or=void 0,r.resolvedType=A(e,t),Or=i,yi=n),r.resolvedType)}function _x(e){return 216===(e=Cw(e,!0)).kind||234===e.kind||s9(e)}function ux(e,t,r){var n=O8(e);if(oT(e)){var i=vE(e);if(i)return K2(n,i,t)}i=Cx(n)||(r?cx(n,r,void 0,t||0):lx(n,t));if(GE(e)&&207===e.name.kind&&Se(i)&&!i.target.hasRestElement&&zu(i)px(t,e)):58982400&e.flags?Gb(r=y_(e)||ne,4)&&Gb(t,128)||Gb(r,8)&&Gb(t,256)||Gb(r,64)&&Gb(t,2048)||Gb(r,4096)&&Gb(t,8192)||px(t,r):!!(406847616&e.flags&&Gb(t,128)||256&e.flags&&Gb(t,256)||2048&e.flags&&Gb(t,2048)||512&e.flags&&Gb(t,512)||8192&e.flags&&Gb(t,8192)))}function fx(e){var t=e.parent;return r7(t)&&kC(t.type)||s9(t)&&kC(c9(t))||z2(e)&&d_(iy(e,0))||(IP(t)||NP(t)||BP(t))&&fx(t)||(FF(t)||AF(t)||HP(t))&&fx(t.parent)}function mx(e,t,r){t=A(e,t,r);return fx(e)||q5(e)?uf(t):_x(e)?t:Ng(t,ry(iy(e,void 0),e,void 0))}function gx(e,t){return 167===e.name.kind&&xy(e.name),mx(e.initializer,t)}function hx(e,t){return P4(e),167===e.name.kind&&xy(e.name),yx(e,Mb(e,t),t)}function yx(e,t,n){if(n&&10&n){var i=Xv(t,0,!0),a=Xv(t,1,!0),a=i||a;if(a&&a.typeParameters){var o=ty(e,2);if(o){o=Xv(Bg(o),i?0:1,!1);if(o&&!o.typeParameters){if(8&n)return vx(e,n),Gn;i=ly(e),n=i.signature&&he(i.signature),e=n&&$v(n);if(e&&!e.typeParameters&&!vT(i.inferences,bx)){n=function(e,t){let r=[],n,i;for(var a of t){var o=a.symbol.escapedName;Sx(e.inferredTypeParameters,o)||Sx(r,o)?((o=ls(O(262144,function(t,e){let r=e.length;for(;1lh(e.typeParameter));if(nh(e,o,(e,t)=>{Dh(r,e,t,0,!0)}),X4(r,bx)&&(ih(e,o,(e,t)=>{Dh(r,e,t)}),!function(t,r){for(let e=0;ee&&$4(e.inferences,e=>e.typeParameter)).slice())}}}}return t}function vx(e,t){2&t&&(ly(e).flags|=4)}function bx(e){return!(!e.candidates&&!e.contraCandidates)}function xx(e){return!!(e.candidates||e.contraCandidates||T_(e.typeParameter))}function Sx(e,t){return X4(e,e=>e.symbol.escapedName===t)}function kx(e){e=Gv(e);if(e&&!e.typeParameters)return he(e)}function Tx(e){var t=Cx(e);if(t)return t;if(268435456&e.flags&&Or){t=Or[oj(e)];if(t)return t}var t=Si,r=A(e,64);return Si!==t&&(Or=Or||[],Or[oj(e)]=r,eE(e,268435456|e.flags)),r}function Cx(e){var t,r,n=Cw(e,!0);if(s9(n)){var i=c9(n);if(!kC(i))return V(i)}return RP(n=Cw(e))?(i=Cx(n.expression))?aS(i):void 0:!PP(n)||108===n.expression.kind||E8(n,!0)||O2(n)?r7(n)&&!kC(n.type)?V(n.type):CC(e)||BC(e)?A(e):void 0:yC(n)?(e=A((i=n).expression),t=Ug(e,i.expression),(r=kx(e))&&qg(r,i,t!==e)):kx(tv(n.expression))}function wx(e){var t=P(e);if(t.contextFreeType)return t.contextFreeType;oy(e,re,!1);t=t.contextFreeType=A(e,4);return sy(),t}function A(e,t,r){null!=Z4&&Z4.push(Z4.Phase.Check,"checkExpression",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});var n,i=ke,r=(l=0,function(e,t,r){var n=e.kind;if(x)switch(n){case 231:case 218:case 219:x.throwIfCancellationRequested()}switch(n){case 80:return k1(e,t);case 81:return pv(e);case 110:return P1(e);case 108:return A1(e);case 106:return hn;case 15:case 11:return xh(e)?cn:_f(pf(e.text));case 9:return B4(e),_f(ff(+e.text));case 10:return function(e){var t=SP(e.parent)||MP(e.parent)&&SP(e.parent.parent);if(!t&&U<7&&L(e,eT.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return}(e),_f(mf({negative:!1,base10Value:HD(e.text)}));case 112:return xn;case 97:return vn;case 228:return ox(e);case 14:return gy(e);case 209:return yy(e,t,r);case 210:return Cy(e,t);case 211:return lv(e,t);case 166:return _v(e,t);case 212:return jv(e,t);case 213:if(102===e.expression.kind)return L2(e);case 214:return function(e,t){if(b4(e,e.typeArguments),(t=D2(e,void 0,t))===oi)return wn;if(A2(t,e),108===e.expression.kind)return Cn;if(214===e.kind){var r=t.declaration;if(r&&176!==r.kind&&180!==r.kind&&185!==r.kind&&(!KF(r)||176!==(null==(n=null==(n=mw(r))?void 0:n.parent)?void 0:n.kind))&&!nw(r)&&!E2(r))return Te&&ce(e,eT.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),re}if(oT(e)&&B2(e))return lu(e.arguments[0]);var n=he(t);if(12288&n.flags&&O2(e))return gf(Sw(e.parent));if(213===e.kind&&!e.questionDotToken&&244===e.parent.kind&&16384&n.flags&&uu(t)&&(WN(e.expression)?U0(e)||(r=ce(e.expression,eT.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation),q0(e.expression,r)):ce(e.expression,eT.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name)),oT(e)){t=F2(e,!1);if(null!=(r=null==t?void 0:t.exports)&&r.size)return(e=fs(t,t.exports,H4,H4,H4)).objectFlags|=4096,ve([n,e])}return n}(e,t);case 215:return J2(e);case 217:return function(e,t){if(y7(e)){if(hE(e))return K2(e.expression,yE(e),t);if(s9(e))return q2(e,t)}return A(e.expression,t)}(e,t);case 231:return function(e){return Fk(e),o6(e),function(t){if(!t.name){var r=_9(t);if(Qw(r)){var n=!b&&U<99;let e;(e=n&&f8(!1,t)?UT(rC(t))??t:Pk(t))&&(p4(e,4194304),FF(r)||QE(r)||wP(r))&&HE(r.name)&&p4(e,8388608)}}}(e),pe(F(e))}(e);case 218:case 219:return Mb(e,t);case 221:return function(e){return A(e.expression),sa}(e);case 216:case 234:return function(e,t){var r;return 216===e.kind&&(r=iT(e))&&N3(r.fileName,[".cts",".mts"])&&L(e,eT.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead),q2(e,t)}(e,t);case 235:return V2(e);case 233:return W2(e);case 238:return function(e){return I(e.type),K2(e.expression,e.type)}(e);case 236:return G2(e);case 220:return Vb(e);case 222:return function(e){return o6(e),dn}(e);case 223:return function(e){J(()=>Wb(e));var t=A(e.expression),r=Zx(t,!0,e,eT.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return r!==t||de(r)||3&t.flags||Pa(!1,aT(e,eT.await_has_no_effect_on_the_type_of_this_expression)),r}(e);case 224:return function(e){var t=A(e.operand);if(t===wn)return wn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return _f(ff(-e.operand.text));case 40:return _f(ff(+e.operand.text))}break;case 10:if(41===e.operator)return _f(mf({negative:!0,base10Value:HD(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return sv(t,e.operand),Kb(t,12288)&&ce(e.operand,eT.The_0_operator_cannot_be_applied_to_type_symbol,I3(e.operator)),40===e.operator?(Kb(t,2112)&&ce(e.operand,eT.Operator_0_cannot_be_applied_to_type_1,I3(e.operator),ue(kg(t))),oe):Hb(t);case 54:WS(t,e.operand);var r=r0(t,12582912);return 4194304===r?vn:8388608===r?xn:kn;case 46:case 47:return Bb(e.operand,sv(t,e.operand),eT.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Ub(e.operand,eT.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,eT.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Hb(t)}return R}(e);case 225:return function(e){var t=A(e.operand);return t===wn?wn:(Bb(e.operand,sv(t,e.operand),eT.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Ub(e.operand,eT.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,eT.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Hb(t))}(e);case 226:return C(e,t);case 227:return function(e,t){var r=HS(e.condition,t);return VS(e.condition,r,e.whenTrue),ye([r=A(e.whenTrue,t),A(e.whenFalse,t)],2)}(e,t);case 230:return function(e,t){return U<2&&p4(e,ee.downlevelIteration?1536:1024),$S(33,A(e.expression,t),ie,e.expression)}(e,t);case 232:return dn;case 229:return function(t){J(function(){16384&t.flags||L4(t,eT.A_yield_expression_is_only_allowed_in_a_generator_body);B1(t)&&ce(t,eT.yield_expressions_cannot_be_used_in_a_parameter_initializer)});var e=X5(t);if(!e)return re;let r=zw(e);if(!(1&r))return re;var n=0!=(2&r);t.asteriskToken&&(n&&U<5&&p4(t,26624),!n)&&U<2&&ee.downlevelIteration&&p4(t,256);let i=pu(e);var a=(o=(i=i&&1048576&i.flags?w0(i,e=>Fx(e,r,void 0)):i)&&yk(i,n))&&o.yieldType||re,o=o&&o.nextType||re,o=n?aS(o)||re:o,s=t.expression?A(t.expression):dn,o=Ab(t,s,o,n);if(i&&o&&um(o,a,t.expression||t,t.expression),t.asteriskToken)return QS(n?19:17,1,s,t.expression)||re;if(i)return hk(2,i,n)||re;let c=J1(2,e);return c||(c=re,J(()=>{var e;!Te||rE(t)||(e=iy(t,void 0))&&!B(e)||ce(t,eT.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)})),c}(e);case 237:return function(e){return e.isSpread?Bp(e.type,oe):e.type}(e);case 294:return $y(e,t);case 284:return function(e){return o6(e),qy(e)||re}(e);case 285:return function(e){return o6(e),qy(e)||re}(e);case 288:return function(e){Hy(e.openingFragment);var t=iT(e);return!ID(ee)||!ee.jsxFactory&&!t.pragmas.has("jsx")||ee.jsxFragmentFactory||t.pragmas.has("jsxfrag")||ce(e,ee.jsxFactory?eT.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:eT.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Py(e),qy(e)||re}(e);case 292:return Ay(e,t);case 286:Y4.fail("Shouldn't ever directly check a JsxOpeningElement")}return R}(ke=e,t,r)),r=yx(e,r,t);return Qb(r)&&(t=r,(n=211===(e=e).parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e||(80===e.kind||166===e.kind)&&h6(e)||186===e.parent.kind&&e.parent.exprName===e||281===e.parent.kind)||ce(e,eT.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),SD(ee))&&(Y4.assert(!!(128&t.symbol.flags)),n=t.symbol.valueDeclaration,t=p.getRedirectReferenceForResolutionFromSourceOfProject(iT(n).resolvedPath),!(33554432&n.flags)||XD(e)||t&&ND(t.commandLine.options)||ce(e,eT.Cannot_access_ambient_const_enums_when_0_is_enabled,yt)),ke=i,null!=Z4&&Z4.pop(),r}function Nx(e){f4(e),e.expression&&L4(e.expression,eT.Type_expected),I(e.constraint),I(e.default);var t=sl(F(e)),r=(y_(t),S_(t)===Xn&&ce(e.default,eT.Type_parameter_0_has_a_circular_default,ue(t)),u_(t)),n=k_(t);r&&n&&_m(n,wl(be(r,Nf(t,n)),n),e.default,eT.Type_0_does_not_satisfy_the_constraint_1),o6(e),J(()=>wk(e.name,eT.Type_parameter_name_cannot_be_0))}function Dx(e){f4(e),RS(e);var t=X5(e);TN(e,31)&&(176===t.kind&&H7(t.body)||ce(e,eT.A_parameter_property_is_only_allowed_in_a_constructor_implementation),176===t.kind)&&uT(e.name)&&"constructor"===e.name.escapedText&&ce(e.name,eT.constructor_cannot_be_used_as_a_parameter_property_name),!e.initializer&&mE(e)&&GC(e.name)&&t.body&&ce(e,eT.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&uT(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&ce(e,eT.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),176!==t.kind&&180!==t.kind&&185!==t.kind||ce(e,eT.A_constructor_cannot_have_a_this_parameter),219===t.kind&&ce(e,eT.An_arrow_function_cannot_have_a_this_parameter),177!==t.kind&&178!==t.kind||ce(e,eT.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||GC(e.name)||xe(I_(pe(e.symbol)),Ht)||ce(e,eT.A_rest_parameter_must_be_of_an_array_type)}function Ex(t){var r=function(e){switch(e.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:var t=e.parent;if(e===t.type)return t}}(t);if(r){var e=au(r),n=uu(e);if(n){I(t.type);var i=t["parameterName"];if(0===n.kind||2===n.kind)hf(i);else if(0<=n.parameterIndex)pj(e)&&n.parameterIndex===e.parameters.length-1?ce(i,eT.A_type_predicate_cannot_reference_a_rest_parameter):n.type&&_m(n.type,pe(e.parameters[n.parameterIndex]),t.type,void 0,()=>gD(void 0,eT.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type));else if(i){let e=!1;for(var{name:a}of r.parameters)if(GC(a)&&function t(e,r,n){for(var i of e.elements)if(!zP(i)){let e=i.name;if(80===e.kind&&e.escapedText===n)return ce(r,eT.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((207===e.kind||206===e.kind)&&t(e,r,n))return!0}}(a,i,n.parameterName)){e=!0;break}e||ce(t.parameterName,eT.Cannot_find_parameter_0,n.parameterName)}}}else ce(t,eT.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}function Px(i){181===i.kind?f4(t=i)||function(e){var t=e.parameters[0];if(1!==e.parameters.length)return L(t?t.name:e,eT.An_index_signature_must_have_exactly_one_parameter);if(g4(e.parameters,eT.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return L(t.dotDotDotToken,eT.An_index_signature_cannot_have_a_rest_parameter);if(xN(t))return L(t.name,eT.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return L(t.questionToken,eT.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return L(t.name,eT.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return L(t.name,eT.An_index_signature_parameter_must_have_a_type_annotation);var r=V(t.type);if(T0(r,e=>!!(8576&e.flags))||Fp(r))return L(t.name,eT.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);C0(r,Du)?e.type||L(e,eT.An_index_signature_must_have_a_type_annotation):L(t.name,eT.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(t):184!==i.kind&&262!==i.kind&&185!==i.kind&&179!==i.kind&&176!==i.kind&&180!==i.kind||v4(i);var e,t=zw(i),r=(4&t||(3==(3&t)&&U<5&&p4(i,6144),2==(3&t)&&U<4&&p4(i,64),0!=(3&t)&&U<2&&p4(i,128)),Nk(mC(i)),i),o=NT(dC(r),QF);if(K4(o)){let n=oT(r),i=new Set,a=new Set;G4(r.parameters,({name:e},t)=>{uT(e)&&i.add(e.escapedText),GC(e)&&a.add(t)}),su(r)?(r=o.length-1,e=o[r],n&&e&&uT(e.name)&&e.typeExpression&&e.typeExpression.type&&!i.has(e.name.escapedText)&&!a.has(r)&&!og(V(e.typeExpression.type))&&ce(e.name,eT.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,rT(e.name))):G4(o,({name:e,isNameFirst:t},r)=>{a.has(r)||uT(e)&&i.has(e.escapedText)||(WE(e)?n&&ce(e,eT.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,g5(e),g5(e.left)):t||Fa(n,e,eT.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,rT(e)))})}G4(i.parameters,Dx),i.type&&I(i.type),J(function(){!function(e){2<=U||!C7(e)||33554432&e.flags||W7(e.body)||G4(e.parameters,e=>{e.name&&!GC(e.name)&&e.name.escapedText===gt.escapedName&&Da("noEmit",e,eT.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(i);let e=yN(i),t=e;oT(i)&&(n=_C(i))&&n.typeExpression&&sP(n.typeExpression.type)&&(r=Gv(V(n.typeExpression)))&&r.declaration&&(e=yN(r.declaration),t=n.typeExpression.type);if(Te&&!e)switch(i.kind){case 180:ce(i,eT.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:ce(i,eT.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}{var r,n;e&&t&&(1==(5&(r=zw(i)))?(n=V(e))===Cn?ce(t,eT.A_generator_cannot_have_a_void_type_annotation):Fx(n,r,t):2==(3&r)&&function(e,t,r){var n=V(t);if(2<=U){if(de(n))return;var i=bd(!0);if(i!==Kn&&!Bc(n,i))return c(eT.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,r,ue(oS(n)||Cn))}else{if(c1(e,5),de(n))return;i=u8(t);if(void 0===i)return c(eT.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,r,ue(n));var a=Ao(i,111551,!0),a=a?pe(a):R;if(de(a))return 80===i.kind&&"Promise"===i.escapedText&&Jc(n)===bd(!1)?ce(r,eT.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):c(eT.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,r,g5(i));var o=(er=er||pd("PromiseConstructorLike",0,!0))||zn;if(o===zn)return c(eT.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,r,g5(i));var s=eT.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!_m(a,o,r,s,()=>t===r?void 0:gD(void 0,eT.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;a=i&&VN(i),o=Ka(e.locals,a.escapedText,111551);if(o)return ce(o.valueDeclaration,eT.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,rT(a),g5(i))}function c(e,t,r,n){t===r?ce(r,e,n):JD(ce(r,eT.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),aT(t,e,n))}Zx(n,!1,e,eT.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(i,e,t))}181!==i.kind&&317!==i.kind&&yS(i)})}function Fx(e,t,r){var n=hk(0,e,0!=(2&t))||re;return _m(Fb(n,hk(1,e,0!=(2&t))||n,hk(2,e,0!=(2&t))||ne,!!(2&t)),e,r)}function Ax(e){var t,r=new Map;for(t of e.members)if(171===t.kind){let e;var n=t.name;switch(n.kind){case 11:case 9:e=n.text;break;case 80:e=rT(n);break;default:continue}r.get(e)?(ce(tC(t.symbol.valueDeclaration),eT.Duplicate_identifier_0,e),ce(t.name,eT.Duplicate_identifier_0,e)):r.set(e,!0)}}function Ix(e){if(264===e.kind){var t=F(e);if(t.declarations&&0{var t=n.get(e.id);t?t.declarations.push(r):n.set(e.id,{type:e,declarations:[r]})});n.forEach(e=>{if(1TN(e,31))))if(function(e,t){e=Sw(e.parent);return $P(e)&&e.parent===t}(t,n.body)){let e;for(var r of n.body.statements){if($P(r)&&F5(l9(r.expression))){e=r;break}if(Rx(r))break}void 0===e&&ce(n,eT.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 ce(t,eT.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 e||ce(n,eT.Constructors_for_derived_classes_must_contain_a_super_call)}})}function Rx(e){return 108===e.kind||110===e.kind||!r8(e)&&!!h9(e,Rx)}function Mx(i){uT(i.name)&&"constructor"===rT(i.name)&&qC(i.parent)&&ce(i.name,eT.Class_constructor_may_not_be_an_accessor),J(function(){v4(i)||function(e){if(!(33554432&e.flags)&&187!==e.parent.kind&&264!==e.parent.kind){if(U<2&&UE(e.name))return L(e.name,eT.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!TN(e,64))return j4(e,e.end-1,";".length,eT._0_expected,"{")}if(e.body){if(TN(e,64))return L(e,eT.An_abstract_accessor_cannot_have_an_implementation);if(187===e.parent.kind||264===e.parent.kind)return L(e.body,eT.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return L(e.name,eT.An_accessor_cannot_have_type_parameters);if(!function(e){return D4(e)||e.parameters.length===(177===e.kind?0:1)}(e))return L(e.name,177===e.kind?eT.A_get_accessor_cannot_have_parameters:eT.A_set_accessor_must_have_exactly_one_parameter);if(178===e.kind){if(e.type)return L(e.name,eT.A_set_accessor_cannot_have_a_return_type_annotation);var t=Y4.checkDefined(uN(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return L(t.dotDotDotToken,eT.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return L(t.questionToken,eT.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return L(e.name,eT.A_set_accessor_parameter_cannot_have_an_initializer)}return}(i)||k4(i.name);mS(i),Px(i),177!==i.kind||33554432&i.flags||!H7(i.body)||!(512&i.flags)||1024&i.flags||ce(i.name,eT.A_get_accessor_must_return_a_value);167===i.name.kind&&xy(i.name);{var e,t,r;xl(i)&&(t=F(i),e=F7(t,177),t=F7(t,178),e)&&t&&!(1&V6(e))&&(P(e).flags|=1,n=ON(e),r=ON(t),(64&n)!=(64&r)&&(ce(e.name,eT.Accessors_must_both_be_abstract_or_non_abstract),ce(t.name,eT.Accessors_must_both_be_abstract_or_non_abstract)),4&n&&!(6&r)||2&n&&!(2&r))&&(ce(e.name,eT.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),ce(t.name,eT.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}var n=Ec(F(i));177===i.kind&&Rb(i,n)}),I(i.body),Lx(i)}function Bx(e,t){return iu($4(e.typeArguments,V),t,nu(t),oT(e))}function Jx(t,r){let n,i,a=!0;for(let e=0;e{var e=zx(t);e&&Jx(t,e)}),(e=P(t).resolvedSymbol)&&X4(e.declarations,e=>_E(e)&&!!(536870912&e.flags))&&ja(I2(t),e.declarations,e.escapedName))}function Vx(e,r){if(!(8388608&e.flags))return e;var n=e.objectType,i=e.indexType;let t=(i_(n)&&2===a_(n)?_p:gp)(n,0),a=!!H_(n,oe);if(C0(i,e=>xe(e,t)||a&&U_(e,oe)))return 212===r.kind&&yw(r)&&32&sT(n)&&1&t_(n)&&ce(r,eT.Index_signature_in_type_0_only_permits_reading,ue(n)),e;if(Ap(n)){let t=Tp(i,r);if(t){e=k0(D_(n),e=>me(e,t));if(e&&6&rD(e))return ce(r,eT.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,X3(t)),R}}return ce(r,eT.Type_0_cannot_be_used_to_index_type_1,ue(i),ue(n)),R}function Wx(e){var t=e;if(null!=(r=t.members)&&r.length)L(t.members[0],eT.A_mapped_type_may_not_declare_properties_or_methods);I(e.typeParameter),I(e.nameType),I(e.type),e.type||th(e,re);var r=Up(e),t=Xl(r);t?_m(t,Fn,e.nameType):_m($l(r),Fn,gC(e.typeParameter))}function Hx(e){!function(t){if(158===t.operator){if(155!==t.type.kind)return L(t.type,eT._0_expected,A3[155]);let e=xw(t.parent);var r;switch((e=oT(e)&&jF(e)&&(r=fw(e))?ow(r)||r:e).kind){case 260:var n=e;if(80!==n.name.kind)return L(t,eT.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!z5(n))return L(t,eT.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(2&n.parent.flags)break;return L(e.name,eT.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);case 172:if(CN(e)&&FN(e))break;return L(e.name,eT.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);case 171:if(TN(e,8))break;return L(e.name,eT.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);default:L(t,eT.unique_symbol_types_are_not_allowed_here)}}else if(148===t.operator&&188!==t.type.kind&&189!==t.type.kind)L4(t,eT.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,A3[155])}(e),I(e.type)}function Kx(e){return(kN(e,2)||FC(e))&&!!(33554432&e.flags)}function Gx(e,t){let r=U4(e);var n;return 264!==e.parent.kind&&263!==e.parent.kind&&231!==e.parent.kind&&33554432&e.flags&&(!((n=l5(e))&&128&n.flags)||128&r||cF(e.parent)&&sF(e.parent.parent)&&n5(e.parent.parent)||(r|=32),r|=128),r&t}function $x(T){J(()=>{{var f=T;function m(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}let e=0,t=230,r=!1,n=!0,i=!1,a,o,s,c=f.declarations,l=0!=(16384&f.flags);function g(r){if(!r.name||!W7(r.name)){let t=!1;var e=h9(r.parent,e=>{if(t)return e;t=e===r});if(e&&e.pos===r.end&&e.kind===r.kind){var n=e.name||e,i=e.name;if(r.name&&i&&(UE(r.name)&&UE(i)&&r.name.escapedText===i.escapedText||HE(r.name)&&HE(i)&&tm(xy(r.name),xy(i))||Hw(r.name)&&Hw(i)&&Gw(r.name)===Gw(i)))return void((174===r.kind||173===r.kind)&&CN(r)!==CN(e)&&ce(n,CN(r)?eT.Function_overload_must_be_static:eT.Function_overload_must_not_be_static));if(H7(e.body))return void ce(n,eT.Function_implementation_name_must_be_0,d5(r.name))}i=r.name||r;l?ce(i,eT.Constructor_implementation_is_missing):TN(r,64)?ce(i,eT.All_declarations_of_an_abstract_method_must_be_consecutive):ce(i,eT.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}let _=!1,u=!1,d=!1,p=[];if(c)for(var h of c){var y=h,v=33554432&y.flags,b=y.parent&&(264===y.parent.kind||187===y.parent.kind)||v;b&&(s=void 0),263!==y.kind&&231!==y.kind||v||(d=!0),262!==y.kind&&174!==y.kind&&173!==y.kind&&176!==y.kind||(p.push(y),v=Gx(y,230),e|=v,t&=v,r=r||rw(y),n=n&&rw(y),(v=H7(y.body))&&a?l?u=!0:_=!0:(null==s?void 0:s.parent)===y.parent&&s.end!==y.pos&&g(s),v?a=a||y:i=!0,s=y,b)||(o=y),oT(h)&&jC(h)&&h.jsDoc&&(i=0{ce(e,eT.Multiple_constructor_implementations_are_not_allowed)}),_&&G4(p,e=>{ce(tC(e)||e,eT.Duplicate_function_implementation)}),d&&!l&&16&f.flags&&c){let r=NT(c,e=>263===e.kind).map(e=>aT(e,eT.Consider_adding_a_declare_modifier_to_this_class));G4(c,e=>{var t=263===e.kind?eT.Class_declaration_cannot_implement_overload_list_for_0:262===e.kind?eT.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;t&&JD(ce(tC(e)||e,t,Y3(f)),...r)})}if(!o||o.body||TN(o,64)||o.questionToken||g(o),i&&(c&&(function(e,t,n,r,i){if(0!=(r^i)){let r=Gx(m(e,t),n);G4(e,e=>{var t=Gx(e,n)^r;32&t?ce(tC(e),eT.Overload_signatures_must_all_be_exported_or_non_exported):128&t?ce(tC(e),eT.Overload_signatures_must_all_be_ambient_or_non_ambient):6&t?ce(tC(e)||e,eT.Overload_signatures_must_all_be_public_private_or_protected):64&t&&ce(tC(e),eT.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}(c,a,230,e,t),function(e,r,t,n){if(t!==n){let t=rw(m(e,r));G4(e,e=>{rw(e)!==t&&ce(tC(e),eT.Overload_signatures_must_all_be_optional_or_required)})}}(c,a,r,n)),a)){var x,S=cu(f),k=au(a);for(x of S)if(!km(k,x)){JD(ce(x.declaration&&KF(x.declaration)?x.declaration.parent.tagName:x.declaration,eT.This_overload_signature_is_not_compatible_with_its_implementation_signature),aT(a,eT.The_implementation_signature_is_declared_here));break}}}})}function Xx(e){J(()=>{{var i;let n=(i=e).localSymbol;if((n||(n=F(i)).exportSymbol)&&F7(n,i.kind)===i){let e=0,t=0,r=0;for(var a of n.declarations){var o=u(a),a=Gx(a,2080);32&a?2048&a?r|=o:e|=o:t|=o}var i=e|t,s=e&t,c=r&i;if(s||c)for(var l of n.declarations){var _=u(l),l=tC(l);_&c?ce(l,eT.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,d5(l)):_&s&&ce(l,eT.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,d5(l))}function u(e){let r=e;switch(r.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return Z7(r)||0!==oL(r)?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:var n=r,n=gF(n)?n.expression:n.right;if(!UN(n))return 1;r=n;case 271:case 274:case 273:let t=0;return G4(Co(F(r)).declarations,e=>{t|=u(e)}),t;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return Y4.failBadSyntaxKind(r)}}}}})}function Qx(e,t,r,...n){e=Yx(e,t);return e&&aS(e,t,r,...n)}function Yx(r,n,i){if(!B(r)){var a=r;if(a.promisedTypeOfPromise)return a.promisedTypeOfPromise;if(Bc(r,bd(!1)))return a.promisedTypeOfPromise=Ju(r)[0];if(!Xb(v_(r),402915324)){var o=Ks(r,"then");if(!B(o)){o=o?ge(o,0):H4;if(0===o.length)n&&ce(n,eT.A_promise_must_have_a_then_method);else{let e,t;for(var s of o){var c=_u(s);c&&c!==Cn&&!Fm(r,c,ca)?e=c:t=Q4(t,s)}if(t){o=a0(ye($4(t,ub)),2097152);if(!B(o)){o=ge(o,0);if(0!==o.length)return a.promisedTypeOfPromise=ye($4(o,ub),2);n&&ce(n,eT.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else Y4.assertIsDefined(e),i&&(i.value=e),n&&ce(n,eT.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ue(r),ue(e))}}}}}function Zx(e,t,r,n,...i){return(t?aS:oS)(e,r,n,...i)||R}function eS(e){return!Xb(v_(e),402915324)&&!!(e=Ks(e,"then"))&&0oS(e,r,n,...i):oS,ra.push(t.id),a=D0(t,a),ra.pop(),e.awaitedTypeOfType=a);if(nS(t))return e.awaitedTypeOfType=t;var a={value:void 0},o=Yx(t,void 0,a);if(o){if(t.id===o.id||0<=ra.lastIndexOf(o.id))return void(r&&ce(r,eT.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));ra.push(t.id);o=oS(o,r,n,...i);return(ra.pop(),o)?e.awaitedTypeOfType=o:void 0}if(!eS(t))return e.awaitedTypeOfType=t;if(r){Y4.assertIsDefined(n);let e;a.value&&(e=gD(e,eT.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ue(t),ue(a.value))),e=gD(e,n,...i),se.add(y5(iT(r),r,e))}}function sS(t){!function(n){if(!O4(iT(n))){let e=n.expression;if(IP(e))return;let t=!0,r;for(;;)if(qP(e)||VP(e))e=e.expression;else{if(PP(e))t||(r=e);else if(!dT(e)){uT(e)||(r=e);break}e.questionDotToken&&(r=e.questionDotToken),e=e.expression,t=!1}if(r)JD(ce(n.expression,eT.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),aT(r,eT.Invalid_syntax_in_decorator))}}(t);var r=D2(t),r=(A2(r,t),he(r));if(!(1&r.flags)){var n=wb(t);if(null!=n&&n.resolvedReturnType){let e;n=n.resolvedReturnType;switch(t.parent.kind){case 263:case 231:e=eT.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!b){e=eT.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:e=eT.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:e=eT.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return Y4.failBadSyntaxKind(t.parent)}_m(r,n,t.expression,e)}}}function cS(e,t,r,n,i,a=r.length,o=0){return Dl(cT.createFunctionTypeNode(void 0,H4,cT.createKeywordTypeNode(133)),e,t,r,n,i,a,o)}function lS(e,t,r,n,i,a,o){return Su(cS(e,t,r,n,i,a,o))}function _S(e){return lS(void 0,void 0,H4,e)}function uS(e){return lS(void 0,void 0,[Ra("value",e)],Cn)}function dS(e){if(e)switch(e.kind){case 193:case 192:return pS(e.types);case 194:return pS([e.trueType,e.falseType]);case 196:case 202:return dS(e.type);case 183:return e.typeName}}function pS(e){let t;for(var r of e){for(;196===r.kind||202===r.kind;)r=r.type;if(146!==r.kind&&(te||(201!==r.kind||106!==r.literal.kind)&&157!==r.kind)){var n=dS(r);if(!n)return;if(t){if(!uT(t)||!uT(n)||t.escapedText!==n.escapedText)return}else t=n}}return t}function fS(e){var t=hN(e);return w7(e)?R5(t):t}function mS(e){if(m9(e)&&AN(e)&&e.modifiers&&p8(b,e,e.parent,e.parent.parent)){var t,r=bT(e.modifiers,$E);if(r){b?(p4(r,8),169===e.kind&&p4(r,32)):U<99&&(p4(r,8),nF(e)?e.name&&!Pk(e)||p4(r,4194304):JP(e)||(UE(e.name)&&(ZE(e)||UC(e)||VC(e))&&p4(r,4194304),HE(e.name)&&p4(r,8388608))),c1(e,8);for(t of e.modifiers)$E(t)&&sS(t)}}}function gS(e){switch(e.kind){case 80:return e;case 211:return e.name;default:return}}function hS(t){var e,r,n;mS(t),Px(t);let i=zw(t),a=(t.name&&167===t.name.kind&&xy(t.name),xl(t)&&(e=F(t),n=null==(n=(r=t.localSymbol||e).declarations)?void 0:n.find(e=>e.kind===t.kind&&!(524288&e.flags)),t===n&&$x(r),e.parent)&&$x(e),173===t.kind?void 0:t.body);I(a),Rb(t,pu(t)),J(function(){yN(t)||(W7(a)&&!Kx(t)&&th(t,re),1&i&&H7(a)&&he(au(t)))}),oT(t)&&(n=_C(t))&&n.typeExpression&&!py(V(n.typeExpression),t)&&ce(n.typeExpression.type,eT.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function yS(r){J(function(){let e=iT(r),t=hi.get(e.path);t||(t=[],hi.set(e.path,t));t.push(r)})}function vS(e,t){for(var r of e)switch(r.kind){case 263:case 231:n=s=i=o=a=void 0;var n,i,a=r,o=t;for(n of a.members)switch(n.kind){case 174:case 172:case 177:case 178:178===n.kind&&32768&n.symbol.flags||(i=F(n)).isReferenced||!(kN(n,2)||eC(n)&&UE(n.name))||33554432&n.flags||o(n,0,aT(n.name,eT._0_is_declared_but_its_value_is_never_read,_e(i)));break;case 176:for(var s of n.parameters)!s.symbol.isReferenced&&TN(s,2)&&o(s,0,aT(s.name,eT.Property_0_is_declared_but_its_value_is_never_read,Y3(s.symbol)));break;case 181:case 240:case 175:break;default:Y4.fail("Unexpected class member")}SS(r,t);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:wS(r,t);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:r.body&&wS(r,t),SS(r,t);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:SS(r,t);break;case 195:a=r,c=t,l=void 0,kS(l=a.typeParameter)&&c(a,1,aT(a,eT._0_is_declared_but_its_value_is_never_read,rT(l.name)));break;default:Y4.assertNever(r,"Node should not have been registered for unused identifiers check")}var c,l}function bS(e,t,r){r(e,0,aT(tC(e)||e,_E(e)?eT._0_is_declared_but_never_used:eT._0_is_declared_but_its_value_is_never_read,t))}function xS(e){return uT(e)&&95===rT(e).charCodeAt(0)}function SS(e,t){var r=F(e).declarations;if(r&>(r)===e){var n,i,a,o,s,r=mC(e),c=new Set;for(n of r)kS(n)&&(i=rT(n.name),s=n["parent"],195!==s.kind&&s.typeParameters.every(kS)?OT(c,s)&&(a=iT(s),o=ZF(s)?qD(s):UD(a,s.typeParameters),s=1===s.typeParameters.length?[eT._0_is_declared_but_its_value_is_never_read,i]:[eT.All_type_parameters_are_unused],t(n,1,pD(a,o.pos,o.end-o.pos,...s))):t(n,1,aT(n,eT._0_is_declared_but_its_value_is_never_read,i)))}}function kS(e){return!(262144&S(e.symbol).isReferenced||xS(e.name))}function TS(e,t,r,n){var n=String(n(t)),i=e.get(n);i?i[1].push(r):e.set(n,[t,[r]])}function CS(e){return o3(eN(e),GE)}function wS(e,i){let a=new Map,o=new Map,s=new Map;e.locals.forEach(t=>{var r,n;if((262144&t.flags?3&t.flags&&!(3&t.isReferenced):!t.isReferenced&&!t.exportSymbol)&&t.declarations)for(let e of t.declarations)(wP(r=e)?(!TP(r.parent)||r.propertyName)&&xS(r.name):Z7(r)||(eF(r)&&s7(r.parent.parent)||DS(r))&&xS(r.name))||(DS(e)?TS(a,273===(r=e).kind?r:(274===r.kind?r:r.parent).parent,e,oj):wP(e)&&TP(e.parent)?(r=GT(e.parent.elements),e!==r&>(e.parent.elements).dotDotDotToken||TS(o,e.parent,e,oj)):eF(e)?(r=7&V4(e),n=tC(e),(4==r||6==r)&&n&&xS(n)||TS(s,e.parent,e,oj)):(r=t.valueDeclaration&&CS(t.valueDeclaration),n=t.valueDeclaration&&tC(t.valueDeclaration),r&&n?U3(r,r.parent)||pN(r)||xS(n)||(wP(e)&&CP(e.parent)?TS(o,e.parent,e,oj):i(r,1,aT(n,eT._0_is_declared_but_its_value_is_never_read,Y3(t)))):bS(e,Y3(t),i)))}),a.forEach(([e,t])=>{var r=e.parent;if((e.name?1:0)+(e.namedBindings?274===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===t.length)i(r,0,1===t.length?aT(r,eT._0_is_declared_but_its_value_is_never_read,rT(WT(t).name)):aT(r,eT.All_imports_in_import_declaration_are_unused));else for(var n of t)bS(n,rT(n.name),i)}),o.forEach(([e,t])=>{var r=CS(e.parent)?1:0;if(e.elements.length===t.length)1===t.length&&260===e.parent.kind&&261===e.parent.parent.kind?TS(s,e.parent.parent,e.parent,oj):i(e,r,1===t.length?aT(e,eT._0_is_declared_but_its_value_is_never_read,NS(WT(t).name)):aT(e,eT.All_destructured_elements_are_unused));else for(var n of t)i(n,r,aT(n,eT._0_is_declared_but_its_value_is_never_read,NS(n.name)))}),s.forEach(([e,t])=>{if(e.declarations.length===t.length)i(e,0,1===t.length?aT(WT(t).name,eT._0_is_declared_but_its_value_is_never_read,NS(WT(t).name)):aT(243===e.parent.kind?e.parent:e,eT.All_variables_are_unused));else for(var r of t)i(r,0,aT(r,eT._0_is_declared_but_its_value_is_never_read,NS(r.name)))})}function NS(e){switch(e.kind){case 80:return rT(e);case 207:case 206:return NS(s3(WT(e.elements),wP).name);default:return Y4.assertNever(e)}}function DS(e){return 273===e.kind||276===e.kind||274===e.kind}function ES(e){var t;241===e.kind&&M4(e),JC(e)?(t=xi,G4(e.statements,I),xi=t):G4(e.statements,I),e.locals&&yS(e)}function PS(e,t,r){return(null==t?void 0:t.escapedText)!==r||172===e.kind||171===e.kind||174===e.kind||173===e.kind||177===e.kind||178===e.kind||303===e.kind||33554432&e.flags||(dF(e)||_F(e)||mF(e))&&EC(e)||GE(t=eN(e))&&W7(t.parent.body)?void 0:1}function FS(t){tT(t,e=>{return!!(4&V6(e))&&(80!==t.kind?ce(tC(t),eT.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):ce(t,eT.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)})}function AS(t){tT(t,e=>{return!!(8&V6(e))&&(80!==t.kind?ce(tC(t),eT.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):ce(t,eT.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)})}function IS(e){1048576&V6(_5(e))&&(Y4.assert(eC(e)&&uT(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Da("noEmit",e,eT.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function OS(e){let t=!1;var r;if(JP(e)){for(var n of e.members)if(2097152&V6(n)){t=!0;break}}else OP(e)?2097152&V6(e)&&(t=!0):(r=_5(e))&&2097152&V6(r)&&(t=!0);t&&(Y4.assert(eC(e)&&uT(e.name),"The target of a Reflect collision check should be an identifier"),Da("noEmit",e,eT.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,d5(e.name),"Reflect"))}function LS(e,t){var r,n;t&&(n=e,r=t,5<=v&&!(100<=v&&1===iT(n).impliedNodeFormat)||!r||!PS(n,r,"require")&&!PS(n,r,"exports")||sF(n)&&1!==oL(n)||307===(n=Hs(n)).kind&&N5(n)&&Da("noEmit",r,eT.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,d5(r),d5(r)),n=e,!(r=t)||4<=U||!PS(n,r,"Promise")||sF(n)&&1!==oL(n)||307===(n=Hs(n)).kind&&N5(n)&&4096&n.flags&&Da("noEmit",r,eT.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,d5(r),d5(r)),n=e,r=t,U<=8&&(PS(n,r,"WeakMap")||PS(n,r,"WeakSet"))&&Zi.push(n),r=e,(n=t)&&2<=U&&U<=8&&PS(r,n,"Reflect")&&ea.push(r),qC(e)?(wk(t,eT.Class_name_cannot_be_0),33554432&e.flags||(n=t,1<=U&&"Object"===n.escapedText&&(v<5||1===iT(n).impliedNodeFormat)&&ce(n,eT.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,k3[v]))):oF(e)&&wk(t,eT.Enum_name_cannot_be_0))}function jS(e){return e===on?re:e===Wt?Vt:e}function RS(t){if(mS(t),wP(t)||I(t.type),t.name){if(167===t.name.kind&&(xy(t.name),x7(t))&&t.initializer&&lx(t.initializer),wP(t)){if(t.propertyName&&uT(t.name)&&Zw(t)&&W7(X5(t).body))return void ta.push(t);TP(t.parent)&&t.dotDotDotToken&&U<5&&p4(t,4),t.propertyName&&167===t.propertyName.kind&&xy(t.propertyName);var e=t.parent.parent,r=$s(e,t.dotDotDotToken?32:0),n=t.propertyName||t.name;r&&!GC(n)&&TE(n=dp(n))&&(n=me(r,CE(n)))&&(Pv(n,void 0,!1),Yy(t,!!e.initializer&&108===e.initializer.kind,!1,r,n))}if(GC(t.name)&&(207===t.name.kind&&U<2&&ee.downlevelIteration&&p4(t,512),G4(t.name.elements,I)),t.initializer&&Zw(t)&&W7(X5(t).body))ce(t,eT.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else{if(GC(t.name))return Jh(t)?void 0:(e=x7(t)&&t.initializer&&249!==t.parent.parent.kind,r=!X4(t.name.elements,y3(zP)),void((e||r)&&(n=bc(t),e&&(e=lx(t.initializer),te&&r?cv(e,t):um(e,bc(t),t,t.initializer)),r)&&(CP(t.name)?$S(65,n,ie,t):te&&cv(n,t))));var i,a,o,s,e=F(t);2097152&e.flags&&(P8(t)||F8(t))?Gk(t):(r=jS(pe(e)),t===e.valueDeclaration?(!(n=x7(t)&&O8(t))||oT(t)&&DP(n)&&(0===n.properties.length||GN(t.name))&&!(null==(i=e.exports)||!i.size)||249===t.parent.parent.kind||(um(i=lx(n),r,t,n,void 0),6==(a=7&V4(t))?(o=(hr=hr||pd("AsyncDisposable",0,!0))||zn,s=Cd(!0),o!==zn&&s!==zn&&_m(i,ye([o,s,gn,ie]),n,eT.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)):4==a&&(o=Cd(!0))!==zn&&_m(i,ye([o,gn,ie]),n,eT.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)),e.declarations&&1e!==t&&B5(e)&&!BS(e,t))&&ce(t.name,eT.All_declarations_of_0_must_have_identical_modifiers,d5(t.name))):(s=jS(bc(t)),de(r)||de(s)||tm(r,s)||67108864&e.flags||MS(e.valueDeclaration,r,t,s),x7(t)&&t.initializer&&um(lx(t.initializer),s,t,t.initializer,void 0),e.valueDeclaration&&!BS(t,e.valueDeclaration)&&ce(t.name,eT.All_declarations_of_0_must_have_identical_modifiers,d5(t.name))),172!==t.kind&&171!==t.kind&&(Xx(t),260!==t.kind&&208!==t.kind||function(e){if(0==(7&V4(e))&&!Zw(e)){var t=F(e);if(1&t.flags){if(!uT(e.name))return Y4.fail();var r=St(e,e.name.escapedText,3,void 0,!1);r&&r!==t&&2&r.flags&&7&Xy(r)&&((t=243===(t=Bw(r.valueDeclaration,261)).parent.kind&&t.parent.parent?t.parent.parent:void 0)&&(241===t.kind&&jC(t.parent)||268===t.kind||267===t.kind||307===t.kind)||(t=_e(r),ce(e,eT.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)))}}}(t),LS(t,t.name)))}}}function MS(e,t,r,n){var i=tC(r),r=172===r.kind||171===r.kind?eT.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:eT.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=d5(i),i=ce(i,r,a,ue(t),ue(n));e&&JD(i,aT(e,eT._0_was_also_declared_here,a))}function BS(e,t){return 169===e.kind&&260===t.kind||260===e.kind&&169===t.kind||(rw(e)===rw(t)?IN(e,1358)===IN(t,1358):void 0)}function JS(e){null!=Z4&&Z4.push(Z4.Phase.Check,"checkVariableDeclaration",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath}),function(e){var t=V4(e),r=7&t;if(GC(e.name))switch(r){case 6:return L(e,eT._0_declarations_may_not_have_binding_patterns,"await using");case 4:return L(e,eT._0_declarations_may_not_have_binding_patterns,"using")}if(249!==e.parent.parent.kind&&250!==e.parent.parent.kind)if(33554432&t)A4(e);else if(!e.initializer){if(GC(e.name)&&!GC(e.parent))return L(e,eT.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return L(e,eT._0_declarations_must_be_initialized,"await using");case 4:return L(e,eT._0_declarations_must_be_initialized,"using");case 2:return L(e,eT._0_declarations_must_be_initialized,"const")}}if(e.exclamationToken&&(243!==e.parent.parent.kind||!e.type||e.initializer||33554432&t))return t=e.initializer?eT.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?eT.A_definite_assignment_assertion_is_not_permitted_in_this_context:eT.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations,L(e.exclamationToken,t);!(v<5||1===iT(e).impliedNodeFormat)||4===v||33554432&e.parent.parent.flags||!TN(e.parent.parent,32)||!function t(r){if(80===r.kind){if("__esModule"===rT(r))return R4("noEmit",r,eT.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let e=r.elements;for(var n of e)if(!zP(n))return t(n.name)}return!1}(e.name);!r||function t(r){if(80===r.kind){if("let"===r.escapedText)return L(r,eT.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let e=r.elements;for(var n of e)zP(n)||t(n.name)}return!1}(e.name)}(e),RS(e),null!=Z4&&Z4.pop()}function zS(e){return function(e){if(e.dotDotDotToken){var t=e.parent.elements;if(e!==GT(t))return L(e,eT.A_rest_element_must_be_last_in_a_destructuring_pattern);if(g4(t,eT.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return L(e.name,eT.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)j4(e,e.initializer.pos-1,1,eT.A_rest_element_cannot_have_an_initializer)}(e),RS(e)}function qS(e){var t=7&H3(e);(4==t||6==t)&&U<99&&p4(e,16777216),G4(e.declarations,I)}function US(e){if(!f4(e)&&!I4(e.declarationList)){var t=e;if(!function e(t){switch(t.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return e(t.parent)}return!0}(t.parent)){var r=7&V4(t.declarationList);if(r)r=1==r?"let":2==r?"const":4==r?"using":6==r?"await using":Y4.fail("Unknown BlockScope flag"),L(t,eT._0_declarations_can_only_be_declared_inside_a_block,r)}}qS(e.declarationList)}function VS(e,_,t){function u(e,t){for(r(e=Cw(e),t);pT(e)&&(57===e.operatorToken.kind||61===e.operatorToken.kind);)r(e=Cw(e.left),t)}function r(e,t){var r,n,i,a,o,s,c,l=MN(e)?Cw(e.right):e;U8(l)||(MN(l)?u(l,t):1024&(r=l===e?_:HS(l)).flags&&dT(l)&&384&(P(l.expression).resolvedSymbol??j).flags?ce(l,eT.This_condition_will_always_return_0,r.value?"true":"false"):(i=dT(l)&&_x(l.expression),!n0(r,4194304)||i||(i=ge(r,0),n=!!Qx(r),0===i.length&&!n)||!(a=(i=uT(l)?l:dT(l)?l.name:void 0)&&x6(i))&&!n||a&&pT(e.parent)&&function(e,n){for(;pT(e)&&56===e.operatorToken.kind;){if(h9(e.right,function e(t){if(uT(t)){var r=x6(t);if(r&&r===n)return!0}return h9(t,e)}))return!0;e=e.parent}return!1}(e.parent,a)||a&&t&&(o=e,s=i,c=a,!!h9(t,function e(r){if(uT(r)){var t=x6(r);if(t&&t===c){if(uT(o)||uT(s)&&pT(s.parent))return!0;let e=s.parent,t=r.parent;for(;e&&t;){if(uT(e)&&uT(t)||110===e.kind&&110===t.kind)return x6(e)===x6(t);if(dT(e)&&dT(t)){if(x6(e.name)!==x6(t.name))return!1}else if(!PP(e)||!PP(t))return!1;t=t.expression,e=e.expression}}}return h9(r,e)}))||(n?Aa(l,!0,eT.This_condition_will_always_return_true_since_this_0_is_always_defined,Fs(r)):ce(l,eT.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))))}te&&u(e,t)}function WS(e,t){return 16384&e.flags&&ce(t,eT.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function HS(e,t){return WS(A(e,t),e)}function KS(e){N4(e);var t,r,n,i=nv(A(e.expression));261===e.initializer.kind?((t=e.initializer.declarations[0])&&GC(t.name)&&ce(t.name,eT.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),qS(e.initializer)):(r=A(t=e.initializer),209===t.kind||210===t.kind?ce(t,eT.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):xe(131072&(n=hp(gp(n=i))).flags?ae:n,r)?Ub(t,eT.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,eT.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):ce(t,eT.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)),i!==M&&$b(i,126091264)||ce(e.expression,eT.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,ue(i)),I(e.statement),e.locals&&yS(e)}function GS(e){return $S(e.awaitModifier?15:13,tv(e.expression),ie,e.expression)}function $S(e,t,r,n){return B(t)?t:XS(e,t,r,n,!0)||re}function XS(r,n,i,a,o){var s=0!=(2&r);if(n===M)a&&ck(a,n,s);else{var c=2<=U,l=!c&&ee.downlevelIteration,_=ee.noUncheckedIndexedAccess&&!!(128&r);if(c||l||s){var s=ek(n,r,c?a:void 0);if(o&&s&&(o=8&r?eT.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&r?eT.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&r?eT.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&r?eT.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)&&_m(i,s.nextType,a,o),s||c)return _?d0(s&&s.yieldType):s&&s.yieldType}let e=n,t=!1;if(4&r)if(1048576&e.flags?(o=NT(i=n.types,e=>!(402653316&e.flags)))!==i&&(e=ye(o,2)):402653316&e.flags&&(e=M),(t=e!==n)&&131072&e.flags)return _?d0(ae):ae;return ug(e)?(c=K_(e,oe),t&&c?402653316&c.flags&&!ee.noUncheckedIndexedAccess?ae:ye(_?[c,ae,ie]:[c,ae],2):128&r?d0(c):c):(a&&([s,i]=function(e,t){if(t)return e?[eT.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[eT.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];var t=QS(r,0,n,void 0);if(t)return[eT.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1];if(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 1}return}(null==(t=n.symbol)?void 0:t.escapedName))return[eT.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return e?[eT.Type_0_is_not_an_array_type_or_a_string_type,!0]:[eT.Type_0_is_not_an_array_type,!0]}(!!(4&r)&&!t,l),Aa(a,i&&!!Qx(e),s,ue(e))),t?_?d0(ae):ae:void 0)}}function QS(e,t,r,n){if(!B(r))return(r=ek(r,e,n))&&r[dj(t)]}function YS(t=M,r=M,n=ne){if(67359327&t.flags&&180227&r.flags&&180227&n.flags){var i=Iu([t,r,n]);let e=li.get(i);return e||(e={yieldType:t,returnType:r,nextType:n},li.set(i,e)),e}return{yieldType:t,returnType:r,nextType:n}}function ZS(e){let t,r,n;for(var i of e)if(void 0!==i&&i!==_i){if(i===ui)return ui;t=Q4(t,i.yieldType),r=Q4(r,i.returnType),n=Q4(n,i.nextType)}return t||r||n?YS(t&&ye(t),r&&ye(r),n&&ve(n)):_i}function ek(e,t,r){if(B(e))return ui;if(!(1048576&e.flags)){var n=r?{errors:void 0}:void 0,i=rk(e,t,r,n);if(i===_i)return void(r&&(c=ck(r,e,!!(2&t)),null!=n)&&n.errors&&JD(c,...n.errors));if(null!=(c=null==n?void 0:n.errors)&&c.length)for(var a of n.errors)se.add(a);return i}var o,s=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",c=e[s];if(c)return c===_i?void 0:c;let l;for(o of e.types){var _,u=r?{errors:void 0}:void 0,d=rk(o,t,r,u);if(d===_i)return r&&(_=ck(r,e,!!(2&t)),null!=u)&&u.errors&&JD(_,...u.errors),void(e[s]=_i);if(null!=(_=null==u?void 0:u.errors)&&_.length)for(var p of u.errors)se.add(p);l=Q4(l,d)}n=l?ZS(l):_i;return(e[s]=n)===_i?void 0:n}function tk(e,t){var r,n;return e===_i?_i:e===ui?ui:({yieldType:e,returnType:r,nextType:n}=e,t&&Nd(!0),YS(aS(e,t)||re,aS(r,t)||re,n))}function rk(t,r,n,i){if(B(t))return ui;let a=!1;if(2&r){var e=nk(t,fi)||ak(t,fi);if(e){if(e!==_i||!n)return 8&r?tk(e,n):e;a=!0}}if(1&r){let e=nk(t,mi)||ak(t,mi);if(e)if(e===_i&&n)a=!0;else{if(!(2&r))return e;if(e!==_i)return e=tk(e,n),a?e:t.iterationTypesOfAsyncIterable=e}}if(2&r){e=sk(t,fi,n,i,a);if(e!==_i)return e}if(1&r){let e=sk(t,mi,n,i,a);if(e!==_i)return!(2&r)||(e=tk(e,n),a)?e:t.iterationTypesOfAsyncIterable=e}return _i}function nk(e,t){return e[t.iterableCacheKey]}function ik(e,t){e=nk(e,t)||sk(e,t,void 0,void 0,!1);return e===_i?pi:e}function ak(e,t){let r;var n,i,a;return Bc(e,r=t.getGlobalIterableType(!1))||Bc(e,r=t.getGlobalIterableIteratorType(!1))?([n]=Ju(e),{returnType:i,nextType:a}=ik(r,t),e[t.iterableCacheKey]=YS(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(i,void 0)||i,a)):Bc(e,t.getGlobalGeneratorType(!1))?([n,i,a]=Ju(e),e[t.iterableCacheKey]=YS(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(i,void 0)||i,a)):void 0}function ok(e){var t=yd(!1),t=t&&Ks(pe(t),$3(e));return t&&TE(t)?CE(t):"__@"+e}function sk(e,t,r,n,i){var a=me(e,ok(t.iteratorSymbolName)),a=!a||16777216&a.flags?void 0:pe(a);return B(a)?i?ui:e[t.iterableCacheKey]=ui:X4(a=a?ge(a,0):void 0)?(a=lk(ve($4(a,he)),t,r,n,i)??_i,i?a:e[t.iterableCacheKey]=a):i?_i:e[t.iterableCacheKey]=_i}function ck(e,t,r){var n=r?eT.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:eT.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Aa(e,!!Qx(t)||!r&&ZP(e.parent)&&e.parent.expression===e&&kd(!1)!==Kn&&xe(t,kd(!1)),n,ue(t))}function lk(e,t,r,n,i){if(B(e))return ui;let a=_k(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(Bc(e,r))return[n]=Ju(e),r=_k(r,t)||gk(r,t,void 0,void 0,!1),{returnType:r,nextType:i}=r===_i?pi:r,e[t.iteratorCacheKey]=YS(n,r,i);{var n,i;if(Bc(e,t.getGlobalIteratorType(!1))||Bc(e,t.getGlobalGeneratorType(!1)))return[n,r,i]=Ju(e),e[t.iteratorCacheKey]=YS(n,r,i)}}(e,t);return a===_i&&r&&(i=!(a=void 0)),(a=a??gk(e,t,r,n,i))===_i?void 0:a}function _k(e,t){return e[t.iteratorCacheKey]}function uk(e,t){e=Ks(e,"done")||vn;return xe(0===t?vn:xn,e)}function dk(e){return uk(e,0)}function pk(e){return uk(e,1)}function fk(e){var t,r;return B(e)?ui:e.iterationTypesOfIteratorResult||(Bc(e,(ar=ar||pd("IteratorYieldResult",1,!1))||Kn)?(t=Ju(e)[0],e.iterationTypesOfIteratorResult=YS(t,void 0,void 0)):Bc(e,(or=or||pd("IteratorReturnResult",1,!1))||Kn)?(t=Ju(e)[0],e.iterationTypesOfIteratorResult=YS(void 0,t,void 0)):(t=(t=w0(e,dk))!==M?Ks(t,"value"):void 0,r=(r=w0(e,pk))!==M?Ks(r,"value"):void 0,e.iterationTypesOfIteratorResult=t||r?YS(t,r||Cn,void 0):_i))}function mk(a,o,s,c,l){a=me(a,s);if(a||"next"===s){a=!a||"next"===s&&16777216&a.flags?void 0:"next"===s?pe(a):a0(pe(a),2097152);if(B(a))return"next"===s?ui:di;var _,u=a?ge(a,0):H4;if(0===u.length)return c&&(d="next"===s?o.mustHaveANextMethodDiagnostic:o.mustBeAMethodDiagnostic,l?(l.errors??(l.errors=[]),l.errors.push(aT(c,d,s))):ce(c,d,s)),"next"===s?_i:void 0;if(null!=a&&a.symbol&&1===u.length){var d=o.getGlobalGeneratorType(!1),p=o.getGlobalIteratorType(!1),f=(null==(f=null==(f=d.symbol)?void 0:f.members)?void 0:f.get(s))===a.symbol,m=!f&&(null==(m=null==(m=p.symbol)?void 0:m.members)?void 0:m.get(s))===a.symbol;if(f||m)return m=a["mapper"],YS(wf((a=f?d:p).typeParameters[0],m),wf(a.typeParameters[1],m),"next"===s?wf(a.typeParameters[2],m):void 0)}let e,t;for(_ of u)"throw"!==s&&X4(_.parameters)&&(e=Q4(e,rb(_,0))),t=Q4(t,he(_));let r,n;"throw"!==s&&(f=e?ye(e):ne,"next"===s?n=f:"return"===s&&(d=o.resolveIterationType(f,c)||re,r=Q4(r,d)));let i;p=t?ve(t):M,a=fk(o.resolveIterationType(p,c)||re);return r=a===_i?(c&&(l?(l.errors??(l.errors=[]),l.errors.push(aT(c,o.mustHaveAValueDiagnostic,s))):ce(c,o.mustHaveAValueDiagnostic,s)),i=re,Q4(r,re)):(i=a.yieldType,Q4(r,a.returnType)),YS(i,ye(r),n)}}function gk(e,t,r,n,i){r=ZS([mk(e,t,"next",r,n),mk(e,t,"return",r,n),mk(e,t,"throw",r,n)]);return i?r:e[t.iteratorCacheKey]=r}function hk(e,t,r){if(!B(t))return(t=yk(t,r))&&t[dj(e)]}function yk(e,t){var r;return B(e)?ui:(r=t?fi:mi,ek(e,t?2:1,void 0)||lk(e,r,void 0,void 0,!1))}function vk(t){if(!M4(t)){var r,n=t;let e=n;for(;e;){if(RC(e))return void!L(n,eT.Jump_target_cannot_cross_function_boundary);switch(e.kind){case 256:if(n.label&&e.label.escapedText===n.label.escapedText)return void!(251!==n.kind||n7(e.statement,!0)||L(n,eT.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement));break;case 255:if(252!==n.kind||n.label)break;return void!void 0;default:if(n7(e,!1)&&!n.label)return void!void 0}e=e.parent}n.label?(r=252===n.kind?eT.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:eT.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement,L(n,r)):(r=252===n.kind?eT.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:eT.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement,L(n,r))}}function bk(e,t){var r=!!(2&t);return!(1&t)?r?oS(e)||R:e:(t=hk(1,e,r))?r?oS(rS(t)):t:R}function xk(e,t){t=bk(t,zw(e));return t&&(Gb(t,16384)||32769&t.flags)}function Sk(e){M4(e);let r,n=!1,i=A(e.expression);G4(e.caseBlock.clauses,e=>{var t;297!==e.kind||n||(void 0===r?r=e:(L(e,eT.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),296===e.kind&&J((t=e,()=>{var e=A(t.expression);ix(i,e)||bm(e,i,t.expression,void 0)})),G4(e.statements,I),ee.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&W0(e.fallthroughFlowNode)&&ce(e,eT.Fallthrough_case_in_switch)}),e.caseBlock.locals&&yS(e.caseBlock)}function kk(e){M4(e)||uT(e.expression)&&!e.expression.escapedText&&!function(e,t,r){var n=iT(e);if(O4(n))return;{e=k5(n,e.pos);se.add(pD(n,J3(e),0,t,...r))}}(e,eT.Line_break_not_permitted_here,[]),e.expression&&A(e.expression)}function Tk(e,t,r){var n=W_(e);if(0!==n.length){for(var i of s_(e))r&&4194304&i.flags||Ck(e,i,pp(i,8576,!0),Mc(i));var a,t=t.valueDeclaration;if(t&&qC(t))for(var o of t.members)CN(o)||xl(o)||Ck(e,a=F(o),Tx(o.name.expression),Mc(a));if(1!!H_(e,r.keyType)&&!!K_(e,t.keyType))?i:void 0))&&!xe(r.type,t.type))&&ce(o,eT._0_index_type_1_is_not_assignable_to_2_index_type_3,ue(r.keyType),ue(r.type),ue(t.keyType),ue(t.type))}}(e,s)}}function Ck(e,r,n,i){var t=r.valueDeclaration,a=tC(t);if(!a||!UE(a)){var n=G_(e,n),o=2&sT(e)?F7(e.symbol,264):void 0,s=t&&226===t.kind||a&&167===a.kind?t:void 0,c=Xo(r)===e.symbol?t:void 0;for(let t of n){var l,_=t.declaration&&Xo(F(t.declaration))===e.symbol?t.declaration:void 0,_=c||_||(o&&!X4(Zc(e),e=>!!c_(e,r.escapedName)&&!!K_(e,t.keyType))?o:void 0);_&&!xe(i,t.type)&&(l=Ea(_,eT.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,_e(r),ue(i),ue(t.keyType),ue(t.type)),s&&_!==s&&JD(l,aT(s,eT._0_is_declared_here,_e(r))),se.add(l))}}}function wk(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":ce(e,t,e.escapedText)}}function Nk(a){let o=!1;if(a)for(let e=0;e{var e,n,i;t.default?(o=!0,e=t.default,n=a,i=r,function e(t){if(183===t.kind){var r=ad(t);if(262144&r.flags)for(let e=i;e263===e.kind||264===e.kind);if(t&&!(t.length<=1))if(!Ek(t,cl(e).localTypeParameters,mC)){var r,n=_e(e);for(r of t)ce(r.name,eT.All_declarations_of_0_must_have_identical_type_parameters,n)}}}}function Ek(e,t,r){var n,i=K4(t),a=nu(t);for(n of e){var o=r(n),s=o.length;if(s{let t=C[0];var e,r,n=Qc(N),i=D_(n);if(e=i,r=P,(_=ge(e,1)).length&&(_=_[0].declaration)&&kN(_,2)&&(_=oD(e.symbol),g6(r,_)||ce(r,eT.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Fo(e.symbol))),I(P.expression),X4(P.typeArguments)){G4(P.typeArguments,I);for(var a of $c(i,P.typeArguments,P))if(!Jx(P,a.typeParameters))break}var o,s,c,l,_=wl(t,N.thisType),u=(_m(D,_,void 0)?_m(E,em(i),w.name||w,eT.Class_static_side_0_incorrectly_extends_base_class_static_side_1):Ok(w,D,_,eT.Class_0_incorrectly_extends_base_class_1),8650752&n.flags&&(Hc(E)?ge(n,1).some(e=>4&e.flags)&&!TN(w,64)&&ce(w.name||w,eT.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):ce(w.name||w,eT.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),i.symbol&&32&i.symbol.flags||8650752&n.flags||G4(Xc(i,P.typeArguments,P),e=>!E2(e.declaration)&&!tm(he(e),t))&&ce(P.expression,eT.Base_constructors_must_all_have_the_same_return_type),N),d=t,p=fe(d),f=new Map;e:for(var m of p){var g=Lk(m);if(!(4194304&g.flags)){var h=c_(u,g.escapedName);if(h){h=Lk(h);let t=rD(g);if(Y4.assert(!!h,"derived should point to something, even if it is the base class' declaration."),h===g){var y=oD(u.symbol);if(64&t&&(!y||!TN(y,64))){for(var v of Zc(u))if(v!==d){v=c_(v,g.escapedName),v=v&&Lk(v);if(v&&v!==g)continue e}var b=ue(d),x=ue(u),m=_e(m),S=Q4(null==(S=f.get(y))?void 0:S.missedProperties,m);f.set(y,{baseTypeName:b,typeName:x,missedProperties:S})}}else{m=rD(h);if(!(2&t||2&m)){let e;var k,T,y=98308&g.flags,b=98308&h.flags;if(y&&b)(6&tD(g)?null!=(x=g.declarations)&&x.some(e=>jk(e,t)):null!=(S=g.declarations)&&S.every(e=>jk(e,t)))||262144&tD(g)||h.valueDeclaration&&pT(h.valueDeclaration)||((T=4!=y&&4==b)||4==y&&4!=b?(T=T?eT._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:eT._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor,ce(tC(h.valueDeclaration)||h.valueDeclaration,T,_e(g),ue(d),ue(u))):!W||!(T=null==(T=h.declarations)?void 0:T.find(e=>172===e.kind&&!e.initializer))||33554432&h.flags||64&t||64&m||null!=(m=h.declarations)&&m.some(e=>!!(33554432&e.flags))||(m=AE(oD(u.symbol)),k=T.name,!T.exclamationToken&&m&&uT(k)&&te&&Bk(k,u,m))||(T=eT.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,ce(tC(h.valueDeclaration)||h.valueDeclaration,T,_e(g),ue(d))));else{if(Qy(g)){if(Qy(h)||4&h.flags)continue;Y4.assert(!!(98304&h.flags)),e=eT.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else e=98304&g.flags?eT.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:eT.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;ce(tC(h.valueDeclaration)||h.valueDeclaration,e,ue(d),_e(g),ue(u))}}}}}}for([c,l]of f)1===K4(l.missedProperties)?JP(c)?ce(c,eT.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,WT(l.missedProperties),l.baseTypeName):ce(c,eT.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,l.typeName,WT(l.missedProperties),l.baseTypeName):5`'${e}'`).join(", "),o=K4(l.missedProperties)-4,JP(c)?ce(c,eT.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,l.baseTypeName,s,o):ce(c,eT.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,l.typeName,l.baseTypeName,s,o)):(s=$4(l.missedProperties,e=>`'${e}'`).join(", "),JP(c)?ce(c,eT.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,l.baseTypeName,s):ce(c,eT.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,l.typeName,l.baseTypeName,s))})}{var y=w,v=N,b=D,x=E;let e=Lw(y),t=e&&Zc(v),r=null!=t&&t.length?wl(WT(t),v.thisType):void 0,n=Qc(v);for(let t of y.members)EN(t)||(tP(t)&&G4(t.parameters,e=>{U3(e,t)&&Ak(y,x,n,r,v,b,e,!0)}),Ak(y,x,n,r,v,b,t,!1))}var S=Rw(w);if(S)for(var k of S)UN(k.expression)&&!vC(k.expression)||ce(k.expression,eT.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),qx(k),J(function(r){return()=>{var e,t=I_(V(r));de(t)||(el(t)?(e=t.symbol&&32&t.symbol.flags?eT.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:eT.Class_0_incorrectly_implements_interface_1,t=wl(t,N.thisType),_m(D,t,void 0)||Ok(w,D,t,e)):ce(r,eT.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(k));J(()=>{Tk(N,a),Tk(E,a,!0),Ix(w);var e=w;if(te&&T&&!(33554432&e.flags)){var t,r,n,i=AE(e);for(t of e.members)128&ON(t)||CN(t)||!Mk(t)||!(uT(r=t.name)||UE(r)||HE(r))||3&(n=pe(F(t))).flags||Nm(n)||i&&Bk(r,n,i)||ce(t.name,eT.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,d5(r))}})}function Ak(e,t,r,n,i,a,o,s,c=!0){var l=o.name&&x6(o.name)||x6(o);l&&Ik(e,t,r,n,i,a,NN(o),DN(o),CN(o),s,Y3(l),c?o:void 0)}function Ik(e,t,r,n,i,a,o,s,c,l,_,u){var d=oT(e),e=!!(33554432&e.flags);if(n&&(o||ee.noImplicitOverride)){var p=$3(_),r=c?r:n,c=me(c?t:a,p),t=me(r,p),a=ue(n);if(c&&!t&&o)return u&&((p=kv(_,r))?ce(u,d?eT.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:eT.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,a,_e(p)):ce(u,d?eT.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:eT.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,a)),2;if(c&&null!=t&&t.declarations&&ee.noImplicitOverride&&!e){n=X4(t.declarations,DN);if(o)return 0;if(!n)return u&&ce(u,l?d?eT.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:eT.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?eT.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:eT.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,a),1;if(s&&n)return u&&ce(u,eT.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,a),1}}else if(o)return u&&(_=ue(i),ce(u,d?eT.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:eT.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,_)),2;return 0}function Ok(e,t,r,n){let i=!1;for(var a of e.members)if(!CN(a)){let e=a.name&&x6(a.name)||x6(a);var o,s;e&&(o=me(t,e.escapedName),s=me(r,e.escapedName),o)&&s&&(_m(pe(o),pe(s),a.name||a,void 0,()=>gD(void 0,eT.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,_e(e),ue(t),ue(r)))||(i=!0))}i||_m(t,r,e.name||e,n)}function Lk(e){return 1&tD(e)?e.links.target:e}function jk(e,t){return 64&t&&(!QE(e)||!e.initializer)||iF(e.parent)}function Rk(t,e){var r,n,i=Zc(t);if(i.length<2)return 1;let a=new Map,o=(G4(hl(t).declaredProperties,e=>{a.set(e.escapedName,{prop:e,containingType:t})}),!0);for(r of i)for(n of fe(wl(r,t.thisType))){var s,c,l=a.get(n.escapedName);l?l.containingType!==t&&(s=l.prop,c=n,0===ng(s,c,rm))&&(o=!1,s=ue(l.containingType),c=ue(r),l=gD(void 0,eT.Named_property_0_of_types_1_and_2_are_not_identical,_e(n),s,c),l=gD(l,eT.Interface_0_cannot_simultaneously_extend_types_1_and_2,ue(t),s,c),se.add(y5(iT(e),e,l))):a.set(n.escapedName,{prop:n,containingType:r})}return o}function Mk(e){return 172===e.kind&&!DN(e)&&!e.exclamationToken&&!e.initializer}function Bk(e,t,r){e=HE(e)?cT.createElementAccessExpression(cT.createThis(),e.expression):cT.createPropertyAccessExpression(cT.createThis(),e),tE(e.expression,e),tE(e,r),e.flowNode=r.returnFlowNode,r=G0(e,t,Mg(t));return!Nm(r)}function Jk(a){f4(a)||!function(e){let t=!1;if(e.heritageClauses)for(var r of e.heritageClauses){if(96!==r.token)return Y4.assert(119===r.token),L4(r,eT.Interface_declaration_cannot_have_implements_clause);if(t)return L4(r,eT.extends_clause_already_seen);t=!0,x4(r)}}(a),Nk(a.typeParameters),J(()=>{wk(a.name,eT.Interface_name_cannot_be_0),Xx(a);var e=F(a),t=(Dk(e),F7(e,264));if(a===t){var r=cl(e),n=wl(r);if(Rk(r,a.name)){for(var i of Zc(r))_m(n,wl(i,r.thisType),a.name,eT.Interface_0_incorrectly_extends_interface_1);Tk(r,e)}}Ax(a)}),G4(Mw(a),e=>{UN(e.expression)&&!vC(e.expression)||ce(e.expression,eT.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),qx(e)}),G4(a.members,I),J(()=>{Ix(a),yS(a)})}function zk(r){var n=P(r);if(!(1024&n.flags)){n.flags|=1024;let e=0,t;for(var i of r.members){var a=function(e,t,r){f5(e.name)?ce(e.name,eT.Computed_property_names_are_not_allowed_in_enums):sE(n=m5(e.name))&&!iE(n)&&ce(e.name,eT.An_enum_member_cannot_have_a_numeric_name);if(e.initializer)return function(e){var t=E5(e.parent),r=e.initializer,n=dt(r,e);void 0!==n.value?t&&"number"==typeof n.value&&!isFinite(n.value)?ce(r,isNaN(n.value)?eT.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:eT.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):SD(ee)&&"string"==typeof n.value&&!n.isSyntacticallyString&&ce(r,eT._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,rT(e.parent.name)+"."+m5(e.name)):t?ce(r,eT.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?ce(r,eT.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):_m(A(r),oe,r,eT.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values);return n}(e);if(33554432&e.parent.flags&&!E5(e.parent))return EE(void 0);if(void 0===t)return ce(e.name,eT.Enum_member_must_have_initializer),EE(void 0);{var n;SD(ee)&&null!=r&&r.initializer&&("number"==typeof(n=H6(r)).value&&!n.resolvedOtherFiles||ce(e.name,eT.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled))}return EE(t)}(i,e,t);P(i).enumMemberValue=a,e="number"==typeof a.value?a.value+1:void 0,t=i}}}function qk(e,t){var r=Ao(e,111551,!0);if(r){if(80===e.kind){var n=e;if(iE(n.escapedText)&&r===dd(n.escapedText,111551,void 0))return EE(+n.escapedText,!1)}if(8&r.flags)return t?Uk(e,r,t):H6(r.valueDeclaration);if(t1(r)){n=r.valueDeclaration;if(n&&eF(n)&&!n.type&&n.initializer&&(!t||n!==t&&Ga(n,t)))return e=dt(n.initializer,n),t&&iT(t)!==iT(n)?EE(e.value,!1,!0,!0):EE(e.value,e.isSyntacticallyString,e.resolvedOtherFiles,!0)}}return EE(void 0)}function Uk(e,t,r){var n,i=t.valueDeclaration;return i&&i!==r?Ga(i,r)?(n=H6(i),r.parent!==i.parent?EE(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0):n):(ce(e,eT.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),EE(0)):(ce(e,eT.Property_0_is_used_before_being_assigned,_e(t)),EE(void 0))}function Vk(n){J(()=>{var e=n,r=(f4(e),LS(e,e.name),Xx(e),e.members.forEach(Wk),zk(e),F(e)),t=F7(r,e.kind);if(e===t){if(r.declarations&&1{oF(e)&&E5(e)!==t&&ce(tC(e),eT.Enum_declarations_must_all_be_const_or_non_const)})}let t=!1;G4(r.declarations,e=>{return 266===e.kind&&!!e.members.length&&void((e=e.members[0]).initializer||(t?ce(e.name,eT.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):t=!0))})}})}function Wk(e){UE(e.name)&&ce(e,eT.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&A(e.initializer)}function Hk(a){a.body&&(I(a.body),n5(a)||yS(a)),J(function(){var e=n5(a),t=33554432&a.flags;e&&!t&&ce(a.name,eT.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var r=Z7(a),n=r?eT.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:eT.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(!e6(a,n)){f4(a)||t||11!==a.name.kind||L(a.name,eT.Only_ambient_modules_can_use_quoted_names),uT(a.name)&&LS(a,a.name),Xx(a);var n=F(a);if(512&n.flags&&!t&&cj(a,ND(ee))&&(SD(ee)&&!iT(a).externalModuleIndicator&&ce(a.name,eT.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,yt),1<(null==(t=n.declarations)?void 0:t.length)&&((t=function(e){if(e=e.declarations)for(var t of e)if((263===t.kind||262===t.kind&&H7(t.body))&&!(33554432&t.flags))return t}(n))&&(iT(a)!==iT(t)?ce(a.name,eT.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):a.pos95===e.kind))&&ce(t,eT.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)),r)if(i5(a)){if((e||33554432&F(a).flags)&&a.body)for(var i of a.body.statements)!function t(r,n){switch(r.kind){case 243:for(var i of r.declarationList.declarations)t(i,n);break;case 277:case 278:L4(r,eT.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:L4(r,eT.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let e=r.name;if(GC(e)){for(var a of e.elements)t(a,n);break}}}(i,e)}else w5(a.parent)?e?ce(a.name,eT.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):B3(Kw(a.name))&&ce(a.name,eT.Ambient_module_declaration_cannot_specify_relative_module_name):ce(a.name,e?eT.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:eT.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}})}function Kk(t){var e=ew(t);if(e&&!W7(e))if(qE(e)){var r=268===t.parent.kind&&Z7(t.parent.parent);if(307===t.parent.kind||r){if(!r||!B3(e.text)||Rs(t)){if(_F(t)||!t.attributes)return 1;{var n,i=118===t.attributes.token?eT.Import_attribute_values_must_be_string_literal_expressions:eT.Import_assertion_values_must_be_string_literal_expressions;let e=!1;for(n of t.attributes.elements)qE(n.value)||(e=!0,ce(n.value,i));return!e}}ce(t,eT.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name)}else ce(e,278===t.kind?eT.Export_declarations_are_not_permitted_in_a_namespace:eT.Import_declarations_in_a_namespace_cannot_reference_a_module)}else ce(e,eT.String_literal_expected)}function Gk(e){var t=Co(i=F(e));if(t!==j){var r,n,i=S(i.exportSymbol||i);if(!oT(e)||111551&t.flags||EC(e)){var a=wo(t);if(a&((1160127&i.flags?111551:0)|(788968&i.flags?788968:0)|(1920&i.flags?1920:0))?ce(e,281===e.kind?eT.Export_declaration_conflicts_with_exported_declaration_of_0:eT.Import_declaration_conflicts_with_local_declaration_of_0,_e(i)):281!==e.kind&&ee.isolatedModules&&!tT(e,EC)&&1160127&i.flags&&ce(e,eT.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,_e(i),yt),SD(ee)&&!EC(e)&&!(33554432&e.flags)){var o,s=Eo(i),c=!(111551&a);if(c||s)switch(e.kind){case 273:case 276:case 271:ee.verbatimModuleSyntax&&(Y4.assertIsDefined(e.name,"An ImportClause with a symbol should have a name"),Qa(ce(e,ee.verbatimModuleSyntax&&T8(e)?eT.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:c?eT._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:eT._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,o=rT(276===e.kind&&e.propertyName||e.name)),c?void 0:s,o)),c&&271===e.kind&&kN(e,32)&&ce(e,eT.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,yt);break;case 281:!ee.verbatimModuleSyntax&&iT(s)===iT(e)||(o=rT(e.propertyName||e.name),Qa(c?ce(e,eT.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,yt):ce(e,eT._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,o,yt),c?void 0:s,o))}!ee.verbatimModuleSyntax||271===e.kind||oT(e)||1!==v&&1!==iT(e).impliedNodeFormat||ce(e,eT.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}mF(e)&&Oa(a=$k(i,e))&&a.declarations&&ja(e,a.declarations,a.escapedName)}else a=NC(e)?e.propertyName||e.name:eC(e)?e.name:e,Y4.assert(280!==e.kind),281===e.kind?(n=ce(a,eT.Types_cannot_appear_in_export_declarations_in_JavaScript_files),(r=null==(r=null==(r=iT(e).symbol)?void 0:r.exports)?void 0:r.get((e.propertyName||e.name).escapedText))===t&&(t=null==(t=r.declarations)?void 0:t.find(m7))&&JD(n,aT(t,eT._0_is_automatically_exported_here,X3(r.escapedName)))):(Y4.assert(260!==e.kind),r=((n=tT(e,h3(uF,_F)))&&(null==(t=Z8(n))?void 0:t.text))??"...",n=X3(uT(a)?a.escapedText:i.escapedName),ce(a,eT._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,n,`import("${r}").`+n))}}function $k(e,t){if(!(2097152&e.flags)||Oa(e)||!io(e))return e;var r=Co(e);if(r!==j)for(;2097152&e.flags;){var n=Ty(e);if(!n)break;if(n===r)break;if(n.declarations&&K4(n.declarations)){if(Oa(n)){ja(t,n.declarations,n.escapedName);break}if(e===r)break;e=n}}return r}function Xk(e){LS(e,e.name),Gk(e),276===e.kind&&"default"===rT(e.propertyName||e.name)&&kD(ee)&&4!==v&&(v<5||1===iT(e).impliedNodeFormat)&&p4(e,131072)}function Qk(e){var t=e.attributes;if(t){var r=hd(!0),r=(r!==zn&&_m(xc(t),Rg(r,32768),t),dJ(e)),n=mJ(t,r?L:void 0),i=118===e.attributes.token;if(!r||!n)return 99!==(199===v&&e.moduleSpecifier&&_o(e.moduleSpecifier))&&99!==v&&200!==v?L(t,i?199===v?eT.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:eT.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:199===v?eT.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:eT.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve):n9(e)||(uF(e)?null==(r=e.importClause)?void 0:r.isTypeOnly:e.isTypeOnly)?L(t,i?eT.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:eT.Import_assertions_cannot_be_used_with_type_only_imports_or_exports):void(n&&L(t,eT.resolution_mode_can_only_be_set_for_type_only_imports))}}function Yk(e){var t;e6(e,oT(e)?eT.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:eT.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)||(!f4(e)&&e.modifiers&&L4(e,eT.An_import_declaration_cannot_have_modifiers),Kk(e)&&(t=e.importClause)&&!function(e){var t;if(e.isTypeOnly&&e.name&&e.namedBindings)return L(e,eT.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(e.isTypeOnly&&275===(null==(t=e.namedBindings)?void 0:t.kind))return J4(e.namedBindings);return}(t)&&(t.name&&Xk(t),t.namedBindings)&&(274===t.namedBindings.kind?(Xk(t.namedBindings),4!==v&&(v<5||1===iT(e).impliedNodeFormat)&&kD(ee)&&p4(e,65536)):Oo(e,e.moduleSpecifier)&&G4(t.namedBindings.elements,Xk)),Qk(e))}function Zk(e){var t,r;e6(e,oT(e)?eT.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:eT.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)||(!f4(e)&&SN(e)&&L4(e,eT.An_export_declaration_cannot_have_modifiers),function(e){var t;if(e.isTypeOnly&&279===(null==(t=e.exportClause)?void 0:t.kind))return J4(e.exportClause)}(e),e.moduleSpecifier&&!Kk(e)||(e.exportClause&&!fF(e.exportClause)?(G4(e.exportClause.elements,t6),t=!(r=268===e.parent.kind&&Z7(e.parent.parent))&&268===e.parent.kind&&!e.moduleSpecifier&&33554432&e.flags,307===e.parent.kind||r||t||ce(e,eT.Export_declarations_are_not_permitted_in_a_namespace)):((r=Oo(e,e.moduleSpecifier))&&zo(r)?ce(e.moduleSpecifier,eT.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,_e(r)):e.exportClause&&Gk(e.exportClause),4!==v&&(v<5||1===iT(e).impliedNodeFormat)&&(e.exportClause?kD(ee)&&p4(e,65536):p4(e,32768)))),Qk(e))}function e6(e,t){var r=307===e.parent.kind||268===e.parent.kind||267===e.parent.kind;return r||L4(e,t),!r}function t6(e){var t,r;Gk(e),wD(ee)&&qs(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier?kD(ee)&&4!==v&&(v<5||1===iT(e).impliedNodeFormat)&&"default"===rT(e.propertyName||e.name)&&p4(e,131072):(t=e.propertyName||e.name,(r=St(t,t.escapedText,2998271,void 0,!0))&&(r===ft||r===mt||r.declarations&&w5(Hs(r.declarations[0])))?ce(t,eT.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,rT(t)):c1(e,7))}function r6(e){var t,e=F(e),r=le(e);r.exportsChecked||((t=e.exports.get("export="))&&j7(e.exports,(e,t)=>"export="!==t)&&(!(t=io(t)||t.valueDeclaration)||Rs(t)||oT(t)||ce(t,eT.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)),(t=Ho(e))&&t.forEach(({declarations:e,flags:t},r)=>{if("__export"!==r&&!(1920&t)){var n=wT(e,g3(rj,y3(iF)));if(!(524288&t&&n<=2)&&1oT(e)&&lD(e)&&(z8(e.expression)||U8(e.expression)))}function I(e){var t;e&&(t=ke,l=0,function(r){cw(r)&&G4(r.jsDoc,({comment:e,tags:t})=>{i6(e),G4(t,e=>{i6(e.comment),oT(r)&&I(e)})});var e=r.kind;if(x)switch(e){case 267:case 263:case 264:case 262:x.throwIfCancellationRequested()}243<=e&&e<=259&&sw(r)&&r.flowNode&&!W0(r.flowNode)&&Fa(!1===ee.allowUnreachableCode,r,eT.Unreachable_code_detected);switch(e){case 168:return Nx(r);case 169:return Dx(r);case 172:return Ox(r);case 171:return function(e){UE(e.name)&&ce(e,eT.Private_identifiers_are_not_allowed_outside_class_bodies),Ox(e)}(r);case 185:case 184:case 179:case 180:case 181:return Px(r);case 174:case 173:return function(e){P4(e)||k4(e.name),ZE(e)&&e.asteriskToken&&uT(e.name)&&"constructor"===rT(e.name)&&ce(e.name,eT.Class_constructor_may_not_be_a_generator),hS(e),TN(e,64)&&174===e.kind&&e.body&&ce(e,eT.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,d5(e.name)),UE(e.name)&&!Q5(e)&&ce(e,eT.Private_identifiers_are_not_allowed_outside_class_bodies),Lx(e)}(r);case 175:return function(e){f4(e),h9(e,I)}(r);case 176:return jx(r);case 177:case 178:return Mx(r);case 183:return qx(r);case 182:return Ex(r);case 186:return function(e){sd(e)}(r);case 187:return function(t){G4(t.members,I),J(function(){var e=Zp(t);Tk(e,e.symbol),Ix(t),Ax(t)})}(r);case 188:return function(e){I(e.elementType)}(r);case 189:return function(e){let t=!1,r=!1;for(var n of e.elements){let e=Ad(n);if(8&e){var i=V(n.type);if(!ug(i)){ce(n,eT.A_rest_element_type_must_be_an_array_type);break}(og(i)||Se(i)&&4&i.target.combinedFlags)&&(e|=4)}if(4&e){if(r){L(n,eT.A_rest_element_cannot_follow_another_rest_element);break}r=!0}else if(2&e){if(r){L(n,eT.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){L(n,eT.A_required_element_cannot_follow_an_optional_element);break}}G4(e.elements,I),V(e)}(r);case 192:case 193:return function(e){G4(e.types,I),V(e)}(r);case 196:case 190:case 191:return I(r.type);case 197:return function(e){hf(e)}(r);case 198:return Hx(r);case 194:return function(e){h9(e,I)}(r);case 195:return function(e){tT(e,e=>e.parent&&194===e.parent.kind&&e.parent.extendsType===e)||L(e,eT.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),I(e.typeParameter);var t=F(e.typeParameter);if(t.declarations&&1[e])){var i,a=_e(t);for(i of n)ce(i.name,eT.All_declarations_of_0_must_have_identical_constraints,a)}}}yS(e)}(r);case 203:return function(e){for(var t of e.templateSpans)I(t.type),_m(V(t.type),In,t.type);V(e)}(r);case 205:return function(e){I(e.argument),e.attributes&&mJ(e.attributes,L),Ux(e)}(r);case 202:return function(e){e.dotDotDotToken&&e.questionToken&&L(e,eT.A_tuple_member_cannot_be_both_optional_and_rest),190===e.type.kind&&L(e.type,eT.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&&L(e.type,eT.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),I(e.type),V(e)}(r);case 328:return function(e){var t,r,n=pw(e);n&&(nF(n)||JP(n))?(t=dC(n).filter(GF),Y4.assert(0jC(e)?"quit":256===e.kind&&e.label.escapedText===t.label.escapedText&&(L(t.label,eT.Duplicate_label_0,K7(t.label)),!0)),I(t.statement)}(r);case 257:return kk(r);case 258:return function(e){M4(e),ES(e.tryBlock);var t=e.catchClause;if(t){if(t.variableDeclaration){var r=t.variableDeclaration,n=(RS(r),hN(r));if(n){var i=V(n);!i||3&i.flags||L4(n,eT.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(r.initializer)L4(r.initializer,eT.Catch_clause_variable_cannot_have_an_initializer);else{let r=t.block.locals;r&&R7(t.locals,e=>{var t=r.get(e);null!=t&&t.valueDeclaration&&0!=(2&t.flags)&&L(t.valueDeclaration,eT.Cannot_redeclare_identifier_0_in_catch_clause,X3(e))})}}ES(t.block)}e.finallyBlock&&ES(e.finallyBlock)}(r);case 260:return JS(r);case 208:return zS(r);case 263:return function(e){var t=bT(e.modifiers,$E);b&&t&&X4(e.members,e=>wN(e)&&FC(e))&&L(t,eT.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||TN(e,2048)||L4(e,eT.A_class_declaration_without_the_default_modifier_must_have_a_name),Fk(e),G4(e.members,I),yS(e)}(r);case 264:return Jk(r);case 265:return function(e){f4(e),wk(e.name,eT.Type_alias_name_cannot_be_0),Xx(e),Nk(e.typeParameters),141===e.type.kind?nj.has(e.name.escapedText)&&1===K4(e.typeParameters)||ce(e.type,eT.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(I(e.type),yS(e))}(r);case 266:return Vk(r);case 267:return Hk(r);case 272:return Yk(r);case 271:return function(e){var t,r;!e6(e,oT(e)?eT.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:eT.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(f4(e),T8(e)||Kk(e))&&(Xk(e),c1(e,6),283!==e.moduleReference.kind?((t=Co(F(e)))!==j&&(111551&(t=wo(t))&&(1920&Ao(r=VN(e.moduleReference),112575).flags||ce(r,eT.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,d5(r))),788968&t)&&wk(e.name,eT.Import_name_cannot_be_0),e.isTypeOnly&&L(e,eT.An_import_alias_cannot_use_import_type)):!(5<=v&&200!==v&&void 0===iT(e).impliedNodeFormat)||e.isTypeOnly||33554432&e.flags||L(e,eT.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))}(r);case 278:return Zk(r);case 277:return function(e){var t,r,n,i,a,o;e6(e,e.isExportEquals?eT.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:eT.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)||(267!==(t=(307===e.parent.kind?e:e.parent).parent).kind||Z7(t)?(!f4(e)&&xN(e)&&L4(e,eT.An_export_assignment_cannot_have_modifiers),(r=hN(e))&&_m(lx(e.expression),V(r),e.expression),r=!e.isExportEquals&&!(33554432&e.flags)&&ee.verbatimModuleSyntax&&(1===v||1===iT(e).impliedNodeFormat),80===e.expression.kind?((i=rs(Ao(n=e.expression,-1,!0,!0,e)))?(c1(e,3),a=Eo(i,111551),111551&wo(i)?(lx(n),r||33554432&e.flags||!ee.verbatimModuleSyntax||!a||ce(n,e.isExportEquals?eT.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:eT.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,rT(n))):r||33554432&e.flags||!ee.verbatimModuleSyntax||ce(n,e.isExportEquals?eT.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:eT.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,rT(n)),r||33554432&e.flags||!SD(ee)||111551&i.flags||(o=wo(i,!1,!0),!(2097152&i.flags&&788968&o)||111551&o||a&&iT(a)===iT(e)?a&&iT(a)!==iT(e)&&Qa(ce(n,e.isExportEquals?eT._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:eT._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,rT(n),yt),a,rT(n)):ce(n,e.isExportEquals?eT._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:eT._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,rT(n),yt))):lx(n),wD(ee)&&qs(n,!0)):lx(e.expression),r&&ce(e,eT.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),r6(t),33554432&e.flags&&!UN(e.expression)&&L(e.expression,eT.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),e.isExportEquals&&(5<=v&&200!==v&&(33554432&e.flags&&99===iT(e).impliedNodeFormat||!(33554432&e.flags)&&1!==iT(e).impliedNodeFormat)?L(e,eT.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==v||33554432&e.flags||L(e,eT.Export_assignment_is_not_supported_when_module_flag_is_system))):e.isExportEquals?ce(e,eT.An_export_assignment_cannot_be_used_in_a_namespace):ce(e,eT.A_default_export_can_only_be_used_in_an_ECMAScript_style_module))}(r);case 242:case 259:return M4(r);case 282:(function(e){mS(e)})(r)}}(ke=e),ke=t)}function i6(e){i3(e)&&G4(e,e=>{T7(e)&&I(e)})}function a6(e){var t,r,n;oT(e)||(qF(e)||zF(e)?(t=I3(qF(e)?54:58),r=e.postfix?eT._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:eT._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,n=V(e.type),L(e,r,t,ue(zF(e)&&n!==M&&n!==Cn?ye(Q4([n,ie],e.postfix?void 0:gn)):n))):L(e,eT.JSDoc_types_can_only_be_used_inside_documentation_comments))}function o6(e){var t=P(iT(e));1&t.flags?Y4.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function s6(e){null!=Z4&&Z4.push(Z4.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});var t,r,n,i,a,o=ke;switch(l=0,(ke=e).kind){case 213:case 214:case 215:case 170:case 286:Bv(e);break;case 218:case 219:case 174:case 173:r=e,Y4.assert(174!==r.kind||H5(r)),i=zw(r),a=pu(r),Rb(r,a),r.body&&(yN(r)||he(au(r)),241===r.body.kind?I(r.body):(n=A(r.body),(a=a&&bk(a,i))&&(r=a2(r.body),um(2==(3&i)?Zx(n,!1,r,eT.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):n,a,r,r))));break;case 177:case 178:Mx(e);break;case 231:G4((i=e).members,I),yS(i);break;case 168:(iF((n=e).parent)||qC(n.parent)||aF(n.parent))&&(r=24576&Hm(a=sl(F(n))))&&(s=F(n.parent),!aF(n.parent)||52&sT(cl(s))?8192!=r&&16384!=r||(null!=Z4&&Z4.push(Z4.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:cl(s).id,id:a.id}),t=Vm(s,a,16384==r?ri:ti),s=Vm(s,a,16384==r?ti:ri),h=r=a,_m(t,s,n,eT.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),h=r,null!=Z4&&Z4.pop()):ce(n,eT.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types));break;case 285:Hy(e);break;case 284:Hy((t=e).openingElement),Dy(t.closingElement.tagName)?Oy(t.closingElement):A(t.closingElement.tagName),Py(t);break;case 216:case 234:case 217:{var s=e;var c=U2(s)["type"];let t=IP(s)?c:s,r=(s=P(s),Y4.assertIsDefined(s.assertionExpressionType),$g(kg(s.assertionExpressionType))),n=V(c);de(n)||J(()=>{var e=Zg(r);cm(n,e)||bm(r,n,t,eT.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)})}break;case 222:A(e.expression);break;case 226:YN(e)&&Bv(e)}ke=o,null!=Z4&&Z4.pop()}function c6(e){var n;{var t;null!=Z4&&Z4.push(Z4.Phase.Check,"checkSourceFile",{path:e.path},!0),x3("beforeCheck"),1&(e=P(n=e)).flags||VD(n,ee,p)||(33554432&(t=n).flags&&function(e){for(var t of e.statements)if((u7(t)||243===t.kind)&&function(e){if(264===e.kind||265===e.kind||272===e.kind||271===e.kind||278===e.kind||277===e.kind||270===e.kind||TN(e,2208))return;return L4(e,eT.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}(t))return}(t),DT(Qi),DT(Yi),DT(Zi),DT(ea),DT(ta),G4(n.statements,I),I(n.endOfFileToken),(t=P(t=n)).deferredNodes&&t.deferredNodes.forEach(s6),t.deferredNodes=void 0,N5(n)&&yS(n),J(()=>{var e,t,r;if(n.isDeclarationFile||!ee.noUnusedLocals&&!ee.noUnusedParameters||vS(_6(n),(e,t,r)=>{!z7(e)&&l6(t,!!(33554432&e.flags))&&se.add(r)}),!n.isDeclarationFile)for(e of ta)null!=(t=F(e))&&t.isReferenced||(t=V3(e),Y4.assert(Zw(t),"Only parameter declaration should be checked here"),r=aT(e.name,eT._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,d5(e.name),d5(e.propertyName)),t.type||JD(r,pD(iT(t),t.end,1,eT.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,d5(e.propertyName))),se.add(r))}),N5(n)&&r6(n),Qi.length&&(G4(Qi,FS),DT(Qi)),Yi.length&&(G4(Yi,AS),DT(Yi)),Zi.length&&(G4(Zi,IS),DT(Zi)),ea.length&&(G4(ea,OS),DT(ea)),e.flags|=1)}x3("afterCheck"),S3("Check","beforeCheck","afterCheck"),null!=Z4&&Z4.pop()}function l6(e,t){if(!t)switch(e){case 0:return ee.noUnusedLocals;case 1:return ee.noUnusedParameters;default:return Y4.assertNever(e)}}function _6(e){return hi.get(e.path)||H4}function u6(e,t){try{x=t;var r,n,i,a=e;return a?(d6(),r=se.getGlobalDiagnostics(),n=r.length,p6(a),a=se.getDiagnostics(a.fileName),(i=se.getGlobalDiagnostics())!==r?LT(MT(r,i,yD),a):0===n&&0e(),c6(e),J=t}function f6(e){for(;166===e.parent.kind;)e=e.parent;return 183===e.parent.kind}function m6(e,t){let r,n=Q5(e);for(;n&&!(r=t(n));)n=Q5(n);return r}function g6(e,t){return m6(e,e=>e===t)}function h6(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 y6(t){if(Dw(t))return $o(t.parent);if(oT(t)&&211===t.parent.kind&&t.parent===t.parent.parent.left&&!UE(t)&&!MF(t)&&!function(e){if(110===e.expression.kind){e=t8(e,!1,!1);if(jC(e)){var e=I1(e);if(e)return(e=L1(e,ty(e,void 0)))&&!B(e)}}}(t.parent)){var r=function(e){switch(V8(e.parent.parent)){case 1:case 3:return $o(e.parent);case 5:if(dT(e.parent)&&_D(e.parent)===e)return;case 4:case 2:return F(e.parent.parent)}}(t);if(r)return r}if(277===t.parent.kind&&UN(t)){r=Ao(t,2998271,!0);if(r&&r!==j)return r}else if(OC(t)&&h6(t))return r=Bw(t,271),Y4.assert(void 0!==r),Po(t,!0);if(OC(t)){var r=function(e){let t=e.parent;for(;WE(t);)t=(e=t).parent;if(t&&205===t.kind&&t.qualifier===e)return t}(t);if(r)return V(r),(r=P(t).resolvedSymbol)===j?void 0:r}for(;QN(t);)t=t.parent;if(function(e){for(;211===e.parent.kind;)e=e.parent;return 233===e.parent.kind}(t)){let e=0;233===t.parent.kind?(e=O5(t)?788968:111551,qN(t.parent)&&(e|=111551)):e=1920,e|=2097152;r=UN(t)?Ao(t,e,!0):void 0;if(r)return r}if(341===t.parent.kind)return lw(t.parent);if(168===t.parent.kind&&345===t.parent.parent.kind)return Y4.assert(!oT(t)),(r=gw(t.parent))&&r.symbol;if(h8(t)){if(W7(t))return;var r=tT(t,h3(T7,RF,MF)),e=r?901119:111551;if(80===t.kind){if(g8(t)&&Dy(t))return(n=Oy(t.parent))===j?void 0:n;var n=Ao(t,e,!0,!0,dw(t));if(!n&&r){var i=tT(t,h3(qC,iF));if(i)return b6(t,!0,F(i))}if(n&&r){var i=fw(t);if(i&&OF(i)&&i===n.valueDeclaration)return Ao(t,e,!0,!0,iT(i))||n}return n}if(UE(t))return fv(t);if(211===t.kind||166===t.kind)return(e=P(t)).resolvedSymbol||(211===t.kind?(lv(t,0),e.resolvedSymbol||(e.resolvedSymbol=v6(lx(t.expression),dp(t.name)))):_v(t,0),!e.resolvedSymbol&&r&&WE(t)?b6(t):e.resolvedSymbol);if(MF(t))return b6(t)}else if(f6(t))return(i=Ao(t,183===t.parent.kind?788968:1920,!1,!0))&&i!==j?i:Wu(t);return 182===t.parent.kind?Ao(t,1):void 0}function v6(e,t){var r,n,i,t=G_(e,t);if(t.length&&e.members)return r=Tu(o_(e).members),t===W_(e)?r:r?(r=le(r),n=$4(AT(t,e=>e.declaration),oj).join(","),r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(n)?r.filteredIndexSymbolCache.get(n):((i=O(131072,"__index")).declarations=AT(t,e=>e.declaration),i.parent=e.aliasSymbol||e.symbol||x6(i.declarations[0].parent),r.filteredIndexSymbolCache.set(n,i),i)):void 0}function b6(t,r,n){if(OC(t)){let e=Ao(t,901119,r,!0,dw(t));if(e=!e&&uT(t)&&n?S(Ka(Wo(n),t.escapedText,901119)):e)return e}r=uT(t)?n:b6(t.left,r,n),n=(uT(t)?t:t.right).escapedText;if(r)return t=111551&r.flags&&me(pe(r),"prototype"),me(t?pe(t):cl(r),n)}function x6(e,t){if(LF(e))return b9(e)?S(e.symbol):void 0;var r,n=e["parent"],i=n.parent;if(!(67108864&e.flags)){if(uj(e))return a=F(n),NC(e.parent)&&e.parent.propertyName===e?Ty(a):a;if(Ew(e))return F(n.parent);if(80===e.kind){if(h6(e))return y6(e);if(208===n.kind&&206===i.kind&&e===n.propertyName){var a=me(S6(i),e.escapedText);if(a)return a}else if(WP(n)&&n.name===e)return 105===n.keywordToken&&"target"===rT(e)?X2(n).symbol:102===n.keywordToken&&"meta"===rT(e)?md().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 211:case 166:if(!gN(e))return y6(e);case 110:var o=t8(e,!1,!1);if(jC(o)){var o=au(o);if(o.thisParameter)return o.thisParameter}if(y8(e))return A(e).symbol;case 197:return hf(e).symbol;case 108:return A(e).symbol;case 137:o=e.parent;return o&&176===o.kind?o.parent.symbol:void 0;case 11:case 15:if(x8(e.parent.parent)&&S8(e.parent.parent)===e||(272===e.parent.kind||278===e.parent.kind)&&e.parent.moduleSpecifier===e||oT(e)&&n9(e.parent)&&e.parent.moduleSpecifier===e||oT(e)&&E8(e.parent,!1)||A5(e.parent)||SP(e.parent)&&I5(e.parent.parent)&&e.parent.parent.argument===e.parent)return Oo(e,e,t);if(PP(n)&&W8(n)&&n.arguments[1]===e)return F(n);case 9:o=EP(n)?n.argumentExpression===e?Tx(n.expression):void 0:SP(n)&&bP(i)?V(i.objectType):void 0;return o&&me(o,$3(e.text));case 90:case 100:case 39:case 86:return $o(e.parent);case 205:return I5(e)?x6(e.argument.literal,t):void 0;case 95:return gF(e.parent)?Y4.checkDefined(e.parent.symbol):void 0;case 102:case 105:return WP(e.parent)?$2(e.parent).symbol:void 0;case 104:return pT(e.parent)?(null==(r=Zb(o=Tx(e.parent.right)))?void 0:r.symbol)??o.symbol:void 0;case 236:return A(e).symbol;case 295:if(g8(e)&&Dy(e))return(r=Oy(e.parent))===j?void 0:r;default:return}}}function S6(e){if(LF(e)&&!b9(e))return R;if(67108864&e.flags)return R;var t=JN(e),r=t&&tl(F(t.class));if(O5(e))return n=V(e),r?wl(n,r.thisType):n;if(h8(e))return T6(e);if(r&&!t.isImplements)return(n=UT(Zc(r)))?wl(n,r.thisType):R;if(_E(e))return cl(F(e));if(80===(t=e).kind&&_E(t.parent)&&tC(t.parent)===t)return(n=x6(e))?cl(n):R;if(wP(e))return cc(e,!0,0)||R;if(u7(e))return(r=F(e))?pe(r):R;if(uj(e))return(t=x6(e))?pe(t):R;if(GC(e))return cc(e.parent,!0,0)||R;if(h6(e)){var n=x6(e);if(n)return de(r=cl(n))?pe(n):r}return WP(e.parent)&&e.parent.keywordToken===e.kind?$2(e.parent):pF(e)?hd(!1):R}function k6(e){var t,r,n;return Y4.assert(210===e.kind||209===e.kind),250===e.parent.kind?nx(e,GS(e.parent)||R):226===e.parent.kind?nx(e,Tx(e.parent.right)||R):303===e.parent.kind?tx(t=s3(e.parent.parent,DP),k6(t)||R,G7(t.properties,e.parent)):(n=$S(65,r=k6(t=s3(e.parent,NP))||R,ie,e.parent)||R,rx(t,r,t.elements.indexOf(e),n))}function T6(e){return uf(Tx(e=$N(e)?e.parent:e))}function C6(e){var t=$o(e.parent);return(CN(e)?pe:cl)(t)}function w6(e){var t=e.name;switch(t.kind){case 80:return pf(rT(t));case 9:case 11:return pf(t.text);case 167:var r=xy(t);return $b(r,12288)?r:ae;default:return Y4.fail("Unsupported property name.")}}function N6(e){let t=I7(fe(e=D_(e)));e=ge(e,0).length?Lt:ge(e,1).length?jt:void 0;return e&&G4(fe(e),e=>{t.has(e.escapedName)||t.set(e.escapedName,e)}),us(t)}function D6(e){return 0!==ge(e,0).length||0!==ge(e,1).length}function E6(t){var e,r,n;return 6&tD(t)?AT(le(t).containingType.types,e=>me(e,t.escapedName)):33554432&t.flags?({leftSpread:e,rightSpread:r,syntheticOrigin:n}=t["links"],e?[e,r]:n?[n]:v3(function(e){let t,r=e;for(;r=le(r).target;)t=r;return t}(t))):void 0}function P6(e){var t;return!PC(e)&&!!(e=G3(e,uT))&&!(!(t=e.parent)||(dT(t)||FF(t))&&t.name===e||i4(e)!==gt)}function F6(r,n){r=G3(r,uT);if(r){let e=i4(r,c7((i=r).parent)&&i===i.parent.name);if(e){if(1048576&e.flags){var i=S(e.exportSymbol);if(!n&&944&i.flags&&!(3&i.flags))return;e=i}let t=Xo(e);if(t)return 512&t.flags&&307===(null==(n=t.valueDeclaration)?void 0:n.kind)?(i=t.valueDeclaration)!==iT(r)?void 0:i:tT(r.parent,e=>c7(e)&&F(e)===t)}}}function A6(e){var t=JE(e);if(t)return t;t=G3(e,uT);if(t){e=function(e){var t=P(e).resolvedSymbol;if(t&&t!==j)return t;return St(e,e.escapedText,3257279,void 0,!0,void 0)}(t);if(ko(e,111551)&&!Eo(e,111551))return io(e)}}function I6(e){var t,r,n,i;return!(!(418&e.flags&&e.valueDeclaration)||LF(e.valueDeclaration))&&(void 0===(t=le(e)).isDeclarationWithCollidingName&&(V7(r=_5(e.valueDeclaration))||(i=e).valueDeclaration&&wP(i.valueDeclaration)&&299===V3(i.valueDeclaration).parent.kind)&&(St(r.parent,e.escapedName,111551,void 0,!1)?t.isDeclarationWithCollidingName=!0:W6(e.valueDeclaration,16384)?(i=W6(e.valueDeclaration,32768),e=n7(r,!1),n=241===r.kind&&n7(r.parent,!1),t.isDeclarationWithCollidingName=!(r5(r)||i&&(e||n))):t.isDeclarationWithCollidingName=!1),t.isDeclarationWithCollidingName)}function O6(e){if(!PC(e)){e=G3(e,uT);if(e){e=i4(e);if(e&&I6(e))return e.valueDeclaration}}}function L6(e){e=G3(e,u7);if(e){e=F(e);if(e)return I6(e)}return!1}function j6(e){switch(Y4.assert(vt),e.kind){case 271:return M6(F(e));case 273:case 274:case 276:case 281:var t=F(e);return!!t&&M6(t,!0);case 278:t=e.exportClause;return!!t&&(fF(t)||X4(t.elements,j6));case 277:return!e.expression||80!==e.expression.kind||M6(F(e),!0)}return!1}function R6(e){e=G3(e,_F);return!(void 0===e||307!==e.parent.kind||!T8(e))&&M6(F(e))&&e.moduleReference&&!W7(e.moduleReference)}function M6(e,t){var r;return!!e&&(Mo((r=iT(e.valueDeclaration))&&F(r)),(r=rs(Co(e)))===j?!t||!Eo(e):!!(111551&wo(e,t,!0))&&(ND(ee)||!B6(r)))}function B6(e){return Yb(e)||!!e.constEnumOnlyModule}function J6(e){var t;return!!H7(e.body)&&!h7(e)&&!g7(e)&&(1<(t=cu(F(e))).length||1===t.length&&t[0].declaration!==e)}function z6(e){return t=e,(!(!te||tu(t)||QF(t)||!t.initializer||TN(t,31))||(t=e,te&&tu(t)&&(QF(t)||!t.initializer)&&TN(t,31)))&&!((t=u4(t=e))&&Nm(V(t)));var t}function q6(e){e=G3(e,e=>rF(e)||eF(e));if(!e)return!1;let t;if(eF(e)){if(e.type||!oT(e)&&!W4(e))return!1;var r=L8(e);if(!r||!l7(r))return!1;t=F(r)}else t=F(e);return!!(t&&16&t.flags|3)&&!!j7(Wo(t),e=>111551&e.flags&&wE(e.valueDeclaration))}function U6(e){var e=G3(e,rF);return(e=e&&F(e))&&fe(pe(e))||H4}function V6(e){var e=e.id||0;return!(e<0||e>=qi.length)&&(null==(e=qi[e])?void 0:e.flags)||0}function W6(e,t){return function(e,r){if(ee.noCheck||!WD(iT(e),ee)){var t=P(e);if(!(t.calculatedFlags&r))switch(r){case 16:case 32:return a(e);case 128:case 256:case 2097152:return function(e){n(e,i)}(e);case 512:case 8192:case 65536:case 262144:return function(e){n(e,o)}(e);case 536870912:return s(e);case 4096:case 32768:case 16384:return function(e){e=_5(Dw(e)?e.parent:e);n(e,c)}(e);default:Y4.assertNever(r,"Unhandled node check flag calculation: "+Y4.formatNodeCheckFlags(r))}function n(e,t){var r=t(e,e.parent);"skip"===r||r||y9(e,t)}function i(e){var t=P(e);if(t.calculatedFlags&r)return"skip";t.calculatedFlags|=2097536,a(e)}function a(e){P(e).calculatedFlags|=48,108===e.kind&&A1(e)}function o(e){var t=P(e);if(t.calculatedFlags&r)return"skip";t.calculatedFlags|=336384,s(e)}function s(e){var t;P(e).calculatedFlags|=536920064,!uT(e)||!h8(e)||dT(e.parent)&&e.parent.name===e||(t=x6(e,!0))&&t!==j&&S1(e,t)}function c(e){var t=P(e);if(t.calculatedFlags&r)return"skip";t.calculatedFlags|=53248;t=e;s(t),HE(t)&&xy(t),UE(t)&&zC(t.parent)&&Lx(t.parent)}}}(e,t),!!(V6(e)&t)}function H6(e){return zk(e.parent),P(e).enumMemberValue??EE(void 0)}function K6(e){switch(e.kind){case 306:case 211:case 212:return!0}return!1}function G6(e){if(306===e.kind)return H6(e).value;P(e).resolvedSymbol||lx(e);e=P(e).resolvedSymbol||(UN(e)?Ao(e,111551,!0):void 0);if(e&&8&e.flags){e=e.valueDeclaration;if(E5(e.parent))return H6(e).value}}function $6(e){return 524288&e.flags&&0{if(t)return!(t=void 0);t=e.expression}):t=e}return t}function t4(e,t,r,n){e=G3(e,jC);return e?N.serializeReturnTypeForSignature(au(e),t,1024|r,n):cT.createToken(133)}function r4(e,t,r,n){var i,e=G3(e,nT);return e?(i=Zg(T6(e)),N.expressionOrTypeToTypeNode(e,i,void 0,t,1024|r,n)):cT.createToken(133)}function n4(e){return pt.has($3(e))}function i4(e,t){var r=P(e).resolvedSymbol;if(r)return r;let n=e;return t&&u7(r=e.parent)&&e===r.name&&(n=Hs(r)),St(n,e.escapedText,3257279,void 0,!0)}function a4(e){if(!PC(e)){e=G3(e,uT);if(e){e=i4(e);if(e)return rs(e).valueDeclaration}}}function o4(e){if(!PC(e)){e=G3(e,uT);if(e){e=i4(e);if(e)return NT(rs(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})}}}function s4(e){return!!(P5(e)||eF(e)&&W4(e))&&df(pe(F(e)))}function c4(e,t){var r=pe(F(e));return e=e,t=t,(e=1056&(r=r).flags?N.symbolToExpression(r.symbol,111551,e,void 0,t):r===xn?cT.createTrue():r===vn&&cT.createFalse())||("object"==typeof(t=r.value)?cT.createBigIntLiteral(t):"string"==typeof t?cT.createStringLiteral(t):t<0?cT.createPrefixUnaryExpression(41,cT.createNumericLiteral(-t)):cT.createNumericLiteral(t))}function l4(e){return e&&(Ca(e),iT(e).localJsxFactory)||jr}function _4(e){if(e){e=iT(e);if(e){if(e.localJsxFragmentFactory)return e.localJsxFragmentFactory;var t=e.pragmas.get("jsxfrag"),t=i3(t)?t[0]:t;if(t)return e.localJsxFragmentFactory=v9(t.arguments.factory,U),e.localJsxFragmentFactory}}if(ee.jsxFragmentFactory)return v9(ee.jsxFragmentFactory,U)}function u4(e){var t=hN(e);if(t)return t;if(169===e.kind&&178===e.parent.kind){t=Y6(e.parent).getAccessor;if(t)return yN(t)}}function d4(e){e=267===e.kind?o3(e.name,qE):ew(e),e=Lo(e,e,void 0);if(e)return F7(e,307)}function p4(t,e){if(ee.importHelpers){var r=iT(t);if(o5(r,ee)&&!(33554432&t.flags)){var n=function(e,t){var r=P(e);r.externalHelpersModule||(r.externalHelpersModule=jo(function(e){Y4.assert(ee.importHelpers,"Expected importHelpers to be enabled");e=e.imports[0];return Y4.assert(e&&rN(e)&&"tslib"===e.text,"Expected sourceFile.imports[0] to be the synthesized tslib import"),e}(e),D7,eT.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||j);return r.externalHelpersModule}(r,t);if(n!==j){r=le(n);if(r.requestedExternalEmitHelpers??(r.requestedExternalEmitHelpers=0),(r.requestedExternalEmitHelpers&e)!==e){var i=e&~r.requestedExternalEmitHelpers;for(let e=1;e<=16777216;e<<=1)if(i&e)for(var a of function(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return b?["__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"];default:return Y4.fail("Unrecognized helper")}}(e)){var o=To(Ka(Ho(n),$3(a),111551));o?524288&e?X4(cu(o),e=>342".length-r,eT.Type_parameter_list_cannot_be_empty)}function y4(e){if(3<=U){let t=e.body&&KP(e.body)&&a9(e.body.statements);if(t){var e=NT(e.parameters,e=>!!e.initializer||GC(e.name)||w7(e));if(K4(e))return G4(e,e=>{JD(ce(e,eT.This_parameter_is_not_allowed_with_use_strict_directive),aT(t,eT.use_strict_directive_used_here))}),e=e.map((e,t)=>aT(e,0===t?eT.Non_simple_parameter_declared_here:eT.and_here)),JD(ce(t,eT.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}return!1}function v4(e){var t=iT(e);return f4(e)||h4(e.typeParameters,t)||function(t){let r=!1;var n=t.length;for(let e=0;e".length-r,eT.Type_argument_list_cannot_be_empty));var r}function x4(e){var t,r=e.types;if(!g4(r))return r&&0===r.length?(t=I3(e.token),j4(e,r.pos,0,eT._0_list_cannot_be_empty,t)):void X4(r,S4)}function S4(e){return qP(e)&&VE(e.expression)&&e.typeArguments?L(e,eT.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):b4(e,e.typeArguments)}function k4(e){return 167===e.kind&&226===e.expression.kind&&28===e.expression.operatorToken.kind?L(e.expression,eT.A_comma_expression_is_not_allowed_in_a_computed_property_name):void 0}function T4(e){return e.asteriskToken&&(Y4.assert(262===e.kind||218===e.kind||174===e.kind),33554432&e.flags?L(e.asteriskToken,eT.Generators_are_not_allowed_in_an_ambient_context):!e.body&&L(e.asteriskToken,eT.An_overload_signature_cannot_be_declared_as_a_generator))}function C4(e,t){return e&&L(e,t)}function w4(e,t){return e&&L(e,t)}function N4(e){if(!M4(e)){if(250===e.kind&&e.awaitModifier&&!(65536&e.flags)){var t=iT(e);if(n8(e)){if(!O4(t))switch(o5(t,ee)||se.add(aT(e.awaitModifier,eT.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)),v){case 100:case 199:if(1===t.impliedNodeFormat){se.add(aT(e.awaitModifier,eT.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(4<=U)break;default:se.add(aT(e.awaitModifier,eT.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(!O4(t))return n=aT(e.awaitModifier,eT.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),(r=X5(e))&&176!==r.kind&&(Y4.assert(0==(2&zw(r)),"Enclosing function should never be an async function."),JD(n,aT(r,eT.Did_you_mean_to_mark_this_function_as_async))),void se.add(n)}if(!ZP(e)||65536&e.flags||!uT(e.initializer)||"async"!==e.initializer.escapedText){if(261===e.initializer.kind){var r=e.initializer;if(!I4(r)){var n=r.declarations;if(!n.length)return;if(1{if(e.isTypeOnly)return L4(e,276===e.kind?eT.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:eT.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function z4(e,t,r){if(1048576&t.flags&&2621440&e.flags){var n=Xh(t,e);if(n)return n;n=fe(e);if(n){e=Kh(n,t);if(e){n=Bm(t,$4(e,e=>[()=>pe(e),e.escapedName]),r);if(n!==t)return n}}}}function q4(e){var t=Ww(e);return t||(HE(e)?Uh(Tx(e.expression)):void 0)}function U4(e){return xt=_t!==e?W3(_t=e):xt}function V4(e){return bt=lt!==e?H3(lt=e):bt}function W4(e){e=7&V4(e);return 2==e||4==e||6==e}}function _j(e){return 262!==e.kind&&174!==e.kind||!!e.body}function uj(e){switch(e.parent.kind){case 276:case 281:return uT(e);default:return Dw(e)}}function dj(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function pj(e){return!!(1&e.flags)}function fj(e){return!!(2&e.flags)}(At=WL=WL||{}).JSX="JSX",At.IntrinsicElements="IntrinsicElements",At.ElementClass="ElementClass",At.ElementAttributesPropertyNameContainer="ElementAttributesProperty",At.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",At.Element="Element",At.ElementType="ElementType",At.IntrinsicAttributes="IntrinsicAttributes",At.IntrinsicClassAttributes="IntrinsicClassAttributes",At.LibraryManagedAttributes="LibraryManagedAttributes";var mj=class Mve{constructor(e,t,r){for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;t instanceof Mve;)t=t.inner;this.inner=t,this.moduleResolverHost=r,this.context=e,this.canTrackSymbol=!(null==(r=this.inner)||!r.trackSymbol)}trackSymbol(e,t,r){var n;if(null!=(n=this.inner)&&n.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,r))return this.onDiagnosticReported(),!0;262144&e.flags||((n=this.context).trackedSymbols??(n.trackedSymbols=[])).push([e,t,r])}return!1}reportInaccessibleThisError(){var e;null!=(e=this.inner)&&e.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;null!=(t=this.inner)&&t.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;null!=(e=this.inner)&&e.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;null!=(e=this.inner)&&e.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;null!=(t=this.inner)&&t.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;null!=(e=this.inner)&&e.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,t,r){var n;null!=(n=this.inner)&&n.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,r))}reportNonSerializableProperty(e){var t;null!=(t=this.inner)&&t.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){var t;null!=(t=this.inner)&&t.reportInferenceFallback&&this.inner.reportInferenceFallback(e)}};function mT(e,t,r,n){if(void 0===e)return e;t=t(e);let i;return void 0!==t?(i=i3(t)?(n||Tj)(t):t,Y4.assertNode(i,r),i):void 0}function gT(e,t,r,n,i){if(void 0===e)return e;var a=e.length;(void 0===n||n<0)&&(n=0),(void 0===i||a-n{var t=ia,addSource:N,setSourceContent:D,addName:E,addMapping:P,appendSourceMap:function(i,a,o,s,c,e){Y4.assert(y<=i,"generatedLine cannot backtrack"),Y4.assert(0<=a,"generatedCharacter cannot be negative"),f();let l=[],_,t=Oj(o.mappings);for(var u of t){if(e&&(u.generatedLine>e.line||u.generatedLine===e.line&&u.generatedCharacter>e.character))break;if(!c||!(u.generatedLineJSON.stringify(O())};function N(e){f();var t=Ea(M,e,n.getCurrentDirectory(),n.getCanonicalFileName,!0);let r=s.get(t);return void 0===r&&(r=o.length,o.push(t),a.push(e),s.set(t,r)),m(),r}function D(e,t){if(f(),null!==t){for(r=r||[];r.length>=5)&&(e|=32),F(0<=(r=e)&&r<26?65+r:26<=r&&r<52?97+r-26:52<=r&&r<62?48+r-52:62===r?43:63===r?47:Y4.fail(r+": not a base64 value"))}while(0r.length,getLineText:e=>t.substring(r[e],r[e+1])}}function Pj(t){for(let e=t.getLineCount()-1;0<=e;e--){var r=t.getLineText(e),n=Nj.exec(r);if(n)return n[1].trimEnd();if(!r.match(Dj))break}}function Fj(e){return"string"==typeof e||null===e}function Aj(e){return null!==e&&"object"==typeof e&&3===e.version&&"string"==typeof e.file&&"string"==typeof e.mappings&&i3(e.sources)&&vT(e.sources,a3)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"==typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||i3(e.sourcesContent)&&vT(e.sourcesContent,Fj))&&(void 0===e.names||null===e.names||i3(e.names)&&vT(e.names,a3))}function Ij(e){try{var t=JSON.parse(e);if(Aj(t))return t}catch{}}function Oj(i){let r=!1,a=0,n=0,o=0,s=0,c=0,l=0,_=0,t;return{get pos(){return a},get error(){return t},get state(){return u(!0,!0)},next(){for(;!r&&a=i.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;n=65<=(n=i.charCodeAt(a))&&n<=90?n-65:97<=n&&n<=122?n-97+26:48<=n&&n<=57?n-48+52:43===n?62:47===n?63:-1;if(-1==n)return p("Invalid character in VLQ"),-1;e=0!=(32&n),r|=(31&n)<>=1:r=-(r>>=1),r}}function Lj(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 jj(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function Rj(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function Mj(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function Bj(e,t){return Y4.assert(e.sourceIndex===t.sourceIndex),l3(e.sourcePosition,t.sourcePosition)}function Jj(e,t){return l3(e.generatedPosition,t.generatedPosition)}function zj(e){return e.sourcePosition}function qj(e){return e.generatedPosition}function Uj(a,o,e){e=D3(e);let t=o.sourceRoot?P3(o.sourceRoot,e):e,i=P3(o.file,e),s=a.getSourceFileLike(i),c=o.sources.map(e=>P3(e,t)),l=new Map(c.map((e,t)=>[a.getCanonicalFileName(e),t])),r,n,_;return{getSourcePosition:function(e){var t=function(){if(void 0===n){var e,t=[];for(e of d())t.push(e);n=S(t,Jj,Mj)}return n}();if(!X4(t))return e;let r=j(t,e.pos,qj,l3);r<0&&(r=~r);t=t[r];return void 0!==t&&Rj(t)?{fileName:c[t.sourceIndex],pos:t.sourcePosition}:e},getGeneratedPosition:function(e){var t=l.get(a.getCanonicalFileName(e.fileName));if(void 0===t)return e;var r=function(e){if(void 0===_){var t,r=[];for(t of d())if(Rj(t)){let e=r[t.sourceIndex];e||(r[t.sourceIndex]=e=[]),e.push(t)}_=r.map(e=>S(e,Bj,Mj))}return _[e]}(t);if(!X4(r))return e;let n=j(r,e.pos,zj,l3);n<0&&(n=~n);r=r[n];return void 0!==r&&r.sourceIndex===t?{fileName:i,pos:r.generatedPosition}:e}};function u(e){var t,r=void 0!==s?eo(s,e.generatedLine,e.generatedCharacter,!0):-1;let n,i;return jj(e)&&(t=a.getSourceFileLike(c[e.sourceIndex]),n=o.sources[e.sourceIndex],i=void 0!==t?eo(t,e.sourceLine,e.sourceCharacter,!0):-1),{generatedPosition:r,source:n,sourceIndex:e.sourceIndex,sourcePosition:i,nameIndex:e.nameIndex}}function d(){var e,t;return void 0===r&&(t=ZT(e=Oj(o.mappings),u),r=void 0!==e.error?(a.log&&a.log("Encountered error while decoding sourcemap: "+e.error),H4):t),r}}var Vj={getSourcePosition:Ti,getGeneratedPosition:Ti};function Wj(e){return(e=K3(e))?oj(e):0}function Hj(e){return!(!e||!h1(e)&&!yF(e))&&X4(e.elements,Kj)}function Kj(e){return void 0!==e.propertyName?"default"===e.propertyName.escapedText:"default"===e.name.escapedText}function Gj(t,r){return function(e){return(307===e.kind?r:function(e){return t.factory.createBundle($4(e.sourceFiles,r))})(e)}}function $j(e){return!!tw(e)}function Xj(e){if(tw(e))return!0;var t,r=e.importClause&&e.importClause.namedBindings;if(!r)return!1;if(!h1(r))return!1;let n=0;for(t of r.elements)Kj(t)&&n++;return 0{return t=n,r=i,QE(e=e)&&(!!e.initializer||!t)&&wN(e)===r;var t,r})}function lR(e){return QE(t=e)&&wN(t)||eP(e);var t}function _R(e){return NT(e.members,lR)}function uR(e){return 172===e.kind&&void 0!==e.initializer}function dR(e){return!CN(e)&&(hc(e)||VC(e))&&UE(e.name)}function pR(e){let t;if(e){var r=e.parameters,e=0vR(e.privateEnv,t))}function SR(e){return!e.initializer&&uT(e.name)}function kR(e){return vT(e,SR)}var TR=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(TR||{});function CR(e,i,a,t,r,o){let n=e,s;if(up(e))for(s=e.right;pp(e.left)||dp(e.left);){if(!up(s))return Y4.checkDefined(mT(s,i,nT));n=e=s,s=e.right}let c;t={context:a,level:t,downlevelIteration:!!a.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:l,emitBindingOrAssignment:function(e,t,r,n){Y4.assertNode(e,o?uT:nT);e=o?o(e,t,r):fT(a.factory.createAssignment(Y4.checkDefined(mT(e,i,nT)),t),r);e.original=n,l(e)},createArrayBindingOrAssignmentPattern:e=>{return t=a.factory,e=e,Y4.assertEachNode(e,Pc),t.createArrayLiteralExpression($4(e,t.converters.convertToArrayAssignmentElement));var t},createObjectBindingOrAssignmentPattern:e=>{return t=a.factory,e=e,Y4.assertEachNode(e,Dc),t.createObjectLiteralExpression($4(e,t.converters.convertToObjectAssignmentElement));var t},createArrayBindingOrAssignmentElement:AR,visitor:i};if(s&&(s=mT(s,i,nT),Y4.assert(s),uT(s)&&wR(e,s.escapedText)||NR(e)?s=FR(t,s,!1,n):r?s=FR(t,s,!0,n):rN(e)&&(n=s)),ER(t,e,s,n,up(e)),s&&r){if(!X4(c))return s;c.push(s)}return a.factory.inlineExpressions(c)||a.factory.createOmittedExpression();function l(e){c=Q4(c,e)}}function wR(e,t){e=Ey(e);if(!wc(e))return uT(e)&&e.escapedText===t;var r,n=t;for(r of Oy(e))if(wR(r,n))return 1}function NR(e){var t=Ay(e);return!(!t||!HE(t)||CC(t.expression))||!!(t=Ey(e))&&wc(t)&&!!G4(Oy(t),NR)}function DR(e,t,i,r,n,a=!1,o){let s,c=[];var l,_,u,d,p,f=[],r={context:i,level:r,downlevelIteration:!!i.getCompilerOptions().downlevelIteration,hoistTempVariables:a,emitExpression:function(e){s=Q4(s,e)},emitBindingOrAssignment:g,createArrayBindingOrAssignmentPattern:e=>{return t=i.factory,e=e,Y4.assertEachNode(e,kc),t.createArrayBindingPattern(e);var t},createObjectBindingOrAssignmentPattern:e=>{return t=i.factory,e=e,Y4.assertEachNode(e,wP),t.createObjectBindingPattern(e);var t},createArrayBindingOrAssignmentElement:e=>{return i.factory.createBindingElement(void 0,void 0,e)},visitor:t};eF(e)&&(t=Dy(e))&&(uT(t)&&wR(e,t.escapedText)||NR(e))&&(t=FR(r,Y4.checkDefined(mT(t,r.visitor,nT)),!1,t),e=i.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t)),ER(r,e,n,e,o),s&&(t=i.factory.createTempVariable(void 0),a?g(t,i.factory.inlineExpressions(s),s=void 0,void 0):(i.hoistVariableDeclaration(t),(r=GT(c)).pendingExpressions=Q4(r.pendingExpressions,i.factory.createAssignment(t,r.value)),BT(r.pendingExpressions,s),r.value=t));for({pendingExpressions:l,name:_,value:u,location:d,original:p}of c){var m=i.factory.createVariableDeclaration(_,void 0,void 0,l?i.factory.inlineExpressions(Q4(l,u)):u);m.original=p,fT(m,d),f.push(m)}return f;function g(e,t,r,n){Y4.assertNode(e,fc),s&&(t=i.factory.inlineExpressions(Q4(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:n})}}function ER(e,n,i,a,o){var s=Ey(n);if(o||((o=mT(Dy(n),e.visitor,nT))?i?(v=o,b=FR(l=e,b=i,!0,a),i=l.context.factory.createConditionalExpression(l.context.factory.createTypeCheck(b,"undefined"),void 0,v,void 0,b),!nR(o)&&wc(s)&&(i=FR(e,i,!0,a))):i=o:i=i||e.context.factory.createVoidZero()),Nc(s)){var c=e;var l=n;var _=s;var u=i;var d=a;var p=Oy(_),f=p.length;1!==f&&(l=!Tc(l)||0!==f,u=FR(c,u,l,d));let t,r;for(let e=0;e(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(HR||{});function KR(e,t,r,n,i,a){var o=mT(t.tag,r,nT),s=(Y4.assert(o),[void 0]),c=[],l=[],_=t.template;if(0===a&&!nd(_))return hT(t,r,e);var u=e["factory"];if(c0(_))c.push(GR(u,_)),l.push($R(u,_,n));else{c.push(GR(u,_.head)),l.push($R(u,_.head,n));for(var d of _.templateSpans)c.push(GR(u,d.literal)),l.push($R(u,d.literal,n)),s.push(Y4.checkDefined(mT(d.expression,r,nT)))}a=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(c),u.createArrayLiteralExpression(l));return b9(n)?(i(t=u.createUniqueName("templateObject")),s[0]=u.createLogicalOr(t,u.createAssignment(t,a))):s[0]=a,u.createCallExpression(o,void 0,s)}function GR(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function $R(e,t,r){let n=t.rawText;return void 0===n&&(Y4.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),n=Jl(r,t),r=15===t.kind||18===t.kind,n=n.substring(1,n.length-(r?1:2))),n=n.replace(/\r\n?/g,"\n"),fT(e.createStringLiteral(n),t)}var XR=!1;function QR(b){let{factory:x,getEmitHelperFactory:i,startLexicalEnvironment:S,resumeLexicalEnvironment:h,endLexicalEnvironment:k,hoistVariableDeclaration:y}=b,a=b.getEmitResolver(),T=b.getCompilerOptions(),J=vD(T),C=bD(T),w=!!T.experimentalDecorators,o=T.emitDecoratorMetadata?eM(b):void 0,v=b.onEmitNode,z=b.onSubstituteNode;b.onEmitNode=function(e,t,r){var n=_,i=N;LF(t)&&(N=t);2&l&&function(e){return 267===K3(e).kind}(t)&&(_|=2);8&l&&function(e){return 266===K3(e).kind}(t)&&(_|=8);v(e,t,r),_=n,N=i},b.onSubstituteNode=function(e,t){{if(t=z(e,t),1===e)return function(e){switch(e.kind){case 80:return function(e){return be(e)||e}(e);case 211:case 212:return xe(e)}return e}(t);if(AF(t))return function(e){if(2&l){var t,r=e.name,n=be(r);if(n)return e.objectAssignmentInitializer?(t=x.createAssignment(n,e.objectAssignmentInitializer),fT(x.createPropertyAssignment(r,t),e)):fT(x.createPropertyAssignment(r,n),e)}return e}(t)}return t},b.enableSubstitution(211),b.enableSubstitution(212);let N,D,E,P,c,s,l,_;return function(e){return 308!==e.kind?t(e):(e=e,x.createBundle(e.sourceFiles.map(t)))};function t(e){return e.isDeclarationFile||(_h(e=u(N=e,K),b.readEmitHelpers()),N=void 0),e}function u(e,t){var r=P,n=c,i=s,a=e;switch(a.kind){case 307:case 269:case 268:case 241:P=a,c=void 0;break;case 263:case 262:TN(a,128)||(a.name?ie(a):Y4.assert(263===a.kind||TN(a,2048)))}t=t(e);return P!==r&&(c=n),P=r,s=i,t}function F(e){return u(e,r)}function r(e){return 1&e.transformFlags?n(e):e}function q(e){return u(e,U)}function U(e){switch(e.kind){case 272:case 271:case 277:case 278:var t=e;if(function(e){var t=G3(e);if(t!==e&&!gF(e)){if(!t||t.kind!==e.kind)return 1;switch(e.kind){case 272:if(Y4.assertNode(t,uF),e.importClause!==t.importClause)return 1;if(e.attributes!==t.attributes)return 1;break;case 271:if(Y4.assertNode(t,_F),e.name!==t.name)return 1;if(e.isTypeOnly!==t.isTypeOnly)return 1;if(e.moduleReference!==t.moduleReference&&(OC(e.moduleReference)||OC(t.moduleReference)))return 1;break;case 278:if(Y4.assertNode(t,hF),e.exportClause!==t.exportClause)return 1;if(e.attributes!==t.attributes)return 1}}return}(t))return 1&t.transformFlags?hT(t,F,b):t;switch(t.kind){case 272:return function(e){var t;return e.importClause?!e.importClause.isTypeOnly&&(t=mT(e.importClause,ce,dF))?x.updateImportDeclaration(e,void 0,t,e.moduleSpecifier,e.attributes):void 0:e}(t);case 271:return de(t);case 277:return function(e){return T.verbatimModuleSyntax||a.isValueAliasDeclaration(e)?hT(e,F,b):void 0}(t);case 278:return function(e){if(!e.isTypeOnly){if(!e.exportClause||fF(e.exportClause))return e;let n=!!T.verbatimModuleSyntax;var t=mT(e.exportClause,e=>{var t,r;return e=e,r=n,fF(e)?(t=e,x.updateNamespaceExport(t,Y4.checkDefined(mT(t.name,F,uT)))):(t=r,e=gT((r=e).elements,ue,vF),t||X4(e)?x.updateNamedExports(r,e):void 0)},Xs);return t?x.updateExportDeclaration(e,void 0,e.isTypeOnly,t,e.moduleSpecifier,e.attributes):void 0}}(t);default:Y4.fail("Unhandled ellided statement")}return;default:return r(e)}}function V(e){return u(e,W)}function W(e){if(278!==e.kind&&272!==e.kind&&273!==e.kind&&(271!==e.kind||283!==e.moduleReference.kind))return 1&e.transformFlags||TN(e,32)?n(e):e}function A(n){return e=>u(e,e=>{var t=e,r=n;switch(t.kind){case 176:return function(e){if(M(e))return x.updateConstructorDeclaration(e,void 0,vj(e.parameters,F,b),function(e,t){var r=t&&NT(t.parameters,e=>U3(e,t));if(!X4(r))return bj(e,F,b);var n=[];h();var i=x.copyPrologue(e.statements,n,!1,F),a=sR(e.statements,i),r=AT(r,Q);a.length?function r(n,e,t,i,a,o){let s=i[a];let c=e[s];BT(n,gT(e,F,d7,t,s-t));if(l1(c)){let e=[],t=(r(e,c.tryBlock.statements,0,i,a+1,o),x.createNodeArray(e));fT(t,c.tryBlock.statements),n.push(x.updateTryStatement(c,x.updateBlock(c.tryBlock,e),mT(c.catchClause,F,PF),mT(c.finallyBlock,F,KP)))}else BT(n,gT(e,F,d7,s,1)),BT(n,o);BT(n,gT(e,F,d7,s+1))}(n,e.statements,i,a,0,r):(BT(n,r),BT(n,gT(e.statements,F,d7,i)));n=x.mergeLexicalEnvironment(n,k());a=x.createBlock(fT(x.createNodeArray(n),e.statements),!0);return fT(a,e),lT(a,e),a}(e.body,e))}(t);case 172:return function(e,t){var r=33554432&e.flags||TN(e,64);if(!r||w&&AN(e))return t=p(qC(t)?gT(e.modifiers,r?I:F,vc):gT(e.modifiers,d,vc),e,t),r?x.updatePropertyDeclaration(e,LT(t,x.createModifiersFromModifierFlags(128)),Y4.checkDefined(mT(e.name,F,LC)),void 0,void 0,void 0):x.updatePropertyDeclaration(e,t,m(e),void 0,void 0,mT(e.initializer,F,nT))}(t,r);case 177:return ee(t,r);case 178:return te(t,r);case 174:return Y(t,r);case 175:return hT(t,F,b);case 240:return t;case 181:return;default:return Y4.failBadSyntaxKind(t)}})}function H(n){return e=>u(e,e=>{var t=e,r=n;switch(t.kind){case 303:case 304:case 305:return F(t);case 177:return ee(t,r);case 178:return te(t,r);case 174:return Y(t,r);default:return Y4.failBadSyntaxKind(t)}})}function d(e){return $E(e)?void 0:F(e)}function I(e){return IC(e)?void 0:F(e)}function O(e){if(!$E(e)&&!(28895&jN(e.kind)||D&&95===e.kind))return e}function n(s){if(d7(s)&&TN(s,128))return x.createNotEmittedStatement(s);switch(s.kind){case 95:case 90:return D?void 0:s;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:return;case 265:return x.createNotEmittedStatement(s);case 270:return;case 264:return x.createNotEmittedStatement(s);case 263:{var c=s;var l=function(e){let t=0;X4(cR(e,!0,!0))&&(t|=1);var r=Lw(e);r&&106!==l9(r.expression).kind&&(t|=64);f8(w,e)&&(t|=2);V_(w,e)&&(t|=4);B(e)?t|=8:!function(e){return pe(e)&&TN(e,2048)}(e)?fe(e)&&(t|=16):t|=32;return t}(c),_=J<=1&&!!(7&l);if(!function(e){return AN(e)||X4(e.typeParameters)||X4(e.heritageClauses,L)||X4(e.members,L)}(c)&&!f8(w,c)&&!B(c))return x.updateClassDeclaration(c,gT(c.modifiers,O,IC),c.name,void 0,gT(c.heritageClauses,F,EF),gT(c.members,A(c),zC));_&&b.startLexicalEnvironment();let e=_||8&l,t=e?gT(c.modifiers,I,vc):gT(c.modifiers,F,vc);2&l&&(t=R(t,c));let r=e&&!c.name||4&l||1&l,n=r?c.name??x.getGeneratedNameForNode(c):c.name,i=x.updateClassDeclaration(c,t,n,void 0,gT(c.heritageClauses,F,EF),j(c)),a=$7(c);1&l&&(a|=64);_T(i,a);let o;o=_?(_=[i],u=Ap(j3(N.text,c.members.end),20),d=x.getInternalName(c),d=x.createPartiallyEmittedExpression(d),ng(d,u.end),_T(d,3072),d=x.createReturnStatement(d),rg(d,u.pos),_T(d,3840),_.push(d),Fl(_,b.endLexicalEnvironment()),u=x.createImmediatelyInvokedArrowFunction(_),Kg(u,1),d=x.createVariableDeclaration(x.getLocalName(c,!1,!1),void 0,void 0,u),lT(d,c),_=x.createVariableStatement(void 0,x.createVariableDeclarationList([d],1)),lT(_,c),LE(_,c),Xg(_,Ep(c)),by(_),_):i;if(e){if(8&l)return[o,me(c)];if(32&l)return[o,x.createExportDefault(x.getLocalName(c,!1,!0))];if(16&l)return[o,x.createExternalModuleExport(x.getDeclarationName(c,!1,!0))]}return o;return}case 231:{var u=s;let e=gT(u.modifiers,I,vc);f8(w,u)&&(e=R(e,u));return x.updateClassExpression(u,e,u.name,void 0,gT(u.heritageClauses,F,EF),j(u));return}case 298:var d=s;return 119!==d.token?hT(d,F,b):void 0;case 233:return _=s,x.updateExpressionWithTypeArguments(_,Y4.checkDefined(mT(_.expression,F,t7)),void 0);case 210:return l=s,x.updateObjectLiteralExpression(l,gT(l.properties,H(l),HC));case 176:case 172:case 174:case 177:case 178:case 175:return Y4.fail("Class and object literal elements must be visited with their respective visitors");case 262:c=s;if(M(c)){r=x.updateFunctionDeclaration(c,gT(c.modifiers,O,IC),c.asteriskToken,c.name,void 0,vj(c.parameters,F,b),void 0,bj(c.body,F,b)||x.createBlock([]));if(B(c)){{var e=n=[r];var t=c;e.push(me(t))}return n}else return r}else return x.createNotEmittedStatement(c);case 218:e=s;return M(e)?e=x.updateFunctionExpression(e,gT(e.modifiers,O,IC),e.asteriskToken,e.name,void 0,vj(e.parameters,F,b),void 0,bj(e.body,F,b)||x.createBlock([])):x.createOmittedExpression();case 219:t=s;return t=x.updateArrowFunction(t,gT(t.modifiers,O,IC),void 0,vj(t.parameters,F,b),void 0,t.equalsGreaterThanToken,bj(t.body,F,b));case 169:var r,n=s;return pN(n)?void 0:((r=x.updateParameterDeclaration(n,gT(n.modifiers,e=>$E(e)?F(e):void 0,vc),n.dotDotDotToken,Y4.checkDefined(mT(n.name,F,fc)),void 0,void 0,mT(n.initializer,F,nT)))!==n&&(LE(r,n),fT(r,Pp(n)),Xg(r,Pp(n)),_T(r.name,64)),r);case 217:var i=s,a=l9(i.expression,-7);return r7(a)||UP(a)?(a=mT(i.expression,F,nT),Y4.assert(a),x.createPartiallyEmittedExpression(a,i)):hT(i,F,b);case 216:case 234:return i=mT((a=s).expression,F,nT),Y4.assert(i),x.createPartiallyEmittedExpression(i,a);case 238:return v=mT((y=s).expression,F,nT),Y4.assert(v),x.createPartiallyEmittedExpression(v,y);case 213:return v=s,x.updateCallExpression(v,Y4.checkDefined(mT(v.expression,F,nT)),void 0,gT(v.arguments,F,nT));case 214:return y=s,x.updateNewExpression(y,Y4.checkDefined(mT(y.expression,F,nT)),void 0,gT(y.arguments,F,nT));case 215:return h=s,x.updateTaggedTemplateExpression(h,Y4.checkDefined(mT(h.tag,F,nT)),void 0,Y4.checkDefined(mT(h.template,F,Fc)));case 235:return g=mT((h=s).expression,F,t7),Y4.assert(g),x.createPartiallyEmittedExpression(g,h);case 266:{g=s;if(!function(e){return!E5(e)||ND(T)}(g))return x.createNotEmittedStatement(g);let e=[],t=4,r=oe(e,g);!r||4===C&&P===N||(t|=1024);let n=ye(g),i=ve(g),a=B(g)?x.getExternalModuleOrNamespaceExportName(E,g,!1,!0):x.getDeclarationName(g,!1,!0),o=x.createLogicalOr(a,x.createAssignment(a,x.createObjectLiteralExpression()));B(g)&&(p=x.getLocalName(g,!1,!0),o=x.createAssignment(p,o));var p=x.createExpressionStatement(x.createCallExpression(x.createFunctionExpression(void 0,void 0,void 0,void 0,[x.createParameterDeclaration(void 0,void 0,n)],void 0,function(e,t){var r=E,t=(E=t,[]),n=(S(),$4(e.members,ne));return Fl(t,k()),BT(t,n),E=r,x.createBlock(fT(x.createNodeArray(t),e.members),!0)}(g,i)),void 0,[o]));lT(p,g),r&&(jE(p,void 0),ih(p,void 0));return fT(p,g),Hg(p,t),e.push(p),e;return}case 243:var o=s;return B(o)?0!==(f=Hp(o.declarationList)).length?fT(x.createExpressionStatement(x.inlineExpressions($4(f,re))),o):void 0:hT(o,F,b);case 260:var f=s,o=x.updateVariableDeclaration(f,Y4.checkDefined(mT(f.name,F,fc)),void 0,void 0,mT(f.initializer,F,nT));return f.type&&hh(o.name,f.type),o;case 267:return se(s);case 271:return de(s);case 285:return m=s,x.updateJsxSelfClosingElement(m,Y4.checkDefined(mT(m.tagName,F,Yc)),void 0,Y4.checkDefined(mT(m.attributes,F,wF)));case 286:return m=s,x.updateJsxOpeningElement(m,Y4.checkDefined(mT(m.tagName,F,Yc)),void 0,Y4.checkDefined(mT(m.attributes,F,wF)));default:return hT(s,F,b)}var m,g,h,y,v}function K(e){var t=FD(T,"alwaysStrict")&&!(b9(e)&&5<=C)&&!D5(e);return x.updateSourceFile(e,yj(e.statements,q,b,0,t))}function L(e){return!!(8192&e.transformFlags)}function j(e){var t=gT(e.members,A(e),zC);let r,n=_N(e);var i=n&&NT(n.parameters,e=>U3(e,n));if(i)for(var a of i){var o=x.createPropertyDeclaration(void 0,a.name,void 0,void 0,void 0);lT(o,a),r=Q4(r,o)}return r?(r=BT(r,t),fT(x.createNodeArray(r),e.members)):t}function R(e,t){var r,t=f(t,t);return X4(t)&&(BT(r=[],Ge(e,uv)),BT(r,NT(e,$E)),BT(r,t),BT(r,NT($e(e,uv),IC)),e=fT(x.createNodeArray(r),e)),e}function p(e,t,r){return qC(r)&&m8(w,t,r)&&X4(t=f(t,r))&&(BT(r=[],NT(e,$E)),BT(r,t),BT(r,NT(e,IC)),e=fT(x.createNodeArray(r),e)),e}function f(e,t){if(w)return(XR?function(t,r){if(o){let e;var n;if(G(t)&&(n=x.createPropertyAssignment("type",x.createArrowFunction(void 0,void 0,[],void 0,x.createToken(39),o.serializeTypeOfNode({currentLexicalScope:P,currentNameScope:r},t,r))),e=Q4(e,n)),X(t)&&(n=x.createPropertyAssignment("paramTypes",x.createArrowFunction(void 0,void 0,[],void 0,x.createToken(39),o.serializeParameterTypesOfNode({currentLexicalScope:P,currentNameScope:r},t,r))),e=Q4(e,n)),$(t)&&(r=x.createPropertyAssignment("returnType",x.createArrowFunction(void 0,void 0,[],void 0,x.createToken(39),o.serializeReturnTypeOfNode({currentLexicalScope:P,currentNameScope:r},t))),e=Q4(e,r)),e)return t=i().createMetadataHelper("design:typeinfo",x.createObjectLiteralExpression(e,!0)),[x.createDecorator(t)]}}:function(t,r){if(o){let e;var n;return G(t)&&(n=i().createMetadataHelper("design:type",o.serializeTypeOfNode({currentLexicalScope:P,currentNameScope:r},t,r)),e=Q4(e,x.createDecorator(n))),X(t)&&(n=i().createMetadataHelper("design:paramtypes",o.serializeParameterTypesOfNode({currentLexicalScope:P,currentNameScope:r},t,r)),e=Q4(e,x.createDecorator(n))),$(t)&&(r=i().createMetadataHelper("design:returntype",o.serializeReturnTypeOfNode({currentLexicalScope:P,currentNameScope:r},t)),e=Q4(e,x.createDecorator(r))),e}})(e,t)}function G(e){e=e.kind;return 174===e||177===e||178===e||172===e}function $(e){return 174===e.kind}function X(e){switch(e.kind){case 263:case 231:return void 0!==_N(e);case 174:case 177:case 178:return 1}}function m(e){var t=e.name;if(HE(t)&&(!wN(e)&&s||AN(e)&&w)){var e=mT(t.expression,F,nT),r=(Y4.assert(e),Ks(e));if(!nR(r))return r=x.getGeneratedNameForNode(t),y(r),x.updateComputedPropertyName(t,x.createAssignment(r,e))}return Y4.checkDefined(mT(t,F,LC))}function M(e){return!W7(e.body)}function Q(e){var t,r=e.name;if(uT(r))return _T(t=tE(fT(x.cloneNode(r),r),r.parent),3168),_T(r=tE(fT(x.cloneNode(r),r),r.parent),3072),by(Wg(fT(lT(x.createExpressionStatement(x.createAssignment(fT(x.createPropertyAccessExpression(x.createThis(),t),e.name),r)),e),Dp(e,-1))))}function Y(e,t){var r;return 1&e.transformFlags?M(e)?(r=p(r=qC(t)?gT(e.modifiers,F,vc):gT(e.modifiers,d,vc),e,t),x.updateMethodDeclaration(e,r,e.asteriskToken,m(e),void 0,void 0,vj(e.parameters,F,b),void 0,bj(e.body,F,b))):void 0:e}function Z(e){return!W7(e.body)||!TN(e,64)}function ee(e,t){var r;return 1&e.transformFlags?Z(e)?(r=p(r=qC(t)?gT(e.modifiers,F,vc):gT(e.modifiers,d,vc),e,t),x.updateGetAccessorDeclaration(e,r,m(e),vj(e.parameters,F,b),void 0,bj(e.body,F,b)||x.createBlock([]))):void 0:e}function te(e,t){var r;return 1&e.transformFlags?Z(e)?(r=p(r=qC(t)?gT(e.modifiers,F,vc):gT(e.modifiers,d,vc),e,t),x.updateSetAccessorDeclaration(e,r,m(e),vj(e.parameters,F,b),bj(e.body,F,b)||x.createBlock([]))):void 0:e}function re(e){var t=e.name;return GC(t)?CR(e,F,b,0,!1,ge):fT(x.createAssignment(he(t),Y4.checkDefined(mT(e.initializer,F,nT))),e)}function ne(e){t=!1;var t=UE(r=(r=e).name)?x.createIdentifier(""):HE(r)?t&&!nR(r.expression)?x.getGeneratedNameForNode(r):r.expression:uT(r)?x.createStringLiteral(rT(r)):x.cloneNode(r),r=a.getEnumMemberValue(e),n=(i=e,void 0!==(n=null==r?void 0:r.value)?"string"==typeof n?x.createStringLiteral(n):n<0?x.createPrefixUnaryExpression(41,x.createNumericLiteral(-n)):x.createNumericLiteral(n):(0==(8&l)&&(l|=8,b.enableSubstitution(80)),i.initializer?Y4.checkDefined(mT(i.initializer,F,nT)):x.createVoidZero())),i=x.createAssignment(x.createElementAccessExpression(E,t),n),n="string"==typeof(null==r?void 0:r.value)||null!=r&&r.isSyntacticallyString?i:x.createAssignment(x.createElementAccessExpression(E,i),t);return fT(x.createExpressionStatement(fT(n,e)),e)}function ie(e){c=c||new Map;var t=ae(e);c.has(t)||c.set(t,e)}function ae(e){return Y4.assertNode(e.name,uT),e.name.escapedText}function oe(e,t){var r,n=x.createVariableDeclaration(x.getLocalName(t,!1,!0)),i=307===P.kind?0:1,i=x.createVariableStatement(gT(t.modifiers,O,IC),x.createVariableDeclarationList([n],i));return lT(n,t),jE(n,void 0),ih(n,void 0),lT(i,t),ie(t),n=t,!(c&&(r=ae(n),c.get(r)!==n)||(266===t.kind?Xg(i.declarationList,t):Xg(i,t),LE(i,t),Hg(i,2048),e.push(i),0))}function se(e){if((t=G3(t=e,sF))&&!cj(t,ND(T)))return x.createNotEmittedStatement(e);Y4.assertNode(e.name,uT,"A TypeScript namespace should have an Identifier name."),0==(2&l)&&(l|=2,b.enableSubstitution(80),b.enableSubstitution(304),b.enableEmitNotification(267));var t=[];let r=4;var n=oe(t,e),i=(!n||4===C&&P===N||(r|=1024),ye(e)),a=ve(e),o=B(e)?x.getExternalModuleOrNamespaceExportName(E,e,!1,!0):x.getDeclarationName(e,!1,!0);let s=x.createLogicalOr(o,x.createAssignment(o,x.createObjectLiteralExpression()));B(e)&&(o=x.getLocalName(e,!1,!0),s=x.createAssignment(o,s));o=x.createExpressionStatement(x.createCallExpression(x.createFunctionExpression(void 0,void 0,void 0,void 0,[x.createParameterDeclaration(void 0,void 0,i)],void 0,function(e,t){let r=E,n=D,i=c,a=(E=t,D=e,c=void 0,[]);S();let o,s;e.body&&(268===e.body.kind?(u(e.body,e=>BT(a,gT(e.statements,V,d7))),o=e.body.statements,s=e.body):((t=se(e.body))&&(i3(t)?BT(a,t):a.push(t)),t=function t(r){if(267===r.body.kind){let e=t(r.body);return e||r.body}}(e).body,o=Dp(t.statements,-1)));Fl(a,k()),E=r,D=n,c=i;t=x.createBlock(fT(x.createNodeArray(a),o),!0);fT(t,s),e.body&&268===e.body.kind||_T(t,3072|$7(t));return t}(e,a)),void 0,[s]));return lT(o,e),n&&(jE(o,void 0),ih(o,void 0)),fT(o,e),Hg(o,r),t.push(o),t}function ce(e){Y4.assert(!e.isTypeOnly);var t=g(e)?e.name:void 0,r=mT(e.namedBindings,le,Wc);return t||r?x.updateImportClause(e,!1,t,r):void 0}function le(e){var t,r;return 274===e.kind?g(e)?e:void 0:(t=T.verbatimModuleSyntax,r=gT(e.elements,_e,mF),t||X4(r)?x.updateNamedImports(e,r):void 0)}function _e(e){return!e.isTypeOnly&&g(e)?e:void 0}function ue(e){return e.isTypeOnly||!T.verbatimModuleSyntax&&!a.isValueAliasDeclaration(e)?void 0:e}function de(e){var t,r,n;if(!e.isTypeOnly)return x8(e)?g(e)?hT(e,F,b):void 0:g(r=e)||!b9(N)&&a.isTopLevelValueImportEqualsWithEntityName(r)?(_T(r=cy(x,e.moduleReference),7168),fe(e)||!B(e)?lT(fT(x.createVariableStatement(gT(e.modifiers,O,IC),x.createVariableDeclarationList([lT(x.createVariableDeclaration(e.name,void 0,void 0,r),e)])),e),e):lT((t=e.name,r=r,n=e,fT(x.createExpressionStatement(x.createAssignment(x.getNamespaceMemberName(E,t,!1,!0),r)),n)),e)):void 0}function B(e){return void 0!==D&&TN(e,32)}function pe(e){return void 0===D&&TN(e,32)}function fe(e){return pe(e)&&!TN(e,2048)}function me(e){var t=x.createAssignment(x.getExternalModuleOrNamespaceExportName(E,e,!1,!0),x.getLocalName(e)),t=(Xg(t,wp((e.name||e).pos,e.end)),x.createExpressionStatement(t));return Xg(t,wp(-1,e.end)),t}function ge(e,t,r){return fT(x.createAssignment(he(e),t),r)}function he(e){return x.getNamespaceMemberName(E,e,!1,!0)}function ye(e){var t=x.getGeneratedNameForNode(e);return Xg(t,e.name),t}function ve(e){return x.getGeneratedNameForNode(e)}function be(e){if(l&_&&!PC(e)&&!py(e)){var t=a.getReferencedExportContainer(e,!1);if(t&&307!==t.kind)if(2&_&&267===t.kind||8&_&&266===t.kind)return fT(x.createPropertyAccessExpression(x.getGeneratedNameForNode(t),e),e)}}function xe(e){t=e;var t=!SD(T)&&(dT(t)||EP(t))?a.getConstantValue(t):void 0;return void 0!==t?(ch(e,t),t="string"==typeof t?x.createStringLiteral(t):t<0?x.createPrefixUnaryExpression(41,x.createNumericLiteral(-t)):x.createNumericLiteral(t),T.removeComments||ah(t,3,` ${K7(K3(e,lD)).replace(/\*\//g,"*_/")} `),t):e}function g(e){return T.verbatimModuleSyntax||oT(e)||a.isReferencedAliasDeclaration(e)}}function YR(y){let{factory:v,getEmitHelperFactory:s,hoistVariableDeclaration:b,endLexicalEnvironment:z,startLexicalEnvironment:r,resumeLexicalEnvironment:q,addBlockScopedVariable:U}=y,p=y.getEmitResolver();var e=y.getCompilerOptions();let x=vD(e),d=DD(e),V=!!e.experimentalDecorators,f=!d,W=d&&x<9,u=f||W,S=x<9,l=x<99?-1:d?0:3,H=x<9,k=H&&2<=x,t=u||S||-1===l,n=y.onSubstituteNode,_=(y.onSubstituteNode=function(e,t){if(t=n(e,t),1!==e)return t;var r=t;switch(r.kind){case 80:return function(e){return function(e){if(1&o&&p.hasNodeCheckFlag(e,536870912)){var t=p.getReferencedValueDeclaration(e);if(t){var t=m[t.id];if(t)return Xg(t=v.cloneNode(t),e),LE(t,e),t}}}(e)||e}(r);case 110:return function(e){if(2&o&&null!=C&&C.data&&!i.has(e)){var{facts:t,classConstructor:r,classThis:n}=C.data,n=N?n??r:r;if(n)return fT(lT(v.cloneNode(n),e),e);if(1&t&&V)return v.createParenthesizedExpression(v.createVoidZero())}return e}(r)}return r},y.onEmitNode),K=!(y.onEmitNode=function(e,t,r){var n=K3(t),i=G.get(n);if(i){var a=C,o=D;C=i,D=N,N=!(eP(n)&&32&Vl(n)),_(e,t,r),N=D,D=o,C=a}else{switch(t.kind){case 218:if(LP(n)||524288&$7(t))break;case 262:case 176:case 177:case 178:case 174:case 172:var s=C,c=D;return C=void 0,D=N,N=!1,_(e,t,r),N=D,D=c,void(C=s);case 167:c=C,s=N;return C=null==C?void 0:C.previous,N=D,_(e,t,r),N=s,void(C=c)}_(e,t,r)}}),o,m,g,T,C,G=new Map,i=new Set,h,w,N=!1,D=!1;return Gj(y,function(e){if(e.isDeclarationFile)return e;if(C=void 0,K=!!(32&Vl(e)),!t&&!K)return e;e=hT(e,P,y);return _h(e,y.readEmitHelpers()),e});function E(e){return 129!==e.kind?o3(e,IC):se()?void 0:e}function P(e){if(!(16777216&e.transformFlags||134234112&e.transformFlags))return e;switch(e.kind){case 129:return Y4.fail("Use `modifierVisitor` instead.");case 263:return ve(e,be);case 231:return ve(e,xe);case 175:case 172:return Y4.fail("Use `classElementVisitor` instead.");case 303:var t=e;return hT(t=Vu(t,I)?WR(y,t):t,P,y);case 243:return t=e,h=T,T=[],t=hT(t,P,y),t=X4(T)?[t,...T]:t,T=h,t;case 260:h=e;return hT(h=Vu(h,I)?WR(y,h):h,P,y);case 169:var r=e;return hT(r=Vu(r,I)?WR(y,r):r,P,y);case 208:r=e;return hT(r=Vu(r,I)?WR(y,r):r,P,y);case 277:var n=e;return hT(n=Vu(n,I)?WR(y,n,!0,n.isExportEquals?"":"default"):n,P,y);case 81:n=e;return S?d7(n.parent)?n:lT(v.createIdentifier(""),n):n;case 211:var i=e;if(UE(i.name)){var a=J(i.name);if(a)return fT(lT(_e(a,i.expression),i),i)}if(k&&w&&s8(i)&&uT(i.name)&&ZR(w)&&null!=C&&C.data){var{classConstructor:a,superClassReference:o,facts:s}=C.data;if(1&s)return L(i);if(a&&o)return lT(s=v.createReflectGetCall(o,v.createStringLiteralFromNode(i.name),a),i.expression),fT(s,i.expression),s}return hT(i,P,y);case 212:o=e;if(k&&w&&s8(o)&&ZR(w)&&null!=C&&C.data){var{classConstructor:s,superClassReference:i,facts:c}=C.data;if(1&c)return L(o);if(s&&i)return lT(c=v.createReflectGetCall(i,mT(o.argumentExpression,P,nT),s),o.expression),fT(c,o.expression),c}return hT(o,P,y);case 224:case 225:return de(e,!1);case 226:return me(e,!1);case 217:return ge(e,!1);case 213:var l,_,c=e;return AC(c.expression)&&J(c.expression.name)?({thisArg:_,target:l}=v.createCallBinding(c.expression,b,x),yC(c)?v.updateCallChain(c,v.createPropertyAccessChain(mT(l,P,nT),c.questionDotToken,"call"),void 0,void 0,[mT(_,P,nT),...gT(c.arguments,P,nT)]):v.updateCallExpression(c,v.createPropertyAccessExpression(mT(l,P,nT),"call"),void 0,[mT(_,P,nT),...gT(c.arguments,P,nT)])):k&&w&&s8(c.expression)&&ZR(w)&&null!=(l=null==C?void 0:C.data)&&l.classConstructor?(lT(_=v.createFunctionCallCall(mT(c.expression,P,nT),C.data.classConstructor,gT(c.arguments,P,nT)),c),fT(_,c),_):hT(c,P,y);case 244:return p=e,v.updateExpressionStatement(p,mT(p.expression,F,nT));case 215:var u,d,p=e;return AC(p.tag)&&J(p.tag.name)?({thisArg:d,target:u}=v.createCallBinding(p.tag,b,x),v.updateTaggedTemplateExpression(p,v.createCallExpression(v.createPropertyAccessExpression(mT(u,P,nT),"bind"),void 0,[mT(d,P,nT)]),void 0,mT(p.template,P,Fc))):k&&w&&s8(p.tag)&&ZR(w)&&null!=(u=null==C?void 0:C.data)&&u.classConstructor?(lT(d=v.createFunctionBindCall(mT(p.tag,P,nT),C.data.classConstructor,[]),p),fT(d,p),v.updateTaggedTemplateExpression(p,d,void 0,mT(p.template,P,Fc))):hT(p,P,y);case 248:return g=e,v.updateForStatement(g,mT(g.initializer,F,zc),mT(g.condition,P,nT),mT(g.incrementor,F,nT),xj(g.statement,P,y));case 110:var f,m,g=e;return H&&w&&eP(w)&&null!=C&&C.data?({classThis:f,classConstructor:m}=C.data,f??m??g):g;case 262:case 218:return A(void 0,$,e);case 176:case 174:case 177:case 178:return A(e,$,e);default:return $(e)}var g,p,h}function $(e){return hT(e,P,y)}function F(e){switch(e.kind){case 224:case 225:return de(e,!0);case 226:return me(e,!0);case 355:var t=e,r=!0;return r=r?Sj(t.elements,F):Sj(t.elements,P,F),v.updateCommaListExpression(t,r);case 217:return ge(e,!0);default:return P(e)}}function X(e){switch(e.kind){case 298:return hT(e,X,y);case 233:var t=e,r=(null==(r=null==C?void 0:C.data)?void 0:r.facts)||0;return 4&r?(r=v.createTempVariable(b,!0),j().superClassReference=r,v.updateExpressionWithTypeArguments(t,v.createAssignment(r,mT(t.expression,P,nT)),void 0)):hT(t,P,y);default:return P(e)}}function c(e){switch(e.kind){case 210:case 209:return Le(e);default:return P(e)}}function Q(e){switch(e.kind){case 176:return A(e,te,e);case 177:case 178:case 174:return A(e,ne,e);case 172:return A(e,ce,e);case 175:return A(e,Se,e);case 167:return ee(e);case 240:return e;default:return(vc(e)?E:P)(e)}}function Y(e){return(167!==e.kind?P:ee)(e)}function Z(e){switch(e.kind){case 172:return oe(e);case 177:case 178:return Q(e);default:Y4.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function ee(e){var t=mT(e.expression,P,nT);return v.updateComputedPropertyName(e,(e=t,X4(g)&&(e=IP(e)?(g.push(e.expression),v.updateParenthesizedExpression(e,v.inlineExpressions(g))):(g.push(e),v.inlineExpressions(g)),g=void 0),e))}function te(e){return h?Te(e,h):$(e)}function re(e){return S||!!(wN(e)&&32&Vl(e))}function ne(e){var t;return Y4.assert(!AN(e)),FC(e)&&re(e)?(t=J(e.name),Y4.assert(t,"Undeclared private name for property declaration."),t.isValid?void((t=function(e){Y4.assert(UE(e.name));var t=J(e.name);if(Y4.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind)return h7(e)?t.getterName:g7(e)?t.setterName:void 0}(e))&&M().push(v.createAssignment(t,v.createFunctionExpression(NT(e.modifiers,e=>IC(e)&&!D0(e)&&!F0(e)),e.asteriskToken,t,void 0,vj(e.parameters,P,y),void 0,bj(e.body,P,y))))):e):hT(e,Q,y)}function A(e,t,r){var n;return e!==w?(n=w,w=e,e=t(r),w=n,e):t(r)}function ie(e){var t=th(e),r=$g(e),n=e.name;let i=n,a=n;HE(n)&&!nR(n.expression)&&(o=xv(n),a=o?(i=v.updateComputedPropertyName(n,mT(n.expression,P,nT)),v.updateComputedPropertyName(n,o.left)):(Xg(o=v.createTempVariable(b),n.expression),s=mT(n.expression,P,nT),Xg(s=v.createAssignment(o,s),n.expression),i=v.updateComputedPropertyName(n,s),v.updateComputedPropertyName(n,o)));var o,s=gT(e.modifiers,E,IC),n=yv(v,e,s,e.initializer),c=(lT(n,e),_T(n,3072),Xg(n,r),CN(e)?(o=j()).classThis??o.classConstructor??(null==h?void 0:h.name)??v.createThis():v.createThis()),l=vv(v,e,s,i,c),t=(lT(l,e),LE(l,t),Xg(l,r),v.createModifiersFromModifierFlags(LN(s))),s=bv(v,e,t,a,c);return lT(s,e),_T(s,3072),Xg(s,r),gj([n,l,s],Z,zC)}function ae(e){if(!u||VC(e))return v.updatePropertyDeclaration(e,gT(e.modifiers,E,IC),mT(e.name,Y,LC),void 0,void 0,mT(e.initializer,P,nT));var t=function(e,t){{var r,n,i,a;if(HE(e))return a=xv(e),r=mT(e.expression,P,nT),n=Ks(r),i=nR(n),!!a||zN(n)&&PC(n.left)||i||!t?i||uT(n)?void 0:r:(a=v.getGeneratedNameForNode(e),(p.hasNodeCheckFlag(e,32768)?U:b)(a),v.createAssignment(a,r))}}(e.name,!!e.initializer||d);if(t&&M().push(...kv(t)),CN(e)&&!S){var r,t=Ce(e,v.createThis());if(t)return lT(r=v.createClassStaticBlockDeclaration(v.createBlock([t])),e),LE(r,e),LE(t,{pos:-1,end:-1}),jE(t,void 0),ih(t,void 0),r}}function oe(e){return Y4.assert(!AN(e),"Decorators should already have been transformed and elided."),(FC(e)?function(e){if(!re(e))return f&&!CN(e)&&null!=C&&C.data&&16&C.data.facts?v.updatePropertyDeclaration(e,gT(e.modifiers,P,vc),e.name,void 0,void 0,void 0):(Vu(e,I)&&(e=WR(y,e)),v.updatePropertyDeclaration(e,gT(e.modifiers,E,IC),mT(e.name,Y,LC),void 0,void 0,mT(e.initializer,P,nT)));var t=J(e.name);if(Y4.assert(t,"Undeclared private name for property declaration."),!t.isValid)return e;if(t.isStatic&&!S){t=Ce(e,v.createThis());if(t)return v.createClassStaticBlockDeclaration(v.createBlock([t],!0))}}:ae)(e)}function se(){return-1===l||3===l&&null!=C&&C.data&&16&C.data.facts}function ce(e){return(VC(e)&&(se()||wN(e)&&32&Vl(e))?ie:oe)(e)}function le(e){w&&wN(w)&&UC(w)&&VC(K3(w))&&110===(e=l9(e)).kind&&i.add(e)}function _e(e,t){return le(t=mT(t,P,nT)),ue(e,t)}function ue(e,t){switch(LE(t,Dp(t,-1)),e.kind){case"a":return s().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return s().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return s().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return Y4.fail("Access helpers should not be created for untransformed private elements");default:Y4.assertNever(e,"Unknown private element type")}}function de(n,i){if(46===n.operator||47===n.operator){var a=Cw(n.operand);if(AC(a)){if(c=J(a.name)){var o=mT(a.expression,P,nT),{readExpression:o,initializeExpression:s}=(le(o),pe(o));let e=_e(c,o);var t=MP(n)||i?void 0:v.createTempVariable(b);return lT(e=he(c,s||o,e=uy(v,n,e,b,t),64),n),fT(e,n),t&&fT(e=v.createComma(e,t),n),e}}else if(k&&w&&s8(a)&&ZR(w)&&null!=C&&C.data){var{classConstructor:c,superClassReference:s,facts:o}=C.data;if(1&o)return t=L(a),MP(n)?v.updatePrefixUnaryExpression(n,t):v.updatePostfixUnaryExpression(n,t);if(c&&s){let t,r;if(dT(a)?uT(a.name)&&(r=t=v.createStringLiteralFromNode(a.name)):nR(a.argumentExpression)?r=t=a.argumentExpression:(r=v.createTempVariable(b),t=v.createAssignment(r,mT(a.argumentExpression,P,nT))),t&&r){let e=v.createReflectGetCall(s,r,c);fT(e,a);o=i?void 0:v.createTempVariable(b);return e=uy(v,n,e,b,o),lT(e=v.createReflectSetCall(s,t,e,c),n),fT(e,n),o&&fT(e=v.createComma(e,o),n),e}}}}return hT(n,P,y)}function pe(e){var t=rN(e)?e:v.cloneNode(e);return 110===e.kind&&i.has(e)&&i.add(t),nR(e)?{readExpression:t,initializeExpression:void 0}:{readExpression:e=v.createTempVariable(b),initializeExpression:v.createAssignment(e,t)}}function fe(e){if(C&&G.set(K3(e),C),S){if(OR(e))return zN(t=mT(e.body.statements[0].expression,P,nT),!0)&&t.left===t.right?void 0:t;if(JR(e))return mT(e.body.statements[0].expression,P,nT);r();var t=A(e,e=>gT(e,P,d7),e.body.statements),t=v.mergeLexicalEnvironment(t,z()),t=v.createImmediatelyInvokedArrowFunction(t);return lT(Cw(t.expression),e),Hg(Cw(t.expression),4),lT(t,e),fT(t,e),t}}function I(e){var t;return!(!JP(e)||e.name)&&!X4(t=_R(e),JR)&&(S||!!Vl(e))&&X4(t,e=>eP(e)||FC(e)||u&&uR(e))}function me(n,e){if(up(n))return i=g,g=void 0,n=v.updateBinaryExpression(n,mT(n.left,c,nT),n.operatorToken,mT(n.right,P,nT)),a=X4(g)?v.inlineExpressions(je([...g,n])):n,g=i,a;if(zN(n)){Vu(n,I)&&(n=WR(y,n),Y4.assertNode(n,zN));var i=l9(n.left,9);if(AC(i)){var a=J(i.name);if(a)return fT(lT(he(a,i.expression,n.right,n.operatorToken.kind),n),n)}else if(k&&w&&s8(n.left)&&ZR(w)&&null!=C&&C.data){var{classConstructor:a,superClassReference:i,facts:o}=C.data;if(1&o)return v.updateBinaryExpression(n,L(n.left),n.operatorToken,mT(n.right,P,nT));if(a&&i){let r=EP(n.left)?mT(n.left.argumentExpression,P,nT):uT(n.left.name)?v.createStringLiteralFromNode(n.left.name):void 0;if(r){let t=mT(n.right,P,nT);if(iR(n.operatorToken.kind)){let e=r;nR(r)||(e=v.createTempVariable(b),r=v.createAssignment(e,r));var o=v.createReflectGetCall(i,e,a);lT(o,n.left),fT(o,n.left),fT(t=v.createBinaryExpression(o,aR(n.operatorToken.kind),t),n)}o=e?void 0:v.createTempVariable(b);return o&&(t=v.createAssignment(o,t),fT(o,n)),lT(t=v.createReflectSetCall(i,r,t,a),n),fT(t,n),o&&fT(t=v.createComma(t,o),n),t}}}}return UE((e=n).left)&&103===e.operatorToken.kind?(a=J((i=n).left))?(o=mT(i.right,P,nT),lT(s().createClassPrivateFieldInHelper(a.brandCheckIdentifier,o),i)):hT(i,P,y):hT(n,P,y)}function ge(e,t){t=mT(e.expression,t?F:P,nT);return v.updateParenthesizedExpression(e,t)}function he(e,t,r,n){var i,a;switch(t=mT(t,P,nT),r=mT(r,P,nT),le(t),iR(n)&&({readExpression:i,initializeExpression:a}=pe(t),t=a||i,r=v.createBinaryExpression(ue(e,i),aR(n),r)),LE(t,Dp(t,-1)),e.kind){case"a":return s().createClassPrivateFieldSetHelper(t,e.brandCheckIdentifier,r,e.kind,e.setterName);case"m":return s().createClassPrivateFieldSetHelper(t,e.brandCheckIdentifier,r,e.kind,void 0);case"f":return s().createClassPrivateFieldSetHelper(t,e.brandCheckIdentifier,r,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return Y4.fail("Access helpers should not be created for untransformed private elements");default:Y4.assertNever(e,"Unknown private element type")}}function ye(e){return NT(e.members,dR)}function ve(e,t){var r=h,n=g,i=C,a=(h=e,g=void 0,C={previous:C,data:void 0},32&Vl(e)),a=((S||a)&&((a=tC(e))&&uT(a)?R().data.className=a:null!=(a=e.emitNode)&&a.assignedName&&qE(e.emitNode.assignedName)&&(e.emitNode.assignedName.textSourceNode&&uT(e.emitNode.assignedName.textSourceNode)?R().data.className=e.emitNode.assignedName.textSourceNode:R3(e.emitNode.assignedName.text,x)&&(a=v.createIdentifier(e.emitNode.assignedName.text),R().data.className=a))),S&&X4(a=ye(e))&&(R().data.weakSetName=Fe("instances",a[0].name)),function(e){let t,r=0;var n,i=K3(e);qC(i)&&f8(V,i)&&(r|=1),S&&(LR(e)||zR(e))&&(r|=2);let a=!1,o=!1,s=!1,c=!1;for(n of e.members)CN(n)?((n.name&&(UE(n.name)||VC(n))&&S||!(!VC(n)||-1!==l||e.name||null!=(t=e.emitNode)&&t.classThis))&&(r|=2),(QE(n)||eP(n))&&(H&&16384&n.transformFlags&&(1&(r|=8)||(r|=2)),k)&&134217728&n.transformFlags&&(1&r||(r|=6))):DN(K3(n))||(VC(n)?(c=!0,s=s||FC(n)):FC(n)?(s=!0,p.hasNodeCheckFlag(n,262144)&&(r|=2)):QE(n)&&(a=!0,o=o||!!n.initializer));return(W&&a||f&&o||S&&s||S&&c&&-1===l)&&(r|=16),r}(e)),t=(a&&(j().facts=a),8&a&&0==(2&o)&&(o|=2,y.enableSubstitution(110),y.enableEmitNotification(262),y.enableEmitNotification(218),y.enableEmitNotification(176),y.enableEmitNotification(177),y.enableEmitNotification(178),y.enableEmitNotification(174),y.enableEmitNotification(172),y.enableEmitNotification(167)),t(e,a));return C=null==C?void 0:C.previous,Y4.assert(C===i),h=r,g=n,t}function be(e,t){let r,n,i;2&t&&(i=S&&null!=(r=e.emitNode)&&r.classThis?(j().classConstructor=e.emitNode.classThis,v.createAssignment(e.emitNode.classThis,v.getInternalName(e))):(t=v.createTempVariable(b,!0),j().classConstructor=v.cloneNode(t),v.createAssignment(t,v.getInternalName(e)))),null!=(n=e.emitNode)&&n.classThis&&(j().classThis=e.emitNode.classThis);var t=p.hasNodeCheckFlag(e,262144),a=TN(e,32),o=TN(e,2048);let s=gT(e.modifiers,E,IC);var c=gT(e.heritageClauses,X,EF),{members:l,prologue:_}=ke(e),u=[],d=(i&&M().unshift(i),X4(g)&&u.push(v.createExpressionStatement(v.inlineExpressions(g))),(f||S||32&Vl(e))&&X4(d=_R(e))&&O(u,d,v.getInternalName(e)),0uv(e)?void 0:e,IC),u.push(v.createExportAssignment(void 0,!1,v.getLocalName(e,!1,!0)))),j().classConstructor),a=(t&&d&&(Ne(),m[Wj(e)]=d),v.updateClassDeclaration(e,s,e.name,void 0,c,l));return u.unshift(a),_&&u.unshift(v.createExpressionStatement(_)),u}function xe(t,e){var r=!!(1&e),n=_R(t),i=p.hasNodeCheckFlag(t,262144);let a=p.hasNodeCheckFlag(t,32768),o;function s(){var e;return S&&null!=(e=t.emitNode)&&e.classThis?j().classConstructor=t.emitNode.classThis:(e=v.createTempVariable(a?U:b,!0),j().classConstructor=v.cloneNode(e),e)}null!=(c=t.emitNode)&&c.classThis&&(j().classThis=t.emitNode.classThis),2&e&&(o=o??s());var c=gT(t.modifiers,E,IC),e=gT(t.heritageClauses,X,EF),{members:l,prologue:_}=ke(t),c=v.updateClassExpression(t,c,t.name,void 0,e,l),e=[],l=(_&&e.push(_),(S||32&Vl(t))&&X4(n,e=>eP(e)||FC(e)||u&&uR(e)));return l||X4(g)?r?(Y4.assertIsDefined(T,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),X4(g)&&BT(T,$4(g,v.createExpressionStatement)),X4(n)&&O(T,n,(null==(_=t.emitNode)?void 0:_.classThis)??v.getInternalName(t)),o?e.push(v.createAssignment(o,c)):S&&null!=(l=t.emitNode)&&l.classThis?e.push(v.createAssignment(t.emitNode.classThis,c)):e.push(c)):(o=o??s(),i&&(Ne(),(r=v.cloneNode(o)).emitNode.autoGenerate.flags&=-9,m[Wj(t)]=r),e.push(v.createAssignment(o,c)),BT(e,g),BT(e,function(t,r){var n=[];for(let e of t){var i=eP(e)?A(e,fe,e):A(e,()=>we(e,r),void 0);i&&(by(i),lT(i,e),Hg(i,3072&$7(e)),Xg(i,Pp(e)),LE(i,e),n.push(i))}return n}(n,o)),e.push(v.cloneNode(o))):e.push(c),1e!==t&&e!==r):a),a=fT(v.createNodeArray(_),e.members)}return{members:a,prologue:s}}function Te(e,t){var r,n;return e=mT(e,P,tP),null!=C&&C.data&&16&C.data.facts&&(n=!(!(n=Lw(t))||106===l9(n.expression).kind),r=vj(e?e.parameters:void 0,P,y),n=function(e,t,r){let n=cR(e,!1,!1),i=n;d||(i=NT(i,e=>!!e.initializer||UE(e.name)||PN(e)));var a=ye(e),o=X4(i)||X4(a);if(!t&&!o)return bj(void 0,P,y);q();let s=!t&&r,c=0,l=[],_=[],u=v.createThis();(function(e,t,r){S&&X4(t)&&(t=R().data["weakSetName"],Y4.assert(t,"weakSetName should be set in private identifier environment"),e.push(v.createExpressionStatement(function(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}(v,r,t))))})(_,a,u),t?(o=NT(n,e=>U3(K3(e),t)),r=NT(i,e=>!U3(K3(e),t)),O(_,o,u),O(_,r,u)):O(_,i,u);if(null!=t&&t.body){c=v.copyPrologue(t.body.statements,l,!1,P);a=sR(t.body.statements,c);if(a.length)!function r(n,t,i,a,o,s,c){let e=a[o];let l=t[e];BT(n,gT(t,P,d7,i,e-i));i=e+1;if(l1(l)){let e=[],t=(r(e,l.tryBlock.statements,0,a,o+1,s,c),v.createNodeArray(e));fT(t,l.tryBlock.statements),n.push(v.updateTryStatement(l,v.updateBlock(l.tryBlock,e),mT(l.catchClause,P,PF),mT(l.finallyBlock,P,KP)))}else{for(BT(n,gT(t,P,d7,e,1));i=l.length?t.body.multiLine??0n(e,p,t),serializeTypeOfNode:(e,t,r)=>n(e,_,t,r),serializeParameterTypesOfNode:(e,t,r)=>n(e,u,t,r),serializeReturnTypeOfNode:(e,t)=>n(e,d,t)};function n(e,t,r,n){var i=c,a=l,e=(c=e.currentLexicalScope,l=e.currentNameScope,void 0===n?t(r):t(r,n));return c=i,l=a,e}function _(e,t){switch(e.kind){case 172:case 169:return p(e.type);case 178:case 177:return p((r=qd((r=t).members,e)).setAccessor&&Jd(r.setAccessor)||r.getAccessor&&yN(r.getAccessor));case 263:case 231:case 174:return o.createIdentifier("Function");default:return o.createVoidZero()}var r}function u(e,t){var e=qC(e)?_N(e):jC(e)&&H7(e.body)?e:void 0,r=[];if(e){var n=function(e,t){if(t&&177===e.kind){t=qd(t.members,e)["setAccessor"];if(t)return t.parameters}return e.parameters}(e,t),i=n.length;for(let e=0;ee.parent&&gP(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))?o.createIdentifier("Object"):(t=function e(t){if(80===t.kind){let e=g(t);return m(e,e)}if(80===t.left.kind)return m(g(t.left),g(t));let r=e(t.left);let n=o.createTempVariable(a);return o.createLogicalAnd(o.createLogicalAnd(r.left,o.createStrictInequality(o.createAssignment(n,r.right),o.createVoidZero())),o.createPropertyAccessExpression(n,t.right))}(n.typeName),r=o.createTempVariable(a),o.createConditionalExpression(o.createTypeCheck(o.createAssignment(r,t),"function"),void 0,r,void 0,o.createIdentifier("Object")));case 1:return g(n.typeName);case 2:return o.createVoidZero();case 4:return h("BigInt",7);case 6:return o.createIdentifier("Boolean");case 3:return o.createIdentifier("Number");case 5:return o.createIdentifier("String");case 7:return o.createIdentifier("Array");case 8:return h("Symbol",2);case 10:return o.createIdentifier("Function");case 9:return o.createIdentifier("Promise");case 11:return o.createIdentifier("Object");default:return Y4.assertNever(i)}return;case 193:return f(e.types,!0);case 192:return f(e.types,!1);case 194:return f([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:break;case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return p(e.type);default:return Y4.failBadSyntaxKind(e)}return o.createIdentifier("Object")}function f(e,t){let r;for(var n of e)if(146===(n=Tw(n)).kind){if(t)return o.createVoidZero()}else{if(159===n.kind){if(t)continue;return o.createIdentifier("Object")}if(133===n.kind)return o.createIdentifier("Object");if(i||!(SP(n)&&106===n.literal.kind||157===n.kind)){n=p(n);if(uT(n)&&"Object"===n.escapedText)return n;if(r){if(!function e(t,r){return PC(t)?PC(r):uT(t)?uT(r)&&t.escapedText===r.escapedText:dT(t)?dT(r)&&e(t.expression,r.expression)&&e(t.name,r.name):U0(t)?U0(r)&&zE(t.expression)&&"0"===t.expression.text&&zE(r.expression)&&"0"===r.expression.text:qE(t)?qE(r)&&t.text===r.text:jP(t)?jP(r)&&e(t.expression,r.expression):IP(t)?IP(r)&&e(t.expression,r.expression):W0(t)?W0(r)&&e(t.condition,r.condition)&&e(t.whenTrue,r.whenTrue)&&e(t.whenFalse,r.whenFalse):!!pT(t)&&pT(r)&&t.operatorToken.kind===r.operatorToken.kind&&e(t.left,r.left)&&e(t.right,r.right)}(r,n))return o.createIdentifier("Object")}else r=n}}return r??o.createVoidZero()}function m(e,t){return o.createLogicalAnd(o.createStrictInequality(o.createTypeOfExpression(e),o.createStringLiteral("undefined")),t)}function g(e){switch(e.kind){case 80:var t=tE(fT(g9.cloneNode(e),e),e.parent);return t.original=void 0,tE(t,G3(c)),t;case 166:return t=e,o.createPropertyAccessExpression(g(t.left),t.right)}}function h(e,t){return ruv(e)||$E(e)?void 0:e,vc),a=Pp(e),o=function(e){{var t;if(g.hasNodeCheckFlag(e,262144))return y||(d.enableSubstitution(80),y=[]),t=p.createUniqueName(e.name&&!PC(e.name)?rT(e.name):"default"),y[Wj(e)]=t,m(t),t}}(e),s=h<2?p.getInternalName(e,!1,!0):p.getLocalName(e,!1,!0),c=gT(e.heritageClauses,v,EF),l=gT(e.members,v,zC),_=[];({members:l,decorationStatements:_}=b(e,l));var u=9<=h&&!!o&&X4(l,e=>QE(e)&&TN(e,256)||eP(e));u&&(l=fT(p.createNodeArray([p.createClassStaticBlockDeclaration(p.createBlock([p.createExpressionStatement(p.createAssignment(o,p.createThis()))])),...l]),l));t=p.createClassExpression(i,t&&PC(t)?void 0:t,void 0,c,l),lT(t,e),fT(t,a),u=o&&!u?p.createAssignment(o,t):t,t=p.createVariableDeclaration(s,void 0,void 0,u),lT(t,e),u=p.createVariableDeclarationList([t],1),t=p.createVariableStatement(void 0,u),lT(t,e),fT(t,a),LE(t,e),u=[t];BT(u,_),function(e,t){var r=function(e){var t=fR(e),t=x(t);var r,n;if(t)return r=y&&y[Wj(e)],n=h<2?p.getInternalName(e,!1,!0):p.getDeclarationName(e,!1,!0),t=f().createDecorateHelper(t,n),_T(n=p.createAssignment(n,r?p.createAssignment(r,t):t),3072),Xg(n,Pp(e)),n}(t);r&&e.push(lT(p.createExpressionStatement(r),t))}(u,e),r&&(n?(t=p.createExportDefault(s),u.push(t)):(t=p.createExternalModuleExport(p.getDeclarationName(e)),u.push(t)));return u}:function(e,t){let r=gT(e.modifiers,o,IC),n=gT(e.heritageClauses,v,EF),i=gT(e.members,v,zC),a=[];({members:i,decorationStatements:a}=b(e,i));e=p.updateClassDeclaration(e,r,t,void 0,n,i);return BT([e],a)})(t,t.name)):hT(t,v,d);case 231:return t=e,p.updateClassExpression(t,gT(t.modifiers,o,IC),t.name,void 0,gT(t.heritageClauses,v,EF),gT(t.members,v,zC));case 176:return a=e,p.updateConstructorDeclaration(a,gT(a.modifiers,o,IC),gT(a.parameters,v,GE),mT(a.body,v,KP));case 174:return a=e,s(p.updateMethodDeclaration(a,gT(a.modifiers,o,IC),a.asteriskToken,Y4.checkDefined(mT(a.name,v,LC)),void 0,void 0,gT(a.parameters,v,GE),void 0,mT(a.body,v,KP)),a);case 178:return i=e,s(p.updateSetAccessorDeclaration(i,gT(i.modifiers,o,IC),Y4.checkDefined(mT(i.name,v,LC)),gT(i.parameters,v,GE),mT(i.body,v,KP)),i);case 177:return i=e,s(p.updateGetAccessorDeclaration(i,gT(i.modifiers,o,IC),Y4.checkDefined(mT(i.name,v,LC)),gT(i.parameters,v,GE),void 0,mT(i.body,v,KP)),i);case 172:var r=e;return 33554432&r.flags||TN(r,128)?void 0:s(p.updatePropertyDeclaration(r,gT(r.modifiers,o,IC),Y4.checkDefined(mT(r.name,v,LC)),void 0,void 0,mT(r.initializer,v,nT)),r);case 169:var r=e,n=p.updateParameterDeclaration(r,pv(p,r.modifiers),r.dotDotDotToken,Y4.checkDefined(mT(r.name,v,fc)),void 0,void 0,mT(r.initializer,v,nT));return n!==r&&(LE(n,r),fT(n,Pp(r)),Xg(n,Pp(r)),_T(n.name,64)),n;default:return hT(e,v,d)}var i,a}function n(e){return!!(536870912&e.transformFlags)}function i(e){return X4(e,n)}function b(e,t){let r=[];return c(r,e,!1),c(r,e,!0),function(e){for(var t of e.members)if(m9(t)){t=mR(t,e,!0);if(X4(null==t?void 0:t.decorators,n))return 1;if(X4(null==t?void 0:t.parameters,i))return 1}}(e)&&(t=fT(p.createNodeArray([...t,p.createClassStaticBlockDeclaration(p.createBlock(r,!0))]),t),r=void 0),{decorationStatements:r,members:t}}function s(e,t){return e!==t&&(LE(e,t),Xg(e,Pp(t))),e}function a(e){return i0(e.expression,"___metadata")}function x(e){var t,r,n;if(e)return{false:t,true:r}=Z(e.decorators,a),BT(n=[],$4(t,l)),BT(n,FT(e.parameters,_)),BT(n,$4(r,l)),n}function c(e,t,r){BT(e,$4(function(e,t){let r=function(r,n){return NT(r.members,e=>{return t=n,U_(!0,e=e,r)&&t===CN(e);var t})}(e,t),n;for(var i of r)n=Q4(n,function(e,t){var r=mR(t,e,!0),r=x(r);var n,i;if(r)return e=function(e,t){return CN(t)?p.getDeclarationName(e):function(e){return p.createPropertyAccessExpression(p.getDeclarationName(e),"prototype")}(e)}(e,t),n=function(e,t){e=e.name;return UE(e)?p.createIdentifier(""):HE(e)?t&&!nR(e.expression)?p.getGeneratedNameForNode(e):e.expression:uT(e)?p.createStringLiteral(rT(e)):p.cloneNode(e)}(t,!TN(t,128)),i=QE(t)&&!PN(t)?p.createVoidZero():p.createNull(),_T(r=f().createDecorateHelper(r,e,n,i),3072),Xg(r,Pp(t)),r}(e,i));return n}(t,r),e=>p.createExpressionStatement(e)))}function l(e){return Y4.checkDefined(mT(e.expression,v,nT))}function _(e,t){let r;if(e){r=[];for(var n of e){var i=f().createParamHelper(l(n),t);fT(i,n.expression),_T(i,3072),r.push(i)}}return r}}function rM(T){let{factory:C,getEmitHelperFactory:w,startLexicalEnvironment:N,endLexicalEnvironment:D,hoistVariableDeclaration:E}=T,n=vD(T.getCompilerOptions()),v,P,F,b,x,S;return Gj(T,function(e){v=void 0,S=!1;e=hT(e,j,T);_h(e,T.readEmitHelpers()),S&&(Gg(e,32),S=!1);return e});function k(){switch(P=void 0,F=void 0,b=void 0,null==v?void 0:v.kind){case"class":P=v.classInfo;break;case"class-element":P=v.next.classInfo,F=v.classThis,b=v.classSuper;break;case"name":var e=v.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(P=e.next.classInfo,F=e.classThis,b=e.classSuper)}}function A(e){v={kind:"class",next:v,classInfo:e,savedPendingExpressions:x},x=void 0,k()}function I(){Y4.assert("class"===(null==v?void 0:v.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${null==v?void 0:v.kind}' instead.`),x=v.savedPendingExpressions,v=v.next,k()}function O(e){Y4.assert("class"===(null==v?void 0:v.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${null==v?void 0:v.kind}' instead.`),v={kind:"class-element",next:v},(eP(e)||QE(e)&&wN(e))&&(v.classThis=null==(e=v.next.classInfo)?void 0:e.classThis,v.classSuper=null==(e=v.next.classInfo)?void 0:e.classSuper),k()}function L(){var e;Y4.assert("class-element"===(null==v?void 0:v.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${null==v?void 0:v.kind}' instead.`),Y4.assert("class"===(null==(e=v.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=v.next)?void 0:e.kind}' instead.`}),v=v.next,k()}function g(){Y4.assert("class-element"===(null==v?void 0:v.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${null==v?void 0:v.kind}' instead.`),v={kind:"name",next:v},k()}function h(){Y4.assert("name"===(null==v?void 0:v.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${null==v?void 0:v.kind}' instead.`),v=v.next,k()}function j(e){if(!(33554432&(t=e).transformFlags||F&&16384&t.transformFlags||F&&b&&134217728&t.transformFlags))return e;var t;switch(e.kind){case 170:return Y4.fail("Use `modifierVisitor` instead.");case 263:var r,n,i,a=e;return U(a)?(s=[],c=(c=K3(a,qC)??a).name?C.createStringLiteralFromNode(c.name):C.createStringLiteral("default"),n=TN(a,32),r=TN(a,2048),a.name||(a=UR(T,a,c)),n&&r?(c=q(a),a.name?(lT(r=C.createVariableDeclaration(C.getLocalName(a),void 0,void 0,c),a),r=C.createVariableDeclarationList([r],1),r=C.createVariableStatement(void 0,r),s.push(r),lT(r=C.createExportDefault(C.getDeclarationName(a)),a),LE(r,th(a)),Xg(r,Ep(a)),s.push(r)):(lT(r=C.createExportDefault(c),a),LE(r,th(a)),Xg(r,Ep(a)),s.push(r))):(Y4.assertIsDefined(a.name,"A class declaration that is not a default export must have a name."),c=q(a),r=gT(a.modifiers,n?e=>S0(e)?void 0:M(e):M,IC),i=C.getLocalName(a,!1,!0),lT(c=C.createVariableDeclaration(i,void 0,void 0,c),a),c=C.createVariableDeclarationList([c],1),lT(r=C.createVariableStatement(r,c),a),LE(r,th(a)),s.push(r),n&&(lT(c=C.createExternalModuleExport(i),a),s.push(c))),Me(s)):(r=gT(a.modifiers,M,IC),n=gT(a.heritageClauses,j,EF),A(void 0),i=gT(a.members,B,zC),I(),C.updateClassDeclaration(a,r,a.name,void 0,n,i));case 231:var o,s,c=e;return U(c)?(lT(o=q(c),c),o):(o=gT(c.modifiers,M,IC),s=gT(c.heritageClauses,j,EF),A(void 0),a=gT(c.members,B,zC),I(),C.updateClassExpression(c,o,c.name,void 0,s,a));case 176:case 172:case 175:return Y4.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:var l=e,_=(Vu(l,K)&&(l=WR(T,l,G(l.initializer))),C.updateParameterDeclaration(l,void 0,l.dotDotDotToken,mT(l.name,j,fc),void 0,void 0,mT(l.initializer,j,nT)));return _!==l&&(LE(_,l),fT(_,Pp(l)),Xg(_,Pp(l)),_T(_.name,64)),_;case 226:return $(e,!1);case 303:l=e;return hT(l=Vu(l,K)?WR(T,l,G(l.initializer)):l,j,T);case 260:_=e;return hT(_=Vu(_,K)?WR(T,_,G(_.initializer)):_,j,T);case 208:var u=e;return hT(u=Vu(u,K)?WR(T,u,G(u.initializer)):u,j,T);case 277:u=e;return hT(u=Vu(u,K)?WR(T,u,G(u.expression)):u,j,T);case 110:return F??e;case 248:return d=e,C.updateForStatement(d,mT(d.initializer,J,zc),mT(d.condition,j,nT),mT(d.incrementor,J,nT),xj(d.statement,j,T));case 244:return hT(e,J,T);case 355:return Q(e,!1);case 217:return Z(e,!1);case 354:var d=e,p=!1;return p=p?J:j,p=mT(d.expression,p,nT),C.updatePartiallyEmittedExpression(d,p);case 213:p=e;return s8(p.expression)&&F?(f=mT(p.expression,j,nT),m=gT(p.arguments,j,nT),lT(f=C.createFunctionCallCall(f,F,m),p),fT(f,p),f):hT(p,j,T);case 215:var f,m=e;return s8(m.tag)&&F?(f=mT(m.tag,j,nT),lT(f=C.createFunctionBindCall(f,F,[]),m),fT(f,m),g=mT(m.template,j,Fc),C.updateTaggedTemplateExpression(m,f,void 0,g)):hT(m,j,T);case 224:case 225:return X(e,!1);case 211:var g=e;return s8(g)&&uT(g.name)&&F&&b?(h=C.createStringLiteralFromNode(g.name),lT(h=C.createReflectGetCall(b,h,F),g.expression),fT(h,g.expression),h):hT(g,j,T);case 212:var h=e;return s8(h)&&F&&b?(y=mT(h.argumentExpression,j,nT),lT(y=C.createReflectGetCall(b,y,F),h.expression),fT(y,h.expression),y):hT(h,j,T);case 167:return Y(e);case 174:case 178:case 177:case 218:case 262:"other"===(null==v?void 0:v.kind)?(Y4.assert(!x),v.depth++):(v={kind:"other",next:v,depth:0,savedPendingExpressions:x},x=void 0,k());var y=hT(e,R,T);return Y4.assert("other"===(null==v?void 0:v.kind),"Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${null==v?void 0:v.kind}' instead.`),0D0(e)?e:void 0,IC),C.createGetAccessorDeclaration(e,t,[],void 0,C.createBlock([C.createReturnStatement(C.createPropertyAccessExpression(r,C.createIdentifier("value")))]))}(o,s,c),a)):(c=gT(a.parameters,j,GE),i=mT(a.body,j,KP),L(),W(C.updateMethodDeclaration(a,o,a.asteriskToken,s,void 0,void 0,c,void 0,i),a));case 177:var e=n,{modifiers:t,name:r,descriptorName:l}=(O(e),H(e,P,ie));return l?(L(),W(se(t,r,l),e)):(l=gT(e.parameters,j,GE),_=mT(e.body,j,KP),L(),W(C.updateGetAccessorDeclaration(e,t,r,l,void 0,_),e));case 178:var t=n,{modifiers:r,name:l,descriptorName:_}=(O(t),H(t,P,ae));return _?(L(),W(ce(r,l,_),t)):(_=gT(t.parameters,j,GE),e=mT(t.body,j,KP),L(),W(C.updateSetAccessorDeclaration(t,r,l,_,e),t));case 172:{var u=n;Vu(u,K)&&(u=WR(T,u,G(u.initializer)));O(u),Y4.assert(!Zl(u),"Not yet implemented.");var{modifiers:d,name:p,initializersName:f,extraInitializersName:m,descriptorName:g,thisArg:h}=H(u,P,PN(u)?oe:void 0);N();let r=mT(u.initializer,j,nT);f&&(r=w().createRunInitializersHelper(h??C.createThis(),f,r??C.createVoidZero()));CN(u)&&P&&r&&(P.hasStaticInitializers=!0);h=D();X4(h)&&(r=C.createImmediatelyInvokedArrowFunction([...h,C.createReturnStatement(r)]));P&&(CN(u)?(r=te(P,!0,r),m&&(P.pendingStaticInitializers??(P.pendingStaticInitializers=[]),P.pendingStaticInitializers.push(w().createRunInitializersHelper(P.classThis??C.createThis(),m)))):(r=te(P,!1,r),m&&(P.pendingInstanceInitializers??(P.pendingInstanceInitializers=[]),P.pendingInstanceInitializers.push(w().createRunInitializersHelper(C.createThis(),m)))));if(L(),PN(u)&&g){f=th(u),h=$g(u),m=u.name;let e=m,t=m;HE(m)&&!nR(m.expression)&&(v=xv(m),t=v?(e=C.updateComputedPropertyName(m,mT(m.expression,j,nT)),C.updateComputedPropertyName(m,v.left)):(Xg(v=C.createTempVariable(E),m.expression),y=mT(m.expression,j,nT),Xg(y=C.createAssignment(v,y),m.expression),e=C.updateComputedPropertyName(m,y),C.updateComputedPropertyName(m,v)));var y=gT(d,e=>129!==e.kind?e:void 0,IC),m=yv(C,u,y,r),v=(lT(m,u),_T(m,3072),Xg(m,h),Xg(m.name,u.name),se(y,e,g)),f=(lT(v,u),LE(v,f),Xg(v,h),ce(y,t,g));return lT(f,u),_T(f,3072),Xg(f,h),[m,v,f]}return W(C.updatePropertyDeclaration(u,d,p,void 0,void 0,r),u);return}case 175:{g=n;O(g);let e;if(JR(g))e=hT(g,j,T);else if(OR(g)){var b=F;F=void 0,e=hT(g,j,T),F=b}else if(g=hT(g,j,T),e=g,P&&(P.hasStaticInitializers=!0,X4(P.pendingStaticInitializers))){var x,S=[];for(x of P.pendingStaticInitializers){var k=C.createExpressionStatement(x);Xg(k,$g(x)),S.push(k)}b=C.createBlock(S,!0),g=C.createClassStaticBlockDeclaration(b);e=[g,e],P.pendingStaticInitializers=void 0}return L(),e;return}default:return j(n)}}function J(e){switch(e.kind){case 224:case 225:return X(e,!0);case 226:return $(e,!0);case 355:return Q(e,!0);case 217:return Z(e,!0);default:return j(e)}}function y(e,t){return C.createUniqueName(function(e){let t=e.name&&uT(e.name)&&!PC(e.name)?rT(e.name):e.name&&UE(e.name)&&!PC(e.name)?rT(e.name).slice(1):e.name&&qE(e.name)&&R3(e.name.text,99)?e.name.text:qC(e)?"class":"member";return h7(e)&&(t="get_"+t),g7(e)&&(t="set_"+t),e.name&&UE(e.name)&&(t="private_"+t),"_"+(t=CN(e)?"static_"+t:t)}(e)+"_"+t,24)}function z(e,t){return C.createVariableStatement(void 0,C.createVariableDeclarationList([C.createVariableDeclaration(e,void 0,void 0,t)],1))}function q(e){N(),!qR(e)&&f8(!1,e)&&(e=UR(T,e,C.createStringLiteral("")));var t=C.getLocalName(e,!1,!1,!0),r=function(e){var t,r,n,i=C.createUniqueName("_metadata",48);let a,o,s=!1,c=!1,l=!1,_,u,d;q_(!1,e)&&(t=X4(e.members,e=>(FC(e)||VC(e))&&wN(e)),_=C.createUniqueName("_classThis",t?24:48));for(r of e.members)if(hc(r)&&U_(!1,r,e)&&(wN(r)?o||(o=C.createUniqueName("_staticExtraInitializers",48),Xg(n=w().createRunInitializersHelper(_??C.createThis(),o),e.name??Ep(e)),(u=u??[]).push(n)):(a||(a=C.createUniqueName("_instanceExtraInitializers",48),Xg(n=w().createRunInitializersHelper(C.createThis(),a),e.name??Ep(e)),(d=d??[]).push(n)),a=a??C.createUniqueName("_instanceExtraInitializers",48))),eP(r)?JR(r)||(s=!0):QE(r)&&(wN(r)?s=s||!!r.initializer||AN(r):c=c||!Zl(r)),(FC(r)||VC(r))&&wN(r)&&(l=!0),o&&a&&s&&c&&l)break;return{class:e,classThis:_,metadataReference:i,instanceMethodExtraInitializersName:a,staticMethodExtraInitializersName:o,hasStaticInitializers:s,hasNonAmbientInstanceFields:c,hasStaticPrivateClassElements:l,pendingStaticInitializers:u,pendingInstanceInitializers:d}}(e);let n=[],i,a,o,s,c=!1;var l=re(fR(e)),_=(l&&(r.classDecoratorsName=C.createUniqueName("_classDecorators",48),r.classDescriptorName=C.createUniqueName("_classDescriptor",48),r.classExtraInitializersName=C.createUniqueName("_classExtraInitializers",48),Y4.assertIsDefined(r.classThis),n.push(z(r.classDecoratorsName,C.createArrayLiteralExpression(l)),z(r.classDescriptorName),z(r.classExtraInitializersName,C.createArrayLiteralExpression()),z(r.classThis)),r.hasStaticPrivateClassElements)&&(c=!0,S=!0),wu(e.heritageClauses,96)),u=_&&UT(_.types),d=u&&mT(u.expression,j,nT),u=(d&&(r.classSuper=C.createUniqueName("_classSuper",48),h=JP(h=l9(d))&&!h.name||OP(h)&&!h.name||LP(h)?C.createComma(C.createNumericLiteral(0),d):d,n.push(z(r.classSuper,h)),d=C.updateExpressionWithTypeArguments(u,r.classSuper,void 0),h=C.updateHeritageClause(_,[d]),s=C.createNodeArray([h])),r.classThis??C.createThis());A(r),i=Q4(i,function(e,t){e=C.createVariableDeclaration(e,void 0,void 0,C.createConditionalExpression(C.createLogicalAnd(C.createTypeCheck(C.createIdentifier("Symbol"),"function"),C.createPropertyAccessExpression(C.createIdentifier("Symbol"),"metadata")),C.createToken(58),C.createCallExpression(C.createPropertyAccessExpression(C.createIdentifier("Object"),"create"),void 0,[t?function(e){return C.createBinaryExpression(C.createElementAccessExpression(e,C.createPropertyAccessExpression(C.createIdentifier("Symbol"),"metadata")),61,C.createNull())}(t):C.createNull()]),C.createToken(59),C.createVoidZero()));return C.createVariableStatement(void 0,C.createVariableDeclarationList([e],2))}(r.metadataReference,r.classSuper));let p=e.members;if(p=gT(p,e=>tP(e)?e:B(e),zC),p=gT(p,e=>tP(e)?B(e):e,zC),x){let r;for(var f of x){f=mT(f,function e(t){return 16384&t.transformFlags?110!==t.kind?hT(t,e,T):(r||(r=C.createUniqueName("_outerThis",16),n.unshift(z(r,C.createThis()))),r):t},nT);f=C.createExpressionStatement(f);i=Q4(i,f)}x=void 0}if(I(),X4(r.pendingInstanceInitializers)&&!_N(e)&&(_=V(0,r))&&(d=[],(h=Lw(e))&&106!==l9(h.expression).kind&&(h=C.createSpreadElement(C.createIdentifier("arguments")),h=C.createCallExpression(C.createSuper(),void 0,[h]),d.push(C.createExpressionStatement(h))),BT(d,_),h=C.createBlock(d,!0),o=C.createConstructorDeclaration(void 0,[],h)),r.staticMethodExtraInitializersName&&n.push(z(r.staticMethodExtraInitializersName,C.createArrayLiteralExpression())),r.instanceMethodExtraInitializersName&&n.push(z(r.instanceMethodExtraInitializersName,C.createArrayLiteralExpression())),r.memberInfos&&j7(r.memberInfos,(e,t)=>{CN(t)&&(n.push(z(e.memberDecoratorsName)),e.memberInitializersName&&n.push(z(e.memberInitializersName,C.createArrayLiteralExpression())),e.memberExtraInitializersName&&n.push(z(e.memberExtraInitializersName,C.createArrayLiteralExpression())),e.memberDescriptorName)&&n.push(z(e.memberDescriptorName))}),r.memberInfos&&j7(r.memberInfos,(e,t)=>{CN(t)||(n.push(z(e.memberDecoratorsName)),e.memberInitializersName&&n.push(z(e.memberInitializersName,C.createArrayLiteralExpression())),e.memberExtraInitializersName&&n.push(z(e.memberExtraInitializersName,C.createArrayLiteralExpression())),e.memberDescriptorName&&n.push(z(e.memberDescriptorName)))}),i=BT(i,r.staticNonFieldDecorationStatements),i=BT(i,r.nonStaticNonFieldDecorationStatements),i=BT(i,r.staticFieldDecorationStatements),i=BT(i,r.nonStaticFieldDecorationStatements),r.classDescriptorName&&r.classDecoratorsName&&r.classExtraInitializersName&&r.classThis&&(i=i??[],_=C.createPropertyAssignment("value",u),d=C.createObjectLiteralExpression([_]),h=C.createAssignment(r.classDescriptorName,d),_=C.createPropertyAccessExpression(u,"name"),d=w().createESDecorateHelper(C.createNull(),h,r.classDecoratorsName,{kind:"class",name:_,metadata:r.metadataReference},C.createNull(),r.classExtraInitializersName),Xg(h=C.createExpressionStatement(d),Ep(e)),i.push(h),_=C.createPropertyAccessExpression(r.classDescriptorName,"value"),d=C.createAssignment(r.classThis,_),h=C.createAssignment(t,d),i.push(C.createExpressionStatement(h))),i.push(function(e,t){e=C.createObjectDefinePropertyCall(e,C.createPropertyAccessExpression(C.createIdentifier("Symbol"),"metadata"),C.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:t},!0));return _T(C.createIfStatement(t,C.createExpressionStatement(e)),1)}(u,r.metadataReference)),X4(r.pendingStaticInitializers)){for(var m of r.pendingStaticInitializers){var g=C.createExpressionStatement(m);Xg(g,$g(m)),a=Q4(a,g)}r.pendingStaticInitializers=void 0}r.classExtraInitializersName&&(_=w().createRunInitializersHelper(u,r.classExtraInitializersName),Xg(d=C.createExpressionStatement(_),e.name??Ep(e)),a=Q4(a,d)),i&&a&&!r.hasStaticInitializers&&(BT(i,a),a=void 0);var h=i&&C.createClassStaticBlockDeclaration(C.createBlock(i,!0)),u=(h&&c&&Kg(h,32),a&&C.createClassStaticBlockDeclaration(C.createBlock(a,!0))),h=((h||o||u)&&(_=[],d=p.findIndex(JR),h?(BT(_,p,0,d+1),_.push(h),BT(_,p,d+1)):BT(_,p),o&&_.push(o),u&&_.push(u),p=fT(C.createNodeArray(_),p)),D());let y;if(l?(y=C.createClassExpression(void 0,void 0,void 0,s,p),r.classThis&&(y=jR(C,y,r.classThis)),d=C.createVariableDeclaration(t,void 0,void 0,y),u=C.createVariableDeclarationList([d]),_=r.classThis?C.createAssignment(t,r.classThis):t,n.push(C.createVariableStatement(void 0,u),C.createReturnStatement(_))):(y=C.createClassExpression(void 0,e.name,void 0,s,p),n.push(C.createReturnStatement(y))),c){Gg(y,32);for(var v of y.members)(FC(v)||VC(v))&&wN(v)&&Gg(v,32)}return lT(y,e),C.createImmediatelyInvokedArrowFunction(C.mergeLexicalEnvironment(n,h))}function U(e){return f8(!1,e)||V_(!1,e)}function V(e,t){var r;if(X4(t.pendingInstanceInitializers))return(r=[]).push(C.createExpressionStatement(C.inlineExpressions(t.pendingInstanceInitializers))),t.pendingInstanceInitializers=void 0,r}function W(e,t){return e!==t&&(LE(e,t),Xg(e,Ep(t))),e}function H(t,r,n){let i,a,o,s,c,l;if(!r)return _=gT(t.modifiers,M,IC),g(),a=e(t.name),h(),{modifiers:_,referencedName:i,name:a,initializersName:o,descriptorName:l,thisArg:c};var _=re(mR(t,r.class,!1)),u=gT(t.modifiers,M,IC);if(_){var d=y(t,"decorators"),_=C.createArrayLiteralExpression(_),_=C.createAssignment(d,_),p={memberDecoratorsName:d},_=(r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(t,p),(x=x??[]).push(_),hc(t)||VC(t)?CN(t)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):QE(t)&&!VC(t)?CN(t)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):Y4.fail()),f=rP(t)?"getter":nP(t)?"setter":ZE(t)?"method":VC(t)?"accessor":QE(t)?"field":Y4.fail();let e;uT(t.name)||UE(t.name)?e={computed:!1,name:t.name}:Hw(t.name)?e={computed:!0,name:C.createStringLiteralFromNode(t.name)}:Hw(m=t.name.expression)&&!uT(m)?e={computed:!0,name:C.createStringLiteralFromNode(m)}:(g(),{referencedName:i,name:a}=function(e){if(Hw(e)||UE(e))return t=C.createStringLiteralFromNode(e),r=mT(e,j,LC),{referencedName:t,name:r};{var t,r;if(Hw(e.expression)&&!uT(e.expression))return t=C.createStringLiteralFromNode(e.expression),r=mT(e,j,LC),{referencedName:t,name:r}}var n=C.getGeneratedNameForNode(e),i=(E(n),w().createPropKeyHelper(mT(e.expression,j,nT))),i=C.createAssignment(n,i),e=C.updateComputedPropertyName(e,ee(i));return{referencedName:n,name:e}}(t.name),e={computed:!0,name:i},h());var m={kind:f,name:e,static:CN(t),private:UE(t.name),access:{get:QE(t)||rP(t)||ZE(t),set:QE(t)||nP(t)},metadata:r.metadataReference};if(hc(t)){f=CN(t)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;Y4.assertIsDefined(f);let e;FC(t)&&n&&(e=n(t,gT(u,e=>o3(e,T0),IC)),p.memberDescriptorName=l=y(t,"descriptor"),e=C.createAssignment(l,e));f=w().createESDecorateHelper(C.createThis(),e??C.createNull(),d,m,C.createNull(),f),f=C.createExpressionStatement(f);Xg(f,Ep(t)),_.push(f)}else if(QE(t)){o=p.memberInitializersName??(p.memberInitializersName=y(t,"initializers")),s=p.memberExtraInitializersName??(p.memberExtraInitializersName=y(t,"extraInitializers")),CN(t)&&(c=r.classThis);let e;FC(t)&&PN(t)&&n&&(e=n(t,void 0),p.memberDescriptorName=l=y(t,"descriptor"),e=C.createAssignment(l,e));f=w().createESDecorateHelper(VC(t)?C.createThis():C.createNull(),e??C.createNull(),d,m,o,s),r=C.createExpressionStatement(f);Xg(r,Ep(t)),_.push(r)}}return void 0===a&&(g(),a=e(t.name),h()),X4(u)||!ZE(t)&&!QE(t)||_T(a,1024),{modifiers:u,referencedName:i,name:a,initializersName:o,extraInitializersName:s,descriptorName:l,thisArg:c}}function K(e){return JP(e)&&!e.name&&U(e)}function G(e){e=l9(e);return JP(e)&&!e.name&&!f8(!1,e)}function $(n,e){if(up(n))return i=c(n.left),a=mT(n.right,j,nT),C.updateBinaryExpression(n,i,n.operatorToken,a);if(zN(n)){if(Vu(n,K))return hT(n=WR(T,n,G(n.right)),j,T);if(s8(n.left)&&F&&b){let r=EP(n.left)?mT(n.left.argumentExpression,j,nT):uT(n.left.name)?C.createStringLiteralFromNode(n.left.name):void 0;if(r){let t=mT(n.right,j,nT);if(iR(n.operatorToken.kind)){let e=r;nR(r)||(e=C.createTempVariable(E),r=C.createAssignment(e,r));var i=C.createReflectGetCall(b,e,F);lT(i,n.left),fT(i,n.left),fT(t=C.createBinaryExpression(i,aR(n.operatorToken.kind),t),n)}var a=e?void 0:C.createTempVariable(E);return a&&(t=C.createAssignment(a,t),fT(a,n)),lT(t=C.createReflectSetCall(b,r,t,F),n),fT(t,n),a&&fT(t=C.createComma(t,a),n),t}}}return 28===n.operatorToken.kind?(i=mT(n.left,J,nT),a=mT(n.right,e?J:j,nT),C.updateBinaryExpression(n,i,n.operatorToken,a)):hT(n,j,T)}function X(n,i){if(46===n.operator||47===n.operator){var a=Cw(n.operand);if(s8(a)&&F&&b){let r=EP(a)?mT(a.argumentExpression,j,nT):uT(a.name)?C.createStringLiteralFromNode(a.name):void 0;if(r){let e=r,t=(nR(r)||(e=C.createTempVariable(E),r=C.createAssignment(e,r)),C.createReflectGetCall(b,e,F));lT(t,n),fT(t,n);a=i?void 0:C.createTempVariable(E);return t=uy(C,n,t,E,a),lT(t=C.createReflectSetCall(b,r,t,F),n),fT(t,n),a&&fT(t=C.createComma(t,a),n),t}}}return hT(n,j,T)}function Q(e,t){t=t?Sj(e.elements,J):Sj(e.elements,j,J);return C.updateCommaListExpression(e,t)}function e(e){return HE(e)?Y(e):mT(e,j,LC)}function Y(e){let t=mT(e.expression,j,nT);return nR(t)||(t=ee(t)),C.updateComputedPropertyName(e,t)}function a(e){if(DP(e)||NP(e))return c(e);if(s8(e)&&F&&b){var t,r=EP(e)?mT(e.argumentExpression,j,nT):uT(e.name)?C.createStringLiteralFromNode(e.name):void 0;if(r)return t=C.createTempVariable(void 0),lT(r=C.createAssignmentTargetWrapper(t,C.createReflectSetCall(b,r,t,F)),e),fT(r,e),r}return hT(e,j,T)}function o(e){var t,r;return zN(e,!0)?(t=a((e=Vu(e,K)?WR(T,e,G(e.right)):e).left),r=mT(e.right,j,nT),C.updateBinaryExpression(e,t,e.operatorToken,r)):a(e)}function i(e){var t,r;return Y4.assertNode(e,Pc),BP(e)?t7((t=e).expression)?(r=a(t.expression),C.updateSpreadElement(t,r)):hT(t,j,T):zP(e)?hT(e,j,T):o(e)}function s(e){var t,r,n,i;return Y4.assertNode(e,Dc),IF(e)?t7((r=e).expression)?(t=a(r.expression),C.updateSpreadAssignment(r,t)):hT(r,j,T):AF(e)?hT(t=Vu(t=e,K)?WR(T,t,G(t.objectAssignmentInitializer)):t,j,T):FF(e)?(i=mT((r=e).name,j,LC),zN(r.initializer,!0)?(n=o(r.initializer),C.updatePropertyAssignment(r,i,n)):t7(r.initializer)?(n=a(r.initializer),C.updatePropertyAssignment(r,i,n)):hT(r,j,T)):hT(e,j,T)}function c(e){var t;return NP(e)?(t=gT(e.elements,i,nT),C.updateArrayLiteralExpression(e,t)):(t=gT(e.properties,s,HC),C.updateObjectLiteralExpression(e,t))}function Z(e,t){t=mT(e.expression,t?J:j,nT);return C.updateParenthesizedExpression(e,t)}function l(e,t){return t=X4(e)?t?IP(t)?(e.push(t.expression),C.updateParenthesizedExpression(t,C.inlineExpressions(e))):(e.push(t),C.inlineExpressions(e)):C.inlineExpressions(e):t}function ee(e){var t=l(x,e);return Y4.assertIsDefined(t),t!==e&&(x=void 0),t}function te(e,t,r){var n=l(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,r);return n!==r&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),n}function re(e){var t;if(e)return BT(t=[],$4(e.decorators,_)),t}function _(e){var t,e=mT(e.expression,j,nT),r=(_T(e,3072),l9(e));return lD(r)?({target:r,thisArg:t}=C.createCallBinding(e,E,n,!0),C.restoreOuterExpressions(e,C.createFunctionBindCall(r,t,[]))):e}function r(e,t,r,n,i,a,o){r=C.createFunctionExpression(r,n,void 0,void 0,a,void 0,o??C.createBlock([])),lT(r,e),Xg(r,Ep(e)),_T(r,3072),n="get"===i||"set"===i?i:void 0,a=C.createStringLiteralFromNode(t,void 0),o=w().createSetFunctionNameHelper(r,a,n),t=C.createPropertyAssignment(C.createIdentifier(i),o);return lT(t,e),Xg(t,Ep(e)),_T(t,3072),t}function ne(e,t){return C.createObjectLiteralExpression([r(e,e.name,t,e.asteriskToken,"value",gT(e.parameters,j,GE),mT(e.body,j,KP))])}function ie(e,t){return C.createObjectLiteralExpression([r(e,e.name,t,void 0,"get",[],mT(e.body,j,KP))])}function ae(e,t){return C.createObjectLiteralExpression([r(e,e.name,t,void 0,"set",gT(e.parameters,j,GE),mT(e.body,j,KP))])}function oe(e,t){return C.createObjectLiteralExpression([r(e,e.name,t,void 0,"get",[],C.createBlock([C.createReturnStatement(C.createPropertyAccessExpression(C.createThis(),C.getGeneratedPrivateNameForNode(e.name)))])),r(e,e.name,t,void 0,"set",[C.createParameterDeclaration(void 0,void 0,"value")],C.createBlock([C.createExpressionStatement(C.createAssignment(C.createPropertyAccessExpression(C.createThis(),C.getGeneratedPrivateNameForNode(e.name)),C.createIdentifier("value")))]))])}function se(e,t,r){return e=gT(e,e=>D0(e)?e:void 0,IC),C.createGetAccessorDeclaration(e,t,[],void 0,C.createBlock([C.createReturnStatement(C.createFunctionCallCall(C.createPropertyAccessExpression(r,C.createIdentifier("get")),C.createThis(),[]))]))}function ce(e,t,r){return e=gT(e,e=>D0(e)?e:void 0,IC),C.createSetAccessorDeclaration(e,t,[C.createParameterDeclaration(void 0,void 0,"value")],C.createBlock([C.createReturnStatement(C.createFunctionCallCall(C.createPropertyAccessExpression(r,C.createIdentifier("set")),C.createThis(),[C.createIdentifier("value")]))]))}}function nM(v){let{factory:b,getEmitHelperFactory:x,resumeLexicalEnvironment:S,endLexicalEnvironment:k,hoistVariableDeclaration:r}=v,T=v.getEmitResolver(),t=v.getCompilerOptions(),C=vD(t),a,o=0,w,N,D,E,P=[],i=0,s=v.onEmitNode,R=v.onSubstituteNode;return v.onEmitNode=function(e,t,r){if(1&a&&function(e){e=e.kind;return 263===e||176===e||174===e||177===e||178===e}(t)){var n,i=(T.hasNodeCheckFlag(t,128)?128:0)|(T.hasNodeCheckFlag(t,256)?256:0);if(i!==o)return n=o,o=i,s(e,t,r),void(o=n)}else if(a&&P[oj(t)])return i=o,o=0,s(e,t,r),void(o=i);s(e,t,r)},v.onSubstituteNode=function(e,t){if(t=R(e,t),1===e&&o)return function(e){switch(e.kind){case 211:return h(e);case 212:return y(e);case 213:return function(e){var t=e.expression;if(s8(t))return t=(dT(t)?h:y)(t),b.createCallExpression(b.createPropertyAccessExpression(t,"call"),void 0,[b.createThis(),...e.arguments]);return e}(e)}return e}(t);return t},Gj(v,function(e){if(e.isDeclarationFile)return e;c(1,!1),c(2,!Yl(e,t));e=hT(e,A,v);return _h(e,v.readEmitHelpers()),e});function c(e,t){i=t?i|e:i&~e}function F(e){return 0!=(i&e)}function n(e,t,r){var n,e=e&~i;return e?(c(e,!0),n=t(r),c(e,!1),n):t(r)}function M(e){return hT(e,A,v)}function l(e){switch(e.kind){case 218:case 262:case 174:case 177:case 178:case 176:return e;case 169:case 208:case 260:break;case 80:if(E&&T.isArgumentsLocalBinding(e))return E}return hT(e,l,v)}function A(e){if(0==(256&e.transformFlags))return E?l(e):e;switch(e.kind){case 134:return;case 223:var t=e;return F(1)?lT(fT(b.createYieldExpression(void 0,mT(t.expression,A,nT)),t),t):hT(t,A,v);case 174:return n(3,J,e);case 262:return n(3,U,e);case 218:return n(3,V,e);case 219:return n(1,W,e);case 211:return N&&dT(e)&&108===e.expression.kind&&N.add(e.name.escapedText),hT(e,A,v);case 212:return N&&108===e.expression.kind&&(D=!0),hT(e,A,v);case 177:return n(3,z,e);case 178:return n(3,q,e);case 176:return n(3,B,e);case 263:case 231:return n(3,M,e);default:return hT(e,A,v)}}function I(e){if(bu(e))switch(e.kind){case 243:var t=e;return _(t.declarationList)?(o=u(t.declarationList,!1))?b.createExpressionStatement(o):void 0:hT(t,A,v);case 248:return t=(o=e).initializer,b.updateForStatement(o,_(t)?u(t,!1):mT(o.initializer,A,zc),mT(o.condition,A,nT),mT(o.incrementor,A,nT),xj(o.statement,I,v));case 249:return r=e,b.updateForInStatement(r,_(r.initializer)?u(r.initializer,!0):Y4.checkDefined(mT(r.initializer,A,zc)),Y4.checkDefined(mT(r.expression,A,nT)),xj(r.statement,I,v));case 250:return r=e,b.updateForOfStatement(r,mT(r.awaitModifier,A,w0),_(r.initializer)?u(r.initializer,!0):Y4.checkDefined(mT(r.initializer,A,zc)),Y4.checkDefined(mT(r.expression,A,nT)),xj(r.statement,I,v));case 299:{var n=e;var i=new Set;O(n.variableDeclaration,i);let r;{var a;return i.forEach((e,t)=>{w.has(t)&&(r=r||new Set(w)).delete(t)}),r?(i=w,w=r,a=hT(n,I,v),w=i,a):hT(n,I,v)}return}case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return hT(e,I,v);default:return Y4.assertNever(e,"Unhandled node.")}var r,o;return A(e)}function B(e){var t=E,e=(E=void 0,b.updateConstructorDeclaration(e,gT(e.modifiers,A,IC),vj(e.parameters,A,v),f(e)));return E=t,e}function J(e){var t,r=zw(e),n=E,r=(E=void 0,b.updateMethodDeclaration(e,gT(e.modifiers,A,vc),e.asteriskToken,e.name,void 0,void 0,t=2&r?m(e):vj(e.parameters,A,v),void 0,2&r?g(e,t):f(e)));return E=n,r}function z(e){var t=E,e=(E=void 0,b.updateGetAccessorDeclaration(e,gT(e.modifiers,A,vc),e.name,vj(e.parameters,A,v),void 0,f(e)));return E=t,e}function q(e){var t=E,e=(E=void 0,b.updateSetAccessorDeclaration(e,gT(e.modifiers,A,vc),e.name,vj(e.parameters,A,v),f(e)));return E=t,e}function U(e){var t,r=E,n=(E=void 0,zw(e)),n=b.updateFunctionDeclaration(e,gT(e.modifiers,A,vc),e.asteriskToken,e.name,void 0,t=2&n?m(e):vj(e.parameters,A,v),void 0,2&n?g(e,t):bj(e.body,A,v));return E=r,n}function V(e){var t,r=E,n=(E=void 0,zw(e)),n=b.updateFunctionExpression(e,gT(e.modifiers,A,IC),e.asteriskToken,e.name,void 0,t=2&n?m(e):vj(e.parameters,A,v),void 0,2&n?g(e,t):bj(e.body,A,v));return E=r,n}function W(e){var t,r=zw(e);return b.updateArrowFunction(e,gT(e.modifiers,A,IC),void 0,t=2&r?m(e):vj(e.parameters,A,v),void 0,e.equalsGreaterThanToken,2&r?g(e,t):bj(e.body,A,v))}function O({name:e},t){if(uT(e))t.add(e.escapedText);else for(var r of e.elements)zP(r)||O(r,t)}function _(e){return e&&tF(e)&&!(7&e.flags)&&e.declarations.some(p)}function u(e,t){G4(e.declarations,d);var r=Hp(e);return 0===r.length?t?mT(b.converters.convertToAssignmentElementTarget(e.declarations[0].name),A,nT):void 0:b.inlineExpressions($4(r,H))}function d({name:e}){if(uT(e))r(e);else for(var t of e.elements)zP(t)||d(t)}function H(e){e=Xg(b.createAssignment(b.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return Y4.checkDefined(mT(e,A,nT))}function p({name:e}){if(uT(e))return w.has(e.escapedText);for(var t of e.elements)if(!zP(t)&&p(t))return!0;return!1}function f(e){Y4.assertIsDefined(e.body);var t=N,r=D;N=new Set,D=!1;let n=bj(e.body,A,v);var i,a=K3(e,MC);return 2<=C&&(T.hasNodeCheckFlag(e,256)||T.hasNodeCheckFlag(e,128))&&3!=(3&zw(a))&&(j(),N.size&&(a=iM(b,T,e,N),P[oj(a)]=!0,Fl(i=n.statements.slice(),[a]),n=b.updateBlock(n,i)),D)&&(T.hasNodeCheckFlag(e,256)?lh(n,n0):T.hasNodeCheckFlag(e,128)&&lh(n,r0)),N=t,D=r,n}function L(){Y4.assert(E);var e=b.createVariableDeclaration(E,void 0,void 0,b.createIdentifier("arguments")),e=b.createVariableStatement(void 0,[e]);return by(e),Hg(e,2097152),e}function m(e){if(kR(e.parameters))return vj(e.parameters,A,v);var t,r=[];for(t of e.parameters){if(t.initializer||t.dotDotDotToken){219===e.kind&&(n=b.createParameterDeclaration(void 0,b.createToken(26),b.createUniqueName("args",8)),r.push(n));break}var n=b.createParameterDeclaration(void 0,void 0,b.getGeneratedNameForNode(t.name,8));r.push(n)}var i=b.createNodeArray(r);return fT(i,e.parameters),i}function g(t,r){var e=kR(t.parameters)?void 0:vj(t.parameters,A,v),n=(S(),K3(t,jC)),n=n.type,n=C<2?function(e){e=e&&u8(e);if(e&&OC(e)){var t=T.getTypeReferenceSerializationKind(e);if(1===t||0===t)return e}}(n):void 0,i=219===t.kind,a=E,o=T.hasNodeCheckFlag(t,512)&&!E;o&&(E=b.createUniqueName("arguments"));let s;if(e)if(i){var c=[];Y4.assert(r.length<=t.parameters.length);for(let e=0;e{var t=X3(t),r=[];r.push(n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[],void 0,void 0,_T(n.createPropertyAccessExpression(_T(n.createSuper(),8),t),8)))),i&&r.push(n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,n.createAssignment(_T(n.createPropertyAccessExpression(_T(n.createSuper(),8),t),8),n.createIdentifier("v"))))),a.push(n.createPropertyAssignment(t,n.createObjectLiteralExpression(r)))}),n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_super",48),void 0,void 0,n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[n.createNull(),n.createObjectLiteralExpression(a,!0)]))],2))}function aM(y){let{factory:v,getEmitHelperFactory:b,resumeLexicalEnvironment:s,endLexicalEnvironment:c,hoistVariableDeclaration:x}=y,l=y.getEmitResolver(),i=y.getCompilerOptions(),M=vD(i),a=y.onEmitNode,r=(y.onEmitNode=function(e,t,r){if(1&_&&function(e){e=e.kind;return 263===e||176===e||174===e||177===e||178===e}(t)){var n,i=(l.hasNodeCheckFlag(t,128)?128:0)|(l.hasNodeCheckFlag(t,256)?256:0);if(i!==o)return n=o,o=i,a(e,t,r),void(o=n)}else if(_&&p[oj(t)])return i=o,o=0,a(e,t,r),void(o=i);a(e,t,r)},y.onSubstituteNode),h=!(y.onSubstituteNode=function(e,t){if(t=r(e,t),1===e&&o)return function(e){switch(e.kind){case 211:return X(e);case 212:return Q(e);case 213:return function(e){var t=e.expression;if(s8(t))return t=(dT(t)?X:Q)(t),v.createCallExpression(v.createPropertyAccessExpression(t,"call"),void 0,[v.createThis(),...e.arguments]);return e}(e)}return e}(t);return t}),_,S,n,o=0,u=0,k,d,T,C,p=[];return Gj(y,function(e){if(e.isDeclarationFile)return e;e=function(e){var t=w(2,Yl(e,i)?0:1),r=(h=!1,hT(e,D,y)),n=LT(r.statements,d&&[v.createVariableStatement(void 0,v.createVariableDeclarationList(d))]),r=v.updateSourceFile(r,fT(v.createNodeArray(n),e.statements));return N(t),r}(k=e);return _h(e,y.readEmitHelpers()),k=void 0,d=void 0,e});function w(e,t){var r=u;return u=3&(u&~e|t),r}function N(e){u=e}function B(e){d=Q4(d,v.createVariableDeclaration(e))}function D(e){return t(e,!1)}function E(e){return t(e,!0)}function f(e){if(134!==e.kind)return e}function P(e,t,r,n){var i,a;return i=r,a=n,u!==(u&~i|a)?(i=w(r,n),a=e(t),N(i),a):e(t)}function F(e){return hT(e,D,y)}function t(e,r){if(0==(128&e.transformFlags))return e;switch(e.kind){case 223:var t=e;return 2&S&&1&S?lT(fT(v.createYieldExpression(void 0,b().createAwaitHelper(mT(t.expression,D,nT))),t),t):hT(t,D,y);case 229:t=e;return 2&S&&1&S?t.asteriskToken?(n=mT(Y4.checkDefined(t.expression),D,nT),lT(fT(v.createYieldExpression(void 0,b().createAwaitHelper(v.updateYieldExpression(t,t.asteriskToken,fT(b().createAsyncDelegatorHelper(fT(b().createAsyncValuesHelper(n),n)),n)))),t),t)):lT(fT(v.createYieldExpression(void 0,O(t.expression?mT(t.expression,D,nT):v.createVoidZero())),t),t):hT(t,D,y);case 253:var n=e;return 2&S&&1&S?v.updateReturnStatement(n,O(n.expression?mT(n.expression,D,nT):v.createVoidZero())):hT(n,D,y);case 256:var i=e;return 2&S?250===(a=I_(i)).kind&&a.awaitModifier?I(a,i):v.restoreEnclosingLabel(mT(a,D,d7,v.liftToBlock),i):hT(i,D,y);case 210:var a=e;if(65536&a.transformFlags){var o=function(e){let t,r=[];for(var n of e){var i;305===n.kind?(t&&(r.push(v.createObjectLiteralExpression(t)),t=void 0),i=n.expression,r.push(mT(i,D,nT))):t=Q4(t,303===n.kind?v.createPropertyAssignment(n.name,mT(n.initializer,D,nT)):mT(n,D,HC))}t&&r.push(v.createObjectLiteralExpression(t));return r}(a.properties);o.length&&210!==o[0].kind&&o.unshift(v.createObjectLiteralExpression());let t=o[0];if(1n&&BT(i,gT(t.statements,S,d7,n,e-n));break}e++}Y4.assert(et&&(t=r)}return t}(_.caseBlock.clauses);if(u){let r=C();return w([m.updateSwitchStatement(_,mT(_.expression,S,nT),m.updateCaseBlock(_.caseBlock,_.caseBlock.clauses.map(e=>{var t=r;return 0===fM(e.statements)?hT(e,S,f):C1(e)?m.updateCaseClause(e,mT(e.expression,S,nT),k(e.statements,0,e.statements.length,t,void 0)):m.updateDefaultClause(e,k(e.statements,0,e.statements.length,t,void 0))})))],r,2===u)}return hT(_,S,f);default:return hT(e,S,f)}}function k(t,r,n,i,a){let o=[];for(let e=r;et&&(t=r)}return t}function mM(o){let{factory:c,getEmitHelperFactory:l}=o,_=o.getCompilerOptions(),s,u;return Gj(o,function(e){if(e.isDeclarationFile)return e;s=e,(u={}).importSpecifier=OD(_,e);let t=hT(e,f,o),r=(_h(t,o.readEmitHelpers()),t.statements);u.filenameDeclaration&&(r=Ol(r.slice(),c.createVariableStatement(void 0,c.createVariableDeclarationList([u.filenameDeclaration],2))));if(u.utilizedImplicitRuntimeImports)for(var[n,i]of ZT(u.utilizedImplicitRuntimeImports.entries())){var a;b9(e)?(og(a=c.createImportDeclaration(void 0,c.createImportClause(!1,void 0,c.createNamedImports(ZT(i.values()))),c.createStringLiteral(n),void 0),!1),r=Ol(r.slice(),a)):N5(e)&&(og(a=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.createObjectBindingPattern(ZT(i.values(),e=>c.createBindingElement(void 0,e.propertyName,e.name))),void 0,void 0,c.createCallExpression(c.createIdentifier("require"),void 0,[c.createStringLiteral(n)]))],2)),!1),r=Ol(r.slice(),a))}r!==t.statements&&(t=c.updateSourceFile(t,r));return u=void 0,t});function d(e){return e=e,p(5===_.jsx?"jsxDEV":e?"jsxs":"jsx")}function p(e){var t="createElement"===e?u.importSpecifier:LD(u.importSpecifier,_),r=null==(r=null==(r=u.utilizedImplicitRuntimeImports)?void 0:r.get(t))?void 0:r.get(e);if(r)return r.name;u.utilizedImplicitRuntimeImports||(u.utilizedImplicitRuntimeImports=new Map);let n=u.utilizedImplicitRuntimeImports.get(t);n||(n=new Map,u.utilizedImplicitRuntimeImports.set(t,n));r=c.createUniqueName("_"+e,112),t=c.createImportSpecifier(!1,c.createIdentifier(e),r);return xh(r,t),n.set(e,t),r}function f(e){if(!(2&e.transformFlags))return e;var t=e;switch(t.kind){case 284:return i(t,!1);case 285:return a(t,!1);case 288:return h(t,!1);case 294:return E(t);default:return hT(t,f,o)}}function m(e){switch(e.kind){case 12:var t=e;return void 0===(t=function(t){let r,n=0,i=-1;for(let e=0;eFF(e)&&(uT(e.name)&&"__proto__"===rT(e.name)||qE(e.name)&&"__proto__"===e.name.text))}function r(e){return void 0===u.importSpecifier||function(e){let t=!1;for(var r of e.attributes.properties)if(!NF(r)||DP(r.expression)&&!r.expression.properties.some(IF)){if(t&&CF(r)&&uT(r.name)&&"key"===r.name.escapedText)return 1}else t=!0;return}(e)}function i(e,t){return(r(e.openingElement)?b:n)(e.openingElement,e.children,t,e)}function a(e,t){return(r(e)?b:n)(e,void 0,t,e)}function h(e,t){return(void 0===u.importSpecifier?S:x)(e.openingFragment,e.children,t,e)}function y(e){var t=nN(e);return 1!==K4(t)||t[0].dotDotDotToken?K4(e=AT(e,m))?c.createPropertyAssignment("children",c.createArrayLiteralExpression(e)):void 0:(e=m(t[0]))&&c.createPropertyAssignment("children",e)}function n(e,t,r,n){var i=D(e),a=t&&t.length?y(t):void 0;let o=bT(e.attributes.properties,e=>!!e.name&&uT(e.name)&&"key"===e.name.escapedText);e=o?NT(e.attributes.properties,e=>e!==o):e.attributes.properties;return v(i,K4(e)?k(e,a):c.createObjectLiteralExpression(a?[a]:H4),o,t||H4,r,n)}function v(e,t,r,n,i,a){var n=nN(n),n=1PT($4(e,e=>{return r?DP((t=e).expression)&&!g(t.expression)?ET(t.expression.properties,e=>Y4.checkDefined(mT(e,f,HC))):c.createSpreadAssignment(Y4.checkDefined(mT(t.expression,f,nT))):T(e);var t}))));t&&e.push(t);return e}(r,n));{var a,i=n;let e=[],t=[];for(a of r)if(NF(a))if(DP(a.expression)&&!g(a.expression))for(var o of a.expression.properties)IF(o)?(s(),e.push(Y4.checkDefined(mT(o.expression,f,nT)))):t.push(Y4.checkDefined(mT(o,f)));else s(),e.push(Y4.checkDefined(mT(a.expression,f,nT)));else t.push(T(a));return i&&t.push(i),s(),e.length&&!DP(e[0])&&e.unshift(c.createObjectLiteralExpression()),xi(e)||l().createAssignHelper(e);function s(){t.length&&(e.push(c.createObjectLiteralExpression(t)),t=[])}}}function T(e){var t=function(e){e=e.name;{var t;if(uT(e))return t=rT(e),/^[A-Za-z_]\w*$/.test(t)?e:c.createStringLiteral(t)}return c.createStringLiteral(rT(e.namespace)+":"+rT(e.name))}(e),e=C(e.initializer);return c.createPropertyAssignment(t,e)}function C(e){var t,r,n;return void 0===e?c.createTrue():11===e.kind?(t=void 0!==e.singleQuote?e.singleQuote:!Y_(e,s),fT(c.createStringLiteral((r=e.text,((n=N(r))===r?void 0:n)||e.text),t),e)):294===e.kind?void 0===e.expression?c.createTrue():Y4.checkDefined(mT(e.expression,f,nT)):xF(e)?i(e,!1):SF(e)?a(e,!1):S1(e)?h(e,!1):Y4.failBadSyntaxKind(e)}function w(e,t){t=N(t);return void 0===e?t:e+" "+t}function N(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(e,t,r,n,i,a,o)=>{return i?Lo(parseInt(i,10)):a?Lo(parseInt(a,16)):(i=gM.get(o))?Lo(i):e})}function D(e){return 284===e.kind?D(e.openingElement):uT(e=e.tagName)&&sN(e.escapedText)?c.createStringLiteral(rT(e)):DF(e)?c.createStringLiteral(rT(e.namespace)+":"+rT(e.name)):cy(c,e)}function E(e){var t=mT(e.expression,f,nT);return e.dotDotDotToken?c.createSpreadElement(t):t}}var gM=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 hM(r){let{factory:s,hoistVariableDeclaration:c}=r;return Gj(r,function(e){if(e.isDeclarationFile)return e;return hT(e,l,r)});function l(e){if(0==(512&e.transformFlags))return e;if(226!==e.kind)return hT(e,l,r);var t=e;switch(t.operatorToken.kind){case 68:return function(e){let t,r,n=mT(e.left,l,nT),i=mT(e.right,l,nT);{var a,o;r=EP(n)?(o=s.createTempVariable(c),a=s.createTempVariable(c),t=fT(s.createElementAccessExpression(fT(s.createAssignment(o,n.expression),n.expression),fT(s.createAssignment(a,n.argumentExpression),n.argumentExpression)),n),fT(s.createElementAccessExpression(o,a),n)):dT(n)?(o=s.createTempVariable(c),t=fT(s.createPropertyAccessExpression(fT(s.createAssignment(o,n.expression),n.expression),n.name),n),fT(s.createPropertyAccessExpression(o,n.name),n)):t=n}return fT(s.createAssignment(t,fT(s.createGlobalMethodCall("Math","pow",[r,i]),e)),e)}(t);case 43:return function(e){var t=mT(e.left,l,nT),r=mT(e.right,l,nT);return fT(s.createGlobalMethodCall("Math","pow",[t,r]),e)}(t);default:return hT(t,l,r)}}}function yM(e,t){return{kind:e,expression:t}}function vM(G){let{factory:$,getEmitHelperFactory:u,startLexicalEnvironment:_,resumeLexicalEnvironment:d,endLexicalEnvironment:p,hoistVariableDeclaration:X}=G,f=G.getCompilerOptions(),m=G.getEmitResolver(),S=G.onSubstituteNode,k=G.onEmitNode;G.onEmitNode=function(e,t,r){var n;1&i&&jC(t)?(n=ee(32670,16&$7(t)?81:65),k(e,t,r),te(n,0,0)):k(e,t,r)},G.onSubstituteNode=function(e,t){if(t=S(e,t),1===e)return function(e){switch(e.kind){case 80:return function(e){if(2&i&&!dy(e)){var t=m.getReferencedDeclarationWithCollidingName(e);if(t&&(!qC(t)||!function(e,t){let r=G3(t);if(!(!r||r===e||r.end<=e.pos||r.pos>=e.end))for(var n=_5(e);r;){if(r===n||r===e)return;if(zC(r)&&r.parent===e)return 1;r=r.parent}return}(t,e)))return fT($.getGeneratedNameForNode(tC(t)),e)}return e}(e);case 110:return function(e){if(1&i&&16&Y)return fT(ae(),e);return e}(e)}return e}(t);if(uT(t))return function(e){if(2&i&&!dy(e)){var t=G3(e,uT);if(t&&function(e){switch(e.parent.kind){case 208:case 263:case 266:case 260:return e.parent.name===e&&m.isDeclarationWithCollidingName(e.parent)}return}(t))return fT($.getGeneratedNameForNode(t),e)}return e}(t);return t};let Q,o,Y,a;function _e(e){a=Q4(a,$.createVariableDeclaration(e))}let Z,i;return Gj(G,function(e){if(e.isDeclarationFile)return e;Q=e,o=e.text;e=function(e){var t=ee(8064,64),r=[],n=[],i=(_(),$.copyPrologue(e.statements,r,!1,re));BT(n,gT(e.statements,re,d7,i)),a&&n.push($.createVariableStatement(void 0,$.createVariableDeclarationList(a)));return $.mergeLexicalEnvironment(r,p()),O(r,e),te(t,0,0),$.updateSourceFile(e,fT($.createNodeArray(LT(r,n)),e.statements))}(e);return _h(e,G.readEmitHelpers()),Q=void 0,o=void 0,a=void 0,Y=0,e});function ee(e,t){var r=Y;return Y=32767&(Y&~e|t),r}function te(e,t,r){Y=-32768&(Y&~t|r)|e}function ue(e){return 0!=(8192&Y)&&253===e.kind&&!e.expression}function n(e){return 0!=(1024&e.transformFlags)||void 0!==Z||8192&Y&&4194304&(t=e).transformFlags&&(i1(t)||XP(t)||a1(t)||o1(t)||u1(t)||C1(t)||w1(t)||l1(t)||PF(t)||s1(t)||n7(t,!1)||KP(t))||n7(e,!1)&&V(e)||0!=(1&Vl(e));var t}function re(e){return n(e)?s(e,!1):e}function ne(e){return n(e)?s(e,!0):e}function de(e){var t,r;return n(e)?QE(t=K3(e))&&wN(t)?(t=ee(32670,16449),r=s(e,!1),te(t,229376,0),r):s(e,!1):e}function ie(e){return 108===e.kind?Ae(e,!0):re(e)}function s(a,j){switch(a.kind){case 126:return;case 263:var e=a,t=$.createVariableDeclaration($.getLocalName(e,!0),void 0,void 0,me(e)),r=(lT(t,e),[]);return lT(t=$.createVariableStatement(void 0,$.createVariableDeclarationList([t])),e),fT(t,e),by(t),r.push(t),TN(e,32)&&(lT(e=TN(e,2048)?$.createExportDefault($.getLocalName(e)):$.createExternalModuleExport($.getLocalName(e)),t),r.push(e)),Me(r);case 231:return me(a);case 169:t=a;return t.dotDotDotToken?void 0:GC(t.name)?lT(fT($.createParameterDeclaration(void 0,void 0,$.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?lT(fT($.createParameterDeclaration(void 0,void 0,t.name,void 0,void 0,void 0),t),t):t;case 262:return e=a,r=Z,Z=void 0,O=ee(32670,65),H=vj(e.parameters,re,G),L=ce(e),K=32768&Y?$.getLocalName(e):e.name,te(O,229376,0),Z=r,$.updateFunctionDeclaration(e,gT(e.modifiers,re,IC),e.asteriskToken,K,void 0,H,void 0,L);case 219:return 16384&(O=a).transformFlags&&!(16384&Y)&&(Y|=131072),K=Z,Z=void 0,H=ee(15232,66),fT(L=$.createFunctionExpression(void 0,void 0,void 0,void 0,vj(O.parameters,re,G),void 0,ce(O)),O),lT(L,O),_T(L,16),te(H,0,0),Z=K,L;case 218:return E=524288&$7(D=a)?ee(32662,69):ee(32670,65),P=Z,Z=void 0,F=vj(D.parameters,re,G),A=ce(D),I=32768&Y?$.getLocalName(D):D.name,te(E,229376,0),Z=P,$.updateFunctionExpression(D,void 0,D.asteriskToken,I,void 0,F,void 0,A);case 260:return ve(a);case 80:return fe(a);case 261:E=a;return 7&E.flags||524288&E.transformFlags?(7&E.flags&&Ie(),P=gT(E.declarations,1&E.flags?ye:ve,eF),lT(D=$.createVariableDeclarationList(P),E),fT(D,E),LE(D,E),524288&E.transformFlags&&(GC(E.declarations[0].name)||GC(GT(E.declarations).name))&&Xg(D,function(e){let t=-1,r=-1;for(var n of e)t=-1===t?n.pos:-1===n.pos?t:Math.min(t,n.pos),r=Math.max(r,n.end);return wp(t,r)}(P)),D):hT(E,re,G);case 255:I=a;return void 0===Z?hT(I,re,G):(F=Z.allowedNonLabeledJumps,Z.allowedNonLabeledJumps|=2,I=hT(I,re,G),Z.allowedNonLabeledJumps=F,I);case 269:return A=a,n=ee(7104,0),A=hT(A,re,G),te(n,0,0),A;case 241:var n=a,i=!1;return i?hT(n,re,G):(i=256&Y?ee(7104,512):ee(6976,128),n=hT(n,re,G),te(i,0,0),n);case 252:case 251:i=a;if(Z){var o=252===i.kind?2:4;if(!(i.label&&Z.labels&&Z.labels.get(rT(i.label))||!i.label&&Z.allowedNonLabeledJumps&o)){let e;o=i.label;o?252===i.kind?(e="break-"+o.escapedText,we(Z,!0,rT(o),e)):(e="continue-"+o.escapedText,we(Z,!1,rT(o),e)):e=252===i.kind?(Z.nonLocalJumps|=2,"break"):(Z.nonLocalJumps|=4,"continue");let r=$.createStringLiteral(e);if(Z.loopOutParameters.length){var R=Z.loopOutParameters;let t;for(let e=0;eGP(e)&&!!WT(e.declarationList.declarations).initializer,r=Z,n=(Z=void 0,gT(e.statements,de,d7)),i=(Z=r,NT(n,t)),a=NT(n,e=>!t(e)),o=s3(WT(i),GP),s=o.declarationList.declarations[0],c=l9(s.initializer),l=o3(c,zN);!l&&pT(c)&&28===c.operatorToken.kind&&(l=o3(c.left,zN));let _=s3(l?l9(l.right):c,PP),u=s3(l9(_.expression),OP),d=u.body.statements,p=0,f=-1,m=[];l&&((g=o3(d[p],$P))&&(m.push(g),p++),m.push(d[p]),p++,m.push($.createExpressionStatement($.createAssignment(l.left,s3(s.name,uT)))));for(;!i1(Re(d,f));)f--;BT(m,d,p,f),f<-1&&BT(m,d,f+1);var v=o3(Re(d,f),i1);for(var J of a)i1(J)&&null!=v&&v.expression&&!uT(v.expression)?m.push(v):m.push(J);return BT(m,i,1),$.restoreOuterExpressions(y.expression,$.restoreOuterExpressions(s.initializer,$.restoreOuterExpressions(l&&l.right,$.updateCallExpression(_,$.restoreOuterExpressions(_.expression,$.updateFunctionExpression(u,void 0,void 0,void 0,void 0,u.parameters,void 0,$.updateBlock(u.body,m))),void 0,_.arguments))));return}else if(108===(g=l9(h.expression)).kind||s8(g)||X4(h.arguments,BP)){y=h;var z=!0;if(32768&y.transformFlags||108===y.expression.kind||s8(l9(y.expression))){var{target:d,thisArg:p}=$.createCallBinding(y.expression,X);108===y.expression.kind&&_T(p,8);let e;return e=32768&y.transformFlags?$.createFunctionApplyCall(Y4.checkDefined(mT(d,ie,nT)),108===y.expression.kind?p:Y4.checkDefined(mT(p,re,nT)),De(y.arguments,!0,!1,!1)):fT($.createFunctionCallCall(Y4.checkDefined(mT(d,ie,nT)),108===y.expression.kind?p:Y4.checkDefined(mT(p,re,nT)),gT(y.arguments,re,nT)),y),108===y.expression.kind&&(d=$.createLogicalOr(e,oe()),e=z?$.createAssignment(ae(),d):d),lT(e,y)}F5(y)&&(Y|=131072);return hT(y,re,G);return}else return $.updateCallExpression(h,Y4.checkDefined(mT(h.expression,ie,nT)),void 0,gT(h.arguments,re,nT));case 214:p=a;return X4(p.arguments,BP)?({target:z,thisArg:d}=$.createCallBinding($.createPropertyAccessExpression(p.expression,"bind"),X),$.createNewExpression($.createFunctionApplyCall(Y4.checkDefined(mT(z,re,nT)),d,De($.createNodeArray([$.createVoidZero(),...p.arguments]),!0,!1,!1)),void 0,[])):hT(p,re,G);case 217:return hT(a,j?ne:re,G);case 226:return he(a,j);case 355:{var f=a;h=j;if(h)return hT(f,ne,G);let t;for(let e=0;euT(e.name)&&!e.initializer)}(s))return n;e++}var c=n.statements[e];let t=c.expression;h(t)&&(t=t.right);a=$.updateVariableDeclaration(a,a.name,void 0,void 0,t),a=$.updateVariableDeclarationList(i.declarationList,[a]),i=$.createVariableStatement(i.modifiers,a),a=(lT(i,c),fT(i,c),$.createNodeArray([...n.statements.slice(0,o),...n.statements.slice(o+1,e),i,...n.statements.slice(e+1)]));return fT(a,n.statements),$.updateBlock(n,a)}}}return n}(e),t))!==n&&(e=function(e,t){if(16384&t.transformFlags||65536&Y||131072&Y)return e;for(var r of t.statements)if(134217728&r.transformFlags&&!oR(r))return e;return $.updateBlock(e,gT(e.statements,E,d7))}(e,t));r&&(e=function(e){return $.updateBlock(e,gT(e.statements,P,d7))}(e));return e}(r,e.body,n)}(o,t,n,s));fT(r,o||t),n&&_T(r,16);e.push(r),te(a,229376,0),Z=i}(n,i,r,a),function(e,t){for(var r of t.members)switch(r.kind){case 240:e.push(function(e){return fT($.createEmptyStatement(),e)}(r));break;case 174:e.push(function(e,t,r){var n=th(t),i=$g(t),r=se(t,t,void 0,r),a=mT(t.name,re,LC);Y4.assert(a);let o;{var s;o=!UE(a)&&DD(G.getCompilerOptions())?(s=HE(a)?a.expression:uT(a)?$.createStringLiteral(X3(a.escapedText)):a,$.createObjectDefinePropertyCall(e,s,$.createPropertyDescriptor({value:r,enumerable:!1,writable:!0,configurable:!0}))):(s=ey($,e,a,t.name),$.createAssignment(s,r))}_T(r,3072),Xg(r,i);e=fT($.createExpressionStatement(o),t);return lT(e,t),LE(e,n),_T(e,96),e}(Oe(t,r),r,t));break;case 177:case 178:var n=qd(t.members,r);r===n.firstAccessor&&e.push(function(e,t,r){e=$.createExpressionStatement(ge(e,t,r,!1));return _T(e,3072),Xg(e,$g(t.firstAccessor)),e}(Oe(t,r),n,t));break;case 176:case 175:break;default:Y4.failBadSyntaxKind(r,Q&&Q.fileName)}}(n,i),a=Ap(j3(o,i.members.end),20),ng(r=$.createPartiallyEmittedExpression(r),a.end),_T(r,3072),rg(r=$.createReturnStatement(r),a.pos),_T(r,3840),n.push(r),Fl(n,p()),_T(a=$.createBlock(fT($.createNodeArray(n),i.members),!0),3072),a)),n=(_T(r,131072&$7(e)|1048576),$.createPartiallyEmittedExpression(r)),i=(ng(n,e.end),_T(n,3072),$.createPartiallyEmittedExpression(n)),a=(ng(i,j3(o,e.pos)),_T(i,3072),$.createParenthesizedExpression($.createCallExpression(i,void 0,t?[Y4.checkDefined(mT(t.expression,re,nT))]:[])));return RE(a,3,"* @class "),a}function c(e){if(F5(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:return HE(e.name)?!!h9(e.name,c):!1}return!!h9(e,c)}function l(e){return PC(e)&&"_this"===rT(e)}function t(e){return PC(e)&&"_super"===rT(e)}function g(e){return GP(e)&&1===e.declarationList.declarations.length&&eF(e=e.declarationList.declarations[0])&&l(e.name)&&e.initializer}function h(e){return zN(e,!0)&&l(e.left)}function r(e){return PP(e)&&dT(e.expression)&&t(e.expression.expression)&&uT(e.expression.name)&&("call"===rT(e.expression.name)||"apply"===rT(e.expression.name))&&1<=e.arguments.length&&110===e.arguments[0].kind}function T(e){return pT(e)&&57===e.operatorToken.kind&&110===e.right.kind&&r(e.left)}function C(e){return pT(e)&&56===e.operatorToken.kind&&pT(e.left)&&38===e.left.operatorToken.kind&&t(e.left.left)&&106===e.left.right.kind&&r(e.right)&&"apply"===rT(e.right.expression.name)}function w(e){return pT(e)&&57===e.operatorToken.kind&&110===e.right.kind&&C(e.left)}function N(e){return h(e)&&T(e.right)}function D(e){return r(e)||T(e)||N(e)||C(e)||w(e)||h(e=e)&&w(e.right)}function E(e){if(g(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(h(e))return $.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:var t=e;return HE(t.name)?$.replacePropertyName(t,hT(t.name,E,void 0)):e}return hT(e,E,void 0)}function P(e){if(r(e)&&2===e.arguments.length&&uT(e.arguments[1])&&"arguments"===rT(e.arguments[1]))return $.createLogicalAnd($.createStrictInequality(x(),$.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:var t=e;return HE(t.name)?$.replacePropertyName(t,hT(t.name,P,void 0)):e}return hT(e,P,void 0)}function oe(){return _T($.createThis(),8)}function F(e){return void 0!==e.initializer||GC(e.name)}function A(e,t){if(!X4(t.parameters,F))return!1;let r=!1;for(var n of t.parameters){var i,a,o,{name:s,initializer:c,dotDotDotToken:l}=n;l||(GC(s)?r=function(e,t,r,n){{if(0e.name)),n=n?$.createYieldExpression($.createToken(42),_T(t,8388608)):t;if(a)i.push($.createExpressionStatement(n)),b(e.loopOutParameters,1,0,i);else{t=$.createUniqueName("state"),a=$.createVariableStatement(void 0,$.createVariableDeclarationList([$.createVariableDeclaration(t,void 0,void 0,n)]));if(i.push(a),b(e.loopOutParameters,1,0,i),8&e.nonLocalJumps){let e;e=r?(r.nonLocalJumps|=8,$.createReturnStatement(t)):$.createReturnStatement($.createPropertyAccessExpression(t,"value")),i.push($.createIfStatement($.createTypeCheck(t,"object"),e))}2&e.nonLocalJumps&&i.push($.createIfStatement($.createStrictEquality(t,$.createStringLiteral("break")),$.createBreakStatement())),(e.labeledNonLocalBreaks||e.labeledNonLocalContinues)&&(Ne(e.labeledNonLocalBreaks,!0,t,r,n=[]),Ne(e.labeledNonLocalContinues,!1,t,r,n),i.push($.createSwitchStatement(t,$.createCaseBlock(n))))}return i}(n,t,r,s);return{functionName:n,containsYield:s,functionDeclaration:o,part:i}}(t,a,o):void 0;Z=o,s&&e.push(s.functionDeclaration);c&&e.push(c.functionDeclaration);(function(e,t,r){let n;t.argumentsName&&(r?r.argumentsName=t.argumentsName:(n=n||[]).push($.createVariableDeclaration(t.argumentsName,void 0,void 0,$.createIdentifier("arguments"))));t.thisName&&(r?r.thisName=t.thisName:(n=n||[]).push($.createVariableDeclaration(t.thisName,void 0,void 0,$.createIdentifier("this"))));if(t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{n=n||[];for(var i of t.hoistedLocalVariables)n.push($.createVariableDeclaration(i))}if(t.loopOutParameters.length){n=n||[];for(var a of t.loopOutParameters)n.push($.createVariableDeclaration(a.outParamName))}t.conditionVariable&&(n=n||[]).push($.createVariableDeclaration(t.conditionVariable,void 0,void 0,$.createFalse()));n&&e.push($.createVariableStatement(void 0,$.createVariableDeclarationList(n)))})(e,a,o),s&&e.push(function(e,t){e=$.createCallExpression(e,void 0,[]),t=t?$.createYieldExpression($.createToken(42),_T(e,8388608)):e;return $.createExpressionStatement(t)}(s.functionName,s.containsYield));let l;l=c?i?i(t,r,c.part,n):(o=H(t,s,$.createBlock(c.part,!0)),$.restoreEnclosingLabel(o,r,Z&&le)):(i=H(t,s,Y4.checkDefined(mT(t.statement,re,d7,$.liftToBlock))),$.restoreEnclosingLabel(i,r,Z&&le));return e.push(l),e}(r,n,e,i);return te(e,0,0),t}function xe(e,t){return y(0,1280,e,t)}function Se(e,t){return y(5056,3328,e,t)}function ke(e,t){return y(3008,5376,e,t)}function Te(e,t){return y(3008,5376,e,t,f.downlevelIteration?J:B)}function R(e,t,r){var n,i,a,o=[],s=e.initializer;return tF(s)?(7&e.initializer.flags&&Ie(),(n=UT(s.declarations))&&GC(n.name)?(i=DR(n,re,G,0,t),lT(a=fT($.createVariableDeclarationList(i),e.initializer),e.initializer),Xg(a,wp(i[0].pos,GT(i).end)),o.push($.createVariableStatement(void 0,a))):o.push(fT($.createVariableStatement(void 0,lT(fT($.createVariableDeclarationList([$.createVariableDeclaration(n?n.name:$.createTempVariable(void 0),void 0,void 0,t)]),Dp(s,-1)),s)),Np(s,-1)))):up(i=$.createAssignment(s,t))?o.push($.createExpressionStatement(he(i,!0))):(ng(i,s.end),o.push(fT($.createExpressionStatement(Y4.checkDefined(mT(i,re,nT))),Np(s,-1)))),r?M(BT(o,r)):(a=mT(e.statement,re,d7,$.liftToBlock),Y4.assert(a),KP(a)?$.updateBlock(a,fT($.createNodeArray(LT(o,a.statements)),a.statements)):(o.push(a),M(o)))}function M(e){return _T($.createBlock($.createNodeArray(e),!0),864)}function B(e,t,r){var n=mT(e.expression,re,nT),i=(Y4.assert(n),$.createLoopVariable()),a=uT(n)?$.getGeneratedNameForNode(n):$.createTempVariable(void 0),n=(_T(n,96|$7(n)),fT($.createForStatement(_T(fT($.createVariableDeclarationList([fT($.createVariableDeclaration(i,void 0,void 0,$.createNumericLiteral(0)),Dp(e.expression,-1)),fT($.createVariableDeclaration(a,void 0,void 0,n),e.expression)]),e.expression),4194304),fT($.createLessThan(i,$.createPropertyAccessExpression(a,"length")),e.expression),fT($.createPostfixIncrement(i),e.expression),R(e,$.createElementAccessExpression(a,i),r)),e));return _T(n,512),fT(n,e),$.restoreEnclosingLabel(n,t,Z&&le)}function J(e,t,r,n){var i=mT(e.expression,re,nT),a=(Y4.assert(i),uT(i)?$.getGeneratedNameForNode(i):$.createTempVariable(void 0)),o=uT(i)?$.getGeneratedNameForNode(a):$.createTempVariable(void 0),s=$.createUniqueName("e"),c=$.getGeneratedNameForNode(s),l=$.createTempVariable(void 0),i=fT(u().createValuesHelper(i),e.expression),_=$.createCallExpression($.createPropertyAccessExpression(a,"next"),void 0,[]),n=(X(s),X(l),1024&n?$.inlineExpressions([$.createAssignment(s,$.createVoidZero()),i]):i),i=_T(fT($.createForStatement(_T(fT($.createVariableDeclarationList([fT($.createVariableDeclaration(a,void 0,void 0,n),e.expression),$.createVariableDeclaration(o,void 0,void 0,_)]),e.expression),4194304),$.createLogicalNot($.createPropertyAccessExpression(o,"done")),$.createAssignment(o,_),R(e,$.createPropertyAccessExpression(o,"value"),r)),e),512);return $.createTryStatement($.createBlock([$.restoreEnclosingLabel(i,t,Z&&le)]),$.createCatchClause($.createVariableDeclaration(c),_T($.createBlock([$.createExpressionStatement($.createAssignment(s,$.createObjectLiteralExpression([$.createPropertyAssignment("error",c)])))]),1)),$.createBlock([$.createTryStatement($.createBlock([_T($.createIfStatement($.createLogicalAnd($.createLogicalAnd(o,$.createLogicalNot($.createPropertyAccessExpression(o,"done"))),$.createAssignment(l,$.createPropertyAccessExpression(a,"return"))),$.createExpressionStatement($.createFunctionCallCall(l,a,[]))),1)]),void 0,_T($.createBlock([_T($.createIfStatement(s,$.createThrowStatement($.createPropertyAccessExpression(s,"error"))),1)]),1))]))}function v(e){return m.hasNodeCheckFlag(e,8192)}function z(e){return QP(e)&&!!e.initializer&&v(e.initializer)}function q(e){return QP(e)&&!!e.condition&&v(e.condition)}function U(e){return QP(e)&&!!e.incrementor&&v(e.incrementor)}function V(e){return W(e)||z(e)}function W(e){return m.hasNodeCheckFlag(e,4096)}function H(e,t,r){switch(e.kind){case 248:return o=t,s=r,c=(a=e).condition&&v(a.condition),l=c||a.incrementor&&v(a.incrementor),$.updateForStatement(a,mT(o?o.part:a.initializer,ne,zc),mT(c?void 0:a.condition,re,nT),mT(l?void 0:a.incrementor,ne,nT),s);case 249:return o=e,c=r,$.updateForInStatement(o,Y4.checkDefined(mT(o.initializer,re,zc)),Y4.checkDefined(mT(o.expression,re,nT)),c);case 250:return l=e,a=r,$.updateForOfStatement(l,void 0,Y4.checkDefined(mT(l.initializer,re,zc)),Y4.checkDefined(mT(l.expression,re,nT)),a);case 246:return s=e,i=r,$.updateDoStatement(s,i,Y4.checkDefined(mT(s.expression,re,nT)));case 247:return i=e,n=r,$.updateWhileStatement(i,Y4.checkDefined(mT(i.expression,re,nT)),n);default:return Y4.failBadSyntaxKind(e,"IterationStatement expected")}var n,i,a,o,s,c,l}function K(e){return $.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function Ce(e,t){var r=0===t?e.outParamName:e.originalName,t=0===t?e.originalName:e.outParamName;return $.createBinaryExpression(t,64,r)}function b(e,t,r,n){for(var i of e)i.flags&t&&n.push($.createExpressionStatement(Ce(i,r)))}function we(e,t,r,n){(t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues)).set(r,n)}function Ne(e,i,a,o,s){e&&e.forEach((e,t)=>{var r,n=[];!o||o.labels&&o.labels.get(t)?(r=$.createIdentifier(t),n.push(i?$.createBreakStatement(r):$.createContinueStatement(r))):(we(o,i,t,e),n.push($.createReturnStatement(a))),s.push($.createCaseClause($.createStringLiteral(e),n))})}function De(t,r,i,a){let o=t.length;var n=PT(Le(t,e,(e,t,r,n)=>t(e,i,a&&n===o)));if(1===n.length){t=n[0];if(r&&!f.downlevelIteration||cg(t.expression)||i0(t.expression,"___spreadArray"))return t.expression}var s=u(),t=0!==n[0].kind;let c=t?$.createArrayLiteralExpression():n[0].expression;for(let e=t?0:1;eh.createAssignment(h.createPropertyAccessExpression(h.createIdentifier("exports"),h.createIdentifier(rT(t))),e),h.createVoidZero())));for(t of _.exportedFunctions)I(r,t);Q4(r,mT(_.externalHelpersImportDeclaration,T,d7)),BT(r,gT(e.statements,T,d7,n)),d(r,!1),Fl(r,a());n=h.updateSourceFile(e,fT(h.createNodeArray(r),e.statements));return _h(n,g.readEmitHelpers()),n}function J(e){var t=h.createIdentifier("define"),r=Ny(h,e,y,f),n=D5(e)&&e,{aliasedModuleNames:i,unaliasedModuleNames:a,importAliasNames:o}=c(e,!0),t=h.updateSourceFile(e,fT(h.createNodeArray([h.createExpressionStatement(h.createCallExpression(t,void 0,[...r?[r]:[],h.createArrayLiteralExpression(n?H4:[h.createStringLiteral("require"),h.createStringLiteral("exports"),...i,...a]),n?n.statements.length?n.statements[0].expression:h.createObjectLiteralExpression():h.createFunctionExpression(void 0,void 0,void 0,void 0,[h.createParameterDeclaration(void 0,void 0,"require"),h.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,u(e))]))]),e.statements));return _h(t,g.readEmitHelpers()),t}function z(e){var{aliasedModuleNames:t,unaliasedModuleNames:r,importAliasNames:n}=c(e,!1),i=Ny(h,e,y,f),i=h.createFunctionExpression(void 0,void 0,void 0,void 0,[h.createParameterDeclaration(void 0,void 0,"factory")],void 0,fT(h.createBlock([h.createIfStatement(h.createLogicalAnd(h.createTypeCheck(h.createIdentifier("module"),"object"),h.createTypeCheck(h.createPropertyAccessExpression(h.createIdentifier("module"),"exports"),"object")),h.createBlock([h.createVariableStatement(void 0,[h.createVariableDeclaration("v",void 0,void 0,h.createCallExpression(h.createIdentifier("factory"),void 0,[h.createIdentifier("require"),h.createIdentifier("exports")]))]),_T(h.createIfStatement(h.createStrictInequality(h.createIdentifier("v"),h.createIdentifier("undefined")),h.createExpressionStatement(h.createAssignment(h.createPropertyAccessExpression(h.createIdentifier("module"),"exports"),h.createIdentifier("v")))),1)]),h.createIfStatement(h.createLogicalAnd(h.createTypeCheck(h.createIdentifier("define"),"function"),h.createPropertyAccessExpression(h.createIdentifier("define"),"amd")),h.createBlock([h.createExpressionStatement(h.createCallExpression(h.createIdentifier("define"),void 0,[...i?[i]:[],h.createArrayLiteralExpression([h.createStringLiteral("require"),h.createStringLiteral("exports"),...t,...r]),h.createIdentifier("factory")]))])))],!0),void 0)),t=h.updateSourceFile(e,fT(h.createNodeArray([h.createExpressionStatement(h.createCallExpression(i,void 0,[h.createFunctionExpression(void 0,void 0,void 0,void 0,[h.createParameterDeclaration(void 0,void 0,"require"),h.createParameterDeclaration(void 0,void 0,"exports"),...n],void 0,u(e))]))]),e.statements));return _h(t,g.readEmitHelpers()),t}function c(e,t){var r,n,i=[],a=[],o=[];for(r of e.amdDependencies)r.name?(i.push(h.createStringLiteral(r.path)),o.push(h.createParameterDeclaration(void 0,void 0,r.name))):a.push(h.createStringLiteral(r.path));for(n of _.externalImports){var s=wy(h,n,x,y,m,f),c=Cy(h,n,x);s&&(t&&c?(_T(c,8),i.push(s),o.push(h.createParameterDeclaration(void 0,void 0,c))):a.push(s))}return{aliasedModuleNames:i,unaliasedModuleNames:a,importAliasNames:o}}function q(e){if(!_F(e)&&!hF(e)&&wy(h,e,x,y,m,f)){var t=Cy(h,e,x),e=P(e,t);if(e!==t)return h.createExpressionStatement(h.createAssignment(t,e))}}function u(e){i();var t,r=[],n=h.copyPrologue(e.statements,r,!0,T);s()&&Q4(r,H()),X4(_.exportedNames)&&Q4(r,h.createExpressionStatement(QT(_.exportedNames,(e,t)=>h.createAssignment(h.createPropertyAccessExpression(h.createIdentifier("exports"),h.createIdentifier(rT(t))),e),h.createVoidZero())));for(t of _.exportedFunctions)I(r,t);Q4(r,mT(_.externalHelpersImportDeclaration,T,d7)),2===b&&BT(r,AT(_.externalImports,q)),BT(r,gT(e.statements,T,d7,n)),d(r,!0),Fl(r,a());e=h.createBlock(r,!0);return k&&lh(e,SM),e}function d(e,t){var r;_.exportEquals&&(r=mT(_.exportEquals.expression,w,nT))&&(t?(fT(t=h.createReturnStatement(r),_.exportEquals),_T(t,3840),e.push(t)):(fT(t=h.createExpressionStatement(h.createAssignment(h.createPropertyAccessExpression(h.createIdentifier("module"),"exports"),r)),_.exportEquals),_T(t,3072),e.push(t)))}function T(r){switch(r.kind){case 272:{var n=r;let e,t=tw(n);if(2!==b){if(!n.importClause)return lT(fT(h.createExpressionStatement(F(n)),n),n);var i=[];t&&!lu(n)?i.push(h.createVariableDeclaration(h.cloneNode(t.name),void 0,void 0,P(n,F(n)))):(i.push(h.createVariableDeclaration(h.getGeneratedNameForNode(n),void 0,void 0,P(n,F(n)))),t&&lu(n)&&i.push(h.createVariableDeclaration(h.cloneNode(t.name),void 0,void 0,h.getGeneratedNameForNode(n)))),e=Q4(e,lT(fT(h.createVariableStatement(void 0,h.createVariableDeclarationList(i,2<=v?2:0)),n),n))}else t&&lu(n)&&(e=Q4(e,h.createVariableStatement(void 0,h.createVariableDeclarationList([lT(fT(h.createVariableDeclaration(h.cloneNode(t.name),void 0,void 0,h.getGeneratedNameForNode(n)),n),n)],2<=v?2:0))));return Me(e=function(e,t){if(!_.exportEquals){t=t.importClause;if(t){var r=new eR,n=(t.name&&(e=O(e,r,t)),t.namedBindings);if(n)switch(n.kind){case 274:e=O(e,r,n);break;case 275:for(var i of n.elements)e=O(e,r,i,!0)}}}return e}(e,n));return}case 271:{i=r;Y4.assert(x8(i),"import= for internal module references should be handled in an earlier transformer.");let e;2!==b?e=TN(i,32)?Q4(e,lT(fT(h.createExpressionStatement(L(i.name,F(i))),i),i)):Q4(e,lT(fT(h.createVariableStatement(void 0,h.createVariableDeclarationList([h.createVariableDeclaration(h.cloneNode(i.name),void 0,void 0,F(i))],2<=v?2:0)),i),i)):TN(i,32)&&(e=Q4(e,lT(fT(h.createExpressionStatement(L(h.getExportName(i),h.getLocalName(i))),i),i)));return Me(e=function(e,t){if(_.exportEquals)return e;return O(e,new eR,t)}(e,i));return}case 278:var e=r;if(e.moduleSpecifier){var t=h.getGeneratedNameForNode(e);if(e.exportClause&&yF(e.exportClause)){var a,o=[];2!==b&&o.push(lT(fT(h.createVariableStatement(void 0,h.createVariableDeclarationList([h.createVariableDeclaration(t,void 0,void 0,F(e))])),e),e));for(a of e.exportClause.elements){var s=!(!kD(f)||2&Vl(e)||"default"!==rT(a.propertyName||a.name)),s=h.createPropertyAccessExpression(s?l().createImportDefaultHelper(t):t,a.propertyName||a.name);o.push(lT(fT(h.createExpressionStatement(L(h.getExportName(a),s,void 0,!0)),a),a))}return Me(o)}return e.exportClause?((n=[]).push(lT(fT(h.createExpressionStatement(L(h.cloneNode(e.exportClause.name),function(e,t){return!kD(f)||2&Vl(e)||!$j(e)?t:l().createImportStarHelper(t)}(e,2!==b?F(e):zl(e)?t:h.createIdentifier(rT(e.exportClause.name))))),e),e)),Me(n)):lT(fT(h.createExpressionStatement(l().createExportStarHelper(2!==b?F(e):t)),e),e)}return;case 277:var c=r;return c.isExportEquals?void 0:K(h.createIdentifier("default"),mT(c.expression,w,nT),c,!0);default:return C(r)}}function C(t){switch(t.kind){case 243:{var a=t;let r,n,i;if(TN(a,32)){let e,t=!1;for(var o of a.declarationList.declarations){var s,c;uT(o.name)&&py(o.name)?(e=e||gT(a.modifiers,j,IC),n=o.initializer?(s=h.updateVariableDeclaration(o,o.name,void 0,void 0,L(o.name,mT(o.initializer,w,nT))),Q4(n,s)):Q4(n,o)):o.initializer&&(!GC(o.name)&&(LP(o.initializer)||OP(o.initializer)||JP(o.initializer))?(s=h.createAssignment(fT(h.createPropertyAccessExpression(h.createIdentifier("exports"),o.name),o.name),h.createIdentifier(Kw(o.name))),c=h.createVariableDeclaration(o.name,o.exclamationToken,o.type,mT(o.initializer,w,nT)),n=Q4(n,c),i=Q4(i,s),t=!0):i=Q4(i,function(e){return GC(e.name)?CR(mT(e,w,Kp),w,g,0,!1,V):h.createAssignment(fT(h.createPropertyAccessExpression(h.createIdentifier("exports"),e.name),e.name),e.initializer?mT(e.initializer,w,nT):h.createVoidZero())}(o)))}n&&(r=Q4(r,h.updateVariableStatement(a,e,h.updateVariableDeclarationList(a.declarationList,n)))),i&&(l=lT(fT(h.createExpressionStatement(h.inlineExpressions(i)),a),a),t&&Wg(l),r=Q4(r,l))}else r=Q4(r,hT(a,w,g));return Me(r=function(e,t){return A(e,t.declarationList,!1)}(r,a));return}case 262:{var l=t;let e;e=TN(l,32)?Q4(e,lT(fT(h.createFunctionDeclaration(gT(l.modifiers,j,IC),l.asteriskToken,h.getDeclarationName(l,!0,!0),void 0,gT(l.parameters,w,GE),void 0,hT(l.body,w,g)),l),l)):Q4(e,hT(l,w,g));return Me(e);return}case 263:{var r=t;let e;e=TN(r,32)?Q4(e,lT(fT(h.createClassDeclaration(gT(r.modifiers,j,vc),h.getDeclarationName(r,!0,!0),void 0,gT(r.heritageClauses,w,EF),gT(r.members,w,zC)),r),r)):Q4(e,hT(r,w,g));return Me(e=I(e,r));return}case 248:return U(t,!0);case 249:r=t;if(tF(r.initializer)&&!(7&r.initializer.flags)){var n=A(void 0,r.initializer,!0);if(X4(n))return _=mT(r.initializer,N,zc),u=mT(r.expression,w,nT),i=xj(r.statement,C,g),n=KP(i)?h.updateBlock(i,[...n,...i.statements]):h.createBlock([...n,i],!0),h.updateForInStatement(r,_,u,n)}return h.updateForInStatement(r,mT(r.initializer,N,zc),mT(r.expression,w,nT),xj(r.statement,C,g));case 250:var i=t;if(!tF(i.initializer)||7&i.initializer.flags)return h.updateForOfStatement(i,i.awaitModifier,mT(i.initializer,N,zc),mT(i.expression,w,nT),xj(i.statement,C,g));{var _=A(void 0,i.initializer,!0),u=mT(i.initializer,N,zc),n=mT(i.expression,w,nT);let e=xj(i.statement,C,g);return X4(_)&&(e=KP(e)?h.updateBlock(e,[..._,...e.statements]):h.createBlock([..._,e],!0)),h.updateForOfStatement(i,i.awaitModifier,u,n,e)}case 246:return m=t,h.updateDoStatement(m,xj(m.statement,C,g),mT(m.expression,w,nT));case 247:return m=t,h.updateWhileStatement(m,mT(m.expression,w,nT),xj(m.statement,C,g));case 256:return f=t,h.updateLabeledStatement(f,f.label,Y4.checkDefined(mT(f.statement,C,d7,h.liftToBlock)));case 254:return f=t,h.updateWithStatement(f,mT(f.expression,w,nT),Y4.checkDefined(mT(f.statement,C,d7,h.liftToBlock)));case 245:return p=t,h.updateIfStatement(p,mT(p.expression,w,nT),Y4.checkDefined(mT(p.thenStatement,C,d7,h.liftToBlock)),mT(p.elseStatement,C,d7,h.liftToBlock));case 255:return p=t,h.updateSwitchStatement(p,mT(p.expression,w,nT),Y4.checkDefined(mT(p.caseBlock,C,u1)));case 269:return d=t,h.updateCaseBlock(d,gT(d.clauses,C,tl));case 296:return d=t,h.updateCaseClause(d,mT(d.expression,w,nT),gT(d.statements,C,d7));case 297:case 258:return hT(t,C,g);case 299:return e=t,h.updateCatchClause(e,e.variableDeclaration,Y4.checkDefined(mT(e.block,C,KP)));case 241:return hT(t,C,g);default:return w(t)}var e,d,p,f,m}function t(e,t){if(!(276828160&e.transformFlags))return e;switch(e.kind){case 248:return U(e,!1);case 244:return d=e,h.updateExpressionStatement(d,mT(d.expression,N,nT));case 217:return d=e,u=t,h.updateParenthesizedExpression(d,mT(d.expression,u?N:w,nT));case 354:return u=e,_=t,h.updatePartiallyEmittedExpression(u,mT(u.expression,_?N:w,nT));case 213:if(A5(e)&&void 0===x.impliedNodeFormat){_=e;if(0===b&&7<=v)return hT(_,w,g);var r=wy(h,_,x,y,m,f),n=mT(UT(_.arguments),w,nT),i=!r||n&&qE(n)&&n.text===r.text?n:r,a=!!(16384&_.transformFlags);switch(f.module){case 2:return D(i,a);case 3:return function(e,t){{var r;return k=!0,rR(e)?(r=PC(e)?e:qE(e)?h.createStringLiteralFromNode(e):_T(fT(h.cloneNode(e),e),3072),h.createConditionalExpression(h.createIdentifier("__syncRequire"),void 0,E(e),void 0,D(r,t))):(r=h.createTempVariable(p),h.createComma(h.createAssignment(r,e),h.createConditionalExpression(h.createIdentifier("__syncRequire"),void 0,E(r,!0),void 0,D(r,t))))}}(i??h.createVoidZero(),a);default:return E(i)}return}break;case 226:if(up(e))return n=t,function e(t){if(DP(t))for(var r of t.properties)switch(r.kind){case 303:if(e(r.initializer))return!0;break;case 304:if(e(r.name))return!0;break;case 305:if(e(r.expression))return!0;break;case 174:case 177:case 178:return!1;default:Y4.assertNever(r,"Unhandled object member kind")}else if(NP(t)){for(var n of t.elements)if(BP(n)){if(e(n.expression))return!0}else if(e(n))return!0}else if(uT(t))return K4(M(t))>(fy(t)?1:0);return!1}((r=e).left)?CR(r,w,g,0,!n,V):hT(r,w,g);break;case 224:case 225:var o=e,s=t;if((46===o.operator||47===o.operator)&&uT(o.operand)&&!PC(o.operand)&&!py(o.operand)&&!Wp(o.operand)){var c=M(o.operand);if(c){let e,t=mT(o.operand,w,nT);MP(o)?t=h.updatePrefixUnaryExpression(o,t):(t=h.updatePostfixUnaryExpression(o,t),s||(e=h.createTempVariable(p),fT(t=h.createAssignment(e,t),o)),fT(t=h.createComma(t,h.cloneNode(o.operand)),o));for(var l of c)S[oj(t)]=!0,fT(t=L(l,t),o);return e&&(S[oj(t)]=!0,fT(t=h.createComma(t,e),o)),t}}return hT(o,w,g)}var _,u,d;return hT(e,w,g)}function w(e){return t(e,!1)}function N(e){return t(e,!0)}function U(e,t){if(t&&e.initializer&&tF(e.initializer)&&!(7&e.initializer.flags)){var r,n,i,a=A(void 0,e.initializer,!1);if(a)return r=[],n=mT(e.initializer,N,tF),n=h.createVariableStatement(void 0,n),r.push(n),BT(r,a),n=mT(e.condition,w,nT),a=mT(e.incrementor,N,nT),i=xj(e.statement,t?C:w,g),r.push(h.updateForStatement(e,void 0,n,a,i)),r}return h.updateForStatement(e,mT(e.initializer,N,zc),mT(e.condition,w,nT),mT(e.incrementor,N,nT),xj(e.statement,t?C:w,g))}function D(e,t){var r=h.createUniqueName("resolve"),n=h.createUniqueName("reject"),i=[h.createParameterDeclaration(void 0,void 0,r),h.createParameterDeclaration(void 0,void 0,n)],e=h.createBlock([h.createExpressionStatement(h.createCallExpression(h.createIdentifier("require"),void 0,[h.createArrayLiteralExpression([e||h.createOmittedExpression()]),r,n]))]);let a;2<=v?a=h.createArrowFunction(void 0,void 0,i,void 0,void 0,e):(a=h.createFunctionExpression(void 0,void 0,void 0,void 0,i,void 0,e),t&&_T(a,16));r=h.createNewExpression(h.createIdentifier("Promise"),void 0,[a]);return kD(f)?h.createCallExpression(h.createPropertyAccessExpression(r,h.createIdentifier("then")),void 0,[l().createImportStarCallbackHelper()]):r}function E(e,t){var t=e&&!nR(e)&&!t,r=h.createCallExpression(h.createPropertyAccessExpression(h.createIdentifier("Promise"),"resolve"),void 0,t?2<=v?[h.createTemplateExpression(h.createTemplateHead(""),[h.createTemplateSpan(e,h.createTemplateTail(""))])]:[h.createCallExpression(h.createPropertyAccessExpression(h.createStringLiteral(""),"concat"),void 0,[e])]:[]);let n=h.createCallExpression(h.createIdentifier("require"),void 0,t?[h.createIdentifier("s")]:e?[e]:[]);kD(f)&&(n=l().createImportStarHelper(n));e=t?[h.createParameterDeclaration(void 0,void 0,"s")]:[];let i;return i=2<=v?h.createArrowFunction(void 0,void 0,e,void 0,void 0,n):h.createFunctionExpression(void 0,void 0,void 0,void 0,e,void 0,h.createBlock([h.createReturnStatement(n)])),h.createCallExpression(h.createPropertyAccessExpression(r,"then"),void 0,[i])}function P(e,t){return!kD(f)||2&Vl(e)?t:Xj(e)?l().createImportStarHelper(t):Qj(e)?l().createImportDefaultHelper(t):t}function F(e){var e=wy(h,e,x,y,m,f),t=[];return e&&t.push(e),h.createCallExpression(h.createIdentifier("require"),void 0,t)}function V(t,r,n){var i=M(t);if(i){let e=fy(t)?r:h.createAssignment(t,r);for(var a of i)_T(e,8),e=L(a,e,n);return e}return h.createAssignment(t,r)}function A(e,t,r){if(!_.exportEquals)for(var n of t.declarations)e=function e(t,r,n){if(_.exportEquals)return t;if(GC(r.name))for(var i of r.name.elements)zP(i)||(t=e(t,i,n));else PC(r.name)||eF(r)&&!r.initializer&&!n||(t=O(t,new eR,r));return t}(e,n,r);return e}function I(e,t){var r;return _.exportEquals||(r=new eR,TN(t,32)&&(e=W(e,r,TN(t,2048)?h.createIdentifier("default"):h.getDeclarationName(t),h.getLocalName(t),t)),t.name&&(e=O(e,r,t))),e}function O(e,t,r,n){var i=h.getDeclarationName(r),r=_.exportSpecifiers.get(i);if(r)for(var a of r)e=W(e,t,a.name,i,a.name,void 0,n);return e}function W(e,t,r,n,i,a,o){return t.has(r)||(t.set(r,!0),e=Q4(e,K(r,n,i,a,o))),e}function H(){var e=h.createExpressionStatement(h.createCallExpression(h.createPropertyAccessExpression(h.createIdentifier("Object"),"defineProperty"),void 0,[h.createIdentifier("exports"),h.createStringLiteral("__esModule"),h.createObjectLiteralExpression([h.createPropertyAssignment("value",h.createTrue())])]));return _T(e,2097152),e}function K(e,t,r,n,i){e=fT(h.createExpressionStatement(L(e,t,void 0,i)),r);return by(e),n||_T(e,3072),e}function L(e,t,r,n){return fT(n?h.createCallExpression(h.createPropertyAccessExpression(h.createIdentifier("Object"),"defineProperty"),void 0,[h.createIdentifier("exports"),h.createStringLiteralFromNode(e),h.createObjectLiteralExpression([h.createPropertyAssignment("enumerable",h.createTrue()),h.createPropertyAssignment("get",h.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,h.createBlock([h.createReturnStatement(t)])))])]):h.createAssignment(h.createPropertyAccessExpression(h.createIdentifier("exports"),h.cloneNode(e)),t),r)}function j(e){switch(e.kind){case 95:case 90:return}return e}function R(e){var t;if(8192&$7(e))return(r=xy(x))?h.createPropertyAccessExpression(r,e):e;if((!PC(e)||64&e.emitNode.autoGenerate.flags)&&!py(e)){var r=m.getReferencedExportContainer(e,fy(e));if(r&&307===r.kind)return fT(h.createPropertyAccessExpression(h.createIdentifier("exports"),h.cloneNode(e)),e);var n,r=m.getReferencedImportDeclaration(e);if(r){if(dF(r))return fT(h.createPropertyAccessExpression(h.getGeneratedNameForNode(r.parent),h.createIdentifier("default")),e);if(mF(r))return n=r.propertyName||r.name,fT(h.createPropertyAccessExpression(h.getGeneratedNameForNode((null==(t=null==(t=r.parent)?void 0:t.parent)?void 0:t.parent)||r),h.cloneNode(n)),e)}}return e}function M(e){if(PC(e)){if(_c(e)){var t=null==_?void 0:_.exportSpecifiers.get(e);if(t){var r,n=[];for(r of t)n.push(r.name);return n}}}else{t=m.getReferencedImportDeclaration(e);if(t)return null==_?void 0:_.exportedBindings[Wj(t)];var i=new Set,t=m.getReferencedValueDeclarations(e);if(t){for(var a of t){a=null==_?void 0:_.exportedBindings[Wj(a)];if(a)for(var o of a)i.add(o)}if(i.size)return ZT(i)}}}}var SM={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function kM(u){let{factory:d,startLexicalEnvironment:B,endLexicalEnvironment:J,hoistVariableDeclaration:p}=u,_=u.getCompilerOptions(),f=u.getEmitResolver(),m=u.getEmitHost(),r=u.onSubstituteNode,i=u.onEmitNode,o=(u.onSubstituteNode=function(e,t){if(!function(e){return S&&e.id&&S[e.id]}(t=r(e,t))){if(1===e)return function(e){switch(e.kind){case 80:return function(e){var t;if(8192&$7(e)){var r=xy(g);if(r)return d.createPropertyAccessExpression(r,e)}else if(!PC(e)&&!py(e)){r=f.getReferencedImportDeclaration(e);if(r){if(dF(r))return fT(d.createPropertyAccessExpression(d.getGeneratedNameForNode(r.parent),d.createIdentifier("default")),e);if(mF(r))return fT(d.createPropertyAccessExpression(d.getGeneratedNameForNode((null==(t=null==(t=r.parent)?void 0:t.parent)?void 0:t.parent)||r),d.cloneNode(r.propertyName||r.name)),e)}}return e}(e);case 226:return function(t){if(BN(t.operatorToken.kind)&&uT(t.left)&&(!PC(t.left)||_c(t.left))&&!py(t.left)){var r=W(t.left);if(r){let e=t;for(var n of r)e=F(n,M(e));return e}}return t}(e);case 236:return function(e){if(h_(e))return d.createPropertyAccessExpression(v,d.createIdentifier("meta"));return e}(e)}return e}(t);if(4===e)return function(e){if(304===e.kind){var t=e,r=t.name;if(!PC(r)&&!py(r)){var n=f.getReferencedImportDeclaration(r);if(n){if(dF(n))return fT(d.createPropertyAssignment(d.cloneNode(r),d.createPropertyAccessExpression(d.getGeneratedNameForNode(n.parent),d.createIdentifier("default"))),t);if(mF(n))return fT(d.createPropertyAssignment(d.cloneNode(r),d.createPropertyAccessExpression(d.getGeneratedNameForNode((null==(r=null==(r=n.parent)?void 0:r.parent)?void 0:r.parent)||n),d.cloneNode(n.propertyName||n.name))),t)}}return t}return e}(t)}return t},u.onEmitNode=function(e,t,r){{var n;307===t.kind?(n=Wj(t),g=t,h=o[n],y=s[n],S=c[n],v=l[n],S&&delete c[n],i(e,t,r),g=void 0,h=void 0,y=void 0,v=void 0,S=void 0):i(e,t,r)}},u.enableSubstitution(80),u.enableSubstitution(304),u.enableSubstitution(226),u.enableSubstitution(236),u.enableEmitNotification(307),[]),s=[],c=[],l=[],g,h,y,v,b,x,S;return Gj(u,function(e){if(e.isDeclarationFile||!(o5(e,_)||8388608&e.transformFlags))return e;var t=Wj(e),r=(g=e,x=e,h=o[t]=Yj(u,e),y=d.createUniqueName("exports"),s[t]=y,v=l[t]=d.createUniqueName("context"),function(e){var t=new Map,r=[];for(var n of e){var i,a,o=wy(d,n,g,m,f,_);o&&(i=o.text,void 0!==(a=t.get(i))?r[a].externalImports.push(n):(t.set(i,r.length),r.push({name:o,externalImports:[n]})))}return r}(h.externalImports)),n=function(e,t){var r=[],n=(B(),FD(_,"alwaysStrict")||b9(g)),n=d.copyPrologue(e.statements,r,n,T),n=(r.push(d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration("__moduleName",void 0,void 0,d.createLogicalAnd(v,d.createPropertyAccessExpression(v,"id")))]))),mT(h.externalHelpersImportDeclaration,T,d7),gT(e.statements,T,d7,n)),i=(BT(r,b),Fl(r,J()),function(t){if(h.hasExportStarsToExportValues){if(!X4(h.exportedNames)&&0===h.exportedFunctions.size&&0===h.exportSpecifiers.size){let e=!1;for(var r of h.externalImports)if(278===r.kind&&r.exportClause){e=!0;break}if(!e)return a=k(void 0),t.push(a),a.name}var e,n=[];if(h.exportedNames)for(var i of h.exportedNames)"default"!==i.escapedText&&n.push(d.createPropertyAssignment(d.createStringLiteralFromNode(i),d.createTrue()));for(e of h.exportedFunctions)TN(e,2048)||(Y4.assert(!!e.name),n.push(d.createPropertyAssignment(d.createStringLiteralFromNode(e.name),d.createTrue())));var a=d.createUniqueName("exportedNames"),o=(t.push(d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(a,void 0,void 0,d.createObjectLiteralExpression(n,!0))]))),k(a));return t.push(o),o.name}}(r)),e=2097152&e.transformFlags?d.createModifiersFromModifierFlags(1024):void 0,i=d.createObjectLiteralExpression([d.createPropertyAssignment("setters",function(e,t){var r=[];for(var n of t){var i,a=G4(n.externalImports,e=>Cy(d,e,g)),o=a?d.getGeneratedNameForNode(a):d.createUniqueName(""),s=[];for(i of n.externalImports){var c=Cy(d,i,g);switch(i.kind){case 272:if(!i.importClause)break;case 271:Y4.assert(void 0!==c),s.push(d.createExpressionStatement(d.createAssignment(c,o))),TN(i,32)&&s.push(d.createExpressionStatement(d.createCallExpression(y,void 0,[d.createStringLiteral(rT(c)),o])));break;case 278:if(Y4.assert(void 0!==c),i.exportClause)if(yF(i.exportClause)){var l,_=[];for(l of i.exportClause.elements)_.push(d.createPropertyAssignment(d.createStringLiteral(rT(l.name)),d.createElementAccessExpression(o,d.createStringLiteral(rT(l.propertyName||l.name)))));s.push(d.createExpressionStatement(d.createCallExpression(y,void 0,[d.createObjectLiteralExpression(_,!0)])))}else s.push(d.createExpressionStatement(d.createCallExpression(y,void 0,[d.createStringLiteral(rT(i.exportClause.name)),o])));else s.push(d.createExpressionStatement(d.createCallExpression(e,void 0,[o])))}}r.push(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,o)],void 0,d.createBlock(s,!0)))}return d.createArrayLiteralExpression(r,!0)}(i,t)),d.createPropertyAssignment("execute",d.createFunctionExpression(e,void 0,void 0,void 0,[],void 0,d.createBlock(n,!0)))],!0);return r.push(d.createReturnStatement(i)),d.createBlock(r,!0)}(e,r),i=d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,y),d.createParameterDeclaration(void 0,void 0,v)],void 0,n),a=Ny(d,e,m,_),r=d.createArrayLiteralExpression($4(r,e=>e.name)),a=_T(d.updateSourceFile(e,fT(d.createNodeArray([d.createExpressionStatement(d.createCallExpression(d.createPropertyAccessExpression(d.createIdentifier("System"),"register"),void 0,a?[a,r,i]:[r,i]))]),e.statements)),2048);_.outFile||ph(a,n,e=>!e.scoped);S&&(c[t]=S,S=void 0);return g=void 0,h=void 0,y=void 0,v=void 0,b=void 0,x=void 0,a});function k(e){var t=d.createUniqueName("exportStar"),r=d.createIdentifier("m"),n=d.createIdentifier("n"),i=d.createIdentifier("exports");let a=d.createStrictInequality(n,d.createStringLiteral("default"));return e&&(a=d.createLogicalAnd(a,d.createLogicalNot(d.createCallExpression(d.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[n])))),d.createFunctionDeclaration(void 0,void 0,t,void 0,[d.createParameterDeclaration(void 0,void 0,r)],void 0,d.createBlock([d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(i,void 0,void 0,d.createObjectLiteralExpression([]))])),d.createForInStatement(d.createVariableDeclarationList([d.createVariableDeclaration(n)]),r,d.createBlock([_T(d.createIfStatement(a,d.createExpressionStatement(d.createAssignment(d.createElementAccessExpression(i,n),d.createElementAccessExpression(r,n)))),1)])),d.createExpressionStatement(d.createCallExpression(y,void 0,[i]))],!0))}function T(e){switch(e.kind){case 272:var t=e;return t.importClause&&p(Cy(d,t,g)),Me(function(e,t){if(!h.exportEquals){t=t.importClause;if(t){t.name&&(e=E(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 274:e=E(e,r);break;case 275:for(var n of r.elements)e=E(e,n)}}}return e}(void 0,t));case 271:t=e;return Y4.assert(x8(t),"import= for internal module references should be handled in an earlier transformer."),p(Cy(d,t,g)),Me(function(e,t){if(h.exportEquals)return e;return E(e,t)}(void 0,t));case 278:return void Y4.assertIsDefined(e);case 277:var r=e;return r.isExportEquals?void 0:(r=mT(r.expression,O,nT),a(d.createIdentifier("default"),r,!0));default:return A(e)}}function z(t){if(!w(t.declarationList))return mT(t,O,d7);let r;if(p_(t.declarationList)||d_(t.declarationList)){var e,n=gT(t.modifiers,R,vc),i=[];for(e of t.declarationList.declarations)i.push(d.updateVariableDeclaration(e,d.getGeneratedNameForNode(e.name),void 0,void 0,N(e,!1)));var a=d.updateVariableDeclarationList(t.declarationList,i);r=Q4(r,d.updateVariableStatement(t,n,a))}else{let e;var o,s=TN(t,32);for(o of t.declarationList.declarations)o.initializer?e=Q4(e,N(o,s)):C(o);e&&(r=Q4(r,fT(d.createExpressionStatement(d.inlineExpressions(e)),t)))}return Me(r=function(e,t,r){if(!h.exportEquals)for(var n of t.declarationList.declarations)(n.initializer||r)&&(e=function e(t,r,n){if(h.exportEquals)return t;if(GC(r.name))for(var i of r.name.elements)zP(i)||(t=e(t,i,n));else if(!PC(r.name)){let e;n&&(t=P(t,r.name,d.getLocalName(r)),e=rT(r.name)),t=E(t,r,e)}return t}(e,n,r));return e}(r,t,!1))}function C(e){if(GC(e.name))for(var t of e.name.elements)zP(t)||C(t);else p(d.cloneNode(e.name))}function w(e){return 0==(4194304&$7(e))&&(307===x.kind||0==(7&K3(e).flags))}function N(e,t){t=t?q:U;return GC(e.name)?CR(e,O,u,0,!1,t):e.initializer?t(e.name,mT(e.initializer,O,nT)):e.name}function q(e,t,r){return n(e,t,r,!0)}function U(e,t,r){return n(e,t,r,!1)}function n(e,t,r,n){return p(d.cloneNode(e)),n?F(e,M(fT(d.createAssignment(e,t),r))):M(fT(d.createAssignment(e,t),r))}function D(t,r){if(!h.exportEquals){let e;var n;TN(r,32)&&(t=P(t,n=TN(r,2048)?d.createStringLiteral("default"):r.name,d.getLocalName(r)),e=Kw(n)),r.name&&(t=E(t,r,e))}return t}function E(e,t,r){if(!h.exportEquals){var n=d.getDeclarationName(t),t=h.exportSpecifiers.get(n);if(t)for(var i of t)i.name.escapedText!==r&&(e=P(e,i.name,n))}return e}function P(e,t,r,n){return e=Q4(e,a(t,r,n))}function a(e,t,r){e=d.createExpressionStatement(F(e,t));return by(e),r||_T(e,3072),e}function F(e,t){e=uT(e)?d.createStringLiteralFromNode(e):e;return _T(t,3072|$7(t)),LE(d.createCallExpression(y,void 0,[e,t]),t)}function A(e){switch(e.kind){case 243:return z(e);case 262:return _=e,void(b=D(b=TN(_,32)?Q4(b,d.updateFunctionDeclaration(_,gT(_.modifiers,R,vc),_.asteriskToken,d.getDeclarationName(_,!0,!0),void 0,gT(_.parameters,O,GE),void 0,mT(_.body,O,KP))):Q4(b,hT(_,O,u)),_));case 263:return _=e,l=d.getLocalName(_),p(l),Me(D(Q4(void 0,fT(d.createExpressionStatement(d.createAssignment(l,fT(d.createClassExpression(gT(_.modifiers,R,vc),_.name,void 0,gT(_.heritageClauses,O,EF),gT(_.members,O,zC)),_))),_)),_));case 248:return V(e,!0);case 249:return l=e,c=x,x=l,l=d.updateForInStatement(l,I(l.initializer),mT(l.expression,O,nT),xj(l.statement,A,u)),x=c,l;case 250:return c=e,s=x,x=c,c=d.updateForOfStatement(c,c.awaitModifier,I(c.initializer),mT(c.expression,O,nT),xj(c.statement,A,u)),x=s,c;case 246:return s=e,d.updateDoStatement(s,xj(s.statement,A,u),mT(s.expression,O,nT));case 247:return o=e,d.updateWhileStatement(o,mT(o.expression,O,nT),xj(o.statement,A,u));case 256:return o=e,d.updateLabeledStatement(o,o.label,Y4.checkDefined(mT(o.statement,A,d7,d.liftToBlock)));case 254:return a=e,d.updateWithStatement(a,mT(a.expression,O,nT),Y4.checkDefined(mT(a.statement,A,d7,d.liftToBlock)));case 245:return a=e,d.updateIfStatement(a,mT(a.expression,O,nT),Y4.checkDefined(mT(a.thenStatement,A,d7,d.liftToBlock)),mT(a.elseStatement,A,d7,d.liftToBlock));case 255:return i=e,d.updateSwitchStatement(i,mT(i.expression,O,nT),Y4.checkDefined(mT(i.caseBlock,A,u1)));case 269:return i=e,n=x,x=i,i=d.updateCaseBlock(i,gT(i.clauses,A,tl)),x=n,i;case 296:return n=e,d.updateCaseClause(n,mT(n.expression,O,nT),gT(n.statements,A,d7));case 297:case 258:return hT(e,A,u);case 299:return t=e,r=x,x=t,t=d.updateCatchClause(t,t.variableDeclaration,Y4.checkDefined(mT(t.block,A,KP))),x=r,t;case 241:return r=e,t=x,r=hT(x=r,A,u),x=t,r;default:return O(e)}var t,r,n,i,a,o,s,c,l,_}function V(e,t){var r=x;return x=e,e=d.updateForStatement(e,mT(e.initializer,t?I:L,zc),mT(e.condition,O,nT),mT(e.incrementor,L,nT),xj(e.statement,t?A:O,u)),x=r,e}function I(t){if(tF(e=t)&&w(e)){let e;for(var r of t.declarations)e=Q4(e,N(r,!1)),r.initializer||C(r);return e?d.inlineExpressions(e):d.createOmittedExpression()}return mT(t,L,zc);var e}function t(e,t){if(!(276828160&e.transformFlags))return e;switch(e.kind){case 248:return V(e,!1);case 244:return l=e,d.updateExpressionStatement(l,mT(l.expression,L,nT));case 217:return l=e,c=t,d.updateParenthesizedExpression(l,mT(l.expression,c?L:O,nT));case 354:return c=e,s=t,d.updatePartiallyEmittedExpression(c,mT(c.expression,s?L:O,nT));case 226:if(up(e))return s=t,j((o=e).left)?CR(o,O,u,0,!s):hT(o,O,u);break;case 213:if(A5(e))return o=e,r=wy(d,o,g,m,f,_),o=mT(UT(o.arguments),O,nT),o=!r||o&&qE(o)&&o.text===r.text?o:r,d.createCallExpression(d.createPropertyAccessExpression(v,d.createIdentifier("import")),void 0,o?[o]:[]);break;case 224:case 225:var r=e,n=t;if((46===r.operator||47===r.operator)&&uT(r.operand)&&!PC(r.operand)&&!py(r.operand)&&!Wp(r.operand)){var i=W(r.operand);if(i){let e,t=mT(r.operand,O,nT);MP(r)?t=d.updatePrefixUnaryExpression(r,t):(t=d.updatePostfixUnaryExpression(r,t),n||(e=d.createTempVariable(p),fT(t=d.createAssignment(e,t),r)),fT(t=d.createComma(t,d.cloneNode(r.operand)),r));for(var a of i)t=F(a,M(t));return e&&fT(t=d.createComma(t,e),r),t}}return hT(r,O,u)}var o,r,s,c,l;return hT(e,O,u)}function O(e){return t(e,!1)}function L(e){return t(e,!0)}function j(e){return zN(e,!0)?j(e.left):BP(e)?j(e.expression):DP(e)?X4(e.properties,j):NP(e)?X4(e.elements,j):AF(e)?j(e.name):FF(e)?j(e.initializer):!!uT(e)&&void 0!==(e=f.getReferencedExportContainer(e))&&307===e.kind}function R(e){switch(e.kind){case 95:case 90:return}return e}function W(e){let t;var r=function(e){if(!PC(e)){var t=f.getReferencedImportDeclaration(e);if(t)return t;var r=f.getReferencedValueDeclaration(e);if(!r||null==h||!h.exportedBindings[Wj(r)]){t=f.getReferencedValueDeclarations(e);if(t)for(var n of t)if(n!==r&&null!=h&&h.exportedBindings[Wj(n)])return n}return r}}(e);if(r){var n=f.getReferencedExportContainer(e,!1);t=BT(t=n&&307===n.kind?Q4(t,d.getDeclarationName(r)):t,null==h?void 0:h.exportedBindings[Wj(r)])}else if(PC(e)&&_c(e)){n=null==h?void 0:h.exportSpecifiers.get(e);if(n){var i,a=[];for(i of n)a.push(i.name);return a}}return t}function M(e){return(S=void 0===S?[]:S)[oj(e)]=!0,e}}function TM(i){let{factory:o,getEmitHelperFactory:a}=i,s=i.getEmitHost(),c=i.getEmitResolver(),l=i.getCompilerOptions(),_=vD(l),n=i.onEmitNode,r=i.onSubstituteNode;i.onEmitNode=function(e,t,r){LF(t)?((b9(t)||SD(l))&&l.importHelpers&&(u=new Map),n(e,t,r),u=void 0):n(e,t,r)},i.onSubstituteNode=function(e,t){if(t=r(e,t),u&&uT(t)&&8192&$7(t))return function(e){let t=rT(e),r=u.get(t);r||u.set(t,r=o.createUniqueName(t,48));return r}(t);return t},i.enableEmitNotification(307),i.enableSubstitution(80);let u,d,p;return Gj(i,function(t){if(t.isDeclarationFile||!b9(t)&&!SD(l))return t;{d=t,p=void 0;let e=function(e){var t=ky(o,a(),e,l);{var r,n;return t?(r=[],n=o.copyPrologue(e.statements,r),Q4(r,t),BT(r,gT(e.statements,f,d7,n)),o.updateSourceFile(e,fT(o.createNodeArray(r),e.statements))):hT(e,f,i)}}(t);return d=void 0,p&&(e=o.updateSourceFile(e,fT(o.createNodeArray(Al(e.statements.slice(),p)),e.statements))),!b9(t)||200===bD(l)||X4(e.statements,o7)?e:o.updateSourceFile(e,fT(o.createNodeArray([...e.statements,i9(o)]),e.statements))}});function f(e){switch(e.kind){case 271:if(100<=bD(l)){var t=e;Y4.assert(x8(t),"import= for internal module references should be handled in an earlier transformer.");return Me(function(e,t){TN(t,32)&&(e=Q4(e,o.createExportDeclaration(void 0,t.isTypeOnly,o.createNamedExports([o.createExportSpecifier(!1,void 0,rT(t.name))]))));return e}(Q4(void 0,lT(fT(o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(o.cloneNode(t.name),void 0,void 0,function(e){var e=wy(o,e,Y4.checkDefined(d),s,c,l),t=[];e&&t.push(e);if(200===bD(l))return o.createCallExpression(o.createIdentifier("require"),void 0,t);{var r,n;p||(e=o.createUniqueName("_createRequire",48),r=o.createImportDeclaration(void 0,o.createImportClause(!1,void 0,o.createNamedImports([o.createImportSpecifier(!1,o.createIdentifier("createRequire"),e)])),o.createStringLiteral("module"),void 0),n=o.createUniqueName("__require",48),n=o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(n,void 0,void 0,o.createCallExpression(o.cloneNode(e),void 0,[o.createPropertyAccessExpression(o.createMetaProperty(102,o.createIdentifier("meta")),o.createIdentifier("url"))]))],2<=_?2:0)),p=[r,n])}e=p[1].declarationList.declarations[0].name;return Y4.assertNode(e,uT),o.createCallExpression(o.cloneNode(e),void 0,t)}(t))],2<=_?2:0)),t),t)),t));return}else return void 0;case 277:return(t=e).isExportEquals?200===bD(l)?lT(o.createExpressionStatement(o.createAssignment(o.createPropertyAccessExpression(o.createIdentifier("module"),"exports"),t.expression)),t):void 0:t;case 278:var r,n,i,a=e;return void 0!==l.module&&5gF(e)||d7(e)||eF(e)||QE(e)||GE(e));if(e)return gF(e)?e:i1(e)?tT(e,e=>MC(e)&&!tP(e)):d7(e)?void 0:e}function i(e){var{getAccessor:t,setAccessor:r}=qd(e.symbol.declarations,e),e=aT((g7(e)?e.parameters[0]:e)??e,o[e.kind]);return r&&JD(e,aT(r,a[r.kind])),t&&JD(e,aT(t,a[t.kind])),e}function r(e,t){var r,e=s(e);e&&(r=gF(e)||!e.name?"":K7(e.name,!1),JD(t,aT(e,a[e.kind],r)))}function c(e,t){var r,n=s(e);let i;return n?(r=gF(n)||!n.name?"":K7(n.name,!1),n===tT(e.parent,e=>gF(e)||(d7(e)?"quit":!IP(e)&&!z0(e)&&!G0(e)))?JD(i=aT(e,t??o[n.kind]),aT(n,a[n.kind],r)):(JD(i=aT(e,t??eT.Expression_type_can_t_be_inferred_with_isolatedDeclarations),aT(n,a[n.kind],r)),JD(i,aT(e,eT.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))):i=aT(e,t??eT.Expression_type_can_t_be_inferred_with_isolatedDeclarations),i}}function PM(e,t,r){var n=e.getCompilerOptions(),i=NT(Ad(e,r),G_);return UM(t,e,cT,n,r?TT(i,r)?[r]:H4:i,[AM],!1).diagnostics}var FM=531469;function AM(f){let U=()=>Y4.fail("Diagnostic emitted without context"),m=U,g=!0,l=!1,h=!1,y=!1,v=!1,b,x,S,d,k=f["factory"],_=f.getEmitHost(),T={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;e=a(E.isSymbolAccessible(e,t,r,!0));return e},reportInaccessibleThisError:function(){(C||w)&&f.addDiagnostic(aT(C||w,eT.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,t(),"this"))},reportInaccessibleUniqueSymbolError:function(){(C||w)&&f.addDiagnostic(aT(C||w,eT.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,t(),"unique symbol"))},reportCyclicStructureError:function(){(C||w)&&f.addDiagnostic(aT(C||w,eT.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,t()))},reportPrivateInBaseOfClassExpression:function(e){(C||w)&&f.addDiagnostic(aT(C||w,eT.Property_0_of_exported_class_expression_may_not_be_private_or_protected,e))},reportLikelyUnsafeImportRequiredError:function(e){(C||w)&&f.addDiagnostic(aT(C||w,eT.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,t(),e))},reportTruncationError:function(){(C||w)&&f.addDiagnostic(aT(C||w,eT.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:_,reportNonlocalAugmentation:function(t,e,r){var n=null==(e=e.declarations)?void 0:e.find(e=>iT(e)===t),e=NT(r.declarations,e=>iT(e)!==t);if(n&&e)for(var i of e)f.addDiagnostic(JD(aT(i,eT.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),aT(n,eT.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(e){(C||w)&&f.addDiagnostic(aT(C||w,eT.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,e))},reportInferenceFallback:i},C,w,p,u,N,D,E=f.getEmitResolver();var e=f.getCompilerOptions();let r=EM(E),{stripInternal:n,isolatedDeclarations:P}=e;return function(a){if(307===a.kind&&a.isDeclarationFile)return a;if(308===a.kind){l=!0,u=[],N=[];let r=!(D=[]);var e=k.createBundle($4(a.sourceFiles,e=>{if(!e.isDeclarationFile){if(r=r||e.hasNoDefaultLib,p=e,b=e,x=void 0,d=!1,S=new Map,m=U,y=!1,v=!1,n(e),N5(e)||D5(e))return h=!1,g=!1,t=C8(e)?k.createNodeArray(W(e)):gT(e.statements,J,d7),k.updateSourceFile(e,[k.createModuleDeclaration([k.createModifier(138)],k.createStringLiteral(Sd(f.getEmitHost(),e)),k.createModuleBlock(fT(k.createNodeArray($(t)),e.statements)))],!0,[],[],!1,[]);g=!0;var t=C8(e)?k.createNodeArray(W(e)):gT(e.statements,J,d7);return k.updateSourceFile(e,$(t),!0,[],[],!1,[])}})),t=D3(sa(XM(a,_,!0).declarationFilePath));return e.syntheticFileReferences=c(t),e.syntheticTypeReferences=i(),e.syntheticLibReferences=s(),e.hasNoDefaultLib=r,e}g=!0,y=!1,v=!1,b=a,p=a,m=U,l=!1,h=!1,d=!1,x=void 0,S=new Map,u=[],N=[],D=[],n(p);let r;C8(p)?r=k.createNodeArray(W(a)):(t=gT(a.statements,J,d7),r=fT(k.createNodeArray($(t)),a.statements),b9(a)&&(!h||y&&!v)&&(r=fT(k.createNodeArray([...r,i9(k)]),r)));e=D3(sa(XM(a,_,!0).declarationFilePath));return k.updateSourceFile(a,r,!0,c(e),i(),a.hasNoDefaultLib,s());function n(t){u=LT(u,$4(t.referencedFiles,e=>[t,e])),N=LT(N,t.typeReferenceDirectives),D=LT(D,t.libReferenceDirectives)}function o(e){e={...e};return e.pos=-1,e.end=-1,e}function i(){return AT(N,e=>{if(e.preserve)return o(e)})}function s(){return AT(D,e=>{if(e.preserve)return o(e)})}function c(i){return AT(u,([t,r])=>{if(r.preserve){var t=_.getSourceFileFromReference(t,r);if(t){let e;if(t.isDeclarationFile)e=t.fileName;else{if(l&&TT(a.sourceFiles,t))return;var n=XM(t,_,!0);e=n.declarationFilePath||n.jsFilePath||t.fileName}if(e)return n=Ea(i,e,_.getCurrentDirectory(),_.getCanonicalFileName,!1),(t=o(r)).fileName=n,t}}})}};function V(e){E.getPropertiesOfContainerFunction(e).forEach(e=>{wE(e.valueDeclaration)&&(e=pT(e.valueDeclaration)?e.valueDeclaration.left:e.valueDeclaration,f.addDiagnostic(aT(e,eT.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function)))})}function i(e){P&&!C8(p)&&(eF(e)&&E.isExpandoFunctionDeclaration(e)?V(e):f.addDiagnostic(r(e)))}function a(e){if(0===e.accessibility){if(e.aliasesToMakeVisible)if(x)for(var t of e.aliasesToMakeVisible)JT(x,t);else x=e.aliasesToMakeVisible}else if(3!==e.accessibility){var r=m(e);if(r)return r.typeName?f.addDiagnostic(aT(e.errorNode||r.errorNode,r.diagnosticMessage,K7(r.typeName),e.errorSymbolName,e.errorModuleName)):f.addDiagnostic(aT(e.errorNode||r.errorNode,r.diagnosticMessage,e.errorSymbolName,e.errorModuleName)),!0}return!1}function t(){return C?d5(C):w&&tC(w)?d5(tC(w)):w&&gF(w)?w.isExportEquals?"export=":"default":"(Missing)"}function W(t){var e=m,r=(m=e=>e.errorNode&&wM(e.errorNode)?DM(e.errorNode)(e):{diagnosticMessage:e.errorModuleName?eT.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:eT.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:e.errorNode||t},E.getDeclarationStatementsForSourceFile(t,FM,T));return m=e,r}function s(e,t,r){let n;d||(n=m,m=DM(e));var i,t=k.updateParameterDeclaration(e,k.createModifiersFromModifierFlags(IM(e,t,i)),e.dotDotDotToken,function t(e){return 80===e.kind?e:207===e.kind?k.updateArrayBindingPattern(e,gT(e.elements,r,kc)):k.updateObjectBindingPattern(e,gT(e.elements,r,wP));function r(e){return 232===e.kind?e:(e.propertyName&&HE(e.propertyName)&&UN(e.propertyName.expression)&&j(e.propertyName.expression,b),k.updateBindingElement(e,e.dotDotDotToken,e.propertyName,t(e.name),void 0))}}(e.name),E.isOptionalParameter(e)?e.questionToken||k.createToken(58):void 0,A(e,r||e.type,!0),F(e));return d||(m=n),t}function c(e){return LM(e)&&e.initializer&&E.isLiteralConstDeclaration(G3(e))}function F(e){if(c(e))return vg(bg(e.initializer))||i(e),E.createLiteralConstValue(G3(e,LM),T)}function A(r,n,i){if((i||!kN(r,2))&&!c(r)){i=169===r.kind&&E.requiresAddingImplicitUndefined(r);if(n&&!i)return mT(n,B,KC);C=r.name;let e;d||(e=m,m=DM(r));let t;switch(r.kind){case 169:case 171:case 172:case 208:case 260:t=E.createTypeOfDeclaration(r,b,FM,T);break;case 262:case 180:case 173:case 174:case 177:case 179:t=E.createReturnTypeOfSignatureDeclaration(r,b,FM,T);break;default:Y4.assertNever(r)}return C=void 0,d||(m=e),t??k.createKeywordTypeNode(133)}}function H(e){switch((e=G3(e)).kind){case 262:case 267:case 264:case 263:case 265:case 266:return!E.isDeclarationVisible(e);case 260:return!I(e);case 271:case 272:case 278:case 277:return;case 175:return 1}}function I(e){return!zP(e)&&(GC(e.name)?X4(e.name.elements,I):E.isDeclarationVisible(e))}function O(e,t,r){return!kN(e,2)&&(e=$4(t,e=>s(e,r)))?k.createNodeArray(e,t.hasTrailingComma):k.createNodeArray()}function K(t,r){let n;var i;if(r||(i=dN(t))&&(n=[s(i)]),nP(t)){let e;r||(i=uN(t))&&(r=te(t,qd(DP(t.parent)?t.parent.properties:t.parent.members,t)),e=s(i,void 0,r)),e=e||k.createParameterDeclaration(void 0,void 0,"value"),n=Q4(n,e)}return k.createNodeArray(n||H4)}function L(e,t){return kN(e,2)?void 0:gT(t,B,KE)}function G(e){return LF(e)||aF(e)||sF(e)||nF(e)||iF(e)||jC(e)||O0(e)||xP(e)}function j(e,t){a(E.isEntityNameVisible(e,t))}function R(e,t){return y7(e)&&y7(t)&&(e.jsDoc=t.jsDoc),LE(e,th(t))}function M(e,t){if(t){if(h=h||267!==e.kind&&205!==e.kind,k7(t)&&l){e=Td(f.getEmitHost(),E,e);if(e)return k.createStringLiteral(e)}return t}}function o(e){var t=mJ(e);return e&&void 0!==t?e:void 0}function $(e){for(;K4(x);){var t=x.shift();if(!s5(t))return Y4.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+Y4.formatSyntaxKind(t.kind));var r=g,n=(g=t.parent&&LF(t.parent)&&!(b9(t.parent)&&l),Y(t));g=r,S.set(Wj(t),n)}return gT(e,function(e){if(s5(e)){var t,r=Wj(e);if(S.has(r))return t=S.get(r),S.delete(r),t&&((i3(t)?X4(t,a7):a7(t))&&(y=!0),LF(e.parent))&&(i3(t)?X4(t,o7):o7(t))&&(h=!0),t}return e},d7)}function B(s){if(!z(s)){if(u7(s)){if(H(s))return;if(Uw(s))if(P){if(nF(s.parent)||DP(s.parent))return void f.addDiagnostic(aT(s,eT.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((iF(s.parent)||uP(s.parent))&&!UN(s.name.expression))return void f.addDiagnostic(aT(s,eT.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}else if(!E.isLateBound(G3(s))||!UN(s.name.expression))return}if(!(jC(s)&&E.isImplementationOfOverload(s)||Y0(s))){let r,n=(G(s)&&(r=b,b=s),m),i=wM(s),a=d,o=(187===s.kind||200===s.kind)&&265!==s.parent.kind;if((ZE(s)||YE(s))&&kN(s,2))return s.symbol&&s.symbol.declarations&&s.symbol.declarations[0]!==s?void 0:u(k.createPropertyDeclaration(q(s),s.name,void 0,void 0,void 0));if(i&&!d&&(m=DM(s)),_P(s)&&j(s.exprName,b),o&&(d=!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 1}return}(s))switch(s.kind){case 233:(OC(s.expression)||UN(s.expression))&&j(s.expression,b);var e=hT(s,B,f);return u(k.updateExpressionWithTypeArguments(e,e.expression,e.typeArguments));case 183:j(s.typeName,b);e=hT(s,B,f);return u(k.updateTypeReferenceNode(e,e.typeName,e.typeArguments));case 180:return u(k.updateConstructSignature(s,L(s,s.typeParameters),O(s,s.parameters),A(s,s.type)));case 176:return u(k.createConstructorDeclaration(q(s),O(s,s.parameters,0),void 0));case 174:return UE(s.name)?u(void 0):u(k.createMethodDeclaration(q(s),void 0,s.name,s.questionToken,L(s,s.typeParameters),O(s,s.parameters),A(s,s.type),void 0));case 177:return UE(s.name)?u(void 0):(e=te(s,qd(DP(s.parent)?s.parent.properties:s.parent.members,s)),u(k.updateGetAccessorDeclaration(s,q(s),s.name,K(s,kN(s,2)),A(s,e),void 0)));case 178:return UE(s.name)?u(void 0):u(k.updateSetAccessorDeclaration(s,q(s),s.name,K(s,kN(s,2)),void 0));case 172:return UE(s.name)?u(void 0):u(k.updatePropertyDeclaration(s,q(s),s.name,s.questionToken,A(s,s.type),F(s)));case 171:return UE(s.name)?u(void 0):u(k.updatePropertySignature(s,q(s),s.name,s.questionToken,A(s,s.type)));case 173:return UE(s.name)?u(void 0):u(k.updateMethodSignature(s,q(s),s.name,s.questionToken,L(s,s.typeParameters),O(s,s.parameters),A(s,s.type)));case 179:return u(k.updateCallSignature(s,L(s,s.typeParameters),O(s,s.parameters),A(s,s.type)));case 181:return u(k.updateIndexSignature(s,q(s),O(s,s.parameters),mT(s.type,B,KC)||k.createKeywordTypeNode(133)));case 260:return GC(s.name)?Z(s.name):(o=!0,d=!0,u(k.updateVariableDeclaration(s,s.name,void 0,A(s,s.type),F(s))));case 168:return 174===(e=s).parent.kind&&kN(e.parent,2)&&(s.default||s.constraint)?u(k.updateTypeParameterDeclaration(s,s.modifiers,s.name,void 0,void 0)):u(hT(s,B,f));case 194:var t=mT(s.checkType,B,KC),c=mT(s.extendsType,B,KC),l=b,_=(b=s.trueType,mT(s.trueType,B,KC)),l=(b=l,mT(s.falseType,B,KC));return Y4.assert(t),Y4.assert(c),Y4.assert(_),Y4.assert(l),u(k.updateConditionalTypeNode(s,t,c,_,l));case 184:return u(k.updateFunctionTypeNode(s,gT(s.typeParameters,B,KE),O(s,s.parameters),Y4.checkDefined(mT(s.type,B,KC))));case 185:return u(k.updateConstructorTypeNode(s,q(s),gT(s.typeParameters,B,KE),O(s,s.parameters),Y4.checkDefined(mT(s.type,B,KC))));case 205:return I5(s)?u(k.updateImportTypeNode(s,k.updateLiteralTypeNode(s.argument,M(s,s.argument.literal)),s.attributes,s.qualifier,gT(s.typeArguments,B,KC),s.isTypeOf)):u(s);default:Y4.assertNever(s,"Attempted to process unhandled node kind: "+Y4.formatSyntaxKind(s.kind))}return dP(s)&&O3(p,s.pos).line===O3(p,s.end).line&&_T(s,1),u(hT(s,B,f));function u(e){if(e&&i&&Uw(s)){var t=s;let e;d||(e=m,m=NM(t));C=t.name,Y4.assert(Uw(t));t=t.name.expression;j(t,b),d||(m=e);C=void 0}return G(s)&&(b=r),i&&!d&&(m=n),o&&(d=a),e===s?e:e&&lT(R(e,s),s)}}}}function J(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 1}return}(e)&&!z(e)){switch(e.kind){case 278:return LF(e.parent)&&(h=!0),v=!0,k.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,M(e,e.moduleSpecifier),o(e.attributes));case 277:var t,r;return LF(e.parent)&&(h=!0),v=!0,80===e.expression.kind?e:(t=k.createUniqueName("_default",16),m=()=>({diagnosticMessage:eT.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),w=e,r=k.createVariableDeclaration(t,void 0,E.createTypeOfExpression(e.expression,e,FM,T),void 0),w=void 0,R(r=k.createVariableStatement(g?[k.createModifier(138)]:[],k.createVariableDeclarationList([r],2)),e),Wg(e),[r,k.updateExportAssignment(e,e.modifiers,t)])}var n=Y(e);return S.set(Wj(e),n),e}}function X(e){var t;return _F(e)||kN(e,2048)||!f9(e)?e:(t=k.createModifiersFromModifierFlags(131039&ON(e)),k.replaceModifiers(e,t))}function Q(e,t,r,n){e=k.updateModuleDeclaration(e,t,r,n);return Z7(e)||32&e.flags?e:(lT(t=k.createModuleDeclaration(e.modifiers,e.name,e.body,32|e.flags),e),fT(t,e),t)}function Y(s){if(x)for(;Oe(x,s););if(!z(s)){switch(s.kind){case 271:var e=s;return E.isDeclarationVisible(e)?283===e.moduleReference.kind?(t=S8(e),k.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,k.updateExternalModuleReference(e.moduleReference,M(e,t)))):(t=m,m=DM(e),j(e.moduleReference,b),m=t,e):void 0;case 272:return(t=s).importClause?(e=t.importClause&&t.importClause.name&&E.isDeclarationVisible(t.importClause)?t.importClause.name:void 0,t.importClause.namedBindings?274===t.importClause.namedBindings.kind?(r=E.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0,e||r?k.updateImportDeclaration(t,t.modifiers,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,e,r),M(t,t.moduleSpecifier),o(t.attributes)):void 0):(r=AT(t.importClause.namedBindings.elements,e=>E.isDeclarationVisible(e)?e:void 0))&&r.length||e?k.updateImportDeclaration(t,t.modifiers,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,e,r&&r.length?k.updateNamedImports(t.importClause.namedBindings,r):void 0),M(t,t.moduleSpecifier),o(t.attributes)):E.isImportRequiredByAugmentation(t)?(P&&f.addDiagnostic(aT(t,eT.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),k.updateImportDeclaration(t,t.modifiers,void 0,M(t,t.moduleSpecifier),o(t.attributes))):void 0:e&&k.updateImportDeclaration(t,t.modifiers,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,e,void 0),M(t,t.moduleSpecifier),o(t.attributes))):k.updateImportDeclaration(t,t.modifiers,t.importClause,M(t,t.moduleSpecifier),o(t.attributes))}var t,r;if(!(u7(s)&&H(s)||n9(s)||jC(s)&&E.isImplementationOfOverload(s))){let t,r=(G(s)&&(t=b,b=s),wM(s)),o=m,n=(r&&(m=DM(s)),g);switch(s.kind){case 265:g=!1;var c=a(k.updateTypeAliasDeclaration(s,q(s),s.name,gT(s.typeParameters,B,KE),Y4.checkDefined(mT(s.type,B,KC))));return g=n,c;case 264:return a(k.updateInterfaceDeclaration(s,q(s),s.name,L(s,s.typeParameters),re(s.heritageClauses),gT(s.members,B,bc)));case 262:c=a(k.updateFunctionDeclaration(s,q(s),void 0,s.name,L(s,s.typeParameters),O(s,s.parameters),A(s,s.type),void 0));if(!c||!E.isExpandoFunctionDeclaration(s)||!(l=s).body&&(_=null==(_=l.symbol.declarations)?void 0:_.filter(e=>rF(e)&&!e.body))&&_.indexOf(l)!==_.length-1)return c;{var l=E.getPropertiesOfContainerFunction(s);P&&V(s);let i=g9.createModuleDeclaration(void 0,c.name||k.createIdentifier("_default"),k.createModuleBlock([]),32),a=(tE(i,b),i.locals=I7(l),i.symbol=l[0].parent,[]),e=AT(l,e=>{if(wE(e.valueDeclaration)){var t,r,n=X3(e.escapedName);if(R3(n,99))return m=DM(e.valueDeclaration),t=E.createTypeOfDeclaration(e.valueDeclaration,i,-2147483648|FM,T),m=o,e=(r=Jw(n))?k.getGeneratedNameForNode(e.valueDeclaration):k.createIdentifier(n),r&&a.push([e,n]),n=k.createVariableDeclaration(e,void 0,t,void 0),k.createVariableStatement(r?void 0:[k.createToken(95)],k.createVariableDeclarationList([n]))}});a.length?e.push(k.createExportDeclaration(void 0,!1,k.createNamedExports($4(a,([e,t])=>k.createExportSpecifier(!1,e,t))))):e=AT(e,e=>k.replaceModifiers(e,0));var _=k.createModuleDeclaration(q(s),s.name,k.createModuleBlock(e),32);return kN(c,2048)?(d=k.createModifiersFromModifierFlags(-2081&ON(c)|128),u=k.updateFunctionDeclaration(c,d,void 0,c.name,c.typeParameters,c.parameters,c.type,void 0),d=k.updateModuleDeclaration(_,d,_.name,_.body),p=k.createExportAssignment(void 0,!1,_.name),LF(s.parent)&&(h=!0),v=!0,[u,d,p]):[c,_]}case 267:g=!1;var u=s.body;if(u&&268===u.kind){var d=y,p=v,c=(v=!1,y=!1,gT(u.statements,J,d7));let e=$(c);33554432&s.flags&&(y=!1),n5(s)||X4(e,ee)||v||(e=y?k.createNodeArray([...e,i9(k)]):gT(e,X,d7));var c=k.updateModuleBlock(u,e),d=(g=n,y=d,v=p,q(s));return a(Q(s,d,i5(s)?M(s,s.name):s.name,c))}return g=n,p=q(s),g=!1,mT(u,J),d=Wj(u),c=S.get(d),S.delete(d),a(Q(s,p,s.name,c));case 263:{C=s.name,w=s;u=k.createNodeArray(q(s)),d=L(s,s.typeParameters),p=_N(s);let e;p&&(c=m,e=je(FT(p.parameters,i=>{if(TN(i,31)&&!z(i))return m=DM(i),80===i.name.kind?R(k.createPropertyDeclaration(q(i),i.name,i.questionToken,A(i,i.type),F(i)),i):function e(t){let r;for(var n of t.elements)zP(n)||(r=(r=GC(n.name)?LT(r,e(n.name)):r)||[]).push(k.createPropertyDeclaration(q(i),n.name,void 0,A(n,void 0),void 0));return r}(i.name)})),m=c);var p=LT(LT(X4(s.members,e=>!!e.name&&UE(e.name))?[k.createPropertyDeclaration(void 0,k.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,e),gT(s.members,B,zC)),c=k.createNodeArray(p);let t=Lw(s);if(!t||UN(t.expression)||106===t.expression.kind)return p=re(s.heritageClauses),a(k.updateClassDeclaration(s,u,s.name,d,p,c));{p=s.name?X3(s.name.escapedText):"default";let n=k.createUniqueName(p+"_base",16);m=()=>({diagnosticMessage:eT.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:t,typeName:s.name});var p=k.createVariableDeclaration(n,void 0,E.createTypeOfExpression(t.expression,s,FM,T),void 0),p=k.createVariableStatement(g?[k.createModifier(138)]:[],k.createVariableDeclarationList([p],2)),i=k.createNodeArray($4(s.heritageClauses,e=>{var t,r;return 96===e.token?(t=m,m=DM(e.types[0]),r=k.updateHeritageClause(e,$4(e.types,e=>k.updateExpressionWithTypeArguments(e,n,gT(e.typeArguments,B,KC)))),m=t,r):k.updateHeritageClause(e,gT(k.createNodeArray(NT(e.types,e=>UN(e.expression)||106===e.expression.kind)),B,qP))}));return[p,a(k.updateClassDeclaration(s,u,s.name,d,i,c))]}}case 243:return a(function(t){if(G4(t.declarationList.declarations,I)){var r=gT(t.declarationList.declarations,B,eF);if(K4(r)){var n=k.createNodeArray(q(t));let e;return p_(t.declarationList)||d_(t.declarationList)?(lT(e=k.createVariableDeclarationList(r,2),t.declarationList),fT(e,t.declarationList),LE(e,t.declarationList)):e=k.updateVariableDeclarationList(t.declarationList,r),k.updateVariableStatement(t,n,e)}}}(s));case 266:return a(k.updateEnumDeclaration(s,k.createNodeArray(q(s)),s.name,k.createNodeArray(AT(s.members,e=>{var t,r;if(!z(e))return t=null==(r=E.getEnumMemberValue(e))?void 0:r.value,P&&e.initializer&&null!=r&&r.hasExternalReferences&&!HE(e.name)&&f.addDiagnostic(aT(e,eT.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations)),r=void 0===t?void 0:"string"==typeof t?k.createStringLiteral(t):t<0?k.createPrefixUnaryExpression(41,k.createNumericLiteral(-t)):k.createNumericLiteral(t),R(k.updateEnumMember(e,e.name,r),e)}))))}return Y4.assertNever(s,"Unhandled top-level node in declaration emit: "+Y4.formatSyntaxKind(s.kind));function a(e){return G(s)&&(b=t),r&&(m=o),267===s.kind&&(g=n),e===s?e:(w=void 0,C=void 0,e&&lT(R(e,s),s))}}}}function Z(e){return PT(AT(e.elements,e=>{if(232!==e.kind&&e.name&&I(e))return GC(e.name)?Z(e.name):k.createVariableDeclaration(e.name,void 0,A(e,void 0),void 0)}))}function z(e){return n&&e&&cl(e,p)}function ee(e){return gF(e)||hF(e)}function q(e){var t=ON(e),r=function(e){let t=130030,r=g&&264!==e.kind?128:0,n=307===e.parent.kind;(!n||l&&n&&b9(e.parent))&&(t^=128,r=0);return IM(e,t,r)}(e);return t===r?gj(e.modifiers,e=>o3(e,IC),IC):k.createModifiersFromModifierFlags(r)}function te(e,t){let r=OM(e);return r||e===t.firstAccessor||(r=OM(t.firstAccessor),m=DM(t.firstAccessor)),!r&&t.secondAccessor&&e!==t.secondAccessor&&(r=OM(t.secondAccessor),m=DM(t.secondAccessor)),r}function re(e){return k.createNodeArray(NT($4(e,t=>k.updateHeritageClause(t,gT(k.createNodeArray(NT(t.types,e=>UN(e.expression)||96===t.token&&106===e.expression.kind)),B,qP))),e=>e.types&&!!e.types.length))}}function IM(e,t=131070,r=0){let n=ON(e)&t|r;return 2048&n&&!(32&n)&&(n^=32),2048&n&&128&n&&(n^=128),n}function OM(e){if(e)return 177===e.kind?e.type:0{var t,r=n(e);return"function"==typeof r?i(e,r):(t=r,e=>N1(e)?t.transformBundle(e):t.transformSourceFile(e))}}function BM(e){return MM(e,Gj)}function JM(e){return MM(e,(e,t)=>t)}function zM(e,t){return t}function qM(e,t,r){r(e,t)}function UM(e,t,r,n,i,a,o){let s=new Array(357),c,l,_,u=0,d=[],p=[],f=[],m=[],g=0,h=!1,y=[],v=0,b,x,S=zM,k=qM,T=0,C=[],w={factory:r,getCompilerOptions:()=>n,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Ci(()=>kh(w)),startLexicalEnvironment:function(){Y4.assert(0r.createVariableDeclaration(e)),1))]:void 0;v--,b=y[v],0===v&&(y=[]);return e},addBlockScopedVariable:function(e){Y4.assert(0e(w)),E=e=>{for(var t of D)e=t(e);return e};T=1;var P,F=[];for(P of i)null!=Z4&&Z4.push(Z4.Phase.Emit,"transformNodes",307===P.kind?{path:P.path}:{kind:P.kind,pos:P.pos,end:P.end}),F.push((o?E:A)(P)),null!=Z4&&Z4.pop();return T=2,x3("afterTransform"),S3("transformTime","beforeTransform","afterTransform"),{transformed:F,substituteNode:function(e,t){return Y4.assert(T<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&S(e,t)||t},emitNodeWithNotification:function(e,t,r){Y4.assert(T<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?k(e,t,r):r(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(T<3){for(var e of i)Vg(iT(G3(e)));c=void 0,d=void 0,l=void 0,p=void 0,S=void 0,k=void 0,x=void 0,T=3}},diagnostics:C};function A(e){return!e||LF(e)&&e.isDeclarationFile?e:E(e)}function I(e){return 0!=(1&s[e.kind])&&0==(8&$7(e))}function O(e){return 0!=(2&s[e.kind])||0!=(4&$7(e))}}var VM={factory:cT,getCompilerOptions:()=>({}),getEmitResolver:de,getEmitHost:de,getEmitHelperFactory:de,startLexicalEnvironment:yr,resumeLexicalEnvironment:yr,suspendLexicalEnvironment:yr,endLexicalEnvironment:le,setLexicalEnvironmentFlags:yr,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:yr,hoistFunctionDeclaration:yr,addInitializationStatement:yr,startBlockScope:yr,endBlockScope:le,addBlockScopedVariable:yr,requestEmitHelper:yr,readEmitHelpers:de,enableSubstitution:yr,enableEmitNotification:yr,isSubstitutionEnabled:de,isEmitNotificationEnabled:de,onSubstituteNode:zM,onEmitNode:qM,addDiagnostic:yr},WM=((Toe=[])[1024]=["{","}"],Toe[2048]=["(",")"],Toe[4096]=["<",">"],Toe[8192]=["[","]"],Toe);function HM(e){return w3(e,".tsbuildinfo")}function KM(e,t,r,n=!1,i,a){var r=i3(r)?r:Ad(e,r,n),o=e.getCompilerOptions();if(o.outFile){if(r.length){var s=cT.createBundle(r),s=t(XM(s,e,n),s);if(s)return s}}else{if(!i)for(var c of r){c=t(XM(c,e,n),c);if(c)return c}if(a){s=GM(o);if(s)return t({buildInfoPath:s},void 0)}}}function GM(t){var r=t.configFilePath;if(Mf(t)){if(t.tsBuildInfoFile)return t.tsBuildInfoFile;var n=t.outFile;let e;if(n)e=qm(n);else{if(!r)return;n=qm(r);e=t.outDir?t.rootDir?la(t.outDir,wa(t.rootDir,n,!0)):E3(t.outDir,ra(n)):n}return e+".tsbuildinfo"}}function $M(e,t){var r=e.outFile,n=e.emitDeclarationOnly?void 0:r,i=n&&QM(n,e),t=t||wD(e)?qm(r)+".d.ts":void 0;return{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:t,declarationMapPath:t&&Bf(e)?t+".map":void 0,buildInfoPath:GM(e)}}function XM(e,t,r){var n,i,a,o=t.getCompilerOptions();return 308===e.kind?$M(o,r):(a=wd(e.fileName,t,YM(e.fileName,o)),i=(n=D5(e))&&0===F3(e.fileName,a,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),{jsFilePath:i=o.emitDeclarationOnly||i?void 0:a,sourceMapFilePath:!i||D5(e)?void 0:QM(i,o),declarationFilePath:a=r||wD(o)&&!n?Nd(e.fileName,t):void 0,declarationMapPath:a&&Bf(o)?a+".map":void 0,buildInfoPath:void 0})}function QM(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function YM(e,t){return w3(e,".json")?".json":1===t.jsx&&N3(e,[".jsx",".tsx"])?".jsx":N3(e,[".mts",".mjs"])?".mjs":N3(e,[".cts",".cjs"])?".cjs":".js"}function ZM(e,t,r,n){return r?la(r,wa(n(),e,t)):e}function eB(e,t,r,n=()=>cB(t,r)){return tB(e,t.options,r,n)}function tB(e,t,r,n){return Vm(ZM(e,r,t.declarationDir||t.outDir,n),Ed(e))}function rB(e,t,r,n=()=>cB(t,r)){var i;if(!t.options.emitDeclarationOnly)return i=w3(e,".json"),n=nB(e,t.options,r,n),i&&0===F3(e,n,Y4.checkDefined(t.options.configFilePath),r)?void 0:n}function nB(e,t,r,n){return Vm(ZM(e,r,t.outDir,n),YM(e,t))}function iB(){let t;return{addOutput:function(e){e&&(t=t||[]).push(e)},getOutputs:function(){return t||H4}}}function aB(e,t){var{jsFilePath:e,sourceMapFilePath:r,declarationFilePath:n,declarationMapPath:i,buildInfoPath:a}=$M(e.options,!1);t(e),t(r),t(n),t(i),t(a)}function oB(e,t,r,n,i){var a;x9(t)||(n(a=rB(t,e,r,i)),w3(t,".json"))||(a&&e.options.sourceMap&&n(a+".map"),wD(e.options)&&(n(a=eB(t,e,r,i)),e.options.declarationMap)&&n(a+".map"))}function sB(e,t,r,n,i){let a;return e.rootDir?(a=P3(e.rootDir,r),null!=i&&i(e.rootDir)):e.composite&&e.configFilePath?(a=D3(sa(e.configFilePath)),null!=i&&i(a)):a=qB(t(),r,n),a&&a[a.length-1]!==qi&&(a+=qi),a}function cB({options:t,fileNames:e},r){return sB(t,()=>NT(e,e=>!(t.noEmitForJsFiles&&N3(e,Cm)||x9(e))),D3(sa(Y4.checkDefined(t.configFilePath))),ze(!r))}function lB(e,t){var{addOutput:r,getOutputs:n}=iB();if(e.options.outFile)aB(e,r);else{var i,a=Ci(()=>cB(e,t));for(i of e.fileNames)oB(e,i,t,r,a);r(GM(e.options))}return n()}function _B(e,t,r){t=ua(t),Y4.assert(TT(e.fileNames,t),"Expected fileName to be present in command line");var{addOutput:n,getOutputs:i}=iB();return e.options.outFile?aB(e,n):oB(e,t,r,n),i()}function uB(e,t){var r;if(e.options.outFile)return{jsFilePath:o,declarationFilePath:r}=$M(e.options,!1),Y4.checkDefined(o||r,`project ${e.options.configFilePath} expected to have at least one output`);var n,i=Ci(()=>cB(e,t));for(n of e.fileNames)if(!x9(n)){var a=rB(n,e,t,i);if(a)return a;if(!w3(n,".json")&&wD(e.options))return eB(n,e,t,i)}var o=GM(e.options);return o||Y4.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function dB(e,t){return!!t&&!!e}function pB(s,d,c,{scriptTransformers:l,declarationTransformers:_},u,e,p){var f=d.getCompilerOptions(),m=f.sourceMap||f.inlineSourceMap||Bf(f)?[]:void 0,g=f.listEmittedFiles?[]:void 0,h=iN(),y=Cp(f),v=cN(y),{enter:t,exit:r}=rr("printTime","beforePrint","afterPrint"),b=!1;return t(),KM(d,function({jsFilePath:e,sourceMapFilePath:t,declarationFilePath:r,declarationMapPath:n,buildInfoPath:i},a){var o;null!=(o=Z4)&&o.push(Z4.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:e}),function(e,t,r){var n;e&&!u&&t&&(d.isEmitBlocked(t)||f.noEmit?b=!0:((LF(e)?[e]:NT(e.sourceFiles,G_)).forEach(e=>{!f.noCheck&&WD(e,f)||y9(e,e=>_F(e)&&!(32&ep(e))||uF(e)?"skip":void s.markLinkedReferences(e))}),e=UM(s,d,cT,f,[e],l,!1),n=SB({removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:f.noEmitHelpers,module:bD(f),target:vD(f),sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,inlineSources:f.inlineSources,extendedDiagnostics:f.extendedDiagnostics},{hasGlobalName:s.hasGlobalName,onEmitNode:e.emitNodeWithNotification,isEmitNotificationEnabled:e.isEmitNotificationEnabled,substituteNode:e.substituteNode}),Y4.assert(1===e.transformed.length,"Should only see one output from the transform"),S(t,r,e,n,f),e.dispose(),g&&(g.push(t),r)&&g.push(r)))}(a,e,t),null!=(o=Z4)&&o.pop(),null!=(e=Z4)&&e.push(Z4.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:r}),function(e,t,r){if(e&&0!==u)if(t){var e=LF(e)?[e]:e.sourceFiles,e=p?e:NT(e,G_),n=f.outFile?[cT.createBundle(e)]:e,e=(e.forEach(e=>{(u&&!wD(f)||f.noCheck||p&&u||!WD(e,f))&&x(e)}),UM(s,d,cT,f,n,_,!1));if(K4(e.diagnostics))for(var i of e.diagnostics)h.add(i);var a,n=!!e.diagnostics&&!!e.diagnostics.length||!!d.isEmitBlocked(t)||!!f.noEmit;b=b||n,n&&!p||(Y4.assert(1===e.transformed.length,"Should only see one output from the decl transform"),n={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:!0,module:f.module,target:f.target,sourceMap:!p&&f.declarationMap,inlineSourceMap:f.inlineSourceMap,extendedDiagnostics:f.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},a=SB(n,{hasGlobalName:s.hasGlobalName,onEmitNode:e.emitNodeWithNotification,isEmitNotificationEnabled:e.isEmitNotificationEnabled,substituteNode:e.substituteNode}),S(t,r,e,a,{sourceMap:n.sourceMap,sourceRoot:f.sourceRoot,mapRoot:f.mapRoot,extendedDiagnostics:f.extendedDiagnostics}),g&&(g.push(t),r)&&g.push(r)),e.dispose()}else(u||f.emitDeclarationOnly)&&(b=!0)}(a,r,n),null!=(t=Z4)&&t.pop(),null!=(o=Z4)&&o.push(Z4.Phase.Emit,"emitBuildInfo",{buildInfoPath:i}),function(e){var t;!e||c||b||(d.isEmitBlocked(e)?b=!0:(t=d.getBuildInfo()||fB(void 0),jd(d,h,e,mB(t),!1,void 0,{buildInfo:t}),null!=g&&g.push(e)))}(i),null!=(e=Z4)&&e.pop()},Ad(d,c,p),p,e,!c),r(),{emitSkipped:b,diagnostics:h.getDiagnostics(),emittedFiles:g,sourceMaps:m};function x(e){gF(e)?80===e.expression.kind&&s.collectLinkedAliases(e.expression,!0):vF(e)?s.collectLinkedAliases(e.propertyName||e.name,!0):h9(e,x)}function S(e,t,r,n,i){var a,o=r.transformed[0],s=308===o.kind?o:void 0,c=307===o.kind?o:void 0,l=s?s.sourceFiles:[c];let _;o=o,!(a=i).sourceMap&&!a.inlineSourceMap||307===o.kind&&w3(o.fileName,".json")||(_=Cj(d,ra(sa(e)),function(e){e=sa(e.sourceRoot||"");return e&&ma(e)}(i),function(t,e,r){if(t.sourceRoot)return d.getCommonSourceDirectory();if(t.mapRoot){let e=sa(t.mapRoot);return e=0===ta(e=r?D3(Od(r.fileName,d,e)):e)?E3(d.getCommonSourceDirectory(),e):e}return D3(ua(e))}(i,e,c),i)),s?n.writeBundle(s,v,_):n.writeFile(c,v,_);let u;_?(m&&m.push({inputSourceFileNames:_.getSources(),sourceMap:_.toJSON()}),(a=function(t,r,n,e,i){if(t.inlineSourceMap)return r=r.toString(),"data:application/json;base64,"+hp(Ji,r);r=ra(sa(Y4.checkDefined(e)));if(t.mapRoot){let e=sa(t.mapRoot);return 0===ta(e=i?D3(Od(i.fileName,d,e)):e)?(e=E3(d.getCommonSourceDirectory(),e),encodeURI(Ea(D3(ua(n)),E3(e,r),d.getCurrentDirectory(),d.getCanonicalFileName,!0))):encodeURI(E3(e,r))}return encodeURI(r)}(i,_,e,t,c))&&(v.isAtStartOfLine()||v.rawWrite(y),u=v.getTextPos(),v.writeComment("//# sourceMappingURL="+a)),t&&(o=_.toString(),jd(d,h,t,o,!1,l))):v.writeLine();s=v.getText();jd(d,h,e,s,!!f.emitBOM,l,{sourceMapUrlPos:u,diagnostics:r.diagnostics}),v.clear()}}function fB(e){return{program:e,version:L}}function mB(e){return JSON.stringify(e)}function gB(e,t){return vp(e,t)}var hB={hasGlobalName:de,getReferencedExportContainer:de,getReferencedImportDeclaration:de,getReferencedDeclarationWithCollidingName:de,isDeclarationWithCollidingName:de,isValueAliasDeclaration:de,isReferencedAliasDeclaration:de,isTopLevelValueImportEqualsWithEntityName:de,hasNodeCheckFlag:de,isDeclarationVisible:de,isLateBound:e=>!1,collectLinkedAliases:de,markLinkedReferences:de,isImplementationOfOverload:de,requiresAddingImplicitUndefined:de,isExpandoFunctionDeclaration:de,getPropertiesOfContainerFunction:de,createTypeOfDeclaration:de,createReturnTypeOfSignatureDeclaration:de,createTypeOfExpression:de,createLiteralConstValue:de,isSymbolAccessible:de,isEntityNameVisible:de,getConstantValue:de,getEnumMemberValue:de,getReferencedValueDeclaration:de,getReferencedValueDeclarations:de,getTypeReferenceSerializationKind:de,isOptionalParameter:de,isArgumentsLocalBinding:de,getExternalModuleFileFromDeclaration:de,isLiteralConstDeclaration:de,getJsxFactoryEntity:de,getJsxFragmentFactoryEntity:de,isBindingCapturedByNode:de,getDeclarationStatementsForSourceFile:de,isImportRequiredByAugmentation:de},yB=Ci(()=>SB({})),vB=Ci(()=>SB({removeComments:!0})),bB=Ci(()=>SB({removeComments:!0,neverAsciiEscape:!0})),xB=Ci(()=>SB({removeComments:!0,omitTrailingSemicolon:!0}));function SB(_={},e={}){var He,f,m,r,g,t,l,n,h,y,v,b,i,x,a,S,Ke,k,T,C,s,w,N,o,c,Ge,{hasGlobalName:D,onEmitNode:E=qM,isEmitNotificationEnabled:P,substituteNode:yt=zM,onBeforeEmitNode:F,onAfterEmitNode:A,onBeforeEmitNodeArray:I,onAfterEmitNodeArray:O,onBeforeEmitToken:L,onAfterEmitToken:j}=e,e=!!_.extendedDiagnostics,R=!!_.omitBraceSourceMapPositions,M=Cp(_),B=bD(_),J=new Map,$e=_.preserveSourceNewlines,Xe=function(e){Ke.write(e)},u=!0,z=-1,q=-1,U=-1,V=-1,W=-1,H=!1,Qe=!!_.removeComments,{enter:K,exit:G}=pn(e,"commentTime","beforeComment","afterComment"),Ye=cT.parenthesizer,$={select:e=>0===e?Ye.parenthesizeLeadingTypeArgument:void 0},vt=p9(function(e,t){{var r,n;t?(t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=$e,t.containerPosStack[t.stackIndex]=U,t.containerEndStack[t.stackIndex]=V,t.declarationListContainerEndStack[t.stackIndex]=W,r=t.shouldEmitCommentsStack[t.stackIndex]=de(e),n=t.shouldEmitSourceMapsStack[t.stackIndex]=pe(e),null!=F&&F(e),r&&Rr(e),n&&on(e),_e(e)):t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]}}return t},function(e,t,r){return X(e,r,"left")},function(e,t,r){var n=28!==e.kind,i=gt(r,r.left,e),r=gt(r,e,r.right);mt(i,n),$r(e.pos),fr(e,103===e.kind?_t:lr),Qr(e.end,!0),mt(r,!0)},function(e,t,r){return X(e,r,"right")},function(e,t){var r=gt(e,e.left,e.operatorToken),n=gt(e,e.operatorToken,e.right);{var i,a,o,s;hr(r,n),0");case 287:case 290:var we=t;return ct("");case 291:Ze((De=t).name);var E="=",Ne=ct,De=De.initializer,Ee=xt;return void(De&&(Ne(E),Ee(De)));case 292:return st(t,t.properties,262656);case 293:return Ne=t,ct("{..."),et(Ne.expression),ct("}");case 294:var Pe,E=t;return void((E.expression||!Qe&&!rN(E)&&function(e){return function(e){let t=!1;return ko((null==He?void 0:He.text)||"",e+1,()=>t=!0),t}(e)||function(e){let t=!1;return So((null==He?void 0:He.text)||"",e+1,()=>t=!0),t}(e)}(E.pos))&&((Ee=He&&!rN(E)&&O3(He,E.pos).line!==O3(He,E.end).line)&&Ke.increaseIndent(),De=tt(19,E.pos,ct,E),Ze(E.dotDotDotToken),et(E.expression),tt(20,(null==(Pe=E.expression)?void 0:Pe.end)||De,ct,E),Ee)&&Ke.decreaseIndent());case 295:return bt((Pe=t).namespace),ct(":"),bt(Pe.name);case 296:return tt(84,(n=t).pos,_t,n),ut(),et(n.expression,Ye.parenthesizeExpressionForDisallowedComma),Kt(n,n.statements,n.expression.end);case 297:return V=tt(90,(n=t).pos,_t,n),Kt(n,n.statements,V);case 298:return V=t,ut(),mr(V.token,_t),ut(),st(V,V.types,528);case 299:var P=t,Fe=tt(85,P.pos,_t,P);return ut(),P.variableDeclaration&&(tt(21,Fe,ct,P),Ze(P.variableDeclaration),tt(22,P.variableDeclaration.end,ct,P),ut()),void Ze(P.block);case 303:Fe=t;return Ze(Fe.name),ct(":"),ut(),0==(1024&$7(Fe=Fe.initializer))&&Qr(th(Fe).pos),void et(Fe,Ye.parenthesizeExpressionForDisallowedComma);case 304:return Ze((P=t).name),P.objectAssignmentInitializer&&(ut(),ct("="),ut(),et(P.objectAssignmentInitializer,Ye.parenthesizeExpressionForDisallowedComma));case 305:return(U=t).expression&&(tt(26,U.pos,ct,U),et(U.expression,Ye.parenthesizeExpressionForDisallowedComma));case 306:return Ze((U=t).name),tr(U.initializer,U.name.end,U,Ye.parenthesizeExpressionForDisallowedComma);case 307:return Qt(t);case 308:return Y4.fail("Bundles should be printed using printBundle");case 309:return Xt(t);case 310:return q=t,ut(),ct("{"),Ze(q.name),ct("}");case 312:return ct("*");case 313:return ct("?");case 314:return q=t,ct("?"),Ze(q.type);case 315:return z=t,ct("!"),Ze(z.type);case 316:return Ze(t.type),ct("=");case 317:return z=t,_t("function"),or(z,z.parameters),ct(":"),Ze(z.type);case 191:case 318:return F=t,ct("..."),Ze(F.type);case 319:return;case 320:var F=t;if(Xe("/**"),F.comment){var Ae,Ie=fC(F.comment);if(Ie)for(Ae of Ie.split(/\r\n?|\n/g))dt(),ut(),ct("*"),ut(),Xe(Ae)}return F.tags&&(1!==F.tags.length||344!==F.tags[0].kind||F.comment?st(F,F.tags,33):(ut(),Ze(F.tags[0]))),ut(),void Xe("*/");case 322:return Gt(t);case 323:return $t(t);case 327:case 332:case 337:return nt((Ie=t).tagName),it(Ie.comment);case 328:case 329:return nt((Oe=t).tagName),ut(),ct("{"),Ze(Oe.class),ct("}"),it(Oe.comment);case 330:case 331:return;case 333:case 334:case 335:case 336:return;case 338:var Oe=t;return nt(Oe.tagName),Oe.name&&(ut(),Ze(Oe.name)),it(Oe.comment),void $t(Oe.typeExpression);case 339:return it((Le=t).comment),$t(Le.typeExpression);case 341:case 348:var Le=t;return nt(Le.tagName),Xt(Le.typeExpression),ut(),Le.isBracketed&&ct("["),Ze(Le.name),Le.isBracketed&&ct("]"),void it(Le.comment);case 340:case 342:case 343:case 344:case 349:case 350:return nt((J=t).tagName),Xt(J.typeExpression),it(J.comment);case 345:return nt((J=t).tagName),Xt(J.constraint),ut(),st(J,J.typeParameters,528),it(J.comment);case 346:var A=t;return nt(A.tagName),A.typeExpression&&(309===A.typeExpression.kind?Xt(A.typeExpression):(ut(),ct("{"),Xe("Object"),A.typeExpression.isArrayType&&(ct("["),ct("]")),ct("}"))),A.fullName&&(ut(),Ze(A.fullName)),it(A.comment),void(A.typeExpression&&322===A.typeExpression.kind&&Gt(A.typeExpression));case 347:return nt((A=t).tagName),Ze(A.name),it(A.comment);case 351:var je=t;return nt(je.tagName),ut(),je.importClause&&(Ze(je.importClause),ut(),tt(161,je.importClause.end,_t,je),ut()),et(je.moduleSpecifier),je.attributes&&rr(je.attributes),void it(je.comment);case 353:return}nT(t)&&(e=1,yt!==zM)&&(r=yt(e,t)||t)!==t&&(t=r,Ge)&&(t=Ge(t))}if(1===e)switch(t.kind){case 9:case 10:return Tt(t,!1);case 11:case 14:case 15:return Tt(t,!1);case 80:return Ct(t);case 81:return wt(t);case 209:return Me=(Re=t).elements,Be=Re.multiLine?65536:0,sr(Re,Me,8914|Be,Ye.parenthesizeExpressionForDisallowedComma);case 210:var Re=t,Me=(Sr(Re),G4(Re.properties,Tr),131072&$7(Re)),Be=(Me&&pt(),Re.multiLine?65536:0),I=He&&1<=He.languageVersion&&!D5(He)?64:0;return st(Re,Re.properties,526226|I|Be),Me&&ft(),void kr(Re);case 211:var I=t,O=(et(I.expression,Ye.parenthesizeLeftSideOfAccess),I.questionDotToken||ZD(cT.createToken(25),I.expression.end,I.name.pos)),Je=gt(I,I.expression,O),ze=gt(I,O,I.name);return mt(Je,!1),29===O.kind||!function(e){{var t;return zE(e=Ks(e))?(t=xr(e,!0,!1),!(448&e.numericLiteralFlags||t.includes(A3[25])||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))):lD(e)?"number"==typeof(t=sh(e))&&isFinite(t)&&0<=t&&Math.floor(t)===t:void 0}}(I.expression)||Ke.hasTrailingComment()||Ke.hasTrailingWhitespace()||ct("."),I.questionDotToken?Ze(O):tt(O.kind,I.expression.end,ct,I),mt(ze,!1),Ze(I.name),void hr(Je,ze);case 212:return et((O=t).expression,Ye.parenthesizeLeftSideOfAccess),Ze(O.questionDotToken),tt(23,O.expression.end,ct,O),et(O.argumentExpression),tt(24,O.argumentExpression.end,ct,O);case 213:Je=t,ze=16&Vl(Je);return ze&&(ct("("),cr("0"),ct(","),ut()),et(Je.expression,Ye.parenthesizeLeftSideOfAccess),ze&&ct(")"),Ze(Je.questionDotToken),ot(Je,Je.typeArguments),void sr(Je,Je.arguments,2576,Ye.parenthesizeExpressionForDisallowedComma);case 214:return tt(105,(L=t).pos,_t,L),ut(),et(L.expression,Ye.parenthesizeExpressionOfNew),ot(L,L.typeArguments),sr(L,L.arguments,18960,Ye.parenthesizeExpressionForDisallowedComma);case 215:var L=t,qe=16&Vl(L);return qe&&(ct("("),cr("0"),ct(","),ut()),et(L.tag,Ye.parenthesizeLeftSideOfAccess),qe&&ct(")"),ot(L,L.typeArguments),ut(),void et(L.template);case 216:return qe=t,ct("<"),Ze(qe.type),ct(">"),et(qe.expression,Ye.parenthesizeOperandOfPrefixUnary);case 217:return me=tt(21,(f=t).pos,ct,f),ge=yr(f.expression,f),et(f.expression,void 0),vr(f.expression,f),hr(ge),tt(22,f.expression?f.expression.end:me,ct,f);case 218:return Cr((ge=t).name),Mt(ge);case 219:return Zt(me=t,me.modifiers),rt(me,Et,Pt);case 220:return tt(91,(f=t).pos,_t,f),ut(),et(f.expression,Ye.parenthesizeOperandOfPrefixUnary);case 221:return tt(114,(fe=t).pos,_t,fe),ut(),et(fe.expression,Ye.parenthesizeOperandOfPrefixUnary);case 222:return tt(116,(fe=t).pos,_t,fe),ut(),et(fe.expression,Ye.parenthesizeOperandOfPrefixUnary);case 223:return tt(135,(Ue=t).pos,_t,Ue),ut(),et(Ue.expression,Ye.parenthesizeOperandOfPrefixUnary);case 224:var Ue=t;return mr(Ue.operator,lr),function(e){var 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))}(Ue)&&ut(),void et(Ue.operand,Ye.parenthesizeOperandOfPrefixUnary);case 225:return et((p=t).operand,Ye.parenthesizeOperandOfPostfixUnary),mr(p.operator,lr);case 226:return vt(t);case 227:return _e=gt(p=t,p.condition,p.questionToken),ue=gt(p,p.questionToken,p.whenTrue),de=gt(p,p.whenTrue,p.colonToken),pe=gt(p,p.colonToken,p.whenFalse),et(p.condition,Ye.parenthesizeConditionOfConditionalExpression),mt(_e,!0),Ze(p.questionToken),mt(ue,!0),et(p.whenTrue,Ye.parenthesizeBranchOfConditionalExpression),hr(_e,ue),mt(de,!0),Ze(p.colonToken),mt(pe,!0),et(p.whenFalse,Ye.parenthesizeBranchOfConditionalExpression),hr(de,pe);case 228:return Ze((_e=t).head),st(_e,_e.templateSpans,262144);case 229:return tt(127,(ue=t).pos,_t,ue),Ze(ue.asteriskToken),nr(ue.expression&&jt(ue.expression),Rt);case 230:return tt(26,(de=t).pos,ct,de),et(de.expression,Ye.parenthesizeExpressionForDisallowedComma);case 231:return Cr((pe=t).name),Ut(pe);case 232:return;case 234:return et((le=t).expression,void 0),le.type&&(ut(),_t("as"),ut(),Ze(le.type));case 235:return et(t.expression,Ye.parenthesizeLeftSideOfAccess),lr("!");case 233:return Ft(t);case 238:return et((le=t).expression,void 0),le.type&&(ut(),_t("satisfies"),ut(),Ze(le.type));case 236:return pr((ce=t).keywordToken,ce.pos,ct),ct("."),Ze(ce.name);case 237:return Y4.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Ze((ce=t).openingElement),st(ce,ce.children,262144),Ze(ce.closingElement);case 285:return se=t,ct("<"),Ht(se.tagName),ot(se,se.typeArguments),ut(),Ze(se.attributes),ct("/>");case 288:return Ze((se=t).openingFragment),st(se,se.children,262144),Ze(se.closingFragment);case 352:return Y4.fail("SyntaxList should not be printed");case 353:return;case 354:var Ve=t,We=$7(Ve);return 1024&We||Ve.pos===Ve.expression.pos||Qr(Ve.expression.pos),et(Ve.expression),void(2048&We||Ve.end===Ve.expression.end||$r(Ve.expression.end));case 355:return sr(t,t.elements,528,void 0);case 356:return Y4.fail("SyntheticReferenceExpression should not be printed")}return Nu(t.kind)?fr(t,_t):Zs(t.kind)?fr(t,ct):void Y4.fail(`Unhandled SyntaxKind: ${Y4.formatSyntaxKind(t.kind)}.`)}function ye(e,t){var r=me(1,e,t);Y4.assertIsDefined(c),t=c,c=void 0,r(e,t)}function ve(t){let r=!1;var n=308===t.kind?t:void 0;if(!n||0!==B){var i=n?n.sourceFiles.length:1;for(let e=0;e")}function Dt(e){ut(),Ze(e.type)}function Et(e){ar(e,e.typeParameters),De(e,e.parameters),er(e.type),ut(),Ze(e.equalsGreaterThanToken)}function Pt(e){KP(e.body)?qt(e.body):(ut(),et(e.body,Ye.parenthesizeConciseBodyOfArrowFunction))}function Ft(e){et(e.expression,Ye.parenthesizeLeftSideOfAccess),ot(e,e.typeArguments)}function At(e,t){tt(19,e.pos,ct,e);t=t||1&$7(e)?768:129;st(e,e.statements,t),tt(20,e.statements.end,ct,e,!!(1&t))}function It(e){e?ct(";"):lt()}function Ot(e,t){t=tt(117,t,_t,e);ut(),tt(21,t,ct,e),et(e.expression),tt(22,e.expression.end,ct,e)}function Lt(e){void 0!==e&&(261===e.kind?Ze:et)(e)}function tt(e,t,r,n,i){var a=G3(n),a=a&&a.kind===n.kind,o=t;return a&&He&&(t=j3(He.text,t)),a&&n.pos!==o&&((i=i&&He&&!zp(o,t,He))&&pt(),$r(o),i)&&ft(),t=R||19!==e&&20!==e?mr(e,r,t):pr(e,t,r,n),a&&n.end!==t&&Qr(t,!(o=294===n.kind),o),t}function be(e){return 2===e.kind||!!e.hasTrailingNewLine}function jt(e){var t,r;return!Qe&&X0(e)&&function e(t){if(!He)return!1;var r=No(He.text,t.pos);if(r){var n=G3(t);if(n&&IP(n.parent))return!0}return!!X4(r,be)||!!X4(rh(t),be)||!!X0(t)&&(!(t.pos===t.expression.pos||!X4(Do(He.text,t.expression.pos),be))||e(t.expression))}(e)?(t=G3(e))&&IP(t)?(lT(r=cT.createParenthesizedExpression(e.expression),e),fT(r,t),r):cT.createParenthesizedExpression(e):e}function Rt(e){return jt(Ye.parenthesizeExpressionForDisallowedComma(e))}function Mt(e){at(e,e.modifiers,!1),_t("function"),Ze(e.asteriskToken),ut(),bt(e.name),rt(e,zt,Bt)}function rt(e,t,r){var n=131072&$7(e);n&&pt(),Sr(e),G4(e.parameters,ht),t(e),r(e),kr(e),n&&ft()}function Bt(e){e=e.body;e?qt(e):lt()}function Jt(e){lt()}function zt(e){ar(e,e.typeParameters),or(e,e.parameters),er(e.type)}function qt(e){ht(e),null!=F&&F(e),ut(),ct("{"),pt();var t=function(t){if(1&$7(t))return 1;if(!t.multiLine&&(rN(t)||!He||Ip(t,He))&&!Le(t,UT(t.statements),2)&&!Re(t,KT(t.statements),2,t.statements)){let e;for(var r of t.statements){if(0'),dt()),He&&He.moduleName&&(Ie(`/// `),dt()),He&&He.amdDependencies)for(var i of He.amdDependencies)i.name?Ie(`/// `):Ie(`/// `),dt();function a(e,t){for(var r of t){var n=r.resolutionMode?`resolution-mode="${99===r.resolutionMode?"import":"require"}" `:"",i=r.preserve?'preserve="true" ':"";Ie(`/// `),dt()}}a("path",t),a("types",r),a("lib",n)}function Te(e){var t,r=e.statements,n=(Sr(e),G4(e.statements,ht),ve(e),ST(r,e=>!y_(e)));(t=e).isDeclarationFile&&ke(t.hasNoDefaultLib,t.referencedFiles,t.typeReferenceDirectives,t.libReferenceDirectives),st(e,r,1,void 0,-1===n?r.length:n),kr(e)}function Ce(t,r,n){let i=!!r;for(let e=0;e=r.length||0===o)&&32768&n?(null!=I&&I(r),null!=O&&O(r)):(15360&n&&(ct(WM[15360&n][0]),s)&&r&&Qr(r.pos,!0),null!=I&&I(r),s?!(1&n)||$e&&(!t||He&&Ip(t,He))?256&n&&!(524288&n)&&ut():dt():Fe(e,t,r,n,i,a,o,r.hasTrailingComma,r),null!=O&&O(r),15360&n&&(s&&r&&$r(r.end),ct(WM[15360&n][1]))))}function Fe(t,r,n,i,a,o,s,e,c){var l=0==(262144&i);let _=l;var u=Le(r,n[o],i),d=(u?(dt(u),_=!1):256&i&&ut(),128&i&&pt(),u=a,1===t.length?kB:"object"==typeof u?TB:CB);let p,f=!1;for(let e=0;eUp(r.pos,t.pos,He,e)):Op(t,r,He)?0:1;if(Be(r,e))return 1}return 1&e?1:0}function je(t,r,e){if(2&e||$e){if(void 0===t||void 0===r)return 0;if(12===r.kind)return 0;if(He&&!rN(t)&&!rN(r))return $e&&function(e,t){if(t.posMp(t,r,He,e)):!$e&&(i=r,(n=K3(n=t)).parent)&&n.parent===K3(i).parent?Rp(t,r,He)?0:1:65536&e?1:0;if(Be(t,e)||Be(r,e))return 1}else if(Zg(r))return 1;var n,i;return 1&e?1:0}function Re(r,e,t,n){if(2&t||$e){if(65536&t)return 1;if(void 0===e)return!r||He&&Ip(r,He)?0:1;if(He&&r&&!Km(r.pos)&&!rN(e)&&(!e.parent||e.parent===r)){if($e){let t=(n&&!Km(n.end)?n:e).end;return Me(e=>Vp(t,r.end,He,e))}return Lp(r,e,He)?0:1}if(Be(e,t))return 1}return 1&t&&!(131072&t)?1:0}function Me(e){Y4.assert(!!$e);var t=e(!0);return 0===t?e(!1):t}function yr(e,t){t=$e&&Le(t,e,0);return t&&mt(t,!1),!!t}function vr(e,t){t=$e&&Re(t,e,0,void 0);t&&dt(t)}function Be(e,t){return!rN(e)||void 0===(e=Zg(e))?0!=(65536&t):e}function gt(e,t,r){return 262144&$7(e)?0:(e=Je(e),t=Je(t),Zg(r=Je(r))?1:!He||rN(e)||rN(t)||rN(r)?0:$e?Me(e=>Mp(t,r,He,e)):Rp(t,r,He)?0:1)}function br(e){return 0===e.statements.length&&(!He||Rp(e,e,He))}function Je(e){for(;217===e.kind&&rN(e);)e=e.expression;return e}function ze(e,t){if(PC(e)||lc(e))return Ve(e);if(qE(e)&&e.textSourceNode)return ze(e.textSourceNode,t);var r=He,n=!!r&&!!e.parent&&!rN(e);if(Us(e)){if(!n||iT(e)!==K3(r))return rT(e)}else if(DF(e)){if(!n||iT(e)!==K3(r))return gg(e)}else if(Y4.assertNode(e,CC),!n)return e.text;return Jl(r,e,t)}function xr(e,t,r){var n,i;return 11===e.kind&&e.textSourceNode?uT(n=e.textSourceNode)||UE(n)||zE(n)||DF(n)?(i=zE(n)?n.text:ze(n),r?`"${gd(i)}"`:t||16777216&$7(e)?`"${aN(i)}"`:`"${ud(i)}"`):xr(n,t,r):(i=(t?1:0)|(r?2:0)|(_.terminateUnterminatedLiterals?4:0)|(_.target&&8<=_.target?8:0),Hl(e,He,i))}function Sr(e){n.push(h),h=0,x.push(a),e&&1048576&$7(e)||(y.push(v),v=0,t.push(l),l=void 0,b.push(i))}function kr(e){h=n.pop(),a=x.pop(),e&&1048576&$7(e)||(v=y.pop(),l=t.pop(),i=b.pop())}function qe(e){(i=i&&i!==KT(b)?i:new Set).add(e)}function Ue(e){(a=a&&a!==KT(x)?a:new Set).add(e)}function ht(e){if(e)switch(e.kind){case 241:G4(e.statements,ht);break;case 256:case 254:case 246:case 247:ht(e.statement);break;case 245:ht(e.thenStatement),ht(e.elseStatement);break;case 248:case 250:case 249:ht(e.initializer),ht(e.statement);break;case 255:ht(e.caseBlock);break;case 269:G4(e.clauses,ht);break;case 296:case 297:G4(e.statements,ht);break;case 258:ht(e.tryBlock),ht(e.catchClause),ht(e.finallyBlock);break;case 299:ht(e.variableDeclaration),ht(e.block);break;case 243:ht(e.declarationList);break;case 261:G4(e.declarations,ht);break;case 260:case 169:case 208:case 263:Cr(e.name);break;case 262:Cr(e.name),1048576&$7(e)&&(G4(e.parameters,ht),ht(e.body));break;case 206:case 207:G4(e.elements,ht);break;case 272:ht(e.importClause);break;case 273:Cr(e.name),ht(e.namedBindings);break;case 274:case 280:Cr(e.name);break;case 275:G4(e.elements,ht);break;case 276:Cr(e.propertyName||e.name)}}function Tr(e){if(e)switch(e.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:Cr(e.name)}}function Cr(e){e&&(PC(e)||lc(e)?Ve(e):GC(e)&&ht(e))}function Ve(e){var t=e.emitNode.autoGenerate;return 4==(7&t.flags)?We(fv(e),UE(e),t.flags,t.prefix,t.suffix):(t=t.id,r[t]||(r[t]=function(e){var t=e.emitNode.autoGenerate,r=mv(t.prefix,Ve),n=mv(t.suffix);switch(7&t.flags){case 1:return Dr(0,!!(8&t.flags),UE(e),r,n);case 2:return Y4.assertNode(e,uT),Dr(268435456,!!(8&t.flags),!1,r,n);case 3:return Er(rT(e),32&t.flags?wr:d,!!(16&t.flags),!!(8&t.flags),UE(e),r,n)}return Y4.fail(`Unsupported GeneratedIdentifierKind: ${Y4.formatEnum(7&t.flags,fn,!0)}.`)}(e)))}function We(e,t,r,n,i){var a=oj(e),o=t?m:f;return o[a]||(o[a]=function t(r,n,i,a,o){switch(r.kind){case 80:case 81:return Er(ze(r),d,!!(16&i),!!(8&i),n,a,o);case 267:case 266:return Y4.assert(!a&&!o&&!n),Fr(r);case 272:case 278:return Y4.assert(!a&&!o&&!n),Ar(r);case 262:case 263:{Y4.assert(!a&&!o&&!n);let e=r.name;return e&&!PC(e)?t(e,!1,i,a,o):Ir()}case 277:return Y4.assert(!a&&!o&&!n),Ir();case 231:return Y4.assert(!a&&!o&&!n),Or();case 174:case 177:case 178:return Lr(r,n,a,o);case 167:return Dr(0,!0,n,a,o);default:return Dr(0,!1,n,a,o)}}(e,t,r??0,mv(n,Ve),mv(i)))}function d(e,t){return wr(e)&&!function(t,e){let r,n;n=e?(r=a,x):(r=i,b);if(null!=r&&r.has(t))return 1;for(let e=n.length-1;0<=e;e--)if(r!==n[e]&&null!=(r=n[e])&&r.has(t))return 1;return}(e,t)&&!g.has(e)}function wr(e,t){return!He||Cl(He,e,D)}function Nr(e,t){switch(e){case"":v=t;break;case"#":h=t;break;default:(l=l??new Map).set(e,t)}}function Dr(e,t,r,n,i){var a=hv(r,n=0l.readFile(e,t),directoryExists:l.directoryExists&&function(e){var t=d(e);return o.has(ma(t))||l.directoryExists(e)},getDirectories:function(e){var t=d(e),t=f(e,t);if(t)return t.directories.slice();return l.getDirectories(e)},readDirectory:function(e,t,r,n,i){let a=d(e),o=f(e,a),s;return void 0===o?l.readDirectory(e,t,r,n,i):hm(e,t,r,n,u,_,i,function(e){var t=d(e);if(t===a)return o||c(e,t);var r=f(e,t);return void 0!==r?r||c(e,t):Qm},m);function c(e,t){return s&&t===a?s:(e={files:$4(l.readDirectory(e,void 0,void 0,["*.*"]),p)||H4,directories:l.getDirectories(e)||H4},t===a&&(s=e),e)}},createDirectory:l.createDirectory&&function(e){var t=d(e),t=i(t);{var r,n;t&&(r=p(e),n=a(r),B(t.sortedAndCanonicalizedDirectories,n,Se))&&t.directories.push(r)}l.createDirectory(e)},writeFile:l.writeFile&&function(e,t,r){var n=d(e),n=i(n);n&&c(n,p(e),!0);return l.writeFile(e,t,r)},addOrDeleteFileOrDirectory:function(e,t){var r=s(t);if(void 0!==r)g();else{r=i(t);if(r){if(l.directoryExists)return t=p(e),(e={fileExists:l.fileExists(e),directoryExists:l.directoryExists(e)}).directoryExists||n(r.sortedAndCanonicalizedDirectories,a(t))?g():c(r,t,e.fileExists),e;g()}}},addOrDeleteFile:function(e,t,r){1!==r&&(t=i(t))&&c(t,p(e),0===r)},clearCache:g,realpath:l.realpath&&m};function d(e){return pa(e,_,a)}function s(e){return o.get(ma(e))}function i(e){e=s(D3(e));return e&&!e.sortedAndCanonicalizedFiles&&(e.sortedAndCanonicalizedFiles=e.files.map(a).sort(),e.sortedAndCanonicalizedDirectories=e.directories.map(a).sort()),e}function p(e){return ra(ua(e))}function f(e,t){var r,n,i,a=s(t=ma(t));if(a)return a;try{return r=e,n=t,l.realpath&&ma(d(l.realpath(r)))!==n?null!=(i=l.directoryExists)&&i.call(l,r)?(o.set(n,!1),!1):void 0:(i={files:$4(l.readDirectory(r,void 0,void 0,["*.*"]),p)||[],directories:l.getDirectories(r)||[]},o.set(ma(n),i),i)}catch(e){Y4.assert(!o.has(ma(t)))}}function n(e,t){return 0<=XT(e,t,Ti,Se)}function m(e){return l.realpath?l.realpath(e):e}function c(e,t,r){var n=e.sortedAndCanonicalizedFiles;let i=a(t);r?B(n,i,Se)&&e.files.push(t):0<=(r=XT(n,i,Ti,Se))&&(n.splice(r,1),t=e.files.findIndex(e=>a(e)===i),e.files.splice(t,1))}function g(){o.clear()}}}var NB=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(NB||{});function DB(n,e,i,a,t){let r,o=Q((null==(r=null==e?void 0:e.configFile)?void 0:r.extendedSourceFiles)||H4,t);i.forEach((e,t)=>{o.has(t)||(e.projects.delete(n),e.close())}),o.forEach((e,t)=>{var r=i.get(t);r?r.projects.add(n):i.set(t,{projects:new Set([n]),watcher:a(e,t),close:()=>{var e=i.get(t);e&&0===e.projects.size&&(e.watcher.close(),i.delete(t))}})})}function EB(t,e){e.forEach(e=>{e.projects.delete(t)&&e.close()})}function PB(r,n,i){r.delete(n)&&r.forEach(({extendedResult:e},t)=>{null!=(e=e.extendedSourceFiles)&&e.some(e=>i(e)===n)&&PB(r,t,i)})}function FB(e,t,r){tf(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:$p})}function AB(n,e,r){function i(e,t){return{watcher:r(e,t),flags:t}}e?tf(n,new Map(Object.entries(e)),{createNewValue:i,onDeleteValue:BB,onExistingValue:function(e,t,r){e.flags!==t&&(e.watcher.close(),n.set(r,i(r,t)))}}):Zp(n,BB)}function IB({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:n,options:i,program:a,extraFileExtensions:o,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:_,getScriptKind:u}){var d=Kz(r);if(!d)return l(`Project: ${n} Detected ignored path: `+t),!0;if((r=d)===e)return!1;if(C3(r)&&!Mm(t,i,o)&&!function(){if(!u)return;var e=u(t);switch(e){case 3:case 4:case 7:case 5:return 1;case 1:case 2:return Jf(i);case 6:return CD(i);case 0:return}}())return l(`Project: ${n} Detected file add/remove of non supported extension: `+t),!0;if(iI(t,i.configFile.configFileSpecs,P3(D3(n),s),c,s))return l(`Project: ${n} Detected excluded file: `+t),!0;if(!a)return!1;if(i.outFile||i.outDir)return!1;if(x9(r)){if(i.declarationDir)return!1}else if(!N3(r,Cm))return!1;d=qm(r);let p=i3(a)?void 0:OB(a)?a.getProgramOrUndefined():a,f=p||i3(a)?void 0:a;return!(!m(d+".ts")&&!m(d+".tsx")||(l(`Project: ${n} Detected output file: `+t),0));function m(t){return p?p.getSourceFileByPath(t):f?f.getState().fileInfos.has(t):bT(a,e=>_(e)===t)}}function OB(e){return!!e.getState}function LB(e,t){return!!e&&e.isEmittedFile(t)}var jB=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(jB||{});function RB(c,e,_,u){Ii(2===e?_:yr);let t={watchFile:(e,t,r,n)=>c.watchFile(e,t,r,n),watchDirectory:(e,t,r,n)=>c.watchDirectory(e,t,0!=(1&r),n)},d=0!==e?{watchFile:n("watchFile"),watchDirectory:n("watchDirectory")}:void 0,l=2===e?{watchFile:function(e,t,r,n,i,a){_("FileWatcher:: Added:: "+f(e,r,n,i,a,u));let o=d.watchFile(e,t,r,n,i,a);return{close:()=>{_("FileWatcher:: Close:: "+f(e,r,n,i,a,u)),o.close()}}},watchDirectory:function(r,e,n,i,a,o){let t="DirectoryWatcher:: Added:: "+f(r,n,i,a,o,u),s=(_(t),$t()),c=d.watchDirectory(r,e,n,i,a,o),l=$t()-s;return _(`Elapsed:: ${l}ms `+t),{close:()=>{var e="DirectoryWatcher:: Close:: "+f(r,n,i,a,o,u),t=(_(e),$t()),t=(c.close(),$t()-t);_(`Elapsed:: ${t}ms `+e)}}}}:d||t,p=2===e?function(e,t,r,n,i){return _("ExcludeWatcher:: Added:: "+f(e,t,r,n,i,u)),{close:()=>_("ExcludeWatcher:: Close:: "+f(e,t,r,n,i,u))}}:Aq;return{watchFile:r("watchFile"),watchDirectory:r("watchDirectory")};function r(s){return(e,t,r,n,i,a)=>{var o;return oI(e,"watchFile"===s?null==n?void 0:n.excludeFiles:null==n?void 0:n.excludeDirectories,"boolean"==typeof c.useCaseSensitiveFileNames?c.useCaseSensitiveFileNames:c.useCaseSensitiveFileNames(),(null==(o=c.getCurrentDirectory)?void 0:o.call(c))||"")?p(e,r,n,i,a):l[s].call(void 0,e,t,r,n,i,a)}}function n(l){return(n,i,a,o,s,c)=>t[l].call(void 0,n,(...e)=>{var t=`${"watchFile"===l?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${e[0]} ${void 0!==e[1]?e[1]:""}:: `+f(n,a,o,s,c,u),r=(_(t),$t()),e=(i.call(void 0,...e),$t()-r);_(`Elapsed:: ${e}ms `+t)},a,o,s,c)}function f(e,t,r,n,i,a){return`WatchInfo: ${e} ${t} ${JSON.stringify(r)} `+(a?a(n,i):void 0===i?n:n+" "+i)}}function MB(e){e=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==e?e:1}}function BB(e){e.watcher.close()}function JB(e,t,r="tsconfig.json"){return Pa(e,e=>{e=E3(e,r);return t(e)?e:void 0})}function zB(e,t){t=D3(t);return ua(Gi(e)?e:E3(t,e))}function qB(e,n,i){let a;return G4(e,e=>{var t=_a(e,n);if(t.pop(),a){var r=Math.min(a.length,t.length);for(let e=0;e{let n;try{x3("beforeIORead"),n=i(e),x3("afterIORead"),S3("I/O Read","beforeIORead","afterIORead")}catch(e){r&&r(e.message),n=""}return void 0!==n?Qv(e,n,t,a):void 0}}function WB(i,a,o){return(e,t,r,n)=>{try{x3("beforeIOWrite"),Rd(e,t,r,i,a,o),x3("afterIOWrite"),S3("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){n&&n(e.message)}}}function HB(e,t,a=Ji){let r=new Map;var n=ze(a.useCaseSensitiveFileNames);function i(){return D3(ua(a.getExecutingFilePath()))}let o=Cp(e);e=a.realpath&&(e=>a.realpath(e));let s={getSourceFile:VB(e=>s.readFile(e),t),getDefaultLibLocation:i,getDefaultLibFileName:e=>E3(i(),zo(e)),writeFile:WB((e,t,r)=>a.writeFile(e,t,r),e=>(s.createDirectory||a.createDirectory)(e),e=>{return e=e,!!r.has(e)||!!(s.directoryExists||a.directoryExists)(e)&&(r.set(e,!0),!0)}),getCurrentDirectory:Ci(()=>a.getCurrentDirectory()),useCaseSensitiveFileNames:()=>a.useCaseSensitiveFileNames,getCanonicalFileName:n,getNewLine:()=>o,fileExists:e=>a.fileExists(e),readFile:e=>a.readFile(e),trace:e=>a.write(e+o),directoryExists:e=>a.directoryExists(e),getEnvironmentVariable:e=>a.getEnvironmentVariable?a.getEnvironmentVariable(e):"",getDirectories:e=>a.getDirectories(e),realpath:e,readDirectory:(e,t,r,n,i)=>a.readDirectory(e,t,r,n,i),createDirectory:e=>a.createDirectory(e),createHash:r3(a,a.createHash)};return s}function KB(a,c,l){let n=a.readFile,i=a.fileExists,o=a.directoryExists,r=a.createDirectory,s=a.writeFile,_=new Map,u=new Map,d=new Map,p=new Map;let f=(e,t)=>{t=n.call(a,t);return _.set(e,void 0!==t&&t),t},m=(a.readFile=e=>{var t=c(e),r=_.get(t);return void 0!==r?!1!==r?r:void 0:w3(e,".json")||HM(e)?f(t,e):n.call(a,e)},l?(e,t,r,n)=>{var i=c(e),a="object"==typeof t?t.impliedNodeFormat:void 0,o=p.get(a),s=null==o?void 0:o.get(i);return s||((s=l(e,t,r,n))&&(x9(e)||w3(e,".json"))&&p.set(a,(o||new Map).set(i,s)),s)}:void 0);return a.fileExists=e=>{var t=c(e),r=u.get(t);return void 0!==r||(r=i.call(a,e),u.set(t,!!r)),r},s&&(a.writeFile=(e,r,...t)=>{let n=c(e);u.delete(n);var i=_.get(n);void 0!==i&&i!==r?(_.delete(n),p.forEach(e=>e.delete(n))):m&&p.forEach(e=>{var t=e.get(n);t&&t.text!==r&&e.delete(n)}),s.call(a,e,r,...t)}),o&&(a.directoryExists=e=>{var t=c(e),r=d.get(t);return void 0!==r||(r=o.call(a,e),d.set(t,!!r)),r},r)&&(a.createDirectory=e=>{var t=c(e);d.delete(t),r.call(a,e)}),{originalReadFile:n,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:r,originalWriteFile:s,getSourceFileWithCache:m,readFileWithCache:e=>{var t=c(e),r=_.get(t);return void 0!==r?!1!==r?r:void 0:f(t,e)}}}function GB(e,t,r){let n;return n=BT(n,e.getConfigFileParsingDiagnostics()),n=BT(n,e.getOptionsDiagnostics(r)),n=BT(n,e.getSyntacticDiagnostics(t,r)),n=BT(n,e.getGlobalDiagnostics(r)),n=BT(n,e.getSemanticDiagnostics(t,r)),Jo((n=wD(e.getCompilerOptions())?BT(n,e.getDeclarationDiagnostics(t,r)):n)||H4)}function $B(e,t){let r="";for(var n of e)r+=XB(n,t);return r}function XB(e,t){var r,n,i=`${Fn(e)} TS${e.code}: `+lJ(e.messageText,t.getNewLine())+t.getNewLine();return e.file?({line:r,character:n}=O3(e.file,e.start),Na(e.file.fileName,t.getCurrentDirectory(),e=>t.getCanonicalFileName(e))+`(${r+1},${n+1}): `+i):i}var QB=(e=>(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))(QB||{}),YB="",ZB=" ",eJ="",tJ="...",rJ=" ",nJ=" ";function iJ(e){switch(e){case 1:return"";case 0:return"";case 2:return Y4.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function aJ(e,t){return t+e+eJ}function oJ(r,e,t,n,i,a){var{line:o,character:s}=O3(r,e),{line:c,character:l}=O3(r,e+t),_=O3(r,r.text.length).line,u=4<=c-o;let d=(c+1+"").length,p=(u&&(d=Math.max(tJ.length,d)),"");for(let t=o;t<=c;t++){p+=a.getNewLine(),u&&o+1r.getCanonicalFileName(e)):e.fileName,"")+":"+n(""+(t+1),"")+":"+n(""+(i+1),"")}function cJ(e,t){let r="";for(var n of e){var i,a;if(n.file&&({file:i,start:a}=n,r=r+sJ(i,a,t)+" - "),r=(r=(r+=aJ(Fn(n),iJ(n.category)))+aJ(` TS${n.code}: `,""))+lJ(n.messageText,t.getNewLine()),n.file&&n.code!==eT.File_appears_to_be_binary.code&&(r=(r+=t.getNewLine())+oJ(n.file,n.start,n.length,"",iJ(n.category),t)),n.relatedInformation){r+=t.getNewLine();for(var{file:o,start:s,length:c,messageText:l}of n.relatedInformation)o&&(r=(r=(r+=t.getNewLine())+(rJ+sJ(o,s,t)))+oJ(o,s,c,nJ,"",t)),r=(r+=t.getNewLine())+(nJ+lJ(l,t.getNewLine()))}r+=t.getNewLine()}return r}function lJ(e,t,r=0){if(a3(e))return e;if(void 0===e)return"";let n="";if(r){n+=t;for(let e=0;epJ(t,e,r)};function vJ(r,n,i,a,o){return{nameAndMode:yJ,resolve:(e,t)=>rO(e,r,i,a,o,n,t)}}function bJ(e){return a3(e)?e:e.fileName}var xJ={getName:bJ,getMode:(e,t)=>_J(e,null==t?void 0:t.impliedNodeFormat)};function SJ(r,n,i,a,o){return{nameAndMode:xJ,resolve:(e,t)=>II(e,r,i,a,n,o,t)}}function kJ(e,t,r,n,i,a,o,s){if(0===e.length)return H4;var c,l=[],_=new Map,u=s(t,r,n,a,o);for(c of e){var d=u.nameAndMode.getName(c),p=u.nameAndMode.getMode(c,i,(null==r?void 0:r.commandLine.options)||n),f=WI(d,p);let e=_.get(f);e||_.set(f,e=u.resolve(d,p)),l.push(e)}return l}function TJ(e,r){return CJ(void 0,e,(e,t)=>e&&r(e,t))}function CJ(e,t,a,r){let o;return function n(t,e,i){if(r){let e=r(t,i);if(e)return e}return G4(e,(t,r)=>{if(!t||null==o||!o.has(t.sourceFile.path)){let e=a(t,i,r);return e||!t?e:((o=o||new Set).add(t.sourceFile.path),n(t.commandLine.projectReferences,t.references,t))}})}(e,t,void 0)}var wJ="__inferred type names__.ts";function NJ(e,t,r){return E3(e.configFilePath?D3(e.configFilePath):t,`__lib_node_modules_lookup_${r}__.ts`)}function DJ(e){var t=e.split(".");let r=t[1],n=2;for(;t[n]&&"d"!==t[n];)r+=(2===n?"/":"-")+t[n],n++;return"@typescript/lib-"+r}function EJ(e){return br(e.fileName)}function PJ(e){e=EJ(e);return w4.get(e)}function FJ(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function AJ(e){return void 0!==e.pos}function IJ(e,t){var r,n=Y4.checkDefined(e.getSourceFileByPath(t.file)),{kind:i,index:a}=t;let o,s,c;switch(i){case 3:var l=KJ(n,a);if(c=null==(r=null==(r=e.getResolvedModuleFromModuleSpecifier(l,n))?void 0:r.resolvedModule)?void 0:r.packageId,-1===l.pos)return{file:n,packageId:c,text:l.text};o=j3(n.text,l.pos),s=l.end;break;case 4:({pos:o,end:s}=n.referencedFiles[a]);break;case 5:({pos:o,end:s}=n.typeReferenceDirectives[a]),c=null==(l=null==(r=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n.typeReferenceDirectives[a],n))?void 0:r.resolvedTypeReferenceDirective)?void 0:l.packageId;break;case 7:({pos:o,end:s}=n.libReferenceDirectives[a]);break;default:return Y4.assertNever(i)}return{file:n,pos:o,end:s,packageId:c}}function OJ(n,e,t,r,i,a,o,s,c,l){if(!n||null!=s&&s())return!1;if(!hr(n.getRootFileNames(),e))return!1;let _;return!!hr(n.getProjectReferences(),l,function(e,t,r){return gl(e,t)&&function r(n,i){if(n){if(TT(_,n))return!0;let e=VJ(i),t=c(e);return t?n.commandLine.options.configFile===t.options.configFile&&!!hr(n.commandLine.fileNames,t.fileNames)&&((_=_||[]).push(n),!G4(n.references,(e,t)=>!r(e,n.commandLine.projectReferences[t]))):!1}let e=VJ(i);return!c(e)}(n.getResolvedProjectReferences()[r],e)})&&!n.getSourceFiles().some(function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||a(e.path)})&&!((s=n.getMissingFilePaths())&&j7(s,i)||!Yp(e=n.getCompilerOptions(),t)||n.resolvedLibReferences&&j7(n.resolvedLibReferences,(e,t)=>o(t))||e.configFile&&t.configFile&&e.configFile.text!==t.configFile.text)}function LJ(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function jJ(e,t,r,n){e=RJ(e,t,r,n);return"object"==typeof e?e.impliedNodeFormat:e}function RJ(e,t,r,n){switch(xD(n)){case 3:case 99:return N3(e,[".d.mts",".mts",".mjs"])?99:N3(e,[".d.cts",".cts",".cjs"])?1:N3(e,[".d.ts",".ts",".tsx",".js",".jsx"])?(i=NO(t,r,n),a=[],i.failedLookupLocations=a,i.affectingLocations=a,i=DO(e,i),{impliedNodeFormat:"module"===(null==i?void 0:i.contents.packageJsonContent.type)?99:1,packageJsonLocations:a,packageJsonScope:i}):void 0;default:return}var i,a}var MJ=new Set([eT.Cannot_redeclare_block_scoped_variable_0.code,eT.A_module_cannot_have_multiple_default_exports.code,eT.Another_export_default_is_here.code,eT.The_first_export_default_is_here.code,eT.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,eT.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,eT.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,eT.constructor_is_a_reserved_word.code,eT.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,eT.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,eT.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,eT.Invalid_use_of_0_in_strict_mode.code,eT.A_label_is_not_allowed_here.code,eT.with_statements_are_not_allowed_in_strict_mode.code,eT.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,eT.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,eT.A_class_declaration_without_the_default_modifier_must_have_a_name.code,eT.A_class_member_cannot_have_the_0_keyword.code,eT.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,eT.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,eT.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,eT.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,eT.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,eT.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,eT.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,eT.A_destructuring_declaration_must_have_an_initializer.code,eT.A_get_accessor_cannot_have_parameters.code,eT.A_rest_element_cannot_contain_a_binding_pattern.code,eT.A_rest_element_cannot_have_a_property_name.code,eT.A_rest_element_cannot_have_an_initializer.code,eT.A_rest_element_must_be_last_in_a_destructuring_pattern.code,eT.A_rest_parameter_cannot_have_an_initializer.code,eT.A_rest_parameter_must_be_last_in_a_parameter_list.code,eT.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,eT.A_return_statement_cannot_be_used_inside_a_class_static_block.code,eT.A_set_accessor_cannot_have_rest_parameter.code,eT.A_set_accessor_must_have_exactly_one_parameter.code,eT.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,eT.An_export_declaration_cannot_have_modifiers.code,eT.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,eT.An_import_declaration_cannot_have_modifiers.code,eT.An_object_member_cannot_be_declared_optional.code,eT.Argument_of_dynamic_import_cannot_be_spread_element.code,eT.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,eT.Cannot_redeclare_identifier_0_in_catch_clause.code,eT.Catch_clause_variable_cannot_have_an_initializer.code,eT.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,eT.Classes_can_only_extend_a_single_class.code,eT.Classes_may_not_have_a_field_named_constructor.code,eT.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,eT.Duplicate_label_0.code,eT.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,eT.for_await_loops_cannot_be_used_inside_a_class_static_block.code,eT.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,eT.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,eT.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,eT.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,eT.Jump_target_cannot_cross_function_boundary.code,eT.Line_terminator_not_permitted_before_arrow.code,eT.Modifiers_cannot_appear_here.code,eT.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,eT.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,eT.Private_identifiers_are_not_allowed_outside_class_bodies.code,eT.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,eT.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,eT.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,eT.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,eT.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,eT.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,eT.Trailing_comma_not_allowed.code,eT.Variable_declaration_list_cannot_be_empty.code,eT._0_and_1_operations_cannot_be_mixed_without_parentheses.code,eT._0_expected.code,eT._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,eT._0_list_cannot_be_empty.code,eT._0_modifier_already_seen.code,eT._0_modifier_cannot_appear_on_a_constructor_declaration.code,eT._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,eT._0_modifier_cannot_appear_on_a_parameter.code,eT._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,eT._0_modifier_cannot_be_used_here.code,eT._0_modifier_must_precede_1_modifier.code,eT._0_declarations_can_only_be_declared_inside_a_block.code,eT._0_declarations_must_be_initialized.code,eT.extends_clause_already_seen.code,eT.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,eT.Class_constructor_may_not_be_a_generator.code,eT.Class_constructor_may_not_be_an_accessor.code,eT.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,eT.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,eT.Private_field_0_must_be_declared_in_an_enclosing_class.code,eT.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function BJ(j,e,R,r,t){var M,B,e=i3(j)?{rootNames:j,options:e,host:R,oldProgram:r,configFileParsingDiagnostics:t,typeScriptVersion:void 0}:j;let{rootNames:g,options:h,configFileParsingDiagnostics:J,projectReferences:y,typeScriptVersion:z}=e,f=e["oldProgram"];for(B of q4)if(Si(h,B.name)&&"string"==typeof h[B.name])throw new Error(B.name+" is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram");let q=Ci(()=>p("ignoreDeprecations",eT.Invalid_value_for_ignoreDeprecations)),U,V,m,W,H,K,G,$=new Map,X=n3(),Q,Y,Z,ee={},te={},v,b,re,x,i,S,ne,k,ie,T,ae="number"==typeof h.maxNodeModuleJsDepth?h.maxNodeModuleJsDepth:0,C=0,oe=new Map,w=new Map,N=(null!=Z4&&Z4.push(Z4.Phase.Program,"createProgram",{configFilePath:h.configFilePath,rootDir:h.rootDir},!0),x3("beforeProgram"),e.host||UB(h)),se=UJ(N),ce=h.noLib,le=Ci(()=>N.getDefaultLibFileName(h)),_e=N.getDefaultLibLocation?N.getDefaultLibLocation():D3(le()),s=iN(),ue=[],D=N.getCurrentDirectory(),de=Fm(h),pe=Am(h,de),fe=new Map,me,ge,E,he,ye=N.hasInvalidatedResolutions||vr;N.resolveModuleNameLiterals?(he=N.resolveModuleNameLiterals.bind(N),E=null==(R=N.getModuleResolutionCache)?void 0:R.call(N)):N.resolveModuleNames?(he=(e,t,r,n,i,a)=>N.resolveModuleNames(e.map(hJ),t,null==a?void 0:a.map(hJ),r,n,i).map(e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:$m(e.resolvedFileName)}}:gJ),E=null==(r=N.getModuleResolutionCache)?void 0:r.call(N)):(E=QI(D,u,h),he=(e,t,r,n,i)=>kJ(e,t,r,n,i,N,E,vJ));let ve;if(N.resolveTypeReferenceDirectiveReferences)ve=N.resolveTypeReferenceDirectiveReferences.bind(N);else if(N.resolveTypeReferenceDirectives)ve=(e,t,r,n,i)=>N.resolveTypeReferenceDirectives(e.map(bJ),t,r,n,null==i?void 0:i.impliedNodeFormat).map(e=>({resolvedTypeReferenceDirective:e}));else{let a=YI(D,u,void 0,null==E?void 0:E.getPackageJsonInfoCache(),null==E?void 0:E.optionsToRedirectsKey);ve=(e,t,r,n,i)=>kJ(e,t,r,n,i,N,a,SJ)}let be=N.hasInvalidatedLibResolutions||vr,xe;if(N.resolveLibrary)xe=N.resolveLibrary.bind(N);else{let n=QI(D,u,h,null==E?void 0:E.getPackageJsonInfoCache());xe=(e,t,r)=>eO(e,t,r,N,n)}let Se=new Map,ke=new Map,Te=n3(),Ce=!1,P=new Map,we=new Map,Ne=N.useCaseSensitiveFileNames()?new Map:void 0,F,a,De,Ee,Pe=!(null==(t=N.useSourceOfProjectReferenceRedirect)||!t.call(N)||h.disableSourceOfProjectReferenceRedirect);var n,o,{onProgramCreateComplete:j,fileExists:e,directoryExists:R}=function(l){let _,r=l.compilerHost.fileExists,a=l.compilerHost.directoryExists,t=l.compilerHost.getDirectories,o=l.compilerHost.realpath;if(!l.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:yr,fileExists:n};l.compilerHost.fileExists=n;let e;a&&(e=l.compilerHost.directoryExists=e=>{if(a.call(l.compilerHost,e)){var t=e;if(l.getResolvedProjectReferences()&&!lg(t)&&o&&t.includes(fO)){var r=l.getSymlinkCache(),n=ma(l.toPath(t));if(null==(i=r.getSymlinkedDirectories())||!i.has(n)){var i=ua(o.call(l.compilerHost,t));let e;i===t||(e=ma(l.toPath(i)))===n?r.setSymlinkedDirectory(n,!1):r.setSymlinkedDirectory(t,{real:ma(i),realPath:e})}}return!0}return!!l.getResolvedProjectReferences()&&(_||(_=new Set,l.forEachResolvedProjectReference(e=>{var t=e.commandLine.options.outFile;t?_.add(D3(l.toPath(t))):(t=e.commandLine.options.declarationDir||e.commandLine.options.outDir)&&_.add(l.toPath(t))})),s(e,!1))});t&&(l.compilerHost.getDirectories=e=>!l.getResolvedProjectReferences()||a&&a.call(l.compilerHost,e)?t.call(l.compilerHost,e):[]);o&&(l.compilerHost.realpath=e=>{var t;return(null==(t=l.getSymlinkCache().getSymlinkedFiles())?void 0:t.get(l.toPath(e)))||o.call(l.compilerHost,e)});return{onProgramCreateComplete:function(){l.compilerHost.fileExists=r,l.compilerHost.directoryExists=a,l.compilerHost.getDirectories=t},fileExists:n,directoryExists:e};function n(e){return!!r.call(l.compilerHost,e)||!!l.getResolvedProjectReferences()&&!!x9(e)&&s(e,!0)}function s(i,a){let e,o=a?e=>{return e=e,void 0!==(e=l.getSourceOfProjectReferenceRedirect(l.toPath(e)))?!a3(e)||r.call(l.compilerHost,e):void 0}:e=>{{let t=l.toPath(e),r=""+t+qi;return R7(_,e=>t===e||f3(e,r)||f3(t,e+"/"))}};var t=o(i);if(void 0!==t)return t;let s=l.getSymlinkCache();t=s.getSymlinkedDirectories();if(!t)return!1;let c=l.toPath(i);return c.includes(fO)&&(!(!a||null==(e=s.getSymlinkedFiles())||!e.has(c))||gr(t.entries(),([e,t])=>{var r,n;if(t&&f3(c,e))return r=o(c.replace(e,t.realPath)),a&&r&&(n=P3(i,l.compilerHost.getCurrentDirectory()),s.setSymlinkedFile(c,""+t.real+n.replace(new RegExp(e,"i"),""))),r}))||!1}}({compilerHost:N,getSymlinkCache:pr,useSourceOfProjectReferenceRedirect:Pe,toPath:O,getResolvedProjectReferences:it,getSourceOfProjectReferenceRedirect:Bt,forEachResolvedProjectReference:Mt}),r=N.readFile.bind(N);null!=Z4&&Z4.push(Z4.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!f});t=f,c=h;let Fe=!!t&&pl(t.getCompilerOptions(),c,R4);null!=Z4&&Z4.pop();let A;if(null!=Z4&&Z4.push(Z4.Phase.Program,"tryReuseStructureFromOldProgram",{}),A=function(){if(!f)return 0;var e=f.getCompilerOptions();if(_l(e,h))return 0;var t=f.getRootFileNames();if(!hr(t,g))return 0;if(CJ(f.getProjectReferences(),f.getResolvedProjectReferences(),(e,t,r)=>{t=$t((t?t.commandLine.projectReferences:y)[r]);return e?!t||t.sourceFile!==e.sourceFile||!hr(e.commandLine.fileNames,t.commandLine.fileNames):void 0!==t},(e,t)=>{return!hr(e,t?zt(t.sourceFile.path).commandLine.projectReferences:y,gl)}))return 0;y&&(F=y.map($t));var r=[],n=[];if(A=2,j7(f.getMissingFilePaths(),e=>N.fileExists(e)))return 0;let i=f.getSourceFiles();t={};t[t.Exists=0]="Exists",t[t.Modified=1]="Modified";var a=new Map;for(var o of i){var s=Pt(o.fileName,E,N,h);let e=N.getSourceFileByPath?N.getSourceFileByPath(o.fileName,o.resolvedPath,s,void 0,Fe):N.getSourceFile(o.fileName,s,void 0,Fe);if(!e)return 0;e.packageJsonLocations=null!=(c=s.packageJsonLocations)&&c.length?s.packageJsonLocations:void 0,e.packageJsonScope=s.packageJsonScope,Y4.assert(!e.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let t;if(o.redirectInfo){if(e!==o.redirectInfo.unredirected)return 0;t=!1,e=o}else if(f.redirectTargetsMap.has(o.path)){if(e!==o)return 0;t=!1}else t=e!==o;e.path=o.path,e.originalFileName=o.originalFileName,e.resolvedPath=o.resolvedPath,e.fileName=o.fileName;var c=f.sourceFileToPackageName.get(o.path);if(void 0!==c){var s=a.get(c),l=t?1:0;if(void 0!==s&&1==l||1===s)return 0;a.set(c,l)}if(t)o.impliedNodeFormat===e.impliedNodeFormat&&hr(o.libReferenceDirectives,e.libReferenceDirectives,xt)&&o.hasNoDefaultLib===e.hasNoDefaultLib&&hr(o.referencedFiles,e.referencedFiles,xt)&&(Tt(e),hr(o.imports,e.imports,St))&&hr(o.moduleAugmentations,e.moduleAugmentations,St)&&(12582912&o.flags)==(12582912&e.flags)&&hr(o.typeReferenceDirectives,e.typeReferenceDirectives,xt)||(A=1),n.push(e);else if(ye(o.path))A=1,n.push(e);else for(var _ of o.ambientModuleNames)$.set(_,o.fileName);r.push(e)}if(2!==A)return A;for(let t of n){var u=HJ(t),d=et(u,t),u=((ne=ne??new Map).set(t.path,d),xl(u,d,e=>f.getResolvedModule(t,e.text,fr(t,e)),hl)),d=(u&&(A=1),t.typeReferenceDirectives),u=tt(d,t),d=((ie=ie??new Map).set(t.path,u),xl(d,u,e=>f.getResolvedTypeReferenceDirective(t,bJ(e),_J(e,t.impliedNodeFormat)),bl));d&&(A=1)}if(2!==A)return A;if(dl(e,h))return 1;if(f.resolvedLibReferences&&j7(f.resolvedLibReferences,(e,t)=>Ht(t).actual!==e.actual))return 1;if(N.hasChangedAutomaticTypeDirectiveNames){if(N.hasChangedAutomaticTypeDirectiveNames())return 1}else if(b=RI(h,N),!hr(f.getAutomaticTypeDirectiveNames(),b))return 1;we=f.getMissingFilePaths(),Y4.assert(r.length===f.getSourceFiles().length);for(var p of r)P.set(p.path,p);t=f.getFilesByNameMap();return t.forEach((e,t)=>{e?e.path===t?f.isSourceFileFromExternalLibrary(e)&&w.set(e.path,!0):P.set(t,P.get(e.path)):P.set(t,e)}),m=r,X=f.getFileIncludeReasons(),v=f.getFileProcessingDiagnostics(),b=f.getAutomaticTypeDirectiveNames(),re=f.getAutomaticTypeDirectiveResolutions(),ke=f.sourceFileToPackageName,Te=f.redirectTargetsMap,Ce=f.usesUriStyleNodeCoreModules,S=f.resolvedModules,k=f.resolvedTypeReferenceDirectiveNames,x=f.resolvedLibReferences,T=f.getCurrentPackagesMap(),2}(),null!=Z4&&Z4.pop(),2!==A){if(U=[],V=[],y&&(F=F||y.map($t),g.length)&&null!=F&&F.forEach((e,t)=>{if(e){var r=e.commandLine.options.outFile;if(Pe){if(r||0===bD(e.commandLine.options))for(var n of e.commandLine.fileNames)Nt(n,{kind:1,index:t})}else if(r)Nt(Vm(r,".d.ts"),{kind:2,index:t});else if(0===bD(e.commandLine.options)){var i,a=Ci(()=>cB(e.commandLine,!N.useCaseSensitiveFileNames()));for(i of e.commandLine.fileNames)x9(i)||w3(i,".json")||Nt(eB(i,e.commandLine,!N.useCaseSensitiveFileNames(),a),{kind:2,index:t})}}}),null!=Z4&&Z4.push(Z4.Phase.Program,"processRootFiles",{count:g.length}),G4(g,(e,t)=>bt(e,!1,!1,{kind:0,index:t})),null!=Z4&&Z4.pop(),b=b??(g.length?RI(h,N):H4),re=HI(),b.length){null!=Z4&&Z4.push(Z4.Phase.Program,"processTypeReferences",{count:b.length});var t=E3(h.configFilePath?D3(h.configFilePath):D,wJ),Ae=tt(b,t);for(let e=0;e{bt(Wt(e),!0,!1,{kind:6,index:t})})),m=dn(U,function(e,t){return l3(Ye(e),Ye(t))}).concat(V),U=void 0,V=void 0,Q=void 0}if(f&&N.onReleaseOldSourceFile){for(n of f.getSourceFiles()){var Ie=_(n.resolvedPath);(Fe||!Ie||Ie.impliedNodeFormat!==n.impliedNodeFormat||n.resolvedPath===n.path&&Ie.resolvedPath!==n.path)&&N.onReleaseOldSourceFile(n,f.getCompilerOptions(),!!_(n.path))}N.getParsedCommandLine||f.forEachResolvedProjectReference(e=>{zt(e.sourceFile.path)||N.onReleaseOldSourceFile(e.sourceFile,f.getCompilerOptions(),!1)})}f&&N.onReleaseParsedCommandLine&&CJ(f.getProjectReferences(),f.getResolvedProjectReferences(),(e,t,r)=>{t=VJ((null==t?void 0:t.commandLine.projectReferences[r])||f.getProjectReferences()[r]);null!=a&&a.has(O(t))||N.onReleaseParsedCommandLine(t,e,f.getCompilerOptions())}),f=void 0,i=void 0,ne=void 0,ie=void 0;let I={getRootFileNames:()=>g,getSourceFile:st,getSourceFileByPath:_,getSourceFiles:()=>m,getMissingFilePaths:()=>we,getModuleResolutionCache:()=>E,getFilesByNameMap:()=>P,getCompilerOptions:()=>h,getSyntacticDiagnostics:function(e,t){return ct(e,_t,t)},getOptionsDiagnostics:function(){return Jo(LT(Je().getGlobalDiagnostics(),function(){if(!h.configFile)return H4;let t=Je().getDiagnostics(h.configFile.fileName);return Mt(e=>{t=LT(t,Je().getDiagnostics(e.sourceFile.fileName))}),t}()))},getGlobalDiagnostics:function(){return g.length?Jo(L().getGlobalDiagnostics().slice()):H4},getSemanticDiagnostics:function(e,t){return ct(e,dt,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null==(t=ee.perFile)?void 0:t.get(e.path):ee.allDiagnostics},getSuggestionDiagnostics:function(e,t){return ut(()=>L().getSuggestionDiagnostics(e,t))},getDeclarationDiagnostics:function(e,t){var r=I.getCompilerOptions();return!e||r.outFile?gt(e,t):ct(e,vt,t)},getBindAndCheckDiagnostics:pt,getProgramDiagnostics:lt,getTypeChecker:L,getClassifiableNames:function(){if(!G){L(),G=new Set;for(var e of m)null!=(e=e.classifiableNames)&&e.forEach(e=>G.add(e))}return G},getCommonSourceDirectory:Ze,emit:function(_,u,d,p,f,m){var e;null!=(t=Z4)&&t.push(Z4.Phase.Emit,"emit",{path:null==_?void 0:_.path},!0);var t=ut(()=>{{var n=I,i=_,a=u,o=d,s=p,c=f,l=m;if(!l){n=zJ(n,i,a,o);if(n)return n}let e=L(),t=e.getEmitResolver(h.outFile?void 0:i,o,!!l&&!!s),r=(x3("beforeEmit"),e.runWithCancellationToken(o,()=>pB(t,rt(a),i,RM(h,c,s),s,!1,l)));return x3("afterEmit"),S3("Emit","beforeEmit","afterEmit"),r}});return null==(e=Z4)||e.pop(),t},getCurrentDirectory:()=>D,getNodeCount:()=>L().getNodeCount(),getIdentifierCount:()=>L().getIdentifierCount(),getSymbolCount:()=>L().getSymbolCount(),getTypeCount:()=>L().getTypeCount(),getInstantiationCount:()=>L().getInstantiationCount(),getRelationCacheSizes:()=>L().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>v,getAutomaticTypeDirectiveNames:()=>b,getAutomaticTypeDirectiveResolutions:()=>re,isSourceFileFromExternalLibrary:at,isSourceFileDefaultLibrary:function(t){if(!t.isDeclarationFile)return!1;if(t.hasNoDefaultLib)return!0;if(!h.noLib)return!1;let r=N.useCaseSensitiveFileNames()?Sr:xr;return h.lib?X4(h.lib,e=>r(t.fileName,x.get(e).actual)):r(t.fileName,le())},getModeForUsageLocation:fr,getModeForResolutionAtIndex:function(e,t){return fr(e,KJ(e,t))},getSourceFileFromReference:function(e,t){return Ct(zB(t.fileName,e.fileName),st)},getLibFileFromReference:function(e){var e=PJ(e),e=e&&(null==(e=null==x?void 0:x.get(e))?void 0:e.actual);return void 0!==e?st(e):void 0},sourceFileToPackageName:ke,redirectTargetsMap:Te,usesUriStyleNodeCoreModules:Ce,resolvedModules:S,resolvedTypeReferenceDirectiveNames:k,resolvedLibReferences:x,getResolvedModule:ze,getResolvedModuleFromModuleSpecifier:function(e,t){return t=t??iT(e),Y4.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),ze(t,e.text,fr(t,e))},getResolvedTypeReferenceDirective:qe,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,t){return qe(t,e.fileName,e.resolutionMode||t.impliedNodeFormat)},forEachResolvedModule:Ue,forEachResolvedTypeReferenceDirective:Ve,getCurrentPackagesMap:()=>T,typesPackageExists:function(e){return He().has(KO(e))},packageBundlesTypes:function(e){return!!He().get(e)},isEmittedFile:function(e){if(!h.noEmit){e=O(e);if(!_(e)){var t=h.outFile;if(t)return dr(e,t)||dr(e,qm(t)+".d.ts");if(h.declarationDir&&ka(h.declarationDir,e,D,!N.useCaseSensitiveFileNames()))return!0;if(h.outDir)return ka(h.outDir,e,D,!N.useCaseSensitiveFileNames());if(N3(e,Cm)||x9(e))return!!_((t=qm(e))+".ts")||!!_(t+".tsx")}}return!1},getConfigFileParsingDiagnostics:function(){return J||H4},getProjectReferences:function(){return y},getResolvedProjectReferences:it,getProjectReferenceRedirect:Ot,getResolvedProjectReferenceToRedirect:Rt,getResolvedProjectReferenceByPath:zt,forEachResolvedProjectReference:Mt,isSourceOfProjectReferenceRedirect:Jt,getRedirectReferenceForResolutionFromSourceOfProject:Qe,emitBuildInfo:function(e){Y4.assert(!h.outFile),null!=(t=Z4)&&t.push(Z4.Phase.Emit,"emitBuildInfo",{},!0),x3("beforeEmit");var t=pB(hB,rt(e),void 0,jM,!1,!0);return x3("afterEmit"),S3("Emit","beforeEmit","afterEmit"),null==(e=Z4)||e.pop(),t},fileExists:e,readFile:r,directoryExists:R,getSymlinkCache:pr,realpath:null==(t=N.realpath)?void 0:t.bind(N),useCaseSensitiveFileNames:()=>N.useCaseSensitiveFileNames(),getCanonicalFileName:u,getFileIncludeReasons:()=>X,structureIsReused:A,writeFile:nt};j(),h.strictPropertyInitialization&&!FD(h,"strictNullChecks")&&d(eT.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),h.exactOptionalPropertyTypes&&!FD(h,"strictNullChecks")&&d(eT.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(h.isolatedModules||h.verbatimModuleSyntax)&&h.outFile&&d(eT.Option_0_cannot_be_specified_with_option_1,"outFile",h.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),h.isolatedDeclarations&&(Jf(h)&&d(eT.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),wD(h)||d(eT.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),h.inlineSourceMap&&(h.sourceMap&&d(eT.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),h.mapRoot)&&d(eT.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"),h.composite&&(!1===h.declaration&&d(eT.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===h.incremental)&&d(eT.Composite_projects_may_not_disable_incremental_compilation,"declaration");var c=h.outFile;h.tsBuildInfoFile?Mf(h)||d(eT.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!h.incremental||c||h.configFilePath||s.add(mD(eT.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Xt("5.0","5.5","6.0",function(e,t,r,n,...i){r?(r=gD(void 0,eT.Use_0_instead,r),or(!t,e,void 0,gD(r,n,...i))):or(!t,e,void 0,n,...i)},e=>{0===h.target&&e("target","ES3"),h.noImplicitUseStrict&&e("noImplicitUseStrict"),h.keyofStringsOnly&&e("keyofStringsOnly"),h.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),h.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),h.noStrictGenericChecks&&e("noStrictGenericChecks"),h.charset&&e("charset"),h.out&&e("out",void 0,"outFile"),h.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),h.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")});{let c=h.suppressOutputPathCheck?void 0:GM(h);CJ(y,F,(e,t,r)=>{var n,a,o,i=(t?t.commandLine.projectReferences:y)[r],s=t&&t.sourceFile;n=i,a=s,o=r,Xt("5.0","5.5","6.0",function(e,t,r,n,...i){ar(a,o,n,...i)},e=>{n.prepend&&e("prepend")}),e?((e=e.commandLine.options).composite&&!e.noEmit||(t?t.commandLine.fileNames:g).length&&(e.composite||ar(s,r,eT.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),e.noEmit)&&ar(s,r,eT.Referenced_project_0_may_not_disable_emit,i.path),!t&&c&&c===GM(e)&&(ar(s,r,eT.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,c,i.path),fe.set(O(c),!0))):ar(s,r,eT.File_0_not_found,i.path)})}if(h.composite){var Oe,Le=new Set(g.map(O));for(Oe of m)Id(Oe,I)&&!Le.has(Oe.path)&&Zt(Oe,eT.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Oe.fileName,h.configFilePath||""])}if(h.paths)for(var l in h.paths)if(Si(h.paths,l))if($f(l)||tr(!0,l,eT.Pattern_0_can_have_at_most_one_Asterisk_character,l),i3(h.paths[l])){var je=h.paths[l].length;0===je&&tr(!1,l,eT.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,l);for(let e=0;eb9(e)&&!e.isDeclarationFile);if(h.isolatedModules||h.verbatimModuleSyntax?(0===h.module&&e<2&&h.isolatedModules&&d(eT.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===h.preserveConstEnums&&d(eT.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,h.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums")):r&&e<2&&0===h.module&&(o=C5(r,"boolean"==typeof r.externalModuleIndicator?r:r.externalModuleIndicator),s.add(pD(r,o.start,o.length,eT.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))),c&&!h.emitDeclarationOnly&&(h.module&&2!==h.module&&4!==h.module?d(eT.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module"):void 0===h.module&&r&&(o=C5(r,"boolean"==typeof r.externalModuleIndicator?r:r.externalModuleIndicator),s.add(pD(r,o.start,o.length,eT.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile")))),CD(h)&&(1===xD(h)?d(eT.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):PD(h)||d(eT.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),(h.outDir||h.rootDir||h.sourceRoot||h.mapRoot)&&(c=Ze(),h.outDir)&&""===c&&m.some(e=>1{h.emitDeclarationOnly||Be(e.jsFilePath,t),Be(e.declarationFilePath,t)})}function Be(t,e){if(t){var r=O(t);if(P.has(r)){let e;h.configFilePath||(e=gD(void 0,eT.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)),ur(t,kf(e=gD(e,eT.Cannot_write_file_0_because_it_would_overwrite_input_file,t)))}r=N.useCaseSensitiveFileNames()?r:br(r);e.has(r)?ur(t,mD(eT.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):e.add(r)}}return x3("afterProgram"),S3("Program","beforeProgram","afterProgram"),null!=Z4&&Z4.pop(),I;function Je(){return ue&&(null!=v&&v.forEach(e=>{switch(e.kind){case 1:return s.add(Qt(e.file&&_(e.file),e.fileProcessingReason,e.diagnostic,e.args||H4));case 0:return s.add(function({reason:e}){var{file:t,pos:r,end:n}=IJ(I,e),e=t.libReferenceDirectives[e.index],e=EJ(e),i=kr(m3(e,"lib."),".d.ts"),i=_3(i,C4,Ti);return pD(t,Y4.checkDefined(r),Y4.checkDefined(n)-r,i?eT.Cannot_find_lib_definition_for_0_Did_you_mean_1:eT.Cannot_find_lib_definition_for_0,e,i)}(e));case 2:return e.diagnostics.forEach(e=>s.add(e));default:Y4.assertNever(e)}}),ue.forEach(({file:e,diagnostic:t,args:r})=>s.add(Qt(e,void 0,t,r))),ue=void 0,Y=void 0,Z=void 0),s}function ze(e,t,r){return null==(e=null==S?void 0:S.get(e.path))?void 0:e.get(t,r)}function qe(e,t,r){return null==(e=null==k?void 0:k.get(e.path))?void 0:e.get(t,r)}function Ue(e,t){We(S,e,t)}function Ve(e,t){We(k,e,t)}function We(e,i,n){var t;n?null!=(t=null==e?void 0:e.get(n.path))&&t.forEach((e,t,r)=>i(e,t,r,n.path)):null!=e&&e.forEach((e,n)=>e.forEach((e,t,r)=>i(e,t,r,n)))}function He(){return T||(T=new Map,Ue(({resolvedModule:e})=>{null!=e&&e.packageId&&T.set(e.packageId.name,".d.ts"===e.extension||!!T.get(e.packageId.name))})),T}function Ke(e){var t;null!=(t=e.resolutionDiagnostics)&&t.length&&(v=v??[]).push({kind:2,diagnostics:e.resolutionDiagnostics})}function Ge(e,t,r){var n,i;return e.length?(n=P3(t.originalFileName,D),i=Xe(t),null!=Z4&&Z4.push(Z4.Phase.Program,"resolveModuleNamesWorker",{containingFileName:n}),x3("beforeResolveModule"),e=he(e,n,i,h,t,r),x3("afterResolveModule"),S3("ResolveModule","beforeResolveModule","afterResolveModule"),null!=Z4&&Z4.pop(),e):H4}function $e(e,t,r){var n,i;return e.length?(n=a3(t)?void 0:t,t=a3(t)?t:P3(t.originalFileName,D),i=n&&Xe(n),null!=Z4&&Z4.push(Z4.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:t}),x3("beforeResolveTypeReference"),e=ve(e,t,i,h,n,r),x3("afterResolveTypeReference"),S3("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null!=Z4&&Z4.pop(),e):[]}function Xe(e){var t=Rt(e.originalFileName);return t||!x9(e.originalFileName)?t:Qe(e.path)||(!(N.realpath&&h.preserveSymlinks&&e.originalFileName.includes(fO))||(t=O(N.realpath(e.originalFileName)))===e.path?void 0:Qe(t))}function Qe(r){var e=Bt(r);return a3(e)?Rt(e):e?Mt(e=>{var t=e.commandLine.options.outFile;return t&&O(t)===r?e:void 0}):void 0}function Ye(e){if(ka(_e,e.fileName,!1)){e=ra(e.fileName);if("lib.d.ts"===e||"lib.es6.d.ts"===e)return 0;e=kr(m3(e,"lib."),".d.ts"),e=C4.indexOf(e);if(-1!==e)return e+1}return C4.length+2}function O(e){return pa(e,D,u)}function Ze(){if(void 0===H){let o=NT(m,e=>Id(e,I));H=sB(h,()=>AT(o,e=>e.isDeclarationFile?void 0:e.fileName),D,u,r=>{{var n=o,i=r,a;let e=!0,t=N.getCanonicalFileName(P3(i,D));for(a of n)a.isDeclarationFile||0!==N.getCanonicalFileName(P3(a.fileName,D)).indexOf(t)&&(Zt(a,eT.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[a.fileName,i]),e=!1);return e}})}return H}function et(r,n){if(0===A&&!n.ambientModuleNames.length)return Ge(r,n,void 0);let i,a,o;var s=gJ,c=f&&f.getSourceFile(n.fileName);for(let t=0;tD,getSourceFile:I.getSourceFile,getSourceFileByPath:I.getSourceFileByPath,getSourceFiles:I.getSourceFiles,isSourceFileFromExternalLibrary:at,getResolvedProjectReferenceToRedirect:Rt,getProjectReferenceRedirect:Ot,isSourceOfProjectReferenceRedirect:Jt,getSymlinkCache:pr,writeFile:e||nt,isEmitBlocked:ot,readFile:e=>N.readFile(e),fileExists:e=>{var t=O(e);return!!_(t)||!we.has(t)&&N.fileExists(e)},realpath:r3(N,N.realpath),useCaseSensitiveFileNames:()=>N.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=I.getBuildInfo)?void 0:e.call(I)},getSourceFileFromReference:(e,t)=>I.getSourceFileFromReference(e,t),redirectTargetsMap:Te,getFileIncludeReasons:I.getFileIncludeReasons,createHash:r3(N,N.createHash),getModuleResolutionCache:()=>I.getModuleResolutionCache(),trace:r3(N,N.trace)}}function nt(e,t,r,n,i,a){N.writeFile(e,t,r,n,i,a)}function it(){return F}function at(e){return!!w.get(e.path)}function L(){return K=K||lj(I)}function ot(e){return fe.has(O(e))}function st(e){return _(O(e))}function _(e){return P.get(e)||void 0}function ct(e,t,r){return Jo(e?t(e,r):FT(I.getSourceFiles(),e=>(r&&r.throwIfCancellationRequested(),t(e,r))))}function lt(e){var t,r;return VD(e,h,I)?H4:(r=Je().getDiagnostics(e.fileName),null!=(t=e.commentDirectives)&&t.length?mt(e,e.commentDirectives,r).diagnostics:r)}function _t(e){var i;return C8(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=(i=e,ut(()=>{let o=[];return e(i,i),y9(i,e,function(e,t){{var r,n,i;u9(t)?(r=bT(t.modifiers,$E))&&o.push(c(r,eT.Decorators_are_not_valid_here)):m9(t)&&t.modifiers&&0<=(r=ST(t.modifiers,$E))&&(GE(t)&&!h.experimentalDecorators?o.push(c(t.modifiers[r],eT.Decorators_are_not_valid_here)):nF(t)&&0<=(n=ST(t.modifiers,S0))&&(i=ST(t.modifiers,k0),n{if(VD(c,h,I))return H4;var e=L(),t=(Y4.assert(!!c.bindDiagnostics),1===c.scriptKind||2===c.scriptKind),t=t&&BD(c,h),r=U7(c,h.checkJs);let n=c.bindDiagnostics,i=e.getDiagnostics(c,l);r&&(n=NT(n,e=>MJ.has(e.code)),i=NT(i,e=>MJ.has(e.code)));var a=c,e=!r,r=[n,i,t?c.jsDocDiagnostics:void 0];if(r=PT(r),!e||null==(e=a.commentDirectives)||!e.length)return r;var o,{diagnostics:s,directives:e}=mt(a,a.commentDirectives,r);for(o of e.getUnusedExpectations())s.push(u_(a,o.range,eT.Unused_ts_expect_error_directive));return s})}function mt(e,t,r){let n=Rl(e,t);return{diagnostics:r.filter(e=>-1===function(t,r){var{file:n,start:t}=t;if(n){var i=ro(n);let e=no(i,t).line-1;for(;0<=e;){if(r.markUsed(e))return e;var a=n.text.slice(i[e],i[e+1]).trim();if(""!==a&&!/^(\s*)\/\/(.*)$/.test(a))return-1;e--}}return-1}(e,n)),directives:n}}function gt(e,t){return yt(e,t,te,ht)}function ht(t,r){return ut(()=>{var e=L().getEmitResolver(t,r);return PM(rt(yr),e,t)||H4})}function yt(e,t,r,n){var i=e?null==(i=r.perFile)?void 0:i.get(e.path):r.allDiagnostics;return i||(i=n(e,t),e?(r.perFile||(r.perFile=new Map)).set(e.path,i):r.allDiagnostics=i,i)}function vt(e,t){return e.isDeclarationFile?[]:gt(e,t)}function bt(e,t,r,n){wt(ua(e),t,r,void 0,n)}function xt(e,t){return e.fileName===t.fileName}function St(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function kt(e,t){var e=cT.createStringLiteral(e),r=cT.createImportDeclaration(void 0,void 0,e);return Gg(r,2),tE(e,r),tE(r,t),e.flags&=-17,r.flags&=-17,e}function Tt(c){if(!c.imports){let a=C8(c),e=b9(c),t,o,s;var r,n;(a||!c.isDeclarationFile&&(SD(h)||b9(c)))&&(h.importHelpers&&(t=[kt(D7,c)]),r=LD(OD(h,c),h))&&(t=t||[]).push(kt(r,c));for(n of c.statements)!function r(n,i){if(o_(n)){let e=ew(n);!(e&&qE(e)&&e.text)||i&&B3(e.text)||(og(n,!1),t=Q4(t,e),Ce)||0!==C||c.isDeclarationFile||(Ce=f3(e.text,"node:"))}else if(sF(n)&&Z7(n)&&(i||TN(n,128)||c.isDeclarationFile)){let t=Kw((n.name.parent=n).name);if(e||i&&!B3(t))(o=o||[]).push(n.name);else if(!i){c.isDeclarationFile&&(s=s||[]).push(t);let e=n.body;if(e)for(var a of e.statements)r(a,!0)}}}(n,!1);if(4194304&c.flags||a)for(var i=c,l=/import|require/g;null!==l.exec(i.text);){var _,u=function(e,t){let r=e,n=e=>{if(e.pos<=t&&(tn(r+e)),e&&!a&&e(eT.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,r,"'"+PT(de).join("', '")+"'"),a));{let t=N.getCanonicalFileName(r);if(h.allowNonTsExtensions||G4(PT(pe),e=>w3(t,e)))return a=n(r),e&&(a?FJ(i)&&t===N.getCanonicalFileName(_(i.file).fileName)&&e(eT.A_file_cannot_have_a_reference_to_itself):(i=Ot(r))?e(eT.Output_file_0_has_not_been_built_from_source_file_1,i,r):e(eT.File_0_not_found,r)),a;e&&(Im(t)?e(eT.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,r):e(eT.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,r,"'"+PT(de).join("', '")+"'"))}}function wt(e,t,r,n,i){Ct(e,e=>Et(e,t,r,i,n),(e,...t)=>Yt(void 0,i,e,t),i)}function Nt(e,t){wt(e,!1,!1,void 0,t)}function Dt(e,t,r){!FJ(r)&&X4(X.get(t.path),FJ)?Yt(t,r,eT.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):Yt(t,r,eT.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function Et(e,t,r,n,i){null!=Z4&&Z4.push(Z4.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:Wr[n.kind]});e=function(t,r,n,i,a){var o=O(t);if(Pe){let e=Bt(o);var s;if(e=!e&&N.realpath&&h.preserveSymlinks&&x9(t)&&t.includes(fO)&&(s=O(N.realpath(t)))!==o?Bt(s):e)return(s=a3(e)?Et(e,r,n,i,a):void 0)&&At(s,o,t,void 0),s}var e=t;if(P.has(o))return u=P.get(o),l=Ft(u||void 0,i,!0),u&&l&&!1!==h.forceConsistentCasingInFileNames&&(O(l=u.fileName)!==O(t)&&(t=Ot(t)||t),l=da(l,D),_=da(t,D),l!==_)&&Dt(t,u,i),u&&w.get(u.path)&&0===C?(w.set(u.path,!1),h.noResolve||(qt(u,r),Ut(u)),h.noLib||Kt(u),oe.set(u.path,!1),Gt(u)):u&&oe.get(u.path)&&CYt(void 0,i,eT.Cannot_read_file_0_Colon_1,[t,e]),Fe);if(a){var p=vl(a),f=Se.get(p);if(f)return m=function(e,t,r,n,i,a,o){return(e=g9.createRedirectedSourceFile({redirectTarget:e,unredirected:t})).fileName=r,e.path=n,e.resolvedPath=i,e.originalFileName=a,e.packageJsonLocations=null!=(t=o.packageJsonLocations)&&t.length?o.packageJsonLocations:void 0,e.packageJsonScope=o.packageJsonScope,w.set(n,0{O(h.configFilePath)!==t.sourceFile.path&&t.commandLine.fileNames.forEach(e=>De.set(O(e),t.sourceFile.path))}));e=De.get(O(e));return e&&zt(e)}function Mt(e){return TJ(F,e)}function Bt(e){if(x9(e))return void 0===Ee&&(Ee=new Map,Mt(n=>{var e=n.commandLine.options.outFile;if(e){e=Vm(e,".d.ts");Ee.set(O(e),!0)}else{let r=Ci(()=>cB(n.commandLine,!N.useCaseSensitiveFileNames()));G4(n.commandLine.fileNames,e=>{var t;x9(e)||w3(e,".json")||(t=eB(e,n.commandLine,!N.useCaseSensitiveFileNames(),r),Ee.set(O(t),e))})}})),Ee.get(e)}function Jt(e){return Pe&&!!Rt(e)}function zt(e){if(a)return a.get(e)||void 0}function qt(r,n){G4(r.referencedFiles,(e,t)=>{wt(zB(e.fileName,r.fileName),n,!1,void 0,{kind:4,file:r.path,index:t})})}function Ut(t){var r=t.typeReferenceDirectives;if(r.length){var n=(null==ie?void 0:ie.get(t.path))||tt(r,t),i=HI();(k=k??new Map).set(t.path,i);for(let e=0;e{e=PJ(e);e?bt(Wt(e),!0,!0,{kind:7,file:r.path,index:t}):(v=v||[]).push({kind:0,reason:{kind:7,file:r.path,index:t}})})}function u(e){return N.getCanonicalFileName(e)}function Gt(t){var e;if(Tt(t),t.imports.length||t.moduleAugmentations.length){var r=HJ(t),n=(null==ne?void 0:ne.get(t.path))||et(r,t),i=(Y4.assert(n.length===r.length),(null==(e=Xe(t))?void 0:e.commandLine.options)||h),a=HI();(S=S??new Map).set(t.path,a);for(let e=0;eae,_=o&&!WJ(i,c,t)&&!i.noResolve&&e{c?void 0===t?a(e,t,r,eT.Option_0_has_been_removed_Please_remove_it_from_your_configuration,e):a(e,t,r,eT.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,e,t):void 0===t?a(e,t,r,eT.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,e,i,n):a(e,t,r,eT.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,e,t,i,n)})}function Qt(e,t,r,n){let i,a=e&&X.get(e.path),o,s,c=FJ(t)?t:void 0,l,_,u=e&&(null==Y?void 0:Y.get(e.path)),d;_=u?(u.fileIncludeReasonDetails?(i=new Set(a),null!=a&&a.forEach(f)):null!=a&&a.forEach(p),u.redirectInfo):(null!=a&&a.forEach(p),e&&Tq(e)),t&&p(t);t=(null==i?void 0:i.size)!==(null==a?void 0:a.length),(i=c&&1===(null==i?void 0:i.size)?void 0:i)&&u&&(u.details&&!t?d=gD(u.details,r,...n||H4):u.fileIncludeReasonDetails&&(t?o=m()?Q4(u.fileIncludeReasonDetails.next.slice(0,a.length),o[0]):[...u.fileIncludeReasonDetails.next,o[0]]:m()?o=u.fileIncludeReasonDetails.next.slice(0,a.length):l=u.fileIncludeReasonDetails)),d||(l=l||i&&gD(o,eT.The_file_is_in_the_program_because_Colon),d=gD(_?l?[l,..._]:_:l,r,...n||H4)),e&&(u?u.fileIncludeReasonDetails&&(t||!l)||(u.fileIncludeReasonDetails=l):(Y=Y??new Map).set(e.path,u={fileIncludeReasonDetails:l,redirectInfo:_}),u.details||t||(u.details=d.next)),r=c&&IJ(I,c);return r&&AJ(r)?__(r.file,r.pos,r.end-r.pos,d,s):kf(d,s);function p(e){null!=i&&i.has(e)||((i=i??new Set).add(e),(o=o??[]).push(Nq(I,e)),f(e))}function f(e){!c&&FJ(e)?c=e:c!==e&&(s=Q4(s,function(e){let t=null==Z?void 0:Z.get(e);void 0===t&&(Z=Z??new Map).set(e,t=function(r){if(FJ(r)){var t=IJ(I,r);let e;switch(r.kind){case 3:e=eT.File_is_included_via_import_here;break;case 4:e=eT.File_is_included_via_reference_here;break;case 5:e=eT.File_is_included_via_type_library_reference_here;break;case 7:e=eT.File_is_included_via_library_reference_here;break;default:Y4.assertNever(r)}return AJ(t)?pD(t.file,t.pos,t.end-t.pos,e):void 0}if(h.configFile){let e,t;switch(r.kind){case 0:if(!h.configFile.configFileSpecs)return;var i=P3(g[r.index],D),a=Cq(I,i);if(a)e=M_(h.configFile,"files",a),t=eT.File_is_matched_by_files_list_specified_here;else{a=wq(I,i);if(!a||!a3(a))return;e=M_(h.configFile,"include",a),t=eT.File_is_matched_by_include_pattern_specified_here}break;case 1:case 2:let n=Y4.checkDefined(null==F?void 0:F[r.index]);var o,i=CJ(y,F,(e,t,r)=>e===n?{sourceFile:(null==t?void 0:t.sourceFile)||h.configFile,index:r}:void 0);return i?({sourceFile:a,index:o}=i,(s=B_(a,"references",e=>NP(e.initializer)?e.initializer:void 0))&&s.elements.length>o?c_(a,s.elements[o],2===r.kind?eT.File_is_output_from_referenced_project_specified_here:eT.File_is_source_from_referenced_project_specified_here):void 0):void 0;case 8:if(!h.types)return;e=ir("types",r.typeReference),t=eT.File_is_entry_point_of_type_library_specified_here;break;case 6:var s;void 0!==r.index?(e=ir("lib",h.lib[r.index]),t=eT.File_is_library_specified_here):(s=Vf(vD(h)),e=s?function(e,t){return rr(e,e=>qE(e.initializer)&&e.initializer.text===t?e.initializer:void 0)}("target",s):void 0,t=eT.File_is_default_library_for_target_specified_here);break;default:Y4.assertNever(r)}return e&&c_(h.configFile,e,t)}}(e)??!1);return t||void 0}(e)))}function m(){var e;return(null==(e=u.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==a?void 0:a.length)}}function Yt(e,t,r,n){(v=v||[]).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function Zt(e,t,r){ue.push({file:e,diagnostic:t,args:r})}function er(t,r,n,...i){let a=!0;nr(e=>{DP(e.initializer)&&L_(e.initializer,t,e=>{e=e.initializer;NP(e)&&e.elements.length>r&&(s.add(c_(h.configFile,e.elements[r],n,...i)),a=!1)})}),a&&sr(n,...i)}function tr(t,r,n,...i){let a=!0;nr(e=>{DP(e.initializer)&&_r(e.initializer,t,r,void 0,n,...i)&&(a=!1)}),a&&sr(n,...i)}function rr(e,t){return L_(cr(),e,t)}function nr(e){rr("paths",e)}function ir(e,t){var r=cr();return r&&j_(r,e,t)}function d(e,t,r,n){or(!0,t,r,e,t,r,n)}function p(e,t,...r){or(!1,e,void 0,t,...r)}function ar(e,t,r,...n){var i=B_(e||h.configFile,"references",e=>NP(e.initializer)?e.initializer:void 0);i&&i.elements.length>t?s.add(c_(e||h.configFile,i.elements[t],r,...n)):s.add(mD(r,...n))}function or(e,t,r,n,...i){var a=cr();a&&_r(a,e,t,r,n,...i)||sr(n,...i)}function sr(e,...t){var r=lr();r?"messageText"in e?s.add(y5(h.configFile,r.name,e)):s.add(c_(h.configFile,r.name,e,...t)):"messageText"in e?s.add(kf(e)):s.add(mD(e,...t))}function cr(){var e;return void 0===me&&(e=lr(),me=e&&o3(e.initializer,DP)||!1),me||void 0}function lr(){return(ge=void 0===ge?L_(R_(h.configFile),"compilerOptions",Ti)||!1:ge)||void 0}function _r(e,t,r,n,i,...a){let o=!1;return L_(e,r,e=>{"messageText"in i?s.add(y5(h.configFile,t?e.name:e.initializer,i)):s.add(c_(h.configFile,t?e.name:e.initializer,i,...a)),o=!0},n),o}function ur(e,t){fe.set(O(e),!0),s.add(t)}function dr(e,t){return 0===F3(e,t,D,!N.useCaseSensitiveFileNames())}function pr(){return N.getSymlinkCache?N.getSymlinkCache():(W=W||Xf(D,u),m&&!W.hasProcessedResolutions()&&W.setSymlinksFromResolutions(Ue,Ve,re),W)}function fr(e,t){return fJ(e,t,(null==(t=Xe(e))?void 0:t.commandLine.options)||h)}}var JJ={diagnostics:H4,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function zJ(r,n,i,a){var o=r.getCompilerOptions();if(o.noEmit)return r.getSemanticDiagnostics(n,a),n||o.outFile?JJ:r.emitBuildInfo(i,a);if(o.noEmitOnError){let t=[...r.getOptionsDiagnostics(a),...r.getSyntacticDiagnostics(n,a),...r.getGlobalDiagnostics(a),...r.getSemanticDiagnostics(n,a)];if((t=0===t.length&&wD(r.getCompilerOptions())?r.getDeclarationDiagnostics(void 0,a):t).length){let e;return n||o.outFile||((n=r.emitBuildInfo(i,a)).diagnostics&&(t=[...t,...n.diagnostics]),e=n.emittedFiles),{diagnostics:t,sourceMaps:void 0,emittedFiles:e,emitSkipped:!0}}}}function qJ(e,t){return NT(e,e=>!e.skippedOn||!t[e.skippedOn])}function UJ(t,a=t){return{fileExists:e=>a.fileExists(e),readDirectory(e,t,r,n,i){return Y4.assertIsDefined(a.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),a.readDirectory(e,t,r,n,i)},readFile:e=>a.readFile(e),directoryExists:r3(a,a.directoryExists),getDirectories:r3(a,a.getDirectories),realpath:r3(a,a.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||le,trace:t.trace?e=>t.trace(e):void 0}}function VJ(e){return Qq(e.path)}function WJ(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return n();case".jsx":return n()||i();case".js":case".mjs":case".cjs":return i();case".json":return CD(e)?void 0:eT.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return r||e.allowArbitraryExtensions?void 0:eT.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function n(){return e.jsx?void 0:eT.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return Jf(e)||!FD(e,"noImplicitAny")?void 0:eT.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function HJ({imports:e,moduleAugmentations:t}){var r,n=e.map(e=>e);for(r of t)11===r.kind&&n.push(r);return n}function KJ({imports:e,moduleAugmentations:t},r){if(r(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(XJ||{});function QJ(){{var n=new Map,a=new Map,o=void 0;let r={getKeys:e=>a.get(e),getValues:e=>n.get(e),keys:()=>n.keys(),size:()=>n.size,deleteKey:t=>{(o=o||new Set).add(t);var e=n.get(t);return!!e&&(e.forEach(e=>YJ(a,e,t)),n.delete(t),!0)},set:(i,t)=>{null!=o&&o.delete(i);let e=n.get(i);return n.set(i,t),null!=e&&e.forEach(e=>{t.has(e)||YJ(a,e,i)}),t.forEach(t=>{if(null==e||!e.has(t)){var r=a;var n=i;let e=r.get(t);e||(e=new Set,r.set(t,e));e.add(n)}}),r}};return r}}function YJ(e,t,r){var n=e.get(t);return!(null==n||!n.delete(r)||(n.size||e.delete(t),0))}function ZJ(e,t){e=e.getSymbolAtLocation(t);return e&&AT(e.declarations,e=>{return null==(e=iT(e))?void 0:e.resolvedPath})}function ez(e,t,r,n){return pa(e.getProjectReferenceRedirect(t)||t,r,n)}function tz(e,t){return t&&!t.referencedMap==!e}function rz(e){return 0===e.module||e.outFile?void 0:QJ()}function nz(e,t,r,n,i){r=t.getSourceFileByPath(r);return r?az(e,t,r,n,i)?(e.referencedMap?function(e,t,r,n,i){if(cz(r))return lz(e,t,r);var a=t.getCompilerOptions();if(a&&(SD(a)||a.outFile))return[r];var o=new Map,s=(o.set(r.resolvedPath,r),sz(e,r.resolvedPath));for(;0e))}:function(e,t,r){var n=t.getCompilerOptions();if(n&&n.outFile)return[r];return lz(e,t,r)})(e,t,r,n,i):[r]:H4}function iz(o,s,e,c,l){o.emit(s,(e,t,r,n,i,a)=>{Y4.assert(x9(e),"File extension for signature expected to be dts: Got:: "+e),l(Oz(o,s,t,c,a),i)},e,!0,void 0,!0)}function az(t,e,r,n,i,a=t.useFileVersionAsSignature){if(null!=(o=t.hasCalledUpdateShapeSignature)&&o.has(r.resolvedPath))return!1;var o=t.fileInfos.get(r.resolvedPath),s=o.signature;let c;return r.isDeclarationFile||a||iz(e,r,n,i,e=>{c=e,i.storeSignatureInfo&&(t.signatureInfo??(t.signatureInfo=new Map)).set(r.resolvedPath,0)}),void 0===c&&(c=r.version,i.storeSignatureInfo)&&(t.signatureInfo??(t.signatureInfo=new Map)).set(r.resolvedPath,2),(t.oldSignatures||(t.oldSignatures=new Map)).set(r.resolvedPath,s||!1),(t.hasCalledUpdateShapeSignature||(t.hasCalledUpdateShapeSignature=new Set)).add(r.resolvedPath),(o.signature=c)!==s}function oz(e,t){return e.allFileNames||(t=t.getSourceFiles(),e.allFileNames=t===H4?H4:t.map(e=>e.fileName)),e.allFileNames}function sz(e,t){e=e.referencedMap.getKeys(t);return e?ZT(e.keys()):[]}function cz(e){return X4(e.moduleAugmentations,e=>n5(e.parent))||!N5(e)&&!D5(e)&&!function(e){for(var t of e.statements)if(!e5(t))return;return 1}(e)}function lz(t,r,n){if(!t.allFilesExcludingDefaultLibraryFile){let e;n&&a(n);for(var i of r.getSourceFiles())i!==n&&a(i);t.allFilesExcludingDefaultLibraryFile=e||H4}return t.allFilesExcludingDefaultLibraryFile;function a(e){r.isSourceFileDefaultLibrary(e)||(tag=tag||[]).push(e)}}(Qt=$J=$J||{}).createManyToManyPathMap=QJ,Qt.canReuseOldState=tz,Qt.createReferencedMap=rz,Qt.create=function(e,t,r){var n,i=new Map,a=e.getCompilerOptions(),o=rz(a),s=tz(o,t);e.getTypeChecker();for(n of e.getSourceFiles()){var c,l=Y4.checkDefined(n.version,"Program intended to be used with Builder should have source files with versions set"),_=!s||null==(_=t.oldSignatures)?void 0:_.get(n.resolvedPath),u=void 0===_?!s||null==(u=t.fileInfos.get(n.resolvedPath))?void 0:u.signature:_||void 0;o&&(c=function(t,r,n){let i;if(r.imports&&0{e&&(e=e.resolvedFileName,f(ez(t,e,s,n)))},r),r.moduleAugmentations.length){var l,_,u=t.getTypeChecker();for(l of r.moduleAugmentations)qE(l)&&(_=u.getSymbolAtLocation(l))&&p(_)}for(var d of t.getTypeChecker().getAmbientModules())d.declarations&&1{var t;return(null==(t=r.getSourceFileByPath(e))?void 0:t.fileName)??e}))},Qt.getReferencedByPaths=sz,Qt.getAllFilesExcludingDefaultLibraryFile=lz;var _z=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(_z||{});function uz(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),wD(e)&&(t|=8),e.declarationMap&&(t|=16),e.emitDeclarationOnly&&(t&=24),t}function dz(e,t){t=t&&(ce(t)?t:uz(t)),e=ce(e)?e:uz(e);if(t===e)return 0;if(!t||!e)return e;t^=e;let r=7&t?7&e:0;return 24&t&&(r|=24&e),r}function pz(s,c){let e,t,l=$J.create(s,c,!1),_=(l.program=s).getCompilerOptions(),r=(l.compilerOptions=_).outFile,u=(r?_.composite&&null!=c&&c.outSignature&&r===c.compilerOptions.outFile&&(l.outSignature=c.outSignature&&mz(_,c.compilerOptions,c.outSignature)):l.semanticDiagnosticsPerFile=new Map,l.changedFilesSet=new Set,l.latestChangedDtsFile=!_.composite||null==c?void 0:c.latestChangedDtsFile,$J.canReuseOldState(l.referencedMap,c));var n=u?c.compilerOptions:void 0;let d=u&&c.semanticDiagnosticsPerFile&&!!l.semanticDiagnosticsPerFile&&!Wf(_,n),p=_.composite&&(null==c?void 0:c.emitSignatures)&&!r&&!Kf(_,c.compilerOptions),f=(u?(null!=(e=c.changedFilesSet)&&e.forEach(e=>l.changedFilesSet.add(e)),!r&&null!=(t=c.affectedFilesPendingEmit)&&t.size&&(l.affectedFilesPendingEmit=new Map(c.affectedFilesPendingEmit),l.seenAffectedFiles=new Set),l.programEmitPending=c.programEmitPending):l.buildInfoEmitPending=!0,l.referencedMap),m=u?c.referencedMap:void 0,g=d&&!_.skipLibCheck==!n.skipLibCheck,h=g&&!_.skipDefaultLibCheck==!n.skipDefaultLibCheck;if(l.fileInfos.forEach((e,t)=>{let r,n,i;if(!u||!(n=c.fileInfos.get(t))||n.version!==e.version||n.impliedFormat!==e.impliedFormat||(e=i=f&&f.getValues(t),o=m&&m.getValues(t),e!==o&&(void 0===e||void 0===o||e.size!==o.size||R7(e,e=>!o.has(e))))||i&&R7(i,e=>!l.fileInfos.has(e)&&c.fileInfos.has(e)))fz(l,t);else{var e=s.getSourceFileByPath(t),a=null==(r=c.emitDiagnosticsPerFile)?void 0:r.get(t);if(a&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(t,c.hasReusableDiagnostic?vz(a,t,s):gz(a,s)),d){if(e.isDeclarationFile&&!g)return;if(e.hasNoDefaultLib&&!h)return;a=c.semanticDiagnosticsPerFile.get(t);a&&(l.semanticDiagnosticsPerFile.set(t,c.hasReusableDiagnostic?vz(a,t,s):gz(a,s)),(l.semanticDiagnosticsFromOldState??(l.semanticDiagnosticsFromOldState=new Set)).add(t))}}var o;p&&(e=c.emitSignatures.get(t))&&(l.emitSignatures??(l.emitSignatures=new Map)).set(t,mz(_,c.compilerOptions,e))}),u&&j7(c.fileInfos,(e,t)=>{if(!l.fileInfos.has(t)){if(r||e.affectsGlobalScope)return!0;l.buildInfoEmitPending=!0}return!1}))$J.getAllFilesExcludingDefaultLibraryFile(l,s,void 0).forEach(e=>fz(l,e.resolvedPath));else if(n){let t=Hf(_,n)?uz(_):dz(_,n);0!==t&&(r?l.programEmitPending=l.programEmitPending?l.programEmitPending|t:t:(s.getSourceFiles().forEach(e=>{l.changedFilesSet.has(e.resolvedPath)||Rz(l,e.resolvedPath,t)}),Y4.assert(!l.seenAffectedFiles||!l.seenAffectedFiles.size),l.seenAffectedFiles=l.seenAffectedFiles||new Set,l.buildInfoEmitPending=!0))}return l}function fz(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function mz(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:a3(r)?[r]:r[0]}function gz(e,r){return e.length?ET(e,e=>{var t;return a3(e.messageText)||(t=hz(e.messageText,e.file,r,e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)}))===e.messageText?e:{...e,messageText:t}}):e}function hz(e,t,r,n){var i=n(e);return i?{...J7(t,r,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:yz(e.next,t,r,n)}:(i=yz(e.next,t,r,n))===e.next?e:{...e,next:i}}function yz(e,t,r,n){return ET(e,e=>hz(e,t,r,n))}function vz(e,r,n){if(!e.length)return H4;let t;return e.map(e=>{var t=bz(e,r,n,i),e=(t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn,e)["relatedInformation"];return t.relatedInformation=e?e.length?e.map(e=>bz(e,r,n,i)):[]:void 0,t});function i(e){return pa(e,t=t??D3(P3(GM(n.getCompilerOptions()),n.getCurrentDirectory())),n.getCanonicalFileName)}}function bz(e,t,r,n){var i=e["file"],n=!1!==i?r.getSourceFileByPath(i?n(i):t):void 0;return{...e,file:n,messageText:a3(e.messageText)?e.messageText:hz(e.messageText,n,r,e=>e.info)}}function xz(e,t){Y4.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function Sz(t,r,n){for(;;){var i=t["affectedFiles"];if(i){var a=t.seenAffectedFiles;let e=t.affectedFilesIndex;for(;e{var t;return 0!=(128&e.flags)||(t=Xp(e,i.program.getTypeChecker()))!==e&&0!=(128&t.flags)&&X4(t.declarations,e=>iT(e)===a)}));null!=(e=i.referencedMap.getKeys(a.resolvedPath))&&e.forEach(e=>{return!!Nz(i,e,r,o,s)||(e=i.referencedMap.getKeys(e))&&R7(e,e=>function t(r,e,n,i,a,o){if(!OT(i,e))return;if(Nz(r,e,n,a,o))return!0;Tz(r,e,n,a,o);null!=(e=r.referencedMap.getKeys(e))&&e.forEach(e=>t(r,e,n,i,a,o));return}(i,e,r,t,o,s))})}}}(t,o,r,n),o;e++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,null!=(s=t.oldSignatures)&&s.clear(),t.affectedFiles=void 0}var s=t.changedFilesSet.keys().next();if(s.done)return;var e=Y4.checkDefined(t.program);if(e.getCompilerOptions().outFile)return Y4.assert(!t.semanticDiagnosticsPerFile),e;t.affectedFiles=$J.getFilesAffectedByWithOldState(t,e,s.value,r,n),t.currentChangedFilePath=s.value,t.affectedFilesIndex=0,t.seenAffectedFiles||(t.seenAffectedFiles=new Set)}}function kz(n){if(!n.cleanedDiagnosticsOfLibFiles){n.cleanedDiagnosticsOfLibFiles=!0;let t=Y4.checkDefined(n.program),r=t.getCompilerOptions();G4(t.getSourceFiles(),e=>t.isSourceFileDefaultLibrary(e)&&!VD(e,r,t)&&Cz(n,e.resolvedPath))}}function Tz(e,t,r,n,i){var a,o;Cz(e,t),e.changedFilesSet.has(t)||(o=(a=Y4.checkDefined(e.program)).getSourceFileByPath(t))&&($J.updateShapeSignature(e,a,o,n,i,!0),r?Rz(e,t,uz(e.compilerOptions)):wD(e.compilerOptions)&&Rz(e,t,e.compilerOptions.declarationMap?24:8))}function Cz(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function wz(e,t){var r=Y4.checkDefined(e.oldSignatures).get(t)||void 0;return Y4.checkDefined(e.fileInfos.get(t)).signature!==r}function Nz(t,e,r,n,i){return!(null==(e=t.fileInfos.get(e))||!e.affectsGlobalScope||($J.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(e=>Tz(t,e.resolvedPath,r,n,i)),kz(t),0))}function Dz(e,t,r){return LT(function(e,t,r){var n=t.resolvedPath;if(e.semanticDiagnosticsPerFile){var i=e.semanticDiagnosticsPerFile.get(n);if(i)return qJ(i,e.compilerOptions)}i=Y4.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(n,i);return qJ(i,e.compilerOptions)}(e,t,r),Y4.checkDefined(e.program).getProgramDiagnostics(t))}function Ez(e){return!(null==(e=e.options)||!e.outFile)}function Pz(o){let e,t,r=Y4.checkDefined(o.program).getCurrentDirectory(),n=D3(P3(GM(o.compilerOptions),r));var i=o.latestChangedDtsFile?C(o.latestChangedDtsFile):void 0;let s=[],a=new Map,c=new Set(o.program.getRootFileNames().map(e=>pa(e,r,o.program.getCanonicalFileName))),l=[];if(o.compilerOptions.outFile)return p=ZT(o.fileInfos.entries(),([e,t])=>{return D(e,N(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version}),fB({fileNames:s,fileInfos:p,root:l,resolvedRoot:E(),options:P(o.compilerOptions),outSignature:o.outSignature,latestChangedDtsFile:i,pendingEmit:o.programEmitPending?o.programEmitPending!==uz(o.compilerOptions)&&o.programEmitPending:void 0});let _,u,d;var p=ZT(o.fileInfos.entries(),([e,t])=>{var r,n=N(e),i=(D(e,n),Y4.assert(s[n-1]===w(e)),null==(i=o.oldSignatures)?void 0:i.get(e)),a=void 0!==i?i||void 0:t.signature;return o.compilerOptions.composite&&!D5(r=o.program.getSourceFileByPath(e))&&Id(r,o.program)&&(r=null==(r=o.emitSignatures)?void 0:r.get(e))!==a&&(d=Q4(d,void 0===r?n:[n,a3(r)||r[0]!==a?r:H4])),t.version===a?t.affectsGlobalScope||t.impliedFormat?{version:t.version,signature:void 0,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}:t.version:void 0!==a?void 0===i?t:{version:t.version,signature:a,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}:{version:t.version,signature:!1,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}});let f;null!=(e=o.referencedMap)&&e.size()&&(f=ZT(o.referencedMap.keys()).sort(Se).map(e=>[N(e),function(e){let t=ZT(e.keys(),N).sort(l3),r=t.join(),n=null==u?void 0:u.get(r);void 0===n&&(_=Q4(_,t),(u=u??new Map).set(r,n=_.length));return n}(o.referencedMap.getValues(e))]));var m=function(){let n;return o.fileInfos.forEach((e,t)=>{var r=null==(r=o.semanticDiagnosticsPerFile)?void 0:r.get(t);r?r.length&&(n=Q4(n,[N(t),F(r,t)])):o.changedFilesSet.has(t)||(n=Q4(n,N(t)))}),n}();let g;if(null!=(t=o.affectedFilesPendingEmit)&&t.size){var h,y,v,b=uz(o.compilerOptions),x=new Set;for(h of ZT(o.affectedFilesPendingEmit.keys()).sort(Se))OT(x,h)&&(y=o.program.getSourceFileByPath(h))&&Id(y,o.program)&&(y=N(h),v=o.affectedFilesPendingEmit.get(h),g=Q4(g,v===b?y:8===v?[y]:[y,v]))}let S;if(o.changedFilesSet.size)for(var k of ZT(o.changedFilesSet.keys()).sort(Se))S=Q4(S,N(k));var T=function(){let e,t;if(null!=(e=o.emitDiagnosticsPerFile)&&e.size)for(var r of ZT(o.emitDiagnosticsPerFile.keys()).sort(Se)){var n=o.emitDiagnosticsPerFile.get(r);t=Q4(t,[N(r),F(n,r)])}return t}();return fB({fileNames:s,fileInfos:p,root:l,resolvedRoot:E(),options:P(o.compilerOptions),fileIdsList:_,referencedMap:f,semanticDiagnosticsPerFile:m,emitDiagnosticsPerFile:T,affectedFilesPendingEmit:g,changeFileSet:S,emitSignatures:d,latestChangedDtsFile:i});function C(e){return w(P3(e,r))}function w(e){return ga(wa(n,e,o.program.getCanonicalFileName))}function N(e){let t=a.get(e);return void 0===t&&(s.push(w(e)),a.set(e,t=s.length)),t}function D(e,t){var r,e=o.program.getSourceFile(e);if(o.program.getFileIncludeReasons().get(e.path).some(e=>0===e.kind))return l.length?(r=i3(e=l[l.length-1]))&&e[1]===t-1?e[1]=t:!r&&1!==l.length&&e===t-1&&ce(r=l[l.length-2])&&r===e-1?(l[l.length-2]=[r,t],void(l.length=l.length-1)):l.push(t):l.push(t)}function E(){let r;return c.forEach(e=>{var t=o.program.getSourceFileByPath(e);t&&e!==t.resolvedPath&&(r=Q4(r,[N(t.resolvedPath),N(e)]))}),r}function P(e){let t;var r,n=k9()["optionsNameMap"];for(r of J(e).sort(Se)){var i=n.get(r.toLowerCase());null!=i&&i.affectsBuildInfo&&((t=t||{})[r]=function(e,t){if(e)if(Y4.assert("listOrElement"!==e.type),"list"===e.type){var r=t;if(e.element.isFilePath&&r.length)return r.map(C)}else if(e.isFilePath)return C(t);return t}(i,e[r]))}return t}function F(e,r){return Y4.assert(!!e.length),e.map(e=>{var t=A(e,r),e=(t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn,e)["relatedInformation"];return t.relatedInformation=e?e.length?e.map(e=>A(e,r)):[]:void 0,t})}function A(e,t){var r=e["file"];return{...e,file:!!r&&(r.resolvedPath===t?void 0:w(r.resolvedPath)),messageText:a3(e.messageText)?e.messageText:I(e.messageText)}}function I(e){var t;return e.repopulateInfo?{info:e.repopulateInfo(),next:O(e.next)}:(t=O(e.next))===e.next?e:{...e,next:t}}function O(i){return i&&(G4(i,(e,t)=>{var r=I(e);if(e!==r){var n=0(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Fz||{});function Az(e,t,r,n,i,a){let o,s,c;return void 0===e?(Y4.assert(void 0===t),o=r,c=n,Y4.assert(!!c),s=c.getProgram()):i3(e)?(c=n,s=BJ({rootNames:e,options:t,host:r,oldProgram:c&&c.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:a}),o=r):(s=e,o=t,c=r,i=n),{host:o,newProgram:s,oldProgram:c,configFileParsingDiagnostics:i||H4}}function Iz(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function Oz(t,r,e,n,i){var a;e=Iz(e,i);let o;return null!=(a=null==i?void 0:i.diagnostics)&&a.length&&(e+=i.diagnostics.map(e=>""+function(e){if(e.file.resolvedPath===r.resolvedPath)return`(${e.start},${e.length})`;void 0===o&&(o=D3(r.resolvedPath));return`${ga(wa(o,e.file.resolvedPath,t.getCanonicalFileName))}(${e.start},${e.length})`}(e)+Pn[e.category]+e.code+": "+s(e.messageText)).join("\n")),(n.createHash??ai)(e);function s(e){return a3(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function Lz(e,t,r){return(t.createHash??ai)(Iz(e,r))}function jz(r,{newProgram:e,host:p,oldProgram:t,configFileParsingDiagnostics:n}){let i=t&&t.getState();if(i&&e===i.program&&n===e.getConfigFileParsingDiagnostics())return e=void 0,i=void 0,t;let f=pz(e,i);e.getBuildInfo=()=>Pz(f),t=e=void 0,i=void 0;e=()=>f;let l=Uz(e,n);return l.getState=e,l.saveEmitState=()=>{return e=f,t=e.compilerOptions.outFile,Y4.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)};var e,t},l.restoreEmitState=e=>{return t=f,e=e,t.affectedFilesPendingEmit=e.affectedFilesPendingEmit,t.seenEmittedFiles=e.seenEmittedFiles,t.programEmitPending=e.programEmitPending,t.emitSignatures=e.emitSignatures,t.outSignature=e.outSignature,t.latestChangedDtsFile=e.latestChangedDtsFile,t.hasChangedEmitSignature=e.hasChangedEmitSignature,t.buildInfoEmitPending=e.buildInfoEmitPending,t.emitDiagnosticsPerFile=e.emitDiagnosticsPerFile,void(e.changedFilesSet&&(t.changedFilesSet=e.changedFilesSet));var t},l.hasChangedEmitSignature=()=>!!f.hasChangedEmitSignature,l.getAllDependencies=e=>$J.getAllDependencies(f,Y4.checkDefined(f.program),e),l.getSemanticDiagnostics=function(e,t){xz(f,e);var r=Y4.checkDefined(f.program).getCompilerOptions();if(r.outFile)return Y4.assert(!f.semanticDiagnosticsPerFile),Y4.checkDefined(f.program).getSemanticDiagnostics(e,t);if(e)return Dz(f,e,t);for(;a(t););let n;for(var i of Y4.checkDefined(f.program).getSourceFiles())n=BT(n,Dz(f,i,t));return n||H4},l.emit=function(e,i,a,o,s){1===r&&xz(f,e);var t=zJ(l,e,i,a);if(t)return t;if(!e){if(1===r){let e=[],t=!1,r,n=[];for(var c;c=_(i,a,o,s);)t=t||c.result.emitSkipped,r=BT(r,c.result.diagnostics),n=BT(n,c.result.emittedFiles),e=BT(e,c.result.sourceMaps);return{emitSkipped:t,diagnostics:r||H4,emittedFiles:n,sourceMaps:e}}!function(r,e){var t;if(null!=(t=r.affectedFilesPendingEmit)&&t.size)e?r.affectedFilesPendingEmit.forEach((e,t)=>{e&=7;e?r.affectedFilesPendingEmit.set(t,e):r.affectedFilesPendingEmit.delete(t)}):r.affectedFilesPendingEmit=void 0}(f,o)}return Y4.checkDefined(f.program).emit(e,m(i,s),a,o,s)},l.releaseProgram=()=>{return e=f,$J.releaseCache(e),void(e.program=void 0);var e},0===r?l.getSemanticDiagnosticsOfNextAffectedFile=a:1===r?(l.getSemanticDiagnosticsOfNextAffectedFile=a,l.emitNextAffectedFile=_,l.emitBuildInfo=function(e,t){if(f.buildInfoEmitPending)return e=Y4.checkDefined(f.program).emitBuildInfo(e||r3(p,p.writeFile),t),f.buildInfoEmitPending=!1,e;return JJ}):de(),l;function _(e,t,r,n){let i,a,o,s=Sz(f,t,p);var c=uz(f.compilerOptions);let l=r?24&c:c;if(!s)if(f.compilerOptions.outFile){if(!f.programEmitPending)return;if(l=f.programEmitPending,r&&(l&=24),!l)return;s=f.program}else{r=function(n,i){var e;if(null!=(e=n.affectedFilesPendingEmit)&&e.size)return j7(n.affectedFilesPendingEmit,(t,e)=>{var r=n.program.getSourceFileByPath(e);if(r&&Id(r,n.program)){let e=dz(t,null==(t=n.seenEmittedFiles)?void 0:t.get(r.resolvedPath));return i&&(e&=24),e?{affectedFile:r,emitKind:e}:void 0}n.affectedFilesPendingEmit.delete(e)})}(f,r);if(!r)return(u=function(i){var e;if(null!=(e=i.emitDiagnosticsPerFile)&&e.size)return j7(i.emitDiagnosticsPerFile,(e,t)=>{var r,n=i.program.getSourceFileByPath(t);if(n&&Id(n,i.program))return 24&(r=(null==(r=i.seenEmittedFiles)?void 0:r.get(n.resolvedPath))||0)?void 0:{affectedFile:n,diagnostics:e,seenKind:r};i.emitDiagnosticsPerFile.delete(t)})}(f))?((f.seenEmittedFiles??(f.seenEmittedFiles=new Map)).set(u.affectedFile.resolvedPath,24|u.seenKind),{result:{emitSkipped:!0,diagnostics:u.diagnostics},affected:u.affectedFile}):f.buildInfoEmitPending?(d=(u=f.program).emitBuildInfo(e||r3(p,p.writeFile),t),f.buildInfoEmitPending=!1,{result:d,affected:u}):void 0;({affectedFile:s,emitKind:l}=r)}let _;7&l&&(_=0),24&l&&(_=void 0===_?1:void 0),s===f.program&&(f.programEmitPending=f.changedFilesSet.size?dz(c,l):f.programEmitPending?dz(f.programEmitPending,l):void 0);var u,d=f.program.emit(s===f.program?void 0:s,m(e,n),t,_,n);return s!==f.program?(u=s,f.seenAffectedFiles.add(u.resolvedPath),void 0!==f.affectedFilesIndex&&f.affectedFilesIndex++,f.buildInfoEmitPending=!0,r=(null==(i=f.seenEmittedFiles)?void 0:i.get(u.resolvedPath))||0,(f.seenEmittedFiles??(f.seenEmittedFiles=new Map)).set(u.resolvedPath,l|r),(e=dz((null==(a=f.affectedFilesPendingEmit)?void 0:a.get(u.resolvedPath))||c,l|r))?(f.affectedFilesPendingEmit??(f.affectedFilesPendingEmit=new Map)).set(u.resolvedPath,e):null!=(o=f.affectedFilesPendingEmit)&&o.delete(u.resolvedPath),d.diagnostics.length&&(f.emitDiagnosticsPerFile??(f.emitDiagnosticsPerFile=new Map)).set(u.resolvedPath,d.diagnostics)):f.changedFilesSet.clear(),{result:d,affected:s}}function m(u,d){return wD(f.compilerOptions)?(n,i,e,t,r,a)=>{var o,s;if(x9(n))if(f.compilerOptions.outFile){if(f.compilerOptions.composite){var c=_(f.outSignature,void 0);if(!c)return;f.outSignature=c}}else{Y4.assert(1===(null==r?void 0:r.length));let e;if(d||(c=r[0],(o=f.fileInfos.get(c.resolvedPath)).signature===c.version&&(s=Oz(f.program,c,i,p,a),null!=(l=null==a?void 0:a.diagnostics)&&l.length||(e=s),s!==c.version)&&(p.storeSignatureInfo&&(f.signatureInfo??(f.signatureInfo=new Map)).set(c.resolvedPath,1),f.affectedFiles&&void 0===(null==(l=f.oldSignatures)?void 0:l.get(c.resolvedPath))&&(f.oldSignatures??(f.oldSignatures=new Map)).set(c.resolvedPath,o.signature||!1),o.signature=s)),f.compilerOptions.composite){var l=r[0].resolvedPath;if(!(e=_(null==(c=f.emitSignatures)?void 0:c.get(l),e)))return;(f.emitSignatures??(f.emitSignatures=new Map)).set(l,e)}}function _(e,t){var r=!e||a3(e)?e:e[0];if((t=t??Lz(i,p,a))===r){if(e===r)return;a?a.differsOnlyInMap=!0:a={differsOnlyInMap:!0}}else f.hasChangedEmitSignature=!0,f.latestChangedDtsFile=n;return t}u?u(n,i,e,t,r,a):(p.writeFile?p:f.program).writeFile(n,i,e,t,r,a)}:u||r3(p,p.writeFile)}function a(t,r){for(;;){var n=Sz(f,t,p);let e;if(!n)return;if(n!==f.program){var i=n;if(r&&r(i)||(e=Dz(f,i,t)),f.seenAffectedFiles.add(i.resolvedPath),f.affectedFilesIndex++,f.buildInfoEmitPending=!0,!e)continue}else e=f.program.getSemanticDiagnostics(void 0,t),f.changedFilesSet.clear(),f.programEmitPending=uz(f.compilerOptions);return{result:e,affected:n}}}}function Rz(e,t,r){var n=(null==(n=e.affectedFilesPendingEmit)?void 0:n.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,n|r),null!=(n=e.emitDiagnosticsPerFile)&&n.delete(t)}function Mz(e){return a3(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:a3(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Bz(e,t){return ce(e)?t:e[1]||8}function Jz(e,t){return e||uz(t||{})}function zz(e,i,a){e=e.program;let t=D3(P3(i,a.getCurrentDirectory())),r=ze(a.useCaseSensitiveFileNames()),o,n=null==(i=e.fileNames)?void 0:i.map(function(e){return pa(e,t,r)}),s;var c,a=e.latestChangedDtsFile?l(e.latestChangedDtsFile):void 0;if(Ez(e)){let r=new Map;e.fileInfos.forEach((e,t)=>{t=_(t+1);r.set(t,a3(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)}),o={fileInfos:r,compilerOptions:e.options?xA(e.options,l):{},latestChangedDtsFile:a,outSignature:e.outSignature,programEmitPending:void 0===e.pendingEmit?void 0:Jz(e.pendingEmit,e.options)}}else{s=null==(i=e.fileIdsList)?void 0:i.map(e=>new Set(e.map(_)));let r=new Map,n=null!=(i=e.options)&&i.composite&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((e,t)=>{t=_(t+1),e=Mz(e);r.set(t,e),n&&e.signature&&n.set(t,e.signature)}),null!=(i=e.emitSignatures)&&i.forEach(e=>{var t;ce(e)?n.delete(_(e)):(t=_(e[0]),n.set(t,a3(e[1])||e[1].length?e[1]:[n.get(t)]))});i=new Set($4(e.changeFileSet,_));let t=e.affectedFilesPendingEmit?uz(e.options||{}):void 0;o={fileInfos:r,compilerOptions:e.options?xA(e.options,l):{},referencedMap:function(e,t){let r=$J.createReferencedMap(t);return r&&e&&e.forEach(([e,t])=>{return r.set(_(e),(e=t,s[e-1]))}),r}(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:function(e,t,r){let n=new Map(g(t.keys(),e=>r.has(e)?void 0:[e,H4]));return null==e||e.forEach(e=>{ce(e)?n.delete(_(e)):n.set(_(e[0]),e[1])}),n.size?n:void 0}(e.semanticDiagnosticsPerFile,r,i),emitDiagnosticsPerFile:(c=e.emitDiagnosticsPerFile)&&Q(c,e=>_(e[0]),e=>e[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&Q(e.affectedFilesPendingEmit,e=>_(ce(e)?e:e[0]),e=>Bz(e,t)),changedFilesSet:i,latestChangedDtsFile:a,emitSignatures:null!=n&&n.size?n:void 0}}return{getState:()=>o,saveEmitState:yr,restoreEmitState:yr,getProgram:de,getProgramOrUndefined:le,releaseProgram:yr,getCompilerOptions:()=>o.compilerOptions,getSourceFile:de,getSourceFiles:de,getOptionsDiagnostics:de,getGlobalDiagnostics:de,getConfigFileParsingDiagnostics:de,getSyntacticDiagnostics:de,getDeclarationDiagnostics:de,getSemanticDiagnostics:de,emit:de,getAllDependencies:de,getCurrentDirectory:de,emitNextAffectedFile:de,getSemanticDiagnosticsOfNextAffectedFile:de,emitBuildInfo:de,close:yr,hasChangedEmitSignature:vr};function l(e){return P3(e,t)}function _(e){return n[e-1]}}function qz(n,e,t){let i=D3(P3(e,t.getCurrentDirectory())),a=ze(t.useCaseSensitiveFileNames()),o=new Map,s=0,r=new Map,c=new Map(n.resolvedRoot);return n.fileInfos.forEach((e,t)=>{var r=pa(n.fileNames[t],i,a),e=a3(e)?e:e.version;o.set(r,e),se().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:e=>a().getSourceFile(e),getSourceFiles:()=>a().getSourceFiles(),getOptionsDiagnostics:e=>a().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>a().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>a().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>a().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>a().getSemanticDiagnostics(e,t),emit:(e,t,r,n,i)=>a().emit(e,t,r,n,i),emitBuildInfo:(e,t)=>a().emitBuildInfo(e,t),getAllDependencies:de,getCurrentDirectory:()=>a().getCurrentDirectory(),close:yr};function a(){return Y4.checkDefined(e().program)}}function Vz(e,t,r,n,i,a){return jz(0,Az(e,t,r,n,i,a))}function Wz(e,t,r,n,i,a){return jz(1,Az(e,t,r,n,i,a))}function Hz(e,t,r,n,i,a){let{newProgram:o,configFileParsingDiagnostics:s}=Az(e,t,r,n,i,a);return Uz(()=>({program:o,compilerOptions:o.getCompilerOptions()}),s)}function Kz(t){return u3(t,"/node_modules/.staging")?kr(t,"/.staging"):X4(Pi,e=>t.includes(e))?void 0:t}function Gz(e,t){if(t<=1)return 1;let r=1,n=0===e[0].search(/[a-zA-Z]:/);if(e[0]!==qi&&!n&&0===e[1].search(/[a-zA-Z]\$$/)){if(2===t)return 2;r=2,n=!0}return n&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function $z(e,t){return!((t=void 0===t?e.length:t)<=2)&&Gz(e,t)+1i.length+1?rq(a,t,Math.max(i.length+1,e+1),o):{dir:r,dirPath:n,nonRecursive:!0}:tq(a,t,t.length-1,e,s,i,o)}}function tq(e,t,r,n,i,a,o){if(-1!==i)return rq(e,t,i+1,o);let s=!0,c=r;for(let e=0;e{return n=d,e=e,i=c,a=_,o=l,t=t,s=oq(r=u),i=rO(e,i,a,s,n,o,t),!r.getGlobalCache||void 0===(o=r.getGlobalCache())||B3(e)||i.resolvedModule&&Gm(i.resolvedModule.extension)||({resolvedModule:t,failedLookupLocations:e,affectingLocations:r,resolutionDiagnostics:a}=tL(Y4.checkDefined(r.globalCacheResolutionModuleName)(e),r.projectName,a,s,o,n),t&&(i.resolvedModule=t,i.failedLookupLocations=kI(i.failedLookupLocations,e),i.affectingLocations=kI(i.affectingLocations,r),i.resolutionDiagnostics=kI(i.resolutionDiagnostics,a))),i;var r,n,i,a,o,s}}}function cq(C,e,R){let w,i,t,o=n3(),c=new Set,l=new Set,_=new Map,a=new Map,s=!1,u,d,n,p,f,N=!1,m=Ci(()=>C.getCurrentDirectory()),g=C.getCachedDirectoryStructureHost(),D=new Map,h=QI(m(),C.getCanonicalFileName,C.getCompilationSettings()),y=new Map,v=YI(m(),C.getCanonicalFileName,C.getCompilationSettings(),h.getPackageJsonInfoCache(),h.optionsToRedirectsKey),b=new Map,x=QI(m(),C.getCanonicalFileName,ZI(C.getCompilationSettings()),h.getPackageJsonInfoCache()),S=new Map,k=new Map,T=iq(e,m),E=C.toPath(T),P=aa(E),F=new Map,A=new Map,I=new Map,M=new Map;return{rootDirForResolution:e,resolvedModuleNames:D,resolvedTypeReferenceDirectives:y,resolvedLibraries:b,resolvedFileToResolution:_,resolutionsWithFailedLookups:c,resolutionsWithOnlyAffectingLocations:l,directoryWatchesOfFailedLookups:S,fileWatchesOfAffectingLocations:k,packageDirWatchers:A,dirPathToSymlinkPackageRefCount:I,watchFailedLookupLocationsOfExternalModuleResolutions:H,getModuleResolutionCache:()=>h,startRecordingFilesWithChangedResolutions:function(){w=[]},finishRecordingFilesWithChangedResolutions:function(){var e=w;return w=void 0,e},startCachingPerDirectoryResolution:function(){h.isReadonly=void 0,v.isReadonly=void 0,x.isReadonly=void 0,h.getPackageJsonInfoCache().isReadonly=void 0,h.clearAllExceptPackageJsonInfoCache(),v.clearAllExceptPackageJsonInfoCache(),x.clearAllExceptPackageJsonInfoCache(),o.forEach(Q),o.clear(),F.clear()},finishCachingPerDirectoryResolution:function(n,e){t=void 0,N=!1,o.forEach(Q),o.clear(),n!==e&&(function(n){b.forEach((e,t)=>{var r;null!=(r=null==n?void 0:n.resolvedLibReferences)&&r.has(t)||(L(e,C.toPath(NJ(C.getCompilationSettings(),m(),t)),O),b.delete(t))})}(n),null!=n&&n.getSourceFiles().forEach(t=>{var e,r=N5(t)?(null==(e=t.packageJsonLocations)?void 0:e.length)??0:0,n=a.get(t.resolvedPath)??H4;for(let e=n.length;er)for(let e=r;e{var r=null==n?void 0:n.getSourceFileByPath(t);r&&r.resolvedPath===t||(e.forEach(e=>k.get(e).files--),a.delete(t))}));S.forEach(q),k.forEach(U),A.forEach(z),s=!1,h.isReadonly=!0,v.isReadonly=!0,x.isReadonly=!0,h.getPackageJsonInfoCache().isReadonly=!0,F.clear()},resolveModuleNameLiterals:function(e,t,r,n,i,a){return V({entries:e,containingFile:t,containingSourceFile:i,redirectedReference:r,options:n,reusedNames:a,perFileCache:D,loader:sq(t,r,n,C,h),getResolutionWithResolvedFileName:O,shouldRetryResolution:e=>!e.resolvedModule||!RD(e.resolvedModule.extension),logChanges:R,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(e,t,r,n,i,a){return V({entries:e,containingFile:t,containingSourceFile:i,redirectedReference:r,options:n,reusedNames:a,perFileCache:y,loader:SJ(t,r,n,oq(C),v),getResolutionWithResolvedFileName:B,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(e,t,r,n){let i=oq(C),a=null==b?void 0:b.get(n);{var o,s;!a||a.isInvalidated?(o=a,a=eO(e,t,r,i,x),s=C.toPath(t),H(e,a,s,O,!1),b.set(n,a),o&&L(o,s,O)):fI(r,i)&&(n=O(a),pI(i,null!=n&&n.resolvedFileName?n.packageId?eT.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:eT.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:eT.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,e,t,null==n?void 0:n.resolvedFileName,(null==n?void 0:n.packageId)&&vl(n.packageId)))}return a},resolveSingleModuleNameWithoutWatching:function(e,t){var r;var n=C.toPath(t),n=D.get(n),n=null==n?void 0:n.get(e,void 0);if(n&&!n.isInvalidated)return n;var n=null==(n=C.beforeResolveSingleModuleNameWithoutWatching)?void 0:n.call(C,h),i=oq(C),i=rO(e,t,C.getCompilationSettings(),i,h);return null==(r=C.afterResolveSingleModuleNameWithoutWatching)||r.call(C,h,e,t,i,n),i},removeResolutionsFromProjectReferenceRedirects:function(e){var t;w3(e,".json")&&(t=C.getCurrentProgram())&&(t=t.getResolvedProjectReferenceByPath(e))&&t.commandLine.fileNames.forEach(e=>re(C.toPath(e)))},removeResolutionsOfFile:re,hasChangedAutomaticTypeDirectiveNames:()=>s,invalidateResolutionOfFile:function(e){re(e);var t=s;r(_.get(e),ki)&&s&&!t&&C.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:ae,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){Y4.assert(t===e||void 0===t),t=e},createHasInvalidatedResolutions:function(t,r){ae();let n=i;return i=void 0,{hasInvalidatedResolutions:e=>t(e)||N||!(null==n||!n.has(e))||J(e),hasInvalidatedLibResolutions:e=>{return r(e)||!(null==(e=null==b?void 0:b.get(e))||!e.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:J,updateTypeRootsWatch:function(){var e=C.getCompilationSettings();!e.types&&(e=EI(e,{getCurrentDirectory:m}))?tf(M,new Set(e),{createNewValue:_e,onDeleteValue:$p}):le()},closeTypeRootsWatch:le,clear:function(){Zp(S,BB),Zp(k,BB),F.clear(),A.clear(),I.clear(),o.clear(),le(),D.clear(),y.clear(),_.clear(),c.clear(),l.clear(),n=void 0,p=void 0,f=void 0,d=void 0,u=void 0,N=!1,h.clear(),v.clear(),h.update(C.getCompilationSettings()),v.update(C.getCompilationSettings()),x.clear(),a.clear(),b.clear(),s=!1},onChangesAffectModuleResolution:function(){N=!0,h.clearAllExceptPackageJsonInfoCache(),v.clearAllExceptPackageJsonInfoCache(),h.update(C.getCompilationSettings()),v.update(C.getCompilationSettings())}};function O(e){return e.resolvedModule}function B(e){return e.resolvedTypeReferenceDirective}function J(e){return!!t&&!!(e=t.get(e))&&!!e.length}function z(e,t){0===e.dirPathToWatcher.size&&A.delete(t)}function q(e,t){0===e.refCount&&(S.delete(t),e.watcher.close())}function U(e,t){var r;0!==e.files||0!==e.resolutions||null!=(r=e.symlinks)&&r.size||(k.delete(t),e.watcher.close())}function V({entries:e,containingFile:t,containingSourceFile:r,redirectedReference:n,options:i,perFileCache:a,reusedNames:o,loader:s,getResolutionWithResolvedFileName:c,deferWatchingNonRelativeResolution:l,shouldRetryResolution:_,logChanges:u}){let d=C.toPath(t),p=a.get(d)||a.set(d,HI()).get(d);var f,m=[],g=u&&J(d),h=C.getCurrentProgram(),h=h&&h.getResolvedProjectReferenceToRedirect(t),y=h?!n||n.sourceFile.path!==h.sourceFile.path:!!n;let v=HI();for(f of e){var b,x,S,k=s.nameAndMode.getName(f),T=s.nameAndMode.getMode(f,r,(null==n?void 0:n.commandLine.options)||i);let e=p.get(k,T);!v.has(k,T)&&(N||y||!e||e.isInvalidated||g&&!B3(k)&&_(e))?(b=e,e=s.resolve(k,T),C.onDiscoveredSymlink&&(x=e,S=void 0,null!=(S=x.resolvedModule)&&S.originalPath||null!=(S=x.resolvedTypeReferenceDirective)&&S.originalPath)&&C.onDiscoveredSymlink(),p.set(k,T,e),e!==b&&(H(k,e,d,c,l),b)&&L(b,d,c),u&&w&&!function(e,t){if(e===t)return 1;if(!e||!t)return;e=c(e),t=c(t);return e===t||!(!e||!t)&&e.resolvedFileName===t.resolvedFileName}(b,e)&&(w.push(d),u=!1)):(x=oq(C),fI(i,x)&&!v.has(k,T)&&(S=c(e),pI(x,a===D?null!=S&&S.resolvedFileName?S.packageId?eT.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:eT.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:eT.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:null!=S&&S.resolvedFileName?S.packageId?eT.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:eT.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:eT.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,k,t,null==S?void 0:S.resolvedFileName,(null==S?void 0:S.packageId)&&vl(S.packageId)))),Y4.assert(void 0!==e&&!e.isInvalidated),v.set(k,T,!0),m.push(e)}return null!=o&&o.forEach(e=>v.set(s.nameAndMode.getName(e),s.nameAndMode.getMode(e,r,(null==n?void 0:n.commandLine.options)||i),!0)),p.size()!==v.size()&&p.forEach((e,t,r)=>{v.has(t,r)||(L(e,d,c),p.delete(t,r))}),m}function W(e){return u3(e,"/node_modules/@types")}function H(e,t,r,n,i){if(t.refCount)t.refCount++,Y4.assertIsDefined(t.files);else{t.refCount=1,Y4.assert(!(null!=(a=t.files)&&a.size)),!i||B3(e)?G(t):o.add(e,t);var a=n(t);if(a&&a.resolvedFileName){i=C.toPath(a.resolvedFileName);let e=_.get(i);e||_.set(i,e=new Set),e.add(t)}}(t.files??(t.files=new Set)).add(r)}function K(e,t){var r,n,i,a,e=eq(e,C.toPath(e),T,E,P,m);return e&&({dir:e,dirPath:r,nonRecursive:n,packageDir:i,packageDirPath:a}=e,r===E?(Y4.assert(n),Y4.assert(!i),t=!0):Y(e,r,i,a,n)),t}function G(t){Y4.assert(!!t.refCount);var{failedLookupLocations:r,affectingLocations:e,alternateResult:n}=t;if(null!=r&&r.length||null!=e&&e.length||n){(null!=r&&r.length||n)&&c.add(t);let e=!1;if(r)for(var i of r)e=K(i,e);(e=n?K(n,e):e)&&Y(T,E,void 0,void 0,!0),$(t,!(null!=r&&r.length||n))}}function $(e,t){Y4.assert(!!e.refCount);var r=e["affectingLocations"];if(null!=r&&r.length){t&&l.add(e);for(var n of r)X(n,!0)}}function X(n,i){var a=k.get(n);if(a)i?a.resolutions++:a.files++;else{let r=n,e=!1,t;C.realpath&&(r=C.realpath(n),n!==r)&&(e=!0,t=k.get(r));var o,a=i?1:0,i=i?0:1;e&&t||(o={watcher:Zz(C.toPath(r))?C.watchAffectingFileLocation(r,(e,t)=>{null!=g&&g.addOrDeleteFile(e,C.toPath(r),t),function t(e,r){var n;let i=k.get(e);null!=i&&i.resolutions&&(d=d??new Set).add(e);null!=i&&i.files&&(u=u??new Set).add(e);null!=(n=null==i?void 0:i.symlinks)&&n.forEach(e=>t(e,r));null!=r&&r.delete(C.toPath(e))}(r,h.getPackageJsonInfoCache().getInternalMap()),C.scheduleInvalidateResolutionsOfFailedLookupLocations()}):Fq,resolutions:e?0:a,files:e?0:i,symlinks:void 0},k.set(r,o),e&&(t=o)),e&&(Y4.assert(!!t),o={watcher:{close:()=>{var e,t=k.get(r);null==(e=null==t?void 0:t.symlinks)||!e.delete(n)||t.symlinks.size||t.resolutions||t.files||(k.delete(r),t.watcher.close())}},resolutions:a,files:i,symlinks:void 0},k.set(n,o),(t.symlinks??(t.symlinks=new Set)).add(n))}}function Q(e,t){var r=C.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)?e.forEach(e=>$(e,!0)):e.forEach(G)}function Y(r,n,i,a,o){if(a&&C.realpath){var s=r;var c=n;var l=i;var _=a;var u=o;Y4.assert(!u);let e=F.get(_),t=A.get(_);void 0===e?(d=C.realpath(l),e=d!==l&&C.toPath(d)!==_,F.set(_,e),t?t.isSymlink!==e&&(t.dirPathToWatcher.forEach(e=>{j(t.isSymlink?_:c,!1),e.watcher=p()}),t.isSymlink=e):A.set(_,t={dirPathToWatcher:new Map,isSymlink:e})):(Y4.assertIsDefined(t),Y4.assert(e===t.isSymlink));var d=t.dirPathToWatcher.get(c);function p(){return e?Z(l,_,u):Z(s,c,u)}d?d.refCount++:(t.dirPathToWatcher.set(c,{watcher:p(),refCount:1}),e&&I.set(c,(I.get(c)??0)+1))}else Z(r,n,o)}function Z(e,t,r){let n=S.get(t);var i;return n?(Y4.assert(!!r==!!n.nonRecursive),n.refCount++):S.set(t,n={watcher:(i=t,C.watchDirectoryOfFailedLookupLocation(e,e=>{var t=C.toPath(e);g&&g.addOrDeleteFileOrDirectory(e,t),ne(t,i===t)},r?0:1)),refCount:1,nonRecursive:r}),n}function ee(e,t,r){var n,i,a,e=eq(e,C.toPath(e),T,E,P,m);return e&&({dirPath:e,packageDirPath:n}=e,e===E?t=!0:n&&C.realpath?((a=(i=A.get(n)).dirPathToWatcher.get(e)).refCount--,0===a.refCount&&(j(i.isSymlink?n:e,r),i.dirPathToWatcher.delete(e),i.isSymlink&&(0==(a=I.get(e)-1)?I.delete(e):I.set(e,a)),r)&&z(i,n)):j(e,r)),t}function L(e,t,r,n){if(Y4.checkDefined(e.files).delete(t),e.refCount--,!e.refCount){var t=r(e),{failedLookupLocations:t,affectingLocations:r,alternateResult:i}=(t&&t.resolvedFileName&&(r=C.toPath(t.resolvedFileName),null!=(t=_.get(r)))&&t.delete(e)&&!t.size&&_.delete(r),e);if(c.delete(e)){let e=!1;if(t)for(var a of t)e=ee(a,e,n);(e=i?ee(i,e,n):e)&&j(E,n)}else null!=r&&r.length&&l.delete(e);if(r)for(var o of r){var s=k.get(o);s.resolutions--,n&&U(s,o)}}}function j(e,t){var r=S.get(e);r.refCount--,t&&q(r,e)}function te(e,t,r,n){var i=e.get(t);i&&(i.forEach(e=>L(e,t,r,n)),e.delete(t))}function re(e,t){te(D,e,O,t),te(y,e,B,t)}function r(e,r){if(!e)return!1;let n=!1;return e.forEach(e=>{if(!e.isInvalidated&&r(e)){e.isInvalidated=n=!0;for(var t of Y4.checkDefined(e.files))(i=i??new Set).add(t),s=s||u3(t,wJ)}}),n}function ne(e,t){if(t)(f=f||new Set).add(e);else{t=Kz(e);if(!t)return;if(C.fileIsOpen(e=t))return;t=D3(e);if(W(e)||Fa(e)||W(t)||Fa(t))(n=n||new Set).add(e),(p=p||new Set).add(e);else{if(LB(C.getCurrentProgram(),e))return;if(w3(e,".map"))return;(n=n||new Set).add(e);t=gO(e,!0);t&&(p=p||new Set).add(t)}}C.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ie(){let r=h.getPackageJsonInfoCache().getInternalMap();r&&(n||p||f)&&r.forEach((e,t)=>se(t)?r.delete(t):void 0)}function ae(){var e;if(N)return u=void 0,ie(),(n||p||f||d)&&r(b,oe),n=void 0,p=void 0,f=void 0,!(d=void 0);let t=!1;return u&&(null!=(e=C.getCurrentProgram())&&e.getSourceFiles().forEach(e=>{X4(e.packageJsonLocations,e=>u.has(e))&&((i=i??new Set).add(e.path),t=!0)}),u=void 0),(n||p||f||d)&&(t=r(c,oe)||t,ie(),n=void 0,p=void 0,f=void 0,t=r(l,ce)||t,d=void 0),t}function oe(e){var t;return!!ce(e)||!!(n||p||f)&&((null==(t=e.failedLookupLocations)?void 0:t.some(e=>se(C.toPath(e))))||!!e.alternateResult&&se(C.toPath(e.alternateResult)))}function se(t){return(null==n?void 0:n.has(t))||gr((null==p?void 0:p.keys())||[],e=>!!f3(t,e)||void 0)||gr((null==f?void 0:f.keys())||[],e=>!(!(t.length>e.length&&f3(t,e))||!$i(e)&&t[e.length]!==qi)||void 0)}function ce(e){return!!d&&(null==(e=e.affectingLocations)?void 0:e.some(e=>d.has(e)))}function le(){Zp(M,$p)}function _e(r){return e=r,C.getCompilationSettings().typeRoots||Xz(C.toPath(e))?C.watchTypeRootsDirectory(r,e=>{var t=C.toPath(e),e=(g&&g.addOrDeleteFileOrDirectory(e,t),s=!0,C.onChangedAutomaticTypeDirectiveNames(),nq(r,C.toPath(r),E,P,m,e=>S.has(e)||I.has(e)));e&&ne(t,e===t)},1):Fq;var e}}var lq=Ji?{getCurrentDirectory:()=>Ji.getCurrentDirectory(),getNewLine:()=>Ji.newLine,getCanonicalFileName:ze(Ji.useCaseSensitiveFileNames)}:void 0;function _q(t,e){let r=t===Ji&&lq?lq:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:ze(t.useCaseSensitiveFileNames)};if(!e)return e=>t.write(XB(e,r));let n=new Array(1);return e=>{n[0]=e,t.write(cJ(n,r)+r.getNewLine()),n[0]=void 0}}function uq(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&TT(dq,t.code)&&(e.clearScreen(),1)}var dq=[eT.Starting_compilation_in_watch_mode.code,eT.File_change_detected_Starting_incremental_compilation.code];function pq(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function fq(i,e){return e?(e,t,r)=>{uq(i,e,r);r=`[${aJ(pq(i),"")}] `;r+=""+lJ(e.messageText,i.newLine)+(t+t),i.write(r)}:(e,t,r)=>{let n="";uq(i,e,r)||(n+=t),n=(n+=pq(i)+" - ")+lJ(e.messageText,i.newLine)+(r=t,TT(dq,e.code)?r+r:r),i.write(n)}}function mq(e,t,r,n,i,a){var o=i,e=(o.onUnRecoverableConfigFileDiagnostic=e=>zq(i,a,e),q9(e,t,o,r,n));return o.onUnRecoverableConfigFileDiagnostic=void 0,e}function gq(e){return wT(e,e=>1===e.category)}function hq(r){return NT(r,e=>1===e.category).map(e=>{if(void 0!==e.file)return""+e.file.fileName}).map(t=>{var e;return void 0!==t&&void 0!==(e=bT(r,e=>void 0!==e.file&&e.file.fileName===t))?(e=O3(e.file,e.start)["line"],{fileName:t,line:e+1}):void 0})}function yq(e){return 1===e?eT.Found_1_error_Watching_for_file_changes:eT.Found_0_errors_Watching_for_file_changes}function vq(e,t){var r=aJ(":"+e.line,"");return Xi(e.fileName)&&Xi(t)?wa(t,e.fileName,!1)+r:e.fileName+r}function bq(e,t,r,n){if(0===e)return"";var i=t.filter(e=>void 0!==e),a=i.map(e=>e.fileName+":"+e.line).filter((e,t,r)=>r.indexOf(e)===t),o=i[0]&&vq(i[0],n.getCurrentDirectory());let s;t=mD(...s=1===e?void 0!==t[0]?[eT.Found_1_error_in_0,o]:[eT.Found_1_error]:0===a.length?[eT.Found_0_errors,e]:1===a.length?[eT.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,o]:[eT.Found_0_errors_in_1_files,e,a.length]),o=1e===r.findIndex(e=>(null==e?void 0:e.fileName)===(null==t?void 0:t.fileName)));if(0===t.length)return"";let r=e=>Math.log(e)*Math.LOG10E+1,i=t.map(t=>[t,wT(e,e=>e.fileName===t.fileName)]),a=i.reduce((e,t)=>Math.max(e,t[1]||0),0),o=eT.Errors_Files.message,s=o.split(" ")[0].length,c=Math.max(s,r(a)),l=Math.max(r(a)-s,0),_="";return _+=" ".repeat(l)+o+"\n",i.forEach(e=>{var[e,t]=e,r=Math.log(t)*Math.LOG10E+1|0,r=r{t(e.fileName)})}function kq(t,r){var e,n,i=t.getFileIncludeReasons();let a=e=>Na(e,t.getCurrentDirectory(),t.getCanonicalFileName);for(n of t.getSourceFiles())r(""+Dq(n,a)),null!=(e=i.get(n.path))&&e.forEach(e=>r(" "+Nq(t,e,a).messageText)),null!=(e=Tq(n,a))&&e.forEach(e=>r(" "+e.messageText))}function Tq(e,t){let r,n;if(e.path!==e.resolvedPath&&(n=n??[]).push(gD(void 0,eT.File_is_output_of_project_reference_source_0,Dq(e.originalFileName,t))),e.redirectInfo&&(n=n??[]).push(gD(void 0,eT.File_redirects_to_file_0,Dq(e.redirectInfo.redirectTarget,t))),N5(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(n=n??[]).push(gD(void 0,eT.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,Dq(GT(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(n=n??[]).push(gD(void 0,e.packageJsonScope.contents.packageJsonContent.type?eT.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:eT.File_is_CommonJS_module_because_0_does_not_have_field_type,Dq(GT(e.packageJsonLocations),t))):null!=(r=e.packageJsonLocations)&&r.length&&(n=n??[]).push(gD(void 0,eT.File_is_CommonJS_module_because_package_json_was_not_found))}return n}function Cq(n,e){var i=n.getCompilerOptions().configFile;if(null!=(a=null==i?void 0:i.configFileSpecs)&&a.validatedFilesSpec){let t=n.getCanonicalFileName(e),r=D3(P3(i.fileName,n.getCurrentDirectory()));var a=ST(i.configFileSpecs.validatedFilesSpec,e=>n.getCanonicalFileName(P3(e,r))===t);return-1!==a?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]:void 0}}function wq(e,i){var a,o=e.getCompilerOptions().configFile;if(null!=(a=null==o?void 0:o.configFileSpecs)&&a.validatedIncludeSpecs){if(o.configFileSpecs.isDefaultIncludeSpec)return!0;let t=w3(i,".json"),r=D3(P3(o.fileName,e.getCurrentDirectory())),n=e.useCaseSensitiveFileNames();e=ST(null==(a=null==o?void 0:o.configFileSpecs)?void 0:a.validatedIncludeSpecs,e=>{return!(t&&!u3(e,".json")||!(e=dm(e,r,"files")))&&gm(`(${e})$`,n).test(i)});return-1!==e?o.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[e]:void 0}}function Nq(t,r,n){var e=t.getCompilerOptions();if(FJ(r)){var i=IJ(t,r),a=AJ(i)?i.file.text.substring(i.pos,i.end):`"${i.text}"`;let e;switch(Y4.assert(AJ(i)||3===r.kind,"Only synthetic references are imports"),r.kind){case 3:e=AJ(i)?i.packageId?eT.Imported_via_0_from_file_1_with_packageId_2:eT.Imported_via_0_from_file_1:i.text===D7?i.packageId?eT.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:eT.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:i.packageId?eT.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:eT.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:Y4.assert(!i.packageId),e=eT.Referenced_via_0_from_file_1;break;case 5:e=i.packageId?eT.Type_library_referenced_via_0_from_file_1_with_packageId_2:eT.Type_library_referenced_via_0_from_file_1;break;case 7:Y4.assert(!i.packageId),e=eT.Library_referenced_via_0_from_file_1;break;default:Y4.assertNever(r)}return gD(void 0,e,a,Dq(i.file,n),i.packageId&&vl(i.packageId))}switch(r.kind){case 0:return null!=(o=e.configFile)&&o.configFileSpecs?(o=P3(t.getRootFileNames()[r.index],t.getCurrentDirectory()),Cq(t,o)?gD(void 0,eT.Part_of_files_list_in_tsconfig_json):a3(o=wq(t,o))?gD(void 0,eT.Matched_by_include_pattern_0_in_1,o,Dq(e.configFile,n)):gD(void 0,o?eT.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:eT.Root_file_specified_for_compilation)):gD(void 0,eT.Root_file_specified_for_compilation);case 1:case 2:var o=2===r.kind,s=Y4.checkDefined(null==(s=t.getResolvedProjectReferences())?void 0:s[r.index]);return gD(void 0,e.outFile?o?eT.Output_from_referenced_project_0_included_because_1_specified:eT.Source_from_referenced_project_0_included_because_1_specified:o?eT.Output_from_referenced_project_0_included_because_module_is_specified_as_none:eT.Source_from_referenced_project_0_included_because_module_is_specified_as_none,Dq(s.sourceFile.fileName,n),e.outFile?"--outFile":"--out");case 8:return gD(void 0,...e.types?r.packageId?[eT.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,r.typeReference,vl(r.packageId)]:[eT.Entry_point_of_type_library_0_specified_in_compilerOptions,r.typeReference]:r.packageId?[eT.Entry_point_for_implicit_type_library_0_with_packageId_1,r.typeReference,vl(r.packageId)]:[eT.Entry_point_for_implicit_type_library_0,r.typeReference]);case 6:return void 0!==r.index?gD(void 0,eT.Library_0_specified_in_compilerOptions,e.lib[r.index]):gD(void 0,...(o=Vf(vD(e)))?[eT.Default_library_for_target_0,o]:[eT.Default_library]);default:Y4.assertNever(r)}}function Dq(e,t){e=a3(e)?e:e.fileName;return t?t(e):e}function Eq(e,t,r,n,i,a,o,s){var c=!!e.getCompilerOptions().listFilesOnly,l=e.getConfigFileParsingDiagnostics().slice(),_=l.length,_=(BT(l,e.getSyntacticDiagnostics(void 0,a)),l.length===_&&(BT(l,e.getOptionsDiagnostics(a)),c||(BT(l,e.getGlobalDiagnostics(a)),l.length===_&&BT(l,e.getSemanticDiagnostics(void 0,a)))),c?{emitSkipped:!0,diagnostics:H4}:e.emit(void 0,i,a,o,s)),{emittedFiles:c,diagnostics:i}=_,a=(BT(l,i),Jo(l));if(a.forEach(t),r){let t=e.getCurrentDirectory();G4(c,e=>{e=P3(e,t);r("TSFILE: "+e)}),Sq(e,r)}return n&&n(gq(a),hq(a)),{emitResult:_,diagnostics:a}}function Pq(e,t,r,n,i,a,o,s){var{emitResult:e,diagnostics:t}=Eq(e,t,r,n,i,a,o,s);return e.emitSkipped&&0Fq;function Iq(e=Ji,t){return{onWatchStatusChange:t||fq(e),watchFile:r3(e,e.watchFile)||Aq,watchDirectory:r3(e,e.watchDirectory)||Aq,setTimeout:r3(e,e.setTimeout)||yr,clearTimeout:r3(e,e.clearTimeout)||yr}}var Oq={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 Lq(t,e){var e=t.trace?e.extendedDiagnostics?2:e.diagnostics?1:0:0,r=0!=e?e=>t.trace(e):yr,e=RB(t,e,r);return e.writeLog=r,e}function jq(n,e,t=n){let r=n.useCaseSensitiveFileNames(),i={getSourceFile:VB((e,t)=>t?n.readFile(e,t):i.readFile(e),void 0),getDefaultLibLocation:r3(n,n.getDefaultLibLocation),getDefaultLibFileName:e=>n.getDefaultLibFileName(e),writeFile:WB((e,t,r)=>n.writeFile(e,t,r),e=>n.createDirectory(e),e=>n.directoryExists(e)),getCurrentDirectory:Ci(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:ze(r),getNewLine:()=>Cp(e()),fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:r3(n,n.trace),directoryExists:r3(t,t.directoryExists),getDirectories:r3(t,t.getDirectories),realpath:r3(n,n.realpath),getEnvironmentVariable:r3(n,n.getEnvironmentVariable)||(()=>""),createHash:r3(n,n.createHash),readDirectory:r3(n,n.readDirectory),storeSignatureInfo:n.storeSignatureInfo,jsDocParsingMode:n.jsDocParsingMode};return i}function Rq(e,n){if(n.match(wj)){let t=n.length,r=t;for(let e=t-1;0<=e;e--){var i=n.charCodeAt(e);switch(i){case 10:e&&13===n.charCodeAt(e-1)&&e--;case 13:break;default:if(i<127||!L3(i)){r=e;continue}}var a=n.substring(r,t);if(a.match(Nj)){n=n.substring(0,r);break}if(!a.match(Dj))break;t=r}}return(e.createHash||ai)(n)}function Mq(t){let r=t.getSourceFile;t.getSourceFile=(...e)=>{e=r.call(t,...e);return e&&(e.version=Rq(t,e.text)),e}}function Bq(a,e){let t=Ci(()=>D3(ua(a.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>a.useCaseSensitiveFileNames,getNewLine:()=>a.newLine,getCurrentDirectory:Ci(()=>a.getCurrentDirectory()),getDefaultLibLocation:t,getDefaultLibFileName:e=>E3(t(),zo(e)),fileExists:e=>a.fileExists(e),readFile:(e,t)=>a.readFile(e,t),directoryExists:e=>a.directoryExists(e),getDirectories:e=>a.getDirectories(e),readDirectory:(e,t,r,n,i)=>a.readDirectory(e,t,r,n,i),realpath:r3(a,a.realpath),getEnvironmentVariable:r3(a,a.getEnvironmentVariable),trace:e=>a.write(e+a.newLine),createDirectory:e=>a.createDirectory(e),writeFile:(e,t,r)=>a.writeFile(e,t,r),createHash:r3(a,a.createHash),createProgram:e||Wz,storeSignatureInfo:a.storeSignatureInfo,now:r3(a,a.now)}}function Jq(t=Ji,e,n,r){let i=e=>t.write(e+t.newLine),a=Bq(t,e);return re(a,Iq(t,r)),a.afterProgramCreate=e=>{let t=e.getCompilerOptions(),r=Cp(t);Eq(e,n,i,e=>a.onWatchStatusChange(mD(yq(e),e),r,t,e))},a}function zq(e,t,r){t(r),e.exit(1)}function qq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:n,system:i,createProgram:a,reportDiagnostic:o,reportWatchStatus:s}){let c=o||_q(i);o=Jq(i,a,c,s);return o.onUnRecoverableConfigFileDiagnostic=e=>zq(i,c,e),o.configFileName=e,o.optionsToExtend=t,o.watchOptionsToExtend=r,o.extraFileExtensions=n,o}function Uq({rootFiles:e,options:t,watchOptions:r,projectReferences:n,system:i,createProgram:a,reportDiagnostic:o,reportWatchStatus:s}){a=Jq(i,a,o||_q(i),s);return a.rootFiles=e,a.options=t,a.watchOptions=r,a.projectReferences=n,a}function Vq(e){let r=e.system||Ji,n=e.host||(e.host=Hq(e.options,r));var t=Kq(e),i=Pq(t,e.reportDiagnostic||_q(r),e=>n.trace&&n.trace(e),e.reportErrorSummary||e.options.pretty?(e,t)=>r.write(bq(e,t,r.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(t),i}function Wq(t,r){var n=GM(t);if(n){let e;if(r.getBuildInfo)e=r.getBuildInfo(n,t.configFilePath);else{t=r.readFile(n);if(!t)return;e=gB(n,t)}if(e&&e.version===L&&e.program)return zz(e,n,r)}}function Hq(e,t=Ji){let r=HB(e,void 0,t);return r.createHash=r3(t,t.createHash),r.storeSignatureInfo=t.storeSignatureInfo,Mq(r),KB(r,e=>pa(e,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Kq({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:n,host:i,createProgram:a}){return(a=a||Wz)(e,t,i=i||Hq(t),Wq(t,i),r,n)}function Gq(e,t,r,n,i,a,o,s){return i3(e)?Uq({rootFiles:e,options:t,watchOptions:s,projectReferences:o,system:r,createProgram:n,reportDiagnostic:i,reportWatchStatus:a}):qq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:o,extraFileExtensions:s,system:r,createProgram:n,reportDiagnostic:i,reportWatchStatus:a})}function $q(u){let d,o,p,e,t,r,l,s,_=u.extendedConfigCache,f=!1,m=new Map,g,h=!1,y=u.useCaseSensitiveFileNames(),v=u.getCurrentDirectory(),{configFileName:c,optionsToExtend:n={},watchOptionsToExtend:R,extraFileExtensions:a,createProgram:M}=u,{rootFiles:b,options:x,watchOptions:S,projectReferences:k}=u,B,T,J=!1,C=!1,w=void 0===c?void 0:wB(u,v,y),z=w||u,N=UJ(u,z),D=X(),{watchFile:E,watchDirectory:P,writeLog:F}=(c&&u.configFileParsingResult&&(se(u.configFileParsingResult),D=X()),ee(eT.Starting_compilation_in_watch_mode),c&&!u.configFileParsingResult&&(D=Cp(n),Y4.assert(!b),oe(),D=X()),Y4.assert(x),Y4.assert(b),Lq(u,x)),q=ze(y);F(`Current directory: ${v} CaseSensitiveFileNames: `+y);let i,A=(c&&(i=E(c,function(){Y4.assert(!!c),o=2,j()},2e3,S,Oq.ConfigFile)),jq(u,()=>x,z)),U=(Mq(A),A.getSourceFile),I=(A.getSourceFile=(e,...t)=>Y(e,L(e),...t),A.getSourceFileByPath=Y,A.getNewLine=()=>D,A.fileExists=function(e){var t=L(e);if(Q(m.get(t)))return!1;return z.fileExists(e)},A.onReleaseOldSourceFile=function(e,t,r){var n=m.get(e.resolvedPath);void 0!==n&&(Q(n)?(g=g||[]).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),m.delete(e.resolvedPath),r||I.removeResolutionsOfFile(e.path)))},A.onReleaseParsedCommandLine=function(e){var e=L(e),t=null==l?void 0:l.get(e);t&&(l.delete(e),t.watchedDirectories&&Zp(t.watchedDirectories,BB),null!=(t=t.watcher)&&t.close(),EB(e,s))},A.toPath=L,A.getCompilationSettings=()=>x,A.useSourceOfProjectReferenceRedirect=r3(u,u.useSourceOfProjectReferenceRedirect),A.watchDirectoryOfFailedLookupLocation=(e,t,r)=>P(e,t,r,S,Oq.FailedLookupLocations),A.watchAffectingFileLocation=(e,t)=>E(e,t,2e3,S,Oq.AffectingFileLocation),A.watchTypeRootsDirectory=(e,t,r)=>P(e,t,r,S,Oq.TypeRoots),A.getCachedDirectoryStructureHost=()=>w,A.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!u.setTimeout||!u.clearTimeout)return I.invalidateResolutionsOfFailedLookupLocations();var e=re();F("Scheduling invalidateFailedLookup"+(e?", Cancelled earlier one":"")),r=u.setTimeout(ne,250,"timerToInvalidateFailedLookupResolutions")},A.onInvalidatedResolution=j,A.onChangedAutomaticTypeDirectiveNames=j,A.fileIsOpen=vr,A.getCurrentProgram=O,A.writeLog=F,A.getParsedCommandLine=ce,cq(A,c?D3(P3(c,v)):v,!1));A.resolveModuleNameLiterals=r3(u,u.resolveModuleNameLiterals),A.resolveModuleNames=r3(u,u.resolveModuleNames),A.resolveModuleNameLiterals||A.resolveModuleNames||(A.resolveModuleNameLiterals=I.resolveModuleNameLiterals.bind(I)),A.resolveTypeReferenceDirectiveReferences=r3(u,u.resolveTypeReferenceDirectiveReferences),A.resolveTypeReferenceDirectives=r3(u,u.resolveTypeReferenceDirectives),A.resolveTypeReferenceDirectiveReferences||A.resolveTypeReferenceDirectives||(A.resolveTypeReferenceDirectiveReferences=I.resolveTypeReferenceDirectiveReferences.bind(I)),A.resolveLibrary=u.resolveLibrary?u.resolveLibrary.bind(u):I.resolveLibrary.bind(I),A.getModuleResolutionCache=u.resolveModuleNameLiterals||u.resolveModuleNames?r3(u,u.getModuleResolutionCache):()=>I.getModuleResolutionCache();let V=!!(u.resolveModuleNameLiterals||u.resolveTypeReferenceDirectiveReferences||u.resolveModuleNames||u.resolveTypeReferenceDirectives)?r3(u,u.hasInvalidatedResolutions)||ki:vr,W=u.resolveLibrary?r3(u,u.hasInvalidatedLibResolutions)||ki:vr;return d=Wq(x,A),$(),fe(),c&&ge(L(c),x,S,Oq.ExtendedConfigFile),c?{getCurrentProgram:G,getProgram:ae,close:H,getResolutionCache:K}:{getCurrentProgram:G,getProgram:ae,updateRootFileNames:function(e){Y4.assert(!c,"Cannot update root file names with config file watch mode"),b=e,j()},close:H,getResolutionCache:K};function H(){re(),I.clear(),Zp(m,e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}),i&&(i.close(),i=void 0),null!=_&&_.clear(),_=void 0,s&&(Zp(s,BB),s=void 0),e&&(Zp(e,BB),e=void 0),p&&(Zp(p,$p),p=void 0),l&&(Zp(l,e=>{var t;null!=(t=e.watcher)&&t.close(),e.watcher=void 0,e.watchedDirectories&&Zp(e.watchedDirectories,BB),e.watchedDirectories=void 0}),l=void 0),d=void 0}function K(){return I}function G(){return d}function O(){return d&&d.getProgramOrUndefined()}function $(){F("Synchronizing program"),Y4.assert(x),Y4.assert(b),re();var e=d,{hasInvalidatedResolutions:t,hasInvalidatedLibResolutions:r}=(h&&(D=X(),e)&&_l(e.getCompilerOptions(),x)&&I.onChangesAffectModuleResolution(),I.createHasInvalidatedResolutions(V,W));let{originalReadFile:n,originalFileExists:i,originalDirectoryExists:a,originalCreateDirectory:o,originalWriteFile:s,readFileWithCache:c}=KB(A,L);if(OJ(O(),b,x,e=>{var t=c,r=m.get(e);if(r)return r.version||(void 0!==(r=t(e))?Rq(A,r):void 0)},e=>A.fileExists(e),t,r,te,ce,k))C&&(f&&ee(eT.File_change_detected_Starting_incremental_compilation),d=M(void 0,void 0,A,d,T,k),C=!1);else{f&&ee(eT.File_change_detected_Starting_incremental_compilation);F("CreatingProgramWith::"),F(" roots: "+JSON.stringify(b)),F(" options: "+JSON.stringify(x)),k&&F(" projectReferences: "+JSON.stringify(k));var l=h||!O(),t=(h=!1,C=!1,I.startCachingPerDirectoryResolution(),A.hasInvalidatedResolutions=t,A.hasInvalidatedLibResolutions=r,A.hasChangedAutomaticTypeDirectiveNames=te,O());if(d=M(b,x,A,d,T,k),I.finishCachingPerDirectoryResolution(d.getProgram(),t),FB(d.getProgram(),p=p||new Map,de),l&&I.updateTypeRootsWatch(),g){for(var _ of g)p.has(_)||m.delete(_);g=void 0}}f=!1,u.afterProgramCreate&&e!==d&&u.afterProgramCreate(d),A.readFile=n,A.fileExists=i,A.directoryExists=a,A.createDirectory=o,A.writeFile=s,d}function X(){return Cp(x||n)}function L(e){return pa(e,v,q)}function Q(e){return"boolean"==typeof e}function Y(e,t,r,n,i){var a,o=m.get(t);if(!Q(o))return a="object"==typeof r?r.impliedNodeFormat:void 0,void 0===o||i||"boolean"==typeof o.version||o.sourceFile.impliedNodeFormat!==a?(i=U(e,r,n),o?i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=le(t,e,_e,250,S,Oq.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),m.set(t,!1)):i?(a=le(t,e,_e,250,S,Oq.SourceFile),m.set(t,{sourceFile:i,version:i.version,fileWatcher:a})):m.set(t,!1),i):o.sourceFile}function Z(e){var t=m.get(e);void 0!==t&&(Q(t)?m.set(e,{version:!1}):t.version=!1)}function ee(e){u.onWatchStatusChange&&u.onWatchStatusChange(mD(e),D,x||n)}function te(){return I.hasChangedAutomaticTypeDirectiveNames()}function re(){return!(!r||(u.clearTimeout(r),r=void 0))}function ne(){r=void 0,I.invalidateResolutionsOfFailedLookupLocations()&&j()}function j(){u.setTimeout&&u.clearTimeout&&(t&&u.clearTimeout(t),F("Scheduling update"),t=u.setTimeout(ie,250,"timerToUpdateProgram"))}function ie(){t=void 0,f=!0,ae()}function ae(){switch(o){case 1:null!=er&&er.logStartUpdateProgram("PartialConfigReload"),F("Reloading new file names and options"),Y4.assert(x),Y4.assert(c),o=0,MA(b=nI(x.configFile.configFileSpecs,P3(D3(c),v),x,N,a),P3(c,v),x.configFile.configFileSpecs,T,J)&&(C=!0),$();break;case 2:null!=er&&er.logStartUpdateProgram("FullConfigReload"),Y4.assert(c),F("Reloading config file: "+c),o=0,w&&w.clearCache(),oe(),h=!0,$(),fe(),ge(L(c),x,S,Oq.ExtendedConfigFile);break;default:null!=er&&er.logStartUpdateProgram("SynchronizeProgram"),$()}return null!=er&&er.logStopUpdateProgram("Done"),d}function oe(){Y4.assert(c),se(q9(c,n,N,_=_||new Map,R,a))}function se(e){b=e.fileNames,x=e.options,S=e.watchOptions,k=e.projectReferences,B=e.wildcardDirectories,T=LJ(e).slice(),J=RA(e.raw),C=!0}function ce(e){var t=L(e);let r=null==l?void 0:l.get(t);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!u.getParsedCommandLine)return F("Reloading new file names and options"),Y4.assert(x),n=nI(r.parsedCommandLine.options.configFile.configFileSpecs,P3(D3(e),v),x,N),r.parsedCommandLine={...r.parsedCommandLine,fileNames:n},r.updateLevel=void 0,r.parsedCommandLine}F("Loading config file: "+e);var n,i,a,o,s,c=u.getParsedCommandLine?u.getParsedCommandLine(e):(n=e,c=N.onUnRecoverableConfigFileDiagnostic,N.onUnRecoverableConfigFileDiagnostic=yr,n=q9(n,void 0,N,_=_||new Map,R),N.onUnRecoverableConfigFileDiagnostic=c,n);return r?(r.parsedCommandLine=c,r.updateLevel=void 0):(l=l||new Map).set(t,r={parsedCommandLine:c}),i=e,a=t,(o=r).watcher||(o.watcher=E(i,(e,t)=>{ue(i,a,t);t=null==l?void 0:l.get(a);t&&(t.updateLevel=2),I.removeResolutionsFromProjectReferenceRedirects(a),j()},2e3,(null==(s=o.parsedCommandLine)?void 0:s.watchOptions)||S,Oq.ConfigFileOfReferencedProject)),AB(o.watchedDirectories||(o.watchedDirectories=new Map),null==(s=o.parsedCommandLine)?void 0:s.wildcardDirectories,(n,e)=>{return P(n,e=>{var t=L(e),r=(w&&w.addOrDeleteFileOrDirectory(e,t),Z(t),null==l?void 0:l.get(a));null!=r&&r.parsedCommandLine&&!IB({watchedDirPath:L(n),fileOrDirectory:e,fileOrDirectoryPath:t,configFileName:i,options:r.parsedCommandLine.options,program:r.parsedCommandLine.fileNames,currentDirectory:v,useCaseSensitiveFileNames:y,writeLog:F,toPath:L})&&2!==r.updateLevel&&(r.updateLevel=1,j())},e,(null==(e=o.parsedCommandLine)?void 0:e.watchOptions)||S,Oq.WildcardDirectoryOfReferencedProject)}),ge(a,null==(s=o.parsedCommandLine)?void 0:s.options,(null==(s=o.parsedCommandLine)?void 0:s.watchOptions)||S,Oq.ExtendedConfigOfReferencedProject),c}function le(r,e,n,t,i,a){return E(e,(e,t)=>n(e,t,r),t,i,a)}function _e(e,t,r){ue(e,r,t),2===t&&m.has(r)&&I.invalidateResolutionOfFile(r),Z(r),j()}function ue(e,t,r){w&&w.addOrDeleteFile(e,t,r)}function de(e,t){return null!=l&&l.has(e)?Fq:le(e,t,pe,500,S,Oq.MissingFile)}function pe(e,t,r){ue(e,r,t),0===t&&p.has(r)&&(p.get(r).close(),p.delete(r),Z(r),j())}function fe(){AB(e=e||new Map,B,me)}function me(r,e){return P(r,e=>{Y4.assert(c),Y4.assert(x);var t=L(e);w&&w.addOrDeleteFileOrDirectory(e,t),Z(t),IB({watchedDirPath:L(r),fileOrDirectory:e,fileOrDirectoryPath:t,configFileName:c,extraFileExtensions:a,options:x,program:d||b,currentDirectory:v,useCaseSensitiveFileNames:y,writeLog:F,toPath:L})||2!==o&&(o=1,j())},e,S,Oq.WildcardDirectory)}function ge(e,t,i,a){DB(e,t,s=s||new Map,(r,n)=>E(r,(e,t)=>{ue(r,n,t),_&&PB(_,n,L);t=null==(t=s.get(n))?void 0:t.projects;null!=t&&t.size&&t.forEach(e=>{var t;c&&L(c)===e?o=2:((t=null==l?void 0:l.get(e))&&(t.updateLevel=2),I.removeResolutionsFromProjectReferenceRedirects(e)),j()})},2e3,i,a),L)}}var Xq=(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.OutOfDateBuildInfo=7]="OutOfDateBuildInfo",e[e.OutOfDateOptions=8]="OutOfDateOptions",e[e.OutOfDateRoots=9]="OutOfDateRoots",e[e.UpstreamOutOfDate=10]="UpstreamOutOfDate",e[e.UpstreamBlocked=11]="UpstreamBlocked",e[e.ComputingUpstream=12]="ComputingUpstream",e[e.TsVersionOutputOfDate=13]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=14]="UpToDateWithInputFileText",e[e.ContainerOnly=15]="ContainerOnly",e[e.ForceBuild=16]="ForceBuild",e))(Xq||{});function Qq(e){return w3(e,".json")?e:E3(e,"tsconfig.json")}var Yq=new Date(-864e13),Zq=new Date(864e13);function eU(t,r){{var n=()=>new Map,i=t.get(r);let e;return i||(e=n(),t.set(r,e)),i||e}}function tU(e){return e.now?e.now():new Date}function rU(e){return!!e&&!!e.buildOrder}function nU(e){return rU(e)?e.buildOrder:e}function iU(r,n){return e=>{var t=n?`[${aJ(pq(r),"")}] `:pq(r)+" - ";t+=""+lJ(e.messageText,r.newLine)+(r.newLine+r.newLine),r.write(t)}}function aU(r,e,t,n){e=Bq(r,e);return e.getModifiedTime=r.getModifiedTime?e=>r.getModifiedTime(e):le,e.setModifiedTime=r.setModifiedTime?(e,t)=>r.setModifiedTime(e,t):yr,e.deleteFile=r.deleteFile?e=>r.deleteFile(e):yr,e.reportDiagnostic=t||_q(r),e.reportSolutionBuilderStatus=n||iU(r),e.now=r3(r,r.now),e}function oU(e=Ji,t,r,n,i){e=aU(e,t,r,n);return e.reportErrorSummary=i,e}function sU(e=Ji,t,r,n,i){t=aU(e,t,r,n);return re(t,Iq(e,i)),t}function cU(e,t,r){return rV(!1,e,t,r)}function lU(e,t,r,n){return rV(!0,e,t,r,n)}function _U(e,t,r,n,i){let a=t;var o=function(t){let r={};return D4.forEach(e=>{Si(t,e.name)&&(r[e.name]=t[e.name])}),r}(n),s=jq(a,()=>f.projectCompilerOptions);Mq(s),s.getParsedCommandLine=e=>fU(f,e,dU(f,e)),s.resolveModuleNameLiterals=r3(a,a.resolveModuleNameLiterals),s.resolveTypeReferenceDirectiveReferences=r3(a,a.resolveTypeReferenceDirectiveReferences),s.resolveLibrary=r3(a,a.resolveLibrary),s.resolveModuleNames=r3(a,a.resolveModuleNames),s.resolveTypeReferenceDirectives=r3(a,a.resolveTypeReferenceDirectives),s.getModuleResolutionCache=r3(a,a.getModuleResolutionCache);let c,l;s.resolveModuleNameLiterals||s.resolveModuleNames||(c=QI(s.getCurrentDirectory(),s.getCanonicalFileName),s.resolveModuleNameLiterals=(e,t,r,n,i)=>kJ(e,t,r,n,i,a,c,vJ),s.getModuleResolutionCache=()=>c),s.resolveTypeReferenceDirectiveReferences||s.resolveTypeReferenceDirectives||(l=YI(s.getCurrentDirectory(),s.getCanonicalFileName,void 0,null==c?void 0:c.getPackageJsonInfoCache(),null==c?void 0:c.optionsToRedirectsKey),s.resolveTypeReferenceDirectiveReferences=(e,t,r,n,i)=>kJ(e,t,r,n,i,a,l,SJ));let _;s.resolveLibrary||(_=QI(s.getCurrentDirectory(),s.getCanonicalFileName,void 0,null==c?void 0:c.getPackageJsonInfoCache()),s.resolveLibrary=(e,t,r)=>eO(e,t,r,a,_)),s.getBuildInfo=(e,t)=>BU(f,e,dU(f,t),void 0);var{watchFile:u,watchDirectory:d,writeLog:p}=Lq(t,n);let f={host:a,hostWithWatch:t,parseConfigFileHost:UJ(a),write:r3(a,a.trace),options:n,baseCompilerOptions:o,rootNames:r,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:s,moduleResolutionCache:c,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:_,buildOrder:void 0,readFileWithCache:e=>a.readFile(e),projectCompilerOptions:o,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:u,watchDirectory:d,writeLog:p};return f}function uU(e,t){return pa(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function dU(e,t){var r=e["resolvedConfigFilePaths"],n=r.get(t);return void 0!==n||(n=uU(e,t),r.set(t,n)),n}function pU(e){return e.options}function fU(e,t,r){var n=e["configFileCache"],i=n.get(r);if(i)return pU(i)?i:void 0;x3("SolutionBuilder::beforeConfigFileParsing");let a;var{parseConfigFileHost:i,baseCompilerOptions:e,baseWatchOptions:o,extendedConfigCache:s,host:c}=e;let l;return c.getParsedCommandLine?(l=c.getParsedCommandLine(t))||(a=mD(eT.File_0_not_found,t)):(i.onUnRecoverableConfigFileDiagnostic=e=>a=e,l=q9(t,e,i,s,o),i.onUnRecoverableConfigFileDiagnostic=yr),n.set(r,l||a),x3("SolutionBuilder::afterConfigFileParsing"),S3("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),l}function mU(e,t){return Qq(la(e.compilerHost.getCurrentDirectory(),t))}function gU(o,e){let s=new Map,c=new Map,l=[],_,u;for(var t of e)!function t(e,r){let n=dU(o,e);if(c.has(n))return;if(s.has(n))return void(r||(u=u||[]).push(mD(eT.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,l.join("\r\n"))));s.set(n,!0);l.push(e);let i=fU(o,e,n);if(i&&i.projectReferences)for(var a of i.projectReferences){let e=mU(o,a.path);t(e,r||a.circular)}l.pop();c.set(n,!0);(_=_||[]).push(e)}(t);return u?{buildOrder:_||H4,circularDiagnostics:u}:_||H4}function hU(e){return e.buildOrder||function(t){let e=gU(t,t.rootNames.map(e=>mU(t,e))),r=(t.resolvedConfigFilePaths.clear(),new Set(nU(e).map(e=>dU(t,e)))),n={onDeleteValue:yr};ef(t.configFileCache,r,n),ef(t.projectStatus,r,n),ef(t.builderPrograms,r,n),ef(t.diagnostics,r,n),ef(t.projectPendingBuild,r,n),ef(t.projectErrorsReported,r,n),ef(t.buildInfoCache,r,n),ef(t.outputTimeStamps,r,n),ef(t.lastCachedPackageJsonLookups,r,n),t.watch&&(ef(t.allWatchedConfigFiles,r,{onDeleteValue:$p}),t.allWatchedExtendedConfigFiles.forEach(t=>{t.projects.forEach(e=>{r.has(e)||t.projects.delete(e)}),t.close()}),ef(t.allWatchedWildcardDirectories,r,{onDeleteValue:e=>e.forEach(BB)}),ef(t.allWatchedInputFiles,r,{onDeleteValue:e=>e.forEach($p)}),ef(t.allWatchedPackageJsonFiles,r,{onDeleteValue:e=>e.forEach($p)}));return t.buildOrder=e}(e)}function yU(r,e,t){var e=e&&mU(r,e),n=hU(r);if(rU(n))return n;if(e){let t=dU(r,e);if(-1===ST(n,e=>dU(r,e)===t))return}n=e?gU(r,[e]):n;return Y4.assert(!rU(n)),Y4.assert(!t||void 0!==e),Y4.assert(!t||n[n.length-1]===e),t?n.slice(0,n.length-1):n}function vU(t){t.cache&&bU(t);let{compilerHost:r,host:e}=t;var n=t.readFileWithCache;let i=r.getSourceFile;var{originalReadFile:a,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:_,readFileWithCache:u}=KB(e,e=>uU(t,e),(...e)=>i.call(r,...e));t.readFileWithCache=u,r.getSourceFile=_,t.cache={originalReadFile:a,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:n,originalGetSourceFile:i}}function bU(e){var t,r,n,i,a,o,s;e.cache&&({cache:t,host:r,compilerHost:n,extendedConfigCache:i,moduleResolutionCache:a,typeReferenceDirectiveResolutionCache:o,libraryResolutionCache:s}=e,r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null!=a&&a.clear(),null!=o&&o.clear(),null!=s&&s.clear(),e.cache=void 0)}function xU(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function SU({projectPendingBuild:e},t,r){var n=e.get(t);(void 0===n||nt.projectPendingBuild.set(dU(t,e),0)),e)&&e.throwIfCancellationRequested()}var TU=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(TU||{});function CU(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function wU(h,y,v,b,x,S){let k=0,T,C;return{kind:0,project:y,projectPath:v,buildOrder:S,getCompilerOptions:()=>x.options,getCurrentDirectory:()=>h.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>s(Ti),getProgram:()=>s(e=>e.getProgramOrUndefined()),getSourceFile:t=>s(e=>e.getSourceFile(t)),getSourceFiles:()=>e(e=>e.getSourceFiles()),getOptionsDiagnostics:t=>e(e=>e.getOptionsDiagnostics(t)),getGlobalDiagnostics:t=>e(e=>e.getGlobalDiagnostics(t)),getConfigFileParsingDiagnostics:()=>e(e=>e.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(t,r)=>e(e=>e.getSyntacticDiagnostics(t,r)),getAllDependencies:t=>e(e=>e.getAllDependencies(t)),getSemanticDiagnostics:(t,r)=>e(e=>e.getSemanticDiagnostics(t,r)),getSemanticDiagnosticsOfNextAffectedFile:(t,r)=>s(e=>e.getSemanticDiagnosticsOfNextAffectedFile&&e.getSemanticDiagnosticsOfNextAffectedFile(t,r)),emit:(r,n,i,a,o)=>r||a?s(e=>{var t;return e.emit(r,n,i,a,o||(null==(t=(e=h.host).getCustomTransformers)?void 0:t.call(e,y)))}):(c(2,i),4===k?E(n,i):3===k?D(n,i,o):void 0),done:function(e,t,r){return c(6,e,t,r),x3("SolutionBuilder::Projects built"),CU(h,v)}};function s(e){return c(0),T&&e(T)}function e(e){return s(e)||H4}function w(){var e,t,r;Y4.assert(void 0===T),h.options.dry?(iV(h,eT.A_non_dry_build_would_build_project_0,y),C=1,k=5):(h.options.verbose&&iV(h,eT.Building_project_0,y),0===x.fileNames.length?(sV(h,v,LJ(x)),C=0,k=5):({host:r,compilerHost:t}=h,h.projectCompilerOptions=x.options,null!=(e=h.moduleResolutionCache)&&e.update(x.options),null!=(e=h.typeReferenceDirectiveResolutionCache)&&e.update(x.options),T=r.createProgram(x.fileNames,x.options,t,function({options:e,builderPrograms:t,compilerHost:r},n,i){if(!e.force)return t.get(n)||Wq(i.options,r)}(h,v,x),LJ(x),x.projectReferences),h.watch&&(r=null==(e=h.moduleResolutionCache)?void 0:e.getPackageJsonInfoCache().getInternalMap(),h.lastCachedPackageJsonLookups.set(v,r&&new Set(ZT(r.values(),e=>h.host.realpath&&(MI(e)||e.directoryExists)?h.host.realpath(E3(e.packageDirectory,"package.json")):E3(e.packageDirectory,"package.json")))),h.builderPrograms.set(v,T)),k++))}function N(e,t,r){e.length?{buildResult:C,step:k}=AU(h,v,T,0,e,t,r):k++}function D(o,e,t){Y4.assertIsDefined(T),Y4.assert(3===k);var r=T.saveEmitState();let n;let s=[];t=Eq(T,e=>(n=n||[]).push(e),void 0,void 0,(e,t,r,n,i,a)=>s.push({name:e,text:t,writeByteOrderMark:r,data:a}),e,!1,t||(null==(t=(e=h.host).getCustomTransformers)?void 0:t.call(e,y))).emitResult;if(n)return T.restoreEmitState(r),{buildResult:C,step:k}=AU(h,v,T,0,n,32,"Declaration file"),{emitSkipped:!0,diagnostics:t.diagnostics};let{host:i,compilerHost:c}=h,l=null!=(e=T.hasChangedEmitSignature)&&e.call(T)?0:2,_=iN(),u=new Map,d=T.getCompilerOptions(),p=Mf(d),f,m;s.forEach(({name:e,text:t,writeByteOrderMark:r,data:n})=>{var i=uU(h,e),a=(u.set(uU(h,e),e),null!=n&&n.buildInfo&&RU(h,n.buildInfo,v,d,l),null!=n&&n.differsOnlyInMap?_i(h.host,e):void 0);jd(o?{writeFile:o}:c,_,e,t,r),null!=n&&n.differsOnlyInMap?h.host.setModifiedTime(e,a):!p&&h.watch&&(f=f||jU(h,v)).set(i,m=m||tU(h.host))});var r=_,e=u,a=s.length?s[0].name:uB(x,!i.useCaseSensitiveFileNames()),g=l;return(r=r.getDiagnostics()).length?{buildResult:C,step:k}=AU(h,v,T,0,r,64,"Emit"):(h.write&&e.forEach(e=>PU(h,x,e)),UU(h,x,v,eT.Updating_unchanged_output_timestamps_of_project_0,e),h.diagnostics.delete(v),h.projectStatus.set(v,{type:1,oldestOutputFileName:a}),FU(h,T),k=5,C=g),t}function E(o,e){Y4.assertIsDefined(T),Y4.assert(4===k);e=T.emitBuildInfo((e,t,r,n,i,a)=>{null!=a&&a.buildInfo&&RU(h,a.buildInfo,v,T.getCompilerOptions(),2),o?o(e,t,r,n,i,a):h.compilerHost.writeFile(e,t,r,n,i,a)},e);return e.diagnostics.length&&(oV(h,e.diagnostics),h.diagnostics.set(v,[...h.diagnostics.get(v),...e.diagnostics]),C&=64),e.emittedFiles&&h.write&&e.emittedFiles.forEach(e=>PU(h,x,e)),FU(h,T),k=5,e}function c(e,t,r,n){for(;k<=e&&k<6;){var i=k;switch(k){case 0:w();break;case 1:g=t,Y4.assertIsDefined(T),N([...T.getConfigFileParsingDiagnostics(),...T.getOptionsDiagnostics(g),...T.getGlobalDiagnostics(g),...T.getSyntacticDiagnostics(void 0,g)],8,"Syntactic");break;case 2:g=t,N(Y4.checkDefined(T).getSemanticDiagnostics(void 0,g),16,"Semantic");break;case 3:D(r,t,n);break;case 4:E(r,t);break;case 5:f=m=p=d=u=_=l=c=s=o=a=void 0;var a=h,o=y,s=v,c=b,l=x,_=S,u=Y4.checkDefined(C);if(!(124&u)&&l.options.composite)for(let e=c+1;e<_.length;e++){var d=_[e],p=dU(a,d);if(!a.projectPendingBuild.has(p)){d=fU(a,d,p);if(d&&d.projectReferences)for(var f of d.projectReferences){f=mU(a,f.path);if(dU(a,f)===s){var m=a.projectStatus.get(p);if(m)switch(m.type){case 1:if(2&u){m.type=2;break}case 14:case 2:2&u||a.projectStatus.set(p,{type:6,outOfDateOutputFileName:m.oldestOutputFileName,newerProjectName:o});break;case 11:dU(a,mU(a,m.upstreamProjectName))===s&&xU(a,p)}SU(a,p,0);break}}}}k++;break;default:k}Y4.assert(k>i)}var g}}function NU(t,r,n){if(t.projectPendingBuild.size&&!rU(r)){var{options:i,projectPendingBuild:a}=t;for(let e=0;eo.options,getCurrentDirectory:()=>i.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{VU(i,o,a),e=!1},done:()=>(e&&VU(i,o,a),x3("SolutionBuilder::Timestamps only updates"),CU(i,a))}}}function EU(e,t,r){r=NU(e,t,r);return r&&DU(e,r,t)}function PU({write:e},t,r){e&&t.options.listEmittedFiles&&e("TSFILE: "+r)}function FU(e,t){t&&(e.write&&Sq(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}function AU(e,t,r,n,i,a,o){var s=r&&!r.getCompilerOptions().outFile;return sV(e,t,i),e.projectStatus.set(t,{type:0,reason:o+" errors"}),s?{buildResult:a,step:4}:(FU(e,r),{buildResult:a,step:5})}function IU(e){return!!e.watcher}function OU(e,t){var r=uU(e,t),n=e.filesWatched.get(r);if(e.watch&&n){if(!IU(n))return n;if(n.modifiedTime)return n.modifiedTime}t=_i(e.host,t);return e.watch&&(n?n.modifiedTime=t:e.filesWatched.set(r,t)),t}function LU(i,e,t,r,n,a,o){let s=uU(i,e);var c=i.filesWatched.get(s);return c&&IU(c)?c.callbacks.push(t):(e=i.watchFile(e,(t,r,n)=>{var e=Y4.checkDefined(i.filesWatched.get(s));Y4.assert(IU(e)),e.modifiedTime=n,e.callbacks.forEach(e=>e(t,r,n))},r,n,a,o),i.filesWatched.set(s,{callbacks:[t],watcher:e,modifiedTime:c})),{close:()=>{var e=Y4.checkDefined(i.filesWatched.get(s));Y4.assert(IU(e)),1===e.callbacks.length?(i.filesWatched.delete(s),BB(e)):Je(e.callbacks,t)}}}function jU(t,r){if(t.watch){let e=t.outputTimeStamps.get(r);return e||t.outputTimeStamps.set(r,e=new Map),e}}function RU(e,t,r,n,i){var n=GM(n),a=MU(e,n,r),o=tU(e.host);a?(a.buildInfo=t,a.modifiedTime=o,2&i||(a.latestChangedDtsTime=o)):e.buildInfoCache.set(r,{path:uU(e,n),buildInfo:t,modifiedTime:o,latestChangedDtsTime:2&i?void 0:o})}function MU(e,t,r){t=uU(e,t),e=e.buildInfoCache.get(r);return(null==e?void 0:e.path)===t?e:void 0}function BU(e,t,r,n){var i=uU(e,t),a=e.buildInfoCache.get(r);return void 0!==a&&a.path===i?a.buildInfo||void 0:(t=(a=e.readFileWithCache(t))?gB(t,a):void 0,e.buildInfoCache.set(r,{path:i,buildInfo:t||!1,modifiedTime:n||li}),t)}function JU(e,t,r,n){if(rv&&(y=l,v=S),m&&x.add(T)}if(m){var C=j7((g=g||qz(m,u,_)).roots,(e,t)=>x.has(t)?void 0:t);if(C)return{type:9,buildInfoFile:u,inputFile:C}}if(!u){var w,h=lB(e,!_.useCaseSensitiveFileNames()),N=jU(r,t);for(w of h){var D=uU(r,w);let e=null==N?void 0:N.get(D);if(e||(e=_i(r.host,w),null!=N&&N.set(D,e)),e===li)return{type:3,missingOutputFileName:w};if(eJU(r,e,p,d))||(h=r.lastCachedPackageJsonLookups.get(t))&&R7(h,e=>JU(r,e,p,d))||{type:P?2:b?14:1,newestInputFileTime:v,newestInputFileName:y,oldestOutputFileName:d}}function qU(e,t,r){if(void 0===t)return{type:0,reason:"File deleted mid-build"};var n=e.projectStatus.get(r);if(void 0!==n)return n;x3("SolutionBuilder::beforeUpToDateCheck");n=zU(e,t,r);return x3("SolutionBuilder::afterUpToDateCheck"),S3("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,n),n}function UU(i,a,e,o,s){if(!a.options.noEmit){let t;var c=GM(a.options);if(c)null!=s&&s.has(uU(i,c))||(i.options.verbose&&iV(i,o,a.options.configFilePath),i.host.setModifiedTime(c,t=tU(i.host)),MU(i,c,e).modifiedTime=t),i.outputTimeStamps.delete(e);else{var l=i["host"],c=lB(a,!l.useCaseSensitiveFileNames());let r=jU(i,e),n=r?new Set:void 0;if(!s||c.length!==s.size){let e=!!i.options.verbose;for(var _ of c){var u=uU(i,_);null!=s&&s.has(u)||(e&&(e=!1,iV(i,o,a.options.configFilePath)),l.setModifiedTime(_,t=t||tU(i.host)),r&&(r.set(u,t),n.add(u)))}}null!=r&&r.forEach((e,t)=>{null!=s&&s.has(t)||n.has(t)||r.delete(t)})}}}function VU(e,t,r){if(e.options.dry)return iV(e,eT.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);UU(e,t,r,eT.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:uB(t,!e.host.useCaseSensitiveFileNames())})}function WU(e,t,r,n,i,a){x3("SolutionBuilder::beforeBuild");e=function(t,e,r,n,i,a){var o=yU(t,e,a);if(!o)return 3;kU(t,r);let s=!0,c=0;for(;;){var l=EU(t,o,s);if(!l)break;s=!1,l.done(r,n,null==i?void 0:i(l.project)),t.diagnostics.has(l.projectPath)||c++}return bU(t),lV(t,o),function(e,t){if(e.watchAllProjectsPending){x3("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(var r of nU(t)){var n=dU(e,r),i=fU(e,r,n);QU(e,r,n,i),YU(e,n,i),i&&(ZU(e,r,n,i),eV(e,r,n,i),tV(e,r,n,i))}x3("SolutionBuilder::afterWatcherCreation"),S3("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}(t,o),rU(o)?4:o.some(e=>t.diagnostics.has(dU(t,e)))?c?2:1:0}(e,t,r,n,i,a);return x3("SolutionBuilder::afterBuild"),S3("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),e}function HU(e,t,r){x3("SolutionBuilder::beforeClean");e=function(t,e,r){e=yU(t,e,r);if(!e)return 3;if(rU(e))return oV(t,e.circularDiagnostics),4;var{options:r,host:n}=t,i=r.dry?[]:void 0;for(var a of e){var o=dU(t,a),a=fU(t,a,o);if(void 0===a)cV(t,o);else{var s=lB(a,!n.useCaseSensitiveFileNames());if(s.length){var c,l=new Set(a.fileNames.map(e=>uU(t,e)));for(c of s)l.has(uU(t,c))||n.fileExists(c)&&(i?i.push(c):(n.deleteFile(c),KU(t,o,0)))}}}i&&iV(t,eT.A_non_dry_build_would_delete_the_following_files_Colon_0,i.map(e=>`\r + * `+e).join(""));return 0}(e,t,r);return x3("SolutionBuilder::afterClean"),S3("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),e}function KU(e,t,r){2===(r=e.host.getParsedCommandLine&&1===r?2:r)&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,xU(e,t),SU(e,t,r),vU(e)}function GU(e,t,r){e.reportFileChangeDetected=!0,KU(e,t,r),$U(e,250,!0)}function $U(e,t,r){var n=e["hostWithWatch"];n.setTimeout&&n.clearTimeout&&(e.timerToBuildInvalidatedProject&&n.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=n.setTimeout(XU,t,"timerToBuildInvalidatedProject",e,r))}function XU(e,t,r){x3("SolutionBuilder::beforeBuild");r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),aV(e,eT.File_change_detected_Starting_incremental_compilation));let r=0,n=hU(e),i=EU(e,n,!1);if(i)for(i.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;var a=NU(e,n,!1);if(!a)break;if(1!==a.kind&&(t||5===r))return void $U(e,100,!1);DU(e,a,n).done(),1!==a.kind&&r++}return bU(e),n}(t,r);x3("SolutionBuilder::afterBuild"),S3("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&lV(t,r)}function QU(e,t,r,n){e.watch&&!e.allWatchedConfigFiles.has(r)&&e.allWatchedConfigFiles.set(r,LU(e,t,()=>GU(e,r,2),2e3,null==n?void 0:n.watchOptions,Oq.ConfigFile,t))}function YU(r,e,n){DB(e,null==n?void 0:n.options,r.allWatchedExtendedConfigFiles,(e,t)=>LU(r,e,()=>{var e;return null==(e=r.allWatchedExtendedConfigFiles.get(t))?void 0:e.projects.forEach(e=>GU(r,e,2))},2e3,null==n?void 0:n.watchOptions,Oq.ExtendedConfigFile),e=>uU(r,e))}function ZU(r,n,i,a){r.watch&&AB(eU(r.allWatchedWildcardDirectories,i),a.wildcardDirectories,(t,e)=>r.watchDirectory(t,e=>{IB({watchedDirPath:uU(r,t),fileOrDirectory:e,fileOrDirectoryPath:uU(r,e),configFileName:n,currentDirectory:r.compilerHost.getCurrentDirectory(),options:a.options,program:r.builderPrograms.get(i)||(null==(e=(e=(e=r).configFileCache.get(i))&&pU(e)?e:void 0)?void 0:e.fileNames),useCaseSensitiveFileNames:r.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:e=>r.writeLog(e),toPath:e=>uU(r,e)})||GU(r,i,1)},e,null==a?void 0:a.watchOptions,Oq.WildcardDirectory,n))}function eV(t,r,n,i){t.watch&&tf(eU(t.allWatchedInputFiles,n),new Set(i.fileNames),{createNewValue:e=>LU(t,e,()=>GU(t,n,0),250,null==i?void 0:i.watchOptions,Oq.SourceFile,r),onDeleteValue:$p})}function tV(t,r,n,i){t.watch&&t.lastCachedPackageJsonLookups&&tf(eU(t.allWatchedPackageJsonFiles,n),t.lastCachedPackageJsonLookups.get(n),{createNewValue:e=>LU(t,e,()=>GU(t,n,0),2e3,null==i?void 0:i.watchOptions,Oq.PackageJson,r),onDeleteValue:$p})}function rV(e,t,r,n,i){let a=_U(e,t,r,n,i);return{build:(e,t,r,n)=>WU(a,e,t,r,n),clean:e=>HU(a,e),buildReferences:(e,t,r,n)=>WU(a,e,t,r,n,!0),cleanReferences:e=>HU(a,e,!0),getNextInvalidatedProject:e=>(kU(a,e),EU(a,hU(a),!1)),getBuildOrder:()=>hU(a),getUpToDateStatusOfProject:e=>{var e=mU(a,e),t=dU(a,e);return qU(a,fU(a,e,t),t)},invalidateProject:(e,t)=>KU(a,e,t||0),close:()=>{var e;Zp((e=a).allWatchedConfigFiles,$p),Zp(e.allWatchedExtendedConfigFiles,BB),Zp(e.allWatchedWildcardDirectories,e=>Zp(e,BB)),Zp(e.allWatchedInputFiles,e=>Zp(e,$p)),Zp(e.allWatchedPackageJsonFiles,e=>Zp(e,$p))}}}function nV(e,t){return Na(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function iV(e,t,...r){e.host.reportSolutionBuilderStatus(mD(t,...r))}function aV(e,t,...r){var n,i;null!=(i=(n=e.hostWithWatch).onWatchStatusChange)&&i.call(n,mD(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function oV({host:t},e){e.forEach(e=>t.reportDiagnostic(e))}function sV(e,t,r){oV(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function cV(e,t){sV(e,t,[e.configFileCache.get(t)])}function lV(i,e){if(i.needsSummary){i.needsSummary=!1;var a=i.watch||!!i.host.reportErrorSummary;let t=i["diagnostics"],r=0,n=[];rU(e)?(_V(i,e.buildOrder),oV(i,e.circularDiagnostics),a&&(r+=gq(e.circularDiagnostics)),a&&(n=[...n,...hq(e.circularDiagnostics)])):(e.forEach(e=>{e=dU(i,e);i.projectErrorsReported.has(e)||oV(i,t.get(e)||H4)}),a&&t.forEach(e=>r+=gq(e)),a&&t.forEach(e=>[...n,...hq(e)])),i.watch?aV(i,yq(r),r):i.host.reportErrorSummary&&i.host.reportErrorSummary(r,n)}}function _V(t,e){t.options.verbose&&iV(t,eT.Projects_in_this_build_Colon_0,e.map(e=>"\r\n * "+nV(t,e)).join(""))}function uV(e,t,r){if(e.options.verbose){var n=e,i=t,a=r;switch(a.type){case 5:return void iV(n,eT.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,nV(n,i),nV(n,a.outOfDateOutputFileName),nV(n,a.newerInputFileName));case 6:return void iV(n,eT.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,nV(n,i),nV(n,a.outOfDateOutputFileName),nV(n,a.newerProjectName));case 3:return void iV(n,eT.Project_0_is_out_of_date_because_output_file_1_does_not_exist,nV(n,i),nV(n,a.missingOutputFileName));case 4:return void iV(n,eT.Project_0_is_out_of_date_because_there_was_error_reading_file_1,nV(n,i),nV(n,a.fileName));case 7:return void iV(n,eT.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,nV(n,i),nV(n,a.buildInfoFile));case 8:return void iV(n,eT.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,nV(n,i),nV(n,a.buildInfoFile));case 9:return void iV(n,eT.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,nV(n,i),nV(n,a.buildInfoFile),nV(n,a.inputFile));case 1:if(void 0!==a.newestInputFileTime)return void iV(n,eT.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,nV(n,i),nV(n,a.newestInputFileName||""),nV(n,a.oldestOutputFileName||""));break;case 2:return void iV(n,eT.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,nV(n,i));case 14:return void iV(n,eT.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,nV(n,i));case 10:return void iV(n,eT.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,nV(n,i),nV(n,a.upstreamProjectName));case 11:return void iV(n,a.upstreamProjectBlocked?eT.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:eT.Project_0_can_t_be_built_because_its_dependency_1_has_errors,nV(n,i),nV(n,a.upstreamProjectName));case 0:return void iV(n,eT.Failed_to_parse_file_0_Colon_1,nV(n,i),a.reason);case 13:return void iV(n,eT.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,nV(n,i),a.version,L);case 16:iV(n,eT.Project_0_is_being_forcibly_rebuilt,nV(n,i))}}}var dV=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(dV||{});function pV(r){(e=new Map).set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0);let n=e;var e;return G4(r.getSourceFiles(),e=>{var t=function(e,t){{if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions"}e=t.path;return N3(e,xm)?"TypeScript":N3(e,Cm)?"JavaScript":w3(e,".json")?"JSON":"Other"}(r,e),e=ro(e).length;n.set(t,n.get(t)+e)}),n}function fV(e,t,r){return gV(e,r)?_q(e,!0):t}function mV(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function gV(e,t){return t&&void 0!==t.pretty?t.pretty:mV(e)}function hV(e){return e.options.all?E(A4,(e,t)=>be(e.name,t.name)):NT(A4.slice(),e=>!!e.showInSimplifiedHelpView)}function yV(e){e.write(z9(eT.Version_0,L)+e.newLine)}function vV(e){if(!mV(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};let t=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),r=e.getEnvironmentVariable("WT_SESSION"),n=e.getEnvironmentVariable("TERM_PROGRAM")&&"vscode"===e.getEnvironmentVariable("TERM_PROGRAM");let i="truecolor"===e.getEnvironmentVariable("COLORTERM")||"xterm-256color"===e.getEnvironmentVariable("TERM");function a(e){return`${e}`}return{bold:function(e){return`${e}`},blue:function(e){return!t||r||n?`${e}`:a(e)},brightWhite:a,blueBackground:function(e){return i?`${e}`:`${e}`}}}function bV(e){return"--"+e.name+(e.shortName?", -"+e.shortName:"")}function xV(t,r,n,i){var a=[];let u=vV(t);var o,s=bV(r),c=function(e){if("object"!==e.type)return{valueType:function(e){switch(Y4.assert("listOrElement"!==e.type),e.type){case"string":case"number":case"boolean":return z9(eT.type_Colon);case"list":return z9(eT.one_or_more_Colon);default:return z9(eT.one_of_Colon)}}(e),possibleValues:function e(i){let t;switch(i.type){case"string":case"number":case"boolean":t=i.type;break;case"list":case"listOrElement":t=e(i.element);break;case"object":t="";break;default:let n={};return i.type.forEach((e,t)=>{var r;null!=(r=i.deprecatedKeys)&&r.has(t)||(n[e]||(n[e]=[])).push(t)}),Object.entries(n).map(([,e])=>e.join("/")).join(", ")}return t}(e)}}(r),l="object"==typeof r.defaultValueDescription?z9(r.defaultValueDescription):(o=r.defaultValueDescription,l=("list"===r.type||"listOrElement"===r.type?r.element:r).type,void 0!==o&&"object"==typeof l?ZT(l.entries()).filter(([,e])=>e===o).map(([e])=>e).join("/"):String(o)),_=(null==(_=t.getWidthOfTerminal)?void 0:_.call(t))??0;if(80<=_){let e="";r.description&&(e=z9(r.description)),a.push(...p(s,e,n,i,_,!0),t.newLine),d(c,r)&&(c&&a.push(...p(c.valueType,c.possibleValues,n,i,_,!1),t.newLine),l)&&a.push(...p(z9(eT.default_Colon),l,n,i,_,!1),t.newLine)}else a.push(u.blue(s),t.newLine),r.description&&(n=z9(r.description),a.push(n)),a.push(t.newLine),d(c,r)&&(c&&a.push(c.valueType+" "+c.possibleValues),l&&(c&&a.push(t.newLine),i=z9(eT.default_Colon),a.push(i+" "+l)),a.push(t.newLine));return a.push(t.newLine),a;function d(e,t){var r=t.defaultValueDescription;return!(t.category===eT.Command_line_Options||TT(["string"],null==e?void 0:e.possibleValues)&&TT([void 0,"false","n/a"],r))}function p(t,e,r,n,i,a){var o=[];let s=!0,c=e;for(var l=i-n;0n?r:n}var i,a=r+2,o=a+2;let s=[];for(i of t){var c=xV(e,i,a,o);s=[...s,...c]}return s[s.length-2]!==e.newLine&&s.push(e.newLine),s}function kV(r,e,t,n,i,a){let o=[];if(o.push(vV(r).bold(e)+r.newLine+r.newLine),i&&o.push(i+r.newLine+r.newLine),n){var s,c,l,_=new Map;for(s of t)s.category&&(c=z9(s.category),(l=_.get(c)??[]).push(s),_.set(c,l));_.forEach((e,t)=>{o.push("### "+t+r.newLine+r.newLine),o=[...o,...SV(r,e)]})}else o=[...o,...SV(r,t)];return a&&o.push(a+r.newLine+r.newLine),o}function TV(e,t){var r;for(r of[...[...CV(e,z9(eT.tsc_Colon_The_TypeScript_Compiler)+" - "+z9(eT.Version_0,L))],...kV(e,z9(eT.BUILD_OPTIONS),t,!1,fD(eT.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"))])e.write(r)}function CV(e,t){var r=vV(e),n=[],i=(null==(i=e.getWidthOfTerminal)?void 0:i.call(e))??0,a=r.blueBackground("".padStart(5)),r=r.blueBackground(r.brightWhite("TS ".padStart(5)));return i>=t.length+5?(n.push(t.padEnd(i=(120e.isCommandLineOnly||e.category===eT.Command_line_Options));var c,a=a.filter(e=>!TT(t,e));for(c of i=[...i,...kV(s,z9(eT.COMMAND_LINE_FLAGS),t,!1,void 0,void 0),...kV(s,z9(eT.COMMON_COMPILER_OPTIONS),a,!1,void 0,fD(eT.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))])s.write(c);function l(e,t){var r;for(r of"string"==typeof e?[e]:e)i.push(" "+n.blue(r)+s.newLine);i.push(" "+z9(t)+s.newLine+s.newLine)}}}function NV(t,e,r){let n=_q(t);if(r.options.build)return n(mD(eT.Option_build_must_be_the_first_command_line_argument)),t.exit(1);let i;if(r.options.locale&&us(r.options.locale,t,r.errors),0t.fileExists(e)));if(0===r.fileNames.length&&!i)return r.options.showConfig?n(mD(eT.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,ua(t.getCurrentDirectory()))):(yV(t),wV(t,r)),t.exit(1);let u=t.getCurrentDirectory();s=xA(r.options,e=>P3(e,u));if(i){var d,p,f,m,g,h,y,o=new Map,v=mq(i,s,o,r.watchOptions,t,n);if(s.showConfig)return 0!==v.errors.length?(n=fV(t,n,v.options),v.errors.forEach(n),t.exit(1)):(t.write(JSON.stringify(pA(v,i,t),null,4)+t.newLine),t.exit(0));if(n=fV(t,n,v.options),Gp(v.options)){if(!PV(t,n))return d=t,p=e,f=n,m=v,g=s,h=r.watchOptions,y=o,g=qq({configFileName:m.options.configFilePath,optionsToExtend:g,watchOptionsToExtend:h,system:d,reportDiagnostic:f,reportWatchStatus:BV(d,m.options)}),MV(d,p,g),g.configFileParsingResult=m,g.extendedConfigCache=y,$q(g)}else(Mf(v.options)?LV:OV)(t,e,n,v)}else{if(s.showConfig)return t.write(JSON.stringify(pA(r,E3(u,"tsconfig.json"),t),null,4)+t.newLine),t.exit(0);if(n=fV(t,n,s),Gp(s)){if(!PV(t,n))return h=t,f=e,d=n,p=r.fileNames,m=r.watchOptions,p=Uq({rootFiles:p,options:s,watchOptions:m,system:h,reportDiagnostic:d,reportWatchStatus:BV(h,s)}),MV(h,f,p),$q(p)}else(Mf(s)?LV:OV)(t,e,n,{...r,options:s})}}function DV(e){return 0AV(i,a,e,t,r,n))}let e=L9(o,e=>i.readFile(e));if(!e.options.generateCpuProfile||!i.enableCPUProfiler)return NV(i,a,e);i.enableCPUProfiler(e.options.generateCpuProfile,()=>NV(i,a,e))}function PV(e,t){return(!e.watchFile||!e.watchDirectory)&&(t(mD(eT.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),1)}var FV=2;function AV(e,t,r,n,c,l){var _=fV(e,_q(e),r);if(r.locale&&us(r.locale,e,l),0{null!=a&&a(e,t,r,n),!o||e.code!==eT.Found_0_errors_Watching_for_file_changes.code&&e.code!==eT.Found_1_error_Watching_for_file_changes.code||zV(s,i)},lU(l,c,r,n));return s.build(),zV(s,i),o=!0,s}l=oU(e,void 0,_,iU(e,gV(e,r)),IV(e,r)),l.jsDocParsingMode=FV,n=JV(e,r),jV(e,t,l,n),_=cU(l,c,r),t=r.clean?_.clean():_.build();return zV(_,n),Or(),e.exit(t)}function IV(r,e){return gV(r,e)?(e,t)=>r.write(bq(e,t,r.newLine,r)):void 0}function OV(t,e,r,n){var{fileNames:i,options:a,projectReferences:o}=n,s=HB(a,void 0,t);s.jsDocParsingMode=FV;let c=s.getCurrentDirectory(),l=ze(s.useCaseSensitiveFileNames());KB(s,e=>pa(e,c,l)),VV(t,a,!1);i=BJ({rootNames:i,options:a,projectReferences:o,host:s,configFileParsingDiagnostics:LJ(n)}),o=Pq(i,r,e=>t.write(e+t.newLine),IV(t,a));HV(t,i,void 0),e(i),t.exit(o)}function LV(t,r,e,n){var{options:i,fileNames:a,projectReferences:o}=n,s=(VV(t,i,!1),Hq(i,t)),s=(s.jsDocParsingMode=FV,Vq({host:s,system:t,rootNames:a,options:i,configFileParsingDiagnostics:LJ(n),projectReferences:o,reportDiagnostic:e,reportErrorSummary:IV(t,i),afterProgramEmitAndDiagnostics:e=>{HV(t,e.getProgram(),void 0),r(e)}}));t.exit(s)}function jV(t,r,e,n){RV(t,e,!0),e.afterProgramEmitAndDiagnostics=e=>{HV(t,e.getProgram(),n),r(e)}}function RV(o,e,s){let c=e.createProgram;e.createProgram=(e,t,r,n,i,a)=>(Y4.assert(void 0!==e||void 0===t&&!!n),void 0!==t&&VV(o,t,s),c(e,t,r,n,i,a))}function MV(t,r,e){e.jsDocParsingMode=FV,RV(t,e,!1);let n=e.afterProgramCreate;e.afterProgramCreate=e=>{n(e),HV(t,e.getProgram(),void 0),r(e)}}function BV(e,t){return fq(e,gV(e,t))}function JV(e,t){if(e===Ji&&t.extendedDiagnostics){Nr();{let r;return{addAggregateStatistic:function(e){var t=null==r?void 0:r.get(e.name);t?2===t.type?t.value=Math.max(t.value,e.value):t.value+=e.value:(r=r??new Map).set(e.name,e)},forEachAggregateStatistics:function(e){null!=r&&r.forEach(e)},clear:function(){r=void 0}}}}}function zV(e,t){if(t)if(ar){let r=[];function n(e){var t=_r(e);t&&r.push({name:i(e),value:t,type:1})}function i(e){return e.replace("SolutionBuilder::","")}r.push({name:"Projects in scope",value:nU(e.getBuildOrder()).length,type:1}),n("SolutionBuilder::Projects built"),n("SolutionBuilder::Timestamps only updates"),n("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(e=>{e.name="Aggregate "+e.name,r.push(e)}),dr((e,t)=>{WV(e)&&r.push({name:i(e)+" time",value:t,type:0})}),Dr(),Nr(),t.clear(),KV(Ji,r)}else Ji.write(eT.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 qV(e,t){return e===Ji&&(t.diagnostics||t.extendedDiagnostics)}function UV(e,t){return e===Ji&&t.generateTrace}function VV(e,t,r){qV(e,t)&&Nr(e),UV(e,t)&&Ir(r?"build":"project",t.generateTrace,t.configFilePath)}function WV(e){return f3(e,"SolutionBuilder::")}function HV(e,t,r){var n=t.getCompilerOptions();UV(e,n)&&null!=Z4&&Z4.stopTracing();let i;if(qV(e,n)){i=[];var a=e.getMemoryUsage?e.getMemoryUsage():-1,o=(p("Files",t.getSourceFiles().length),pV(t));if(n.extendedDiagnostics)for(var[s,c]of o.entries())p("Lines of "+s,c);else p("Lines",m(o.values(),(e,t)=>e+t,0));p("Identifiers",t.getIdentifierCount()),p("Symbols",t.getSymbolCount()),p("Types",t.getTypeCount()),p("Instantiations",t.getInstantiationCount()),0<=a&&d({name:"Memory used",value:a,type:2},!0);var o=ar,a=o?ur("Program"):0,l=o?ur("Bind"):0,_=o?ur("Check"):0,u=o?ur("Emit"):0;n.extendedDiagnostics?(p("Assignability cache size",(n=t.getRelationCacheSizes()).assignable),p("Identity cache size",n.identity),p("Subtype cache size",n.subtype),p("Strict subtype cache size",n.strictSubtype),o&&dr((e,t)=>{WV(e)||f(e+" time",t,!0)})):o&&(f("I/O read",ur("I/O Read"),!0),f("I/O write",ur("I/O Write"),!0),f("Parse time",a,!0),f("Bind time",l,!0),f("Check time",_,!0),f("Emit time",u,!0)),o&&f("Total time",a+l+_+u,!1),KV(e,i),o?r?(dr(e=>{WV(e)||fr(e)}),pr(e=>{WV(e)||Cr(e)})):Dr():e.write(eT.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 d(e,t){i.push(e),t&&null!=r&&r.addAggregateStatistic(e)}function p(e,t){d({name:e,value:t,type:1},!0)}function f(e,t,r){d({name:e,value:t,type:0},r)}}function KV(e,t){let r=0,n=0;for(var i of t){i.name.length>r&&(r=i.name.length);i=GV(i);i.length>n&&(n=i.length)}for(var a of t)e.write((a.name+":").padEnd(r+2)+GV(a).toString().padStart(n)+e.newLine)}function GV(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:Y4.assertNever(e.type)}}function $V(e,m){let t=FD(e,"strictNullChecks");return{typeFromExpression:x,serializeTypeOfDeclaration:function(e,t){switch(e.kind){case 171:return g(hN(e));case 169:return n(e,t);case 260:return function(e,t){var r=hN(e);if(r)return g(r);let n;!e.initializer||m.isExpandoFunctionDeclaration(e)||(n=x(e.initializer,t,void 0,void 0,m_(e)));return n??y(e,t)}(e,t);case 172:return function(e,t){var r=hN(e);if(r)return g(r);let n;e.initializer&&(r=P5(e),n=x(e.initializer,t,void 0,void 0,r));return n??y(e,t)}(e,t);case 208:return y(e,t);case 277:return r(e.expression,t,void 0,!0);case 211:case 212:case 226:return g(hN(e))||y(e,t);case 303:return x(e.initializer,t)||y(e,t);default:Y4.assertNever(e,"Node needs to be an inferrable node, found "+Y4.formatSyntaxKind(e.kind))}},serializeReturnTypeForSignature:function(e,t){switch(e.kind){case 177:return a(e,t);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 T(e,t);default:Y4.assertNever(e,"Node needs to be an inferrable node, found "+Y4.formatSyntaxKind(e.kind))}},serializeTypeOfExpression:r};function g(e,t){return!(void 0===e||!(!t||e&&i(e)))||void 0}function r(e,t,r,n){return x(e,t,!1,r,n)??v(e,t)}function h(e){if(e)return 177===e.kind?yN(e):0S(e,d)),p&&f&&u;case 216:case 234:return b(t.expression,t.type,r,e);case 224:p=t;if(vg(p)){if(10===p.operand.kind)return!0;if(9===p.operand.kind)return!0}break;case 9:return!0;case 228:if(n||i)break;return!0;case 15:case 11:case 10:return!0;case 112:case 97:return!0;case 209:{f=t;var a=r;var o=n;if(!function(e,t,r){if(!r)return void t.tracker.reportInferenceFallback(e);for(var n of e.elements)if(230===n.kind)return void t.tracker.reportInferenceFallback(n);return 1}(f,a,o))return!1;let e=!0;for(var s of f.elements)Y4.assert(230!==s.kind),232!==s.kind&&(e=(x(s,a,o)??v(s,a))&&e);return!0;return}case 210:{u=t;var c=r;var l=n;if(!function(e,t){let r=!0;for(var n of e.properties){if(262144&n.flags){r=!1;break}if(304===n.kind||305===n.kind)t.tracker.reportInferenceFallback(n),r=!1;else{if(262144&n.name.flags){r=!1;break}81===n.name.kind?r=!1:167!==n.name.kind||vg(n.name.expression,!1)||(t.tracker.reportInferenceFallback(n.name),r=!1)}}return r}(u,c))return!1;let e=!0;for(var _ of u.properties){Y4.assert(!AF(_)&&!IF(_));_.name;switch(_.kind){case 174:e=!!function(e,t){var r=T(e,t),n=k(e.typeParameters),e=e.parameters.every(e=>S(e,t));return r&&n&&e}(_,c)&&e;break;case 303:e=!!function(e,t,r){return x(e.initializer,t,r)??y(e,t)}(_,c,l)&&e;break;case 178:case 177:e=!!function(e,t){var r=m.getAllAccessorDeclarations(e),n=r.getAccessor&&h(r.getAccessor),i=r.setAccessor&&h(r.setAccessor);{var a;if(void 0!==n&&void 0!==i)return a=e.parameters.every(e=>S(e,t)),h7(e)?a&&g(n):a;if(r.firstAccessor===e)return(a=n??i)?g(a):function(e,t){return 177===e.kind?T(e,t):(t.tracker.reportInferenceFallback(e),!1)}(e,t)}return}(_,c)&&e}}return e;return}case 231:return v(t,r)}var u,d,p,f}function S(e,t){return n(e,t)}function k(e){return(null==e?void 0:e.every(e=>g(e.constraint)&&g(e.default)))??!0}function i(e){return!t||!(!Nu(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?i(e.type):(192===e.kind||193===e.kind)&&e.types.every(i))}function T(e,t){let r;var n=yN(e);return(r=!(r=n?g(n):r)&&bw(e)?function(e,t){let r;if(e&&!W7(e.body)){if(3&zw(e))return;e=e.body;e&&KP(e)?L5(e,e=>{if(r)return!(r=void 0);r=e.expression}):r=e}if(r)return x(r,t)}(e,t):r)??(t.tracker.reportInferenceFallback(e),!1)}}var XV,QV={},YV=(r(QV,{NameValidationResult:()=>yW,discoverTypings:()=>function(p,f,e,t,r,n,i,a,o,s){if(!i||!i.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let m=new Map,c=(e=AT(e,e=>{e=ua(e);if(Im(e))return e}),[]);i.include&&y(i.include,"Explicitly included types");var l=i.exclude||[];s.types||((s=new Set(e.map(D3))).add(t),s.forEach(e=>{v(e,"bower.json","bower_components",c),v(e,"package.json","node_modules",c)}));i.disableFilenameBasedTypeAcquisition||!function(e){var t=AT(e,e=>{if(Im(e))return e=Ie(qm(br(ra(e)))),r.get(e)});t.length&&y(t,"Inferred typings from file names");t=X4(e,e=>w3(e,".jsx"));t&&(f&&f("Inferred 'react' typings due to presence of '.jsx' extension"),h("react"))}(e);a&&y(RT(a.map(gW),Sr,Se),"Inferred typings from unresolved imports");for(var _ of l)m.delete(_)&&f&&f(`Typing for ${_} is in exclude list, will be ignored.`);n.forEach((e,t)=>{var r=o.get(t);!1===m.get(t)&&void 0!==r&&dW(e,r)&&m.set(t,e.typingLocation)});let u=[],d=[],g=(m.forEach((e,t)=>{e?d.push(e):u.push(t)}),{cachedTypingPaths:d,newTypingNames:u,filesToWatch:c});f&&f("Finished typings discovery:"+uW(g));return g;function h(e){m.has(e)||m.set(e,!1)}function y(e,t){f&&f(t+": "+JSON.stringify(e)),G4(e,h)}function v(e,r,n,t){var i=E3(e,r);let a,o=(p.fileExists(i)&&(t.push(i),l=U9(i,e=>p.readFile(e)).config,y(a=FT([l.dependencies,l.devDependencies,l.optionalDependencies,l.peerDependencies],J),`Typing names in '${i}' dependencies`)),E3(e,n));if(t.push(o),p.directoryExists(o)){var s,c=[],l=a?a.map(e=>E3(o,e,r)):p.readDirectory(o,[".json"],void 0,void 0,3).filter(e=>{var t;return ra(e)===r&&((t="@"===(e=aa(ua(e)))[e.length-3][0])&&br(e[e.length-4])===n||!t&&br(e[e.length-3])===n)});f&&f(`Searching for typing names in ${o}; all files: `+JSON.stringify(l));for(s of l){var _,u=ua(s),d=U9(u,e=>p.readFile(e)).config;d.name&&((_=d.types||d.typings)?(_=P3(_,D3(u)),p.fileExists(_)?(f&&f(` Package '${d.name}' provides its own types.`),m.set(d.name,_)):f&&f(` Package '${d.name}' provides its own types but they are missing.`)):c.push(d.name))}y(c," Found package names")}}},isTypingUpToDate:()=>dW,loadSafeList:()=>function(t,e){e=U9(e,e=>t.readFile(e));return new Map(Object.entries(e.config))},loadTypesMap:()=>function(t,e){var r;e=U9(e,e=>t.readFile(e));if(null!=(r=e.config)&&r.simpleMap)return new Map(Object.entries(e.config.simpleMap))},nodeCoreModuleList:()=>fW,nodeCoreModules:()=>mW,nonRelativeModuleNameForTypingCache:()=>gW,prefixedNodeCoreModuleList:()=>pW,renderPackageNameValidationFailure:()=>function(e,t){return"object"==typeof e?bW(t,e.result,e.name,e.isScopeName):bW(t,e,t,!1)},validatePackageName:()=>function(e){return function n(e,t){if(!e)return 1;if(e.length>vW)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let e=n(r[1],!1);if(0!==e)return{name:r[1],isScopeName:!0,result:e};let t=n(r[2],!1);return 0!==t?{name:r[2],isScopeName:!1,result:t}:0}}if(encodeURIComponent(e)!==e)return 5;return 0}(e,!0)}}),"action::set"),ZV="action::invalidate",eW="action::packageInstalled",tW="event::typesRegistry",rW="event::beginInstallTypes",nW="event::endInstallTypes",iW="event::initializationFailed",aW="action::watchTypingLocations";function oW(e){return Ji.args.includes(e)}function sW(e){e=Ji.args.indexOf(e);return 0<=e&&e"node:"+e),fW=[...At,...pW],mW=new Set(fW);function gW(e){return mW.has(e)?"node":e}var hW,yW=(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))(yW||{}),vW=214;function bW(e,t,r,n){var i=n?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${r}' cannot be empty`;case 2:return`'${e}':: ${i} name '${r}' should be less than ${vW} characters`;case 3:return`'${e}':: ${i} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${r}' contains non URI safe characters`;case 0:return Y4.fail();default:Y4.assertNever(t)}}{class Jve{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(){}}(hW||(hW={})).fromString=function(e){return new Jve(e)}}var xW=(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))(xW||{}),SW=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(SW||{}),kW=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(kW||{}),TW={},CW=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(CW||{}),wW=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(wW||{}),NW=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(NW||{}),DW=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(DW||{}),EW=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(EW||{}),PW=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(PW||{}),FW=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(FW||{});function AW(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 IW=AW("\n"),OW=(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))(OW||{}),LW=(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))(LW||{}),jW=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(jW||{}),RW=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(RW||{}),MW=(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))(MW||{}),BW=(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))(BW||{}),JW=(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))(JW||{}),zW=(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))(zW||{}),qW=(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))(qW||{}),UW=(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))(UW||{}),VW=M3(99,!0),WW=(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))(WW||{});function HW(e){switch(e.kind){case 260:return oT(e)&&cC(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 Z7(e)||1===oL(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 KW(e){var t,r=(e=GH(e)).parent;return 307===e.kind?1:gF(r)||vF(r)||bF(r)||mF(r)||dF(r)||_F(r)&&e===r.name?7:GW(e)?(t=166===(t=e).kind?t:WE(t.parent)&&t.parent.right===t?t.parent:void 0)&&271===t.parent.kind?7:4:Dw(e)?HW(r):OC(e)&&tT(e,h3(RF,T7,MF))?7:function(e){$N(e)&&(e=e.parent);switch(e.kind){case 110:return!h8(e);case 197:return 1}switch(e.parent.kind){case 183:return 1;case 205:return!e.parent.isTypeOf;case 233:return O5(e.parent)}return}(e)?2:function(e){let t=e,r=!0;if(166===t.parent.kind){for(;t.parent&&166===t.parent.kind;)t=t.parent;r=t.right===e}return 183===t.parent.kind&&!r}(t=e)||function(e){let t=e,r=!0;if(211===t.parent.kind){for(;t.parent&&211===t.parent.kind;)t=t.parent;r=t.name===e}if(r||233!==t.parent.kind||298!==t.parent.parent.kind)return;{e=t.parent.parent.parent;return 263===e.kind&&119===t.parent.parent.token||264===e.kind&&96===t.parent.parent.token}}(t)?4:KE(r)?(Y4.assert(ZF(r.parent)),2):SP(r)?3:1}function GW(e){for(;166===e.parent.kind;)e=e.parent;return T8(e.parent)&&e.parent.moduleReference===e}function $W(e,t=!1,r=!1){return iH(e,PP,tH,t,r)}function XW(e,t=!1,r=!1){return iH(e,FP,tH,t,r)}function QW(e,t=!1,r=!1){return iH(e,e7,tH,t,r)}function YW(e,t=!1,r=!1){return iH(e,AP,rH,t,r)}function ZW(e,t=!1,r=!1){return iH(e,$E,tH,t,r)}function eH(e,t=!1,r=!1){return iH(e,f7,nH,t,r)}function tH(e){return e.expression}function rH(e){return e.tag}function nH(e){return e.tagName}function iH(e,t,r,n,i){let a=(n?oH:aH)(e);return!!(a=i?l9(a):a)&&!!a.parent&&t(a.parent)&&r(a.parent)===a}function aH(e){return fH(e)?e.parent:e}function oH(e){return fH(e)||mH(e)?e.parent:e}function sH(e,t){for(;e;){if(256===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function cH(e,t){return!!dT(e.expression)&&e.expression.name.text===t}function lH(e){var t;return uT(e)&&(null==(t=o3(e.parent,$s))?void 0:t.label)===e}function _H(e){var t;return uT(e)&&(null==(t=o3(e.parent,s1))?void 0:t.label)===e}function uH(e){return _H(e)||lH(e)}function dH(e){var t;return(null==(t=o3(e.parent,nl))?void 0:t.tagName)===e}function pH(e){var t;return(null==(t=o3(e.parent,WE))?void 0:t.right)===e}function fH(e){var t;return(null==(t=o3(e.parent,dT))?void 0:t.name)===e}function mH(e){var t;return(null==(t=o3(e.parent,EP))?void 0:t.argumentExpression)===e}function gH(e){var t;return(null==(t=o3(e.parent,sF))?void 0:t.name)===e}function hH(e){var t;return uT(e)&&(null==(t=o3(e.parent,jC))?void 0:t.name)===e}function yH(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 vH(e){return x8(e.parent.parent)&&S8(e.parent.parent)===e}function bH(e){for(iw(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 xH(e){switch(e.kind){case 307:return b9(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 i(e);case 208:return i(eN(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:var t=e["initializer"];return jC(t)?"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 TN(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:var t=V8(e),r=e["right"];switch(t){case 7:case 8:case 9:case 0:return"";case 1:case 2:var n=xH(r);return""===n?"const":n;case 3:return OP(r)?"method":"property";case 4:return"property";case 5:return OP(r)?"method":"property";case 6:return"local class";default:return""}case 80:return dF(e.parent)?"alias":"";case 277:t=xH(e.expression);return""===t?"const":t;default:return""}function i(e){return f_(e)?"const":g_(e)?"let":"var"}}function SH(e){switch(e.kind){case 110:return!0;case 80:return zd(e)&&169===e.parent.kind;default:return!1}}var kH=/^\/\/\/\s*=r.end}function PH(e,t,r){return e.pos<=t&&e.end>=r}function FH(e,t,r){return IH(e.pos,e.end,t,r)}function AH(e,t,r,n){return IH(e.getStart(t),e.end,r,n)}function IH(e,t,r,n){return Math.max(e,r)e.kind===t)}function BH(t){var e=bT(t.parent.getChildren(),e=>G1(e)&&CH(e,t));return Y4.assert(!e||TT(e.getChildren(),t)),e}function JH(e){return 90===e.kind}function zH(e){return 86===e.kind}function qH(e){return 100===e.kind}function UH(e,t){if(!(16777216&e.flags))return S$(e,t)||(e=function(e){let t;return tT(e,e=>(KC(e)&&(t=e),!WE(e.parent)&&!KC(e.parent)&&!bc(e.parent))),t}(e))&&t.getTypeAtLocation(e)}function VH(e,t){if(!t)switch(e.kind){case 263:case 231:var r=e;if(eC(r))return r.name;if(nF(r)){var n=r.modifiers&&bT(r.modifiers,JH);if(n)return n}if(JP(r)){n=bT(r.getChildren(),zH);if(n)return n}return;case 262:case 218:r=e;if(eC(r))return r.name;if(rF(r)){var i=bT(r.modifiers,JH);if(i)return i}if(OP(r)){i=bT(r.getChildren(),qH);if(i)return i}return;case 176:return e}if(eC(e))return e.name}function WH(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){var r;if(h1(e.importClause.namedBindings))return(r=xi(e.importClause.namedBindings.elements))?r.name:void 0;if(g1(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function HH(e,t){if(e.exportClause){if(yF(e.exportClause))return xi(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(fF(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function KH(e,t){var r=e["parent"];if(IC(e)&&(t||90!==e.kind)?f9(r)&&TT(r.modifiers,e):86===e.kind?nF(r)||JP(e):100===e.kind?rF(r)||OP(e):120===e.kind?iF(r):94===e.kind?oF(r):156===e.kind?aF(r):145===e.kind||144===e.kind?sF(r):102===e.kind?_F(r):139===e.kind?rP(r):153===e.kind&&nP(r)){var n=VH(r,t);if(n)return n}if((115===e.kind||87===e.kind||121===e.kind)&&tF(r)&&1===r.declarations.length){n=r.declarations[0];if(uT(n.name))return n.name}if(156===e.kind){if(dF(r)&&r.isTypeOnly){n=WH(r.parent,t);if(n)return n}if(hF(r)&&r.isTypeOnly){n=HH(r,t);if(n)return n}}if(130===e.kind){if(mF(r)&&r.propertyName||vF(r)&&r.propertyName||g1(r)||fF(r))return r.name;if(hF(r)&&r.exportClause&&fF(r.exportClause))return r.exportClause.name}if(102===e.kind&&uF(r)){n=WH(r,t);if(n)return n}if(95===e.kind){if(hF(r)){n=HH(r,t);if(n)return n}if(gF(r))return l9(r.expression)}if(149===e.kind&&bF(r))return r.expression;if(161===e.kind&&(uF(r)||hF(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((96===e.kind||119===e.kind)&&EF(r)&&r.token===e.kind){n=function(e){if(1===e.types.length)return e.types[0].expression}(r);if(n)return n}if(96===e.kind){if(KE(r)&&r.constraint&&sP(r.constraint))return r.constraint.typeName;if(gP(r)&&sP(r.extendsType))return r.extendsType.typeName}if(140===e.kind&&M0(r))return r.typeParameter.name;if(103===e.kind&&KE(r)&&xP(r.parent))return r.name;if(143===e.kind&&vP(r)&&143===r.operator&&sP(r.type))return r.type.typeName;if(148===e.kind&&vP(r)&&148===r.operator&&L0(r.type)&&sP(r.type.elementType))return r.type.elementType.typeName;if(!t){if((105===e.kind&&FP(r)||116===e.kind&&U0(r)||114===e.kind&&jP(r)||135===e.kind&&RP(r)||127===e.kind&&K0(r)||91===e.kind&&q0(r))&&r.expression)return l9(r.expression);if((103===e.kind||104===e.kind)&&pT(r)&&r.operatorToken===e)return l9(r.right);if(130===e.kind&&G0(r)&&sP(r.type))return r.type.typeName;if(103===e.kind&&YP(r)||165===e.kind&&ZP(r))return l9(r.expression)}return e}function GH(e){return KH(e,!1)}function $H(e){return KH(e,!0)}function XH(e,t){return QH(e,t,e=>Hw(e)||Nu(e.kind)||UE(e))}function QH(e,t,r){return ZH(e,t,!1,r,!1)}function YH(e,t){return ZH(e,t,!0,void 0,!1)}function ZH(a,o,s,c,n){let e=a,l;for(;;){let i=e.getChildren(a);var t=j(i,o,(e,t)=>t,(e,t)=>{var r,n=i[e].getEnd();return nr.getStart(e)&&t{let t=e.pos<=n.pos&&e.end>n.end||e.pos===n.end;return t&&bK(e,i)?r(e):void 0})}(e)}function nK(s,c,t,l){var e=function n(i){if(iK(i)&&1!==i.kind)return i;let a=i.getChildren(c);let o=j(a,s,(e,t)=>t,(e,t)=>s=a[e-1].end?0:1:-1);if(0<=o&&a[o]){let r=a[o];if(s=s||!bK(r,c)||lK(r);if(t){let e=oK(a,o,c,i.kind);return e?!l&&rl(e)&&e.getChildren(c).length?n(e):aK(e,c):void 0}return n(r)}}Y4.assert(void 0!==t||307===i.kind||1===i.kind||rl(i));let e=oK(a,a.length,c,i.kind);return e&&aK(e,c)}(t||c);return Y4.assert(!(e&&lK(e))),e}function iK(e){return ec(e)&&!lK(e)}function aK(e,t){var r;return iK(e)||0===(r=e.getChildren(t)).length?e:(r=oK(r,r.length,t,e.kind))&&aK(r,t)}function oK(t,r,n,i){for(let e=r-1;0<=e;e--)if(lK(t[e]))0!==e||12!==i&&285!==i||Y4.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(bK(t[e],n))return t[e]}function sK(e,t,r=nK(t,e)){if(r&&sc(r)){var n=r.getStart(e),i=r.getEnd();if(nr.getStart(e)}function uK(e,t){e=YH(e,t);return!!o0(e)||!(19!==e.kind||!T1(e.parent)||!xF(e.parent.parent))||!(30!==e.kind||!f7(e.parent)||!xF(e.parent.parent))}function dK(e,t){for(var r=YH(e,t);r;){if(!(285<=r.kind&&r.kind<=294||12===r.kind||30===r.kind||32===r.kind||80===r.kind||20===r.kind||19===r.kind||44===r.kind)){if(284!==r.kind)return!1;if(t>r.getStart(e))return!0}r=r.parent}return!1}function pK(t,r,n){var i=I3(t.kind),a=I3(r),o=t.getFullStart(),a=n.text.lastIndexOf(a,o);if(-1!==a){if(n.text.lastIndexOf(i,o-1)!!e.typeParameters&&e.typeParameters.length>=t)}function hK(n,i){if(-1!==i.text.lastIndexOf("<",n?n.pos:i.text.length)){let e=n,t=0,r=0;for(;e;){switch(e.kind){case 30:if(!(e=(e=nK(e.getFullStart(),i))&&29===e.kind?nK(e.getFullStart(),i):e)||!uT(e))return;if(!t)return Dw(e)?void 0:{called:e,nTypeArguments:r};t--;break;case 50:t=3;break;case 49:t=2;break;case 32:t++;break;case 20:if(e=pK(e,19,i))break;return;case 22:if(e=pK(e,21,i))break;return;case 24:if(e=pK(e,23,i))break;return;case 28:r++;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(KC(e))break;return}e=nK(e.getFullStart(),i)}}}function yK(e,t,r){return Dge.getRangeOfEnclosingComment(e,t,void 0,r)}function vK(e,t){return!!tT(YH(e,t),A1)}function bK(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function xK(e,t=0){var r=[],t=u7(e)?cs(e)&~t:0;return 2&t&&r.push("private"),4&t&&r.push("protected"),1&t&&r.push("public"),(256&t||eP(e))&&r.push("static"),64&t&&r.push("abstract"),32&t&&r.push("export"),65536&t&&r.push("deprecated"),33554432&e.flags&&r.push("declare"),277===e.kind&&r.push("export"),0{e=oj(e);return!t[e]&&(t[e]=!0)}}function KK(e){return e.getText(0,e.getLength())}function GK(t,r){let n="";for(let e=0;e!(e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e)||!e.externalModuleIndicator&&!e.commonJsModuleIndicator))}function YK(t){return t.getSourceFiles().some(e=>!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!!e.externalModuleIndicator)}function ZK(e){return!!e.module||2<=vD(e)||!!e.noEmit}function eG(t,e){return{fileExists:e=>t.fileExists(e),getCurrentDirectory:()=>e.getCurrentDirectory(),readFile:r3(e,e.readFile),useCaseSensitiveFileNames:r3(e,e.useCaseSensitiveFileNames),getSymlinkCache:r3(e,e.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:r3(e,e.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var e;return null==(e=t.getModuleResolutionCache())?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:r3(e,e.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:e=>t.getProjectReferenceRedirect(e),isSourceOfProjectReferenceRedirect:e=>t.isSourceOfProjectReferenceRedirect(e),getNearestAncestorDirectoryWithPackageJson:r3(e,e.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons(),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function tG(e,t){return{...eG(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function rG(e){return 2===e||3<=e&&e<=99||100===e}function nG(e,t,r,n,i){return cT.createImportDeclaration(void 0,e||t?cT.createImportClause(!!i,e,t&&t.length?cT.createNamedImports(t):void 0):void 0,"string"==typeof r?iG(r,n):r,void 0)}function iG(e,t){return cT.createStringLiteral(e,0===t)}var aG=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(aG||{});function oG(e,t){return Y_(e,t)?1:0}function sG(e,t){return t.quotePreference&&"auto"!==t.quotePreference?"single"===t.quotePreference?0:1:(t=H_(e)&&e.imports&&bT(e.imports,e=>qE(e)&&!rN(e.parent)))?oG(t,e):1}function cG(e){switch(e){case 0:return"'";case 1:return'"';default:return Y4.assertNever(e)}}function lG(e){e=_G(e);return void 0===e?void 0:X3(e)}function _G(e){return"default"!==e.escapedName?e.escapedName:yT(e.declarations,e=>{e=tC(e);return e&&80===e.kind?e.escapedText:void 0})}function uG(e){return k7(e)&&(bF(e.parent)||uF(e.parent)||n9(e.parent)||E8(e.parent,!1)&&e.parent.arguments[0]===e||A5(e.parent)&&e.parent.arguments[0]===e)}function dG(e){return wP(e)&&TP(e.parent)&&uT(e.name)&&!e.propertyName}function pG(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function fG(e,t,r){var n,i;if(e)for(;e.parent;){if(LF(e.parent)||(n=r,i=e.parent,!(z3(n,i.getStart(t))&&i.getEnd()<=J3(n))))return e;e=e.parent}}function mG(e,t){return f9(e)?bT(e.modifiers,e=>e.kind===t):void 0}function gG(e,t,r,n,i){var a=243===(i3(r)?r[0]:r).kind?Q_:n_,o=NT(t.statements,a);let{comparer:s,isSorted:c}=Gfe.getOrganizeImportsStringComparerWithDetection(o,i);a=i3(r)?dn(r,(e,t)=>Gfe.compareImportsOrRequireStatements(e,t,s)):[r];if(null!=o&&o.length)if(Y4.assert(H_(t)),o&&c)for(var l of a){var _,u=Gfe.getImportDeclarationInsertionIndex(o,l,s);0===u?(_=o[0]===t.statements[0]?{leadingTriviaOption:I.LeadingTriviaOption.Exclude}:{},e.insertNodeBefore(t,o[0],l,!1,_)):(_=o[u-1],e.insertNodeAfter(t,_,l))}else{i=KT(o);i?e.insertNodesAfter(t,i,a):e.insertNodesAtTopOfFile(t,a,n)}else if(H_(t))e.insertNodesAtTopOfFile(t,a,n);else for(var d of a)e.insertStatementsInNewFile(t.fileName,[d],null==(d=K3(d))?void 0:d.getSourceFile())}function hG(e,t){return Y4.assert(e.isTypeOnly),s3(e.getChildAt(0,t),VK)}function yG(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function vG(e,t,r){return(r?Sr:xr)(e.fileName,t.fileName)&&yG(e.textSpan,t.textSpan)}function bG(r){return(e,t)=>vG(e,t,r)}function xG(t,r){if(t)for(let e=0;e!!GE(e)||!(wP(e)||TP(e)||CP(e))&&"quit")}var NG=function(){let r=10*E7,n,t,i,a;c();var e=e=>s(e,17);return{displayParts:()=>{var e=n.length&&n[n.length-1].text;return a>r&&e&&"..."!==e&&(oo(e.charCodeAt(e.length-1))||n.push(EG(" ",16)),n.push(EG("...",15))),n},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(e,t){a>r||(o(),a+=e.length,n.push(DG(e,t)))},writeLine:function(){a>r||(a+=1,n.push(HG()),t=!0)},write:e,writeComment:e,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:de,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:c};function o(){var e;a>r||t&&((e=yd(i))&&(a+=e.length,n.push(EG(e,16))),t=!1)}function s(e,t){a>r||(o(),a+=e.length,n.push(EG(e,t)))}function c(){n=[],t=!0,i=0,a=0}}();function DG(e,t){return EG(e,function(e){var t=e.flags;if(3&t)return wG(e)?13:9;return 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))}function EG(e,t){return{text:e,kind:OW[t]}}function PG(){return EG(" ",16)}function FG(e){return EG(I3(e),5)}function AG(e){return EG(I3(e),15)}function IG(e){return EG(I3(e),12)}function OG(e){return EG(e,13)}function LG(e){return EG(e,14)}function jG(e){var t=$a(e);return void 0===t?RG(e):FG(t)}function RG(e){return EG(e,17)}function MG(e){return EG(e,0)}function BG(e){return EG(e,18)}function JG(e){return EG(e,24)}function zG(e,t){return{text:e,kind:OW[23],target:{fileName:iT(t).fileName,textSpan:LK(t)}}}function qG(e){return EG(e,22)}function UG(e,t){var r,n,i,a=[qG(`{@${D1(e)?"link":E1(e)?"linkcode":"linkplain"} `)];return e.name?(i=(i=null==t?void 0:t.getSymbolAtLocation(e.name))&&t?e$(i,t):void 0,t=function(r){let e=r.indexOf("://");if(0===e){for(;e"===r[t]&&e--,t++,!e)return t}return 0}(e.text),r=K7(e.name)+e.text.slice(0,t),n=function(e){let t=0;if(124!==e.charCodeAt(t++))return e;for(;t{t.writeType(r,n,17408|i,e)})}function $G(t,r,n,i,a=0){return KG(e=>{t.writeSymbol(r,n,i,8|a,e)})}function XG(t,r,n,i=0){return i|=25632,KG(e=>{t.writeSignature(r,n,i,void 0,e)})}function QG(t,e){let r=e.getSourceFile();return KG(e=>{xB().writeNode(4,t,r,e)})}function YG(e){return!!e.parent&&NC(e.parent)&&e.parent.propertyName===e}function ZG(e,t){return ym(e,t.getScriptKind&&t.getScriptKind(e))}function e$(e,t){let r=e;for(;0!=(2097152&r.flags)||O7(r)&&r.links.target;)r=O7(r)&&r.links.target?r.links.target:Xp(r,t);return r}function t$(e,t){return sj(Xp(e,t))}function r$(e,t){for(;oo(e.charCodeAt(t));)t+=1;return t}function n$(e,t){for(;-1a$(e,!0,t):i$,r=hT(e,r,void 0,t?e=>e&&c$(e,!0,t):e=>e&&s$(e),r);return r===e?fT(qE(e)?lT(cT.createStringLiteralFromNode(e),e):zE(e)?lT(cT.createNumericLiteral(e.text,e.numericLiteralFlags),e):cT.cloneNode(e),e):(r.parent=void 0,r)}function s$(e,t=!0){var r;return e&&(fT(r=cT.createNodeArray(e.map(e=>i$(e,t)),e.hasTrailingComma),e),r)}function c$(e,t,r){return cT.createNodeArray(e.map(e=>a$(e,t,r)),e.hasTrailingComma)}function l$(e){_$(e),u$(e)}function _$(e){p$(e,1024,f$)}function u$(e){p$(e,2048,of)}function d$(e,t){var r=e.getSourceFile();(!function(e,t){var r=e.getFullStart(),n=e.getStart();for(let e=r;ee)}function m$(t,r){let n=t;for(let e=1;!Cl(r,n);e++)n=t+"_"+e;return n}function g$(e,t,r,n){let i=0,a=-1;for(var{fileName:o,textChanges:s}of e){Y4.assert(o===t);for(var c of s){var{span:c,newText:l}=c,_=function(e,t){if(f3(e,t))return 0;let r=e.indexOf(" "+t);-1===r&&(r=e.indexOf("."+t));-1===r&&(r=e.indexOf('"'+t));return-1===r?-1:r+1}(l,aN(r));if(-1!==_&&(a=c.start+i+_,!n))return a;i+=l.length-c.length}}return Y4.assert(n),Y4.assert(0<=a),a}function h$(e,t,r,n,i){So(r.text,e.pos,b$(t,r,n,i,RE))}function y$(e,t,r,n,i){ko(r.text,e.end,b$(t,r,n,i,ah))}function v$(e,t,r,n,i){ko(r.text,e.pos,b$(t,r,n,i,RE))}function b$(i,a,o,s,c){return(e,t,r,n)=>{3===r?(e+=2,t-=2):e+=2,c(i,o||r,a.text.slice(e,t),void 0!==s?s:n)}}function x$(e){return pT(e)&&28===e.operatorToken.kind||DP(e)||(G0(e)||UP(e))&&DP(e.expression)}function S$(e,t,r){var n=Sw(e.parent);switch(n.kind){case 214:return t.getContextualType(n,r);case 226:var{left:i,operatorToken:a,right:o}=n;return T$(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e,r);case 296:return N$(n,t);default:return t.getContextualType(e,r)}}function k$(e,t,r){e=sG(e,t),t=JSON.stringify(r);return 0===e?`'${oN(t).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:t}function T$(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function C$(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function w$(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function N$(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var D$="anonymous function";function E$(e,t,r,n){let i=r.getTypeChecker(),a=!0;var o=()=>a=!1,e=i.typeToTypeNode(e,t,1,{trackSymbol:(e,t,r)=>!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility),reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:tG(r,n)});return a?e:void 0}function P$(e){return 179===e||180===e||181===e||171===e||173===e}function F$(e){return 262===e||176===e||174===e||177===e||178===e}function A$(e){return 267===e}function I$(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 O$=h3(P$,F$,A$,I$);function L$(t,e,r){e=tT(e,e=>e.end!==t?"quit":O$(e.kind));return!!e&&function(e,t){if((r=e.getLastToken(t))&&27===r.kind)return!1;if(P$(e.kind)){if(r&&28===r.kind)return!1}else if(A$(e.kind)){var r=GT(e.getChildren(t));if(r&&cF(r))return!1}else if(F$(e.kind)){r=GT(e.getChildren(t));if(r&&O_(r))return!1}else if(!I$(e.kind))return!1;return 246===e.kind||!(r=rK(e,tT(e,e=>!e.parent),t))||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(e,r)}function j$(n){let i=0,a=0;return h9(n,function e(t){var r;return I$(t.kind)?27===(null==(r=t.getLastToken(n))?void 0:r.kind)?i++:a++:P$(t.kind)&&(27===(null==(r=t.getLastToken(n))?void 0:r.kind)?i++:r&&28!==r.kind&&O3(n,r.getStart(n)).line!==O3(n,k5(n,r.end).start).line&&a++),5<=i+a||h9(t,e)}),0===i&&a<=1||.2Sp(t,e))||!1}function z$(e){try{return e()}catch{}}function q$(e,t,...r){return z$(()=>t&&t.apply(e,r))}function U$(e,t,r){let n=[];return Pa(e,e=>{if(e===r)return!0;e=E3(e,"package.json");B$(t,e)&&n.push(e)}),n}function V$(e,t){let r;return Pa(e,e=>"node_modules"===e||!!(r=JB(e,e=>B$(t,e),"package.json"))||void 0),r}function W$(e,t){if(!t.fileExists)return[];let r=[];return Pa(D3(e),e=>{var e=E3(e,"package.json");t.fileExists(e)&&(e=H$(e,t))&&r.push(e)}),r}function H$(e,t){if(t.readFile){var r=xp(t.readFile(e)||""),n={};if(r)for(var a of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){var o=r[a];if(o){var s,c=new Map;for(s in o)c.set(s,o[s]);n[a]=c}}let i=[[1,n.dependencies],[2,n.devDependencies],[8,n.optionalDependencies],[4,n.peerDependencies]];return{...n,parseable:!!r,fileName:e,get:l,has(e,t){return!!l(e,t)}};function l(e,t=15){for(var[r,n]of i)if(n&&t&r){r=n.get(e);if(void 0!==r)return r}}}}function K$(r,n,i){let a=(i.getPackageJsonsVisibleToFile&&i.getPackageJsonsVisibleToFile(r.fileName)||W$(r.fileName,i)).filter(e=>e.parseable),t,o,s;return{allowsImportingAmbientModule:function(e,t){if(!a.length||!e.valueDeclaration)return!0;if(o){var r=o.get(e);if(void 0!==r)return r}else o=new Map;r=oN(e.getName());if(l(r))return o.set(e,!0),!0;var n=e.valueDeclaration.getSourceFile(),n=_(n.fileName,t);if(void 0===n)return o.set(e,!0),!0;t=c(n)||c(r);return o.set(e,t),t},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;if(s){var r=s.get(e);if(void 0!==r)return r}else s=new Map;r=_(e.fileName,t);if(!r)return s.set(e,!0),!0;t=c(r);return s.set(e,t),t},allowsImportingSpecifier:function(e){if(!a.length||l(e))return!0;if(T3(e)||Gi(e))return!0;return c(e)}};function c(e){var t,r=u(e);for(t of a)if(t.has(r)||t.has(KO(r)))return!0;return!1}function l(e){return!!(H_(r)&&C8(r)&&QV.nodeCoreModules.has(e)&&(t=void 0===t?G$(r):t))}function _(e,t){return!e.includes("node_modules")||!(e=yL.getNodeModulesPackageName(i.getCompilationSettings(),r,e,t,n))||T3(e)||Gi(e)?void 0:u(e)}function u(e){e=aa($O(e)).slice(1);return f3(e[0],"@")?e[0]+"/"+e[1]:e[0]}}function G$(e){return X4(e.imports,({text:e})=>QV.nodeCoreModules.has(e))}function $$(e){return TT(aa(e),"node_modules")}function X$(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Q$(e,t){var r=j(t,LK(e),Ti,ye);if(0<=r)return t=t[r],Y4.assertEqual(t.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),s3(t,X$)}function Y$(e,t){let r,n=j(t,e.start,e=>e.start,l3);for(n<0&&(n=~n);(null==(r=t[n-1])?void 0:r.start)===e.start;)n--;for(var i=[],a=J3(e);;){var o=o3(t[n],X$);if(!o||o.start>a)break;Uo(e,o)&&i.push(o),n++}return i}function Z$({startPosition:e,endPosition:t}){return Yo(e,void 0===t?e:t)}function eX(t,r){return tT(YH(t,r.start),e=>e.getStart(t)J3(r)?"quit":nT(e)&&yG(r,LK(e,t)))}function tX(e,t,r=Ti){return e?i3(e)?r($4(e,t)):t(e,0):void 0}function rX(e){return i3(e)?WT(e):e}function nX(e,t){var r;return aX(e)?oX(e)||((r=cX(sX(e),t,!1))===(t=cX(sX(e),t,!0))?r:[r,t]):e.name}function iX(e,t,r){return aX(e)?oX(e)||cX(sX(e),t,!!r):e.name}function aX(e){return!(33554432&e.flags||"export="!==e.escapedName&&"default"!==e.escapedName)}function oX(e){return yT(e.declarations,e=>{var t;return gF(e)?null==(t=o3(l9(e.expression),uT))?void 0:t.text:vF(e)&&2097152===e.symbol.flags?null==(t=o3(e.propertyName,uT))?void 0:t.text:null==(t=o3(tC(e),uT))?void 0:t.text})}function sX(e){return Y4.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${Y4.formatSymbolFlags(e.flags)}. Declarations: ${null==(e=e.declarations)?void 0:e.map(e=>{var t=Y4.formatSyntaxKind(e.kind),r=e["expression"];return(oT(e)?"[JS]":"")+t+(r?` (expression: ${Y4.formatSyntaxKind(r.kind)})`:"")}).join(", ")}.`)}function cX(e,t,r){return lX(qm(oN(e.name)),t,r)}function lX(e,t,r){var n=ra(kr(e,"/index"));let i="",a=!0;e=n.charCodeAt(0);Po(e,t)?(i+=String.fromCharCode(e),r&&(i=i.toUpperCase())):a=!1;for(let e=1;et.length)return!1;for(let e=0;esF(e)&&n5(e)))}function fX(e){return!!(65536&cs(e))}function mX(e,t){return yT(e.imports,e=>{if(QV.nodeCoreModules.has(e.text))return f3(e.text,"node:")})??t.usesUriStyleNodeCoreModules}function gX(e){return"\n"===e?1:0}function hX(e){return i3(e)?yf(xf(e[0]),e.slice(1)):xf(e)}function yX({options:e},t){var r=!e.semicolons||"ignore"===e.semicolons,r="remove"===e.semicolons||r&&!j$(t);return{...e,semicolons:r?"remove":"ignore"}}function vX(e){return 2===e||3===e}function bX(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function xX(e,t){let r=new Set,n=new Set,i=new Set;for(var a of t)if(!w1(a)){var o=Cw(a.expression);if(CC(o))switch(o.kind){case 15:case 11:r.add(o.text);break;case 9:n.add(parseInt(o.text));break;case 10:var s=tg(u3(o.text,"n")?o.text.slice(0,-1):o.text);s&&i.add(KD(s))}else{var a=e.getSymbolAtLocation(a.expression);a&&a.valueDeclaration&&OF(a.valueDeclaration)&&void 0!==(a=e.getConstantValue(a.valueDeclaration))&&c(a)}}return{addValue:c,hasValue:function(e){switch(typeof e){case"string":return r.has(e);case"number":return n.has(e);case"object":return i.has(KD(e))}}};function c(e){switch(typeof e){case"string":r.add(e);break;case"number":n.add(e)}}}function SX(e,t,r,n){if(!Im("string"==typeof e?e:e.fileName))return!1;var i=t.getCompilerOptions(),a=bD(i),o="string"==typeof e?jJ(pa(e,r.getCurrentDirectory(),xd(r)),null==(o=t.getPackageJsonInfoCache)?void 0:o.call(t),r,i):e.impliedNodeFormat;if(99===o)return!1;if(1===o)return!0;if(i.verbatimModuleSyntax&&1===a)return!0;if(i.verbatimModuleSyntax&&ED(a))return!1;if("object"==typeof e){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return n}function kX(e){switch(e.kind){case 241:case 307:case 268:case 296:return!0;default:return!1}}function TX(e,t,r,n){var i=RJ(e,null==(i=r.getPackageJsonInfoCache)?void 0:i.call(r),n,r.getCompilerOptions());let a,o;return"object"==typeof i&&(a=i.impliedNodeFormat,o=i.packageJsonScope),{path:pa(e,r.getCurrentDirectory(),r.getCanonicalFileName),fileName:e,externalModuleIndicator:99===t||void 0,commonJsModuleIndicator:1===t||void 0,impliedNodeFormat:a,packageJsonScope:o,statements:H4,imports:H4}}var CX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(CX||{}),wX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(wX||{});function NX(l){let m=1,g=n3(),h=new Map,y=new Map,v,b={isUsableByFile:e=>e===v,isEmpty:()=>!g.size,clear:()=>{g.clear(),h.clear(),v=void 0},add:(e,t,r,n,i,a,o,s)=>{e!==v&&(b.clear(),v=e);let c;i&&(u=dg(i.fileName))&&({topLevelNodeModulesIndex:u,topLevelPackageNameIndex:l,packageRootIndex:_}=u,c=XO($O(i.fileName.substring(l+1,_))),f3(e,i.path.substring(0,u)))&&(_=y.get(c),e=i.fileName.substring(0,l+1),!_||_.indexOf(fO){return e!==v||null==(e=g.get(t))?void 0:e.map(c)},search:(e,a,o,s)=>{if(e===v)return j7(g,(n,e)=>{i=(r=e).indexOf(" "),t=r.indexOf(" ",i+1),i=parseInt(r.substring(0,i),10),r=r.substring(t+1),t=r.substring(0,i),r=r.substring(i+1);var{symbolName:t,ambientModuleName:r}={symbolName:t,ambientModuleName:i=""===r?void 0:r},i=a&&n[0].capitalizedSymbolName||t;if(o(i,n[0].targetFlags)){t=n.map(c).filter((e,t)=>{var r,t=n[t].packageName;return!(t&&e.moduleFileName&&(!(r=l.getGlobalTypingsCacheLocation())||!f3(e.moduleFileName,r))&&(r=y.get(t)))||f3(e.moduleFileName,r)});if(t.length){t=s(t,i,!!r,e);if(void 0!==t)return t}}})},releaseSymbols:()=>{h.clear()},onFileChanged:(e,t,r)=>{if(!n(e)||!n(t)){if(v&&v!==t.path||r&&G$(e)!==G$(t)||!hr(e.moduleAugmentations,t.moduleAugmentations)||!function(e,r){if(!hr(e.ambientModuleNames,r.ambientModuleNames))return;let n=-1,i=-1;for(let t of r.ambientModuleNames){var a=e=>$l(e)&&e.name.text===t;if(n=ST(e.statements,a,n+1),i=ST(r.statements,a,i+1),e.statements[n]!==r.statements[i])return}return 1}(e,t))return b.clear(),!0;v=t.path}return!1}};return Y4.isDebugging&&Object.defineProperty(b,"__cache",{value:g}),b;function c(e){var t,r,n,i,a,o,s,c;return e.symbol&&e.moduleSymbol?e:({id:t,exportKind:r,targetFlags:n,isFromPackageJson:i,moduleFileName:a}=e,[c,s]=h.get(t)||H4,c&&s?{symbol:c,moduleSymbol:s,moduleFileName:a,exportKind:r,targetFlags:n,isFromPackageJson:i}:(o=(i?l.getPackageJsonAutoImportProvider():l.getCurrentProgram()).getTypeChecker(),s=e.moduleSymbol||s||Y4.checkDefined(e.moduleFile?o.getMergedSymbol(e.moduleFile.symbol):o.tryFindAmbientModule(e.moduleName)),c=e.symbol||c||Y4.checkDefined(2===r?o.resolveExternalModuleSymbol(s):o.tryGetMemberInModuleExportsAndProperties(X3(e.symbolTableKey),s),`Could not find symbol '${e.symbolName}' by key '${e.symbolTableKey}' in module `+s.name),h.set(t,[c,s]),{symbol:c,moduleSymbol:s,moduleFileName:a,exportKind:r,targetFlags:n,isFromPackageJson:i}))}function n(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function DX(r,n,i,e,t,a,o){if(n===i)return!1;var s=null==o?void 0:o.get(n.path,i.path,e,{});if(void 0!==(null==s?void 0:s.isBlockedByPackageJsonDependencies))return!s.isBlockedByPackageJsonDependencies;let c=xd(a),l=null==(s=a.getGlobalTypingsCacheLocation)?void 0:s.call(a);s=!!yL.forEachFileNameOfModule(n.fileName,i.fileName,a,!1,e=>{var t=r.getSourceFile(e);return(t===i||!t)&&function(e,t,r,n){t=Pa(t,e=>"node_modules"===ra(e)?e:void 0),t=t&&D3(r(t));return void 0===t||f3(r(e),t)||!!n&&f3(r(n),t)}(n.fileName,e,c,l)});return t?(t=s&&t.allowsImportingSourceFile(i,a),null!=o&&o.setBlockedByPackageJsonDependencies(n.path,i.path,e,{},!t),t):s}function EX(n,e,t,i,a){let r,o,s=bd(e);t=t.autoImportFileExcludePatterns&&AT(t.autoImportFileExcludePatterns,e=>{e=pm(e,"","exclude");return e?gm(e,s):void 0});PX(n.getTypeChecker(),n.getSourceFiles(),t,e,(e,t)=>a(e,t,n,!1));let c=i&&(null==(r=e.getPackageJsonAutoImportProvider)?void 0:r.call(e));if(c){i=$t();let r=n.getTypeChecker();PX(c.getTypeChecker(),c.getSourceFiles(),t,e,(e,t)=>{(t&&!n.getSourceFile(t.fileName)||!t&&!r.resolveName(e.name,void 0,1536,!1))&&a(e,t,c,!0)}),null!=(o=e.log)&&o.call(e,"forEachExternalModuleToImportFrom autoImportProvider: "+($t()-i))}}function PX(e,t,i,r,n){let a,o,s=null==(a=r.getSymlinkCache)?void 0:a.call(r).getSymlinkedDirectoriesByRealpath(),c=i&&(({fileName:n,path:e})=>{if(i.some(e=>e.test(n)))return!0;if(null!=s&&s.size&&mO(n)){let r=D3(n);return Pa(D3(e),e=>{e=s.get(ma(e));if(e)return e.some(t=>i.some(e=>e.test(n.replace(r,t))));r=D3(r)})??!1}return!1});for(var l of e.getAmbientModules())l.name.includes("*")||i&&null!=(o=l.declarations)&&o.every(e=>c(e.getSourceFile()))||n(l,void 0);for(var _ of t)!N5(_)||null!=c&&c(_)||n(e.getMergedSymbol(_.symbol),_)}function FX(c,r,e,n,l){var i,a=$t();null!=(i=r.getPackageJsonAutoImportProvider)&&i.call(r);let _=(null==(i=r.getCachedExportInfoMap)?void 0:i.call(r))||NX({getCurrentProgram:()=>e,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=r.getPackageJsonAutoImportProvider)?void 0:e.call(r)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=r.getGlobalTypingsCacheLocation)?void 0:e.call(r)}});if(_.isUsableByFile(c.path))null!=(i=r.log)&&i.call(r,"getExportInfoMap: cache hit");else{null!=(i=r.log)&&i.call(r,"getExportInfoMap: cache miss or empty; calculating new results");let t=0;try{EX(e,r,n,!0,(r,n,e,i)=>{++t%100==0&&null!=l&&l.throwIfCancellationRequested();let a=new Map,o=e.getTypeChecker(),s=AX(r,o);s&&IX(s.symbol,o)&&_.add(c.path,s.symbol,1===s.exportKind?"default":"export=",r,n,s.exportKind,i,o),o.forEachExportAndPropertyOfModule(r,(e,t)=>{e!==(null==s?void 0:s.symbol)&&IX(e,o)&&sf(a,t)&&_.add(c.path,e,t,r,n,0,i,o)})})}catch(e){throw _.clear(),e}null!=(i=r.log)&&i.call(r,`getExportInfoMap: done in ${$t()-a} ms`)}return _}function AX(e,t){var r=t.resolveExternalModuleSymbol(e);return r!==e?{symbol:r,exportKind:2}:(r=t.tryGetMemberInModuleExports("default",e))?{symbol:r,exportKind:1}:void 0}function IX(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||Xw(e)||Ju(e))}function OX(e,t,r,n,i){let a,o=e;for(;o;){var s=oX(o);if(s){s=i(s);if(s)return s}if("default"!==o.escapedName&&"export="!==o.escapedName){s=i(o.name);if(s)return s}a=Q4(a,o),o=2097152&o.flags?t.getImmediateAliasedSymbol(o):void 0}for(var c of a??H4)if(c.parent&&L7(c.parent)){c=i(cX(c.parent,vD(r),n));if(c)return c}}function LX(){let y=M3(99,!1);function _(e,t,r){let n=0,i=0,a=[];var{prefix:t,pushTemplate:o}=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 Y4.assertNever(e)}}(t),s=(e=t+e,t.length);o&&a.push(16),y.setText(e);let c=0;var l,_,u,d,p,f=[];let m=0;do{if(!Lu(n=y.scan())){switch(l=void 0,n){case 44:case 69:RX[i]||14!==y.reScanSlashToken()||(n=14);break;case 30:80===i&&m++;break;case 32:0=e.length&&void 0!==(g=function(t,e,r){switch(e){case 11:{if(!t.isUnterminated())return;var n=t.getTokenText(),i=n.length-1;let e=0;for(;92===n.charCodeAt(i-e);)e++;return 0==(1&e)?void 0:34===n.charCodeAt(0)?3:2}case 3:return t.isUnterminated()?1:void 0;default:if(nc(e)){if(!t.isUnterminated())return;switch(e){case 18:return 5;case 15:return 4;default:return Y4.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+e)}}return 16===r?6:void 0}}(y,n,KT(a)))&&(c=g)}while(1!==n);return{endOfLineState:c,spans:f}}return{getClassificationsForLine:function(e,i,a){{i=_(e,i,a),a=e;let t=[],r=i.spans,n=0;for(let e=0;ee,()=>!0);function MX(e,t,r,n,i){return qX(JX(e,t,r,n,i))}function BX(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function JX(a,o,s,c,l){let _=[];return s.forEachChild(function e(t){var r,n,i;t&&Ko(l,t.pos,t.getFullWidth())&&(BX(o,t.kind),uT(t)&&!W7(t)&&c.has(t.escapedText)&&(i=(i=a.getSymbolAtLocation(t))&&function e(t,r,n){let i=t.getFlags();if(0!=(2885600&i))return 32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&zX(t)?14:void 0:2097152&i?e(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}(i,KW(t),a))&&(r=t.getStart(s),n=t.getEnd(),i=i,n-=r,Y4.assert(0sF(e)&&1===oL(e))}function qX(e){Y4.assert(e.spans.length%3==0);var t=e.spans,r=[];for(let e=0;e])*)(\/>)?)?/im.exec(n);if(!n)return;if(!(n[3]&&n[3]in ni))return;let i=e,a=(f(i,n[1].length),p(i+=n[1].length,n[2].length,10),p(i+=n[2].length,n[3].length,21),i+=n[3].length,n[4]),o=i;for(;;){var s=r.exec(a);if(!s)break;var c=i+s.index+s[1].length;c>o&&(f(o,c-o),o=c),p(o,s[2].length,22),o+=s[2].length,s[3].length&&(f(o,s[3].length),o+=s[3].length),p(o,s[4].length,5),o+=s[4].length,s[5].length&&(f(o,s[5].length),o+=s[5].length),p(o,s[6].length,24),o+=s[6].length}(i+=n[4].length)>o&&f(o,i-o);n[5]&&(p(i,n[5].length,10),i+=n[5].length);n=e+t;i{e=t(e);void 0!==e&&r.push(...se(e))}),r}function $X(e,t){t=XX(t);return t&&t===e}function XX(r){return tT(r,e=>{switch(e.kind){case 255:if(251===r.kind)return!1;case 248:case 249:case 250:case 247:case 246:return!r.label||(t=r.label.escapedText,!!tT(e.parent,e=>s1(e)?e.label.escapedText===t:"quit"));default:return jC(e)&&"quit"}var t})}function QX(e,t,...r){return t&&TT(r,t.kind)&&(e.push(t),1)}function YX(t){let r=[];if(QX(r,t.getFirstToken(),99,117,92)&&246===t.kind){var n=t.getChildren();for(let e=n.length-1;0<=e&&!QX(r,n[e],117);e--);}return G4(KX(t.statement),e=>{$X(t,e)&&QX(r,e.getFirstToken(),83,88)}),r}function ZX(e){var t=XX(e);if(t)switch(t.kind){case 248:case 249:case 250:case 246:case 247:return YX(t);case 255:return eQ(t)}}function eQ(t){let r=[];return QX(r,t.getFirstToken(),109),G4(t.caseBlock.clauses,e=>{QX(r,e.getFirstToken(),84,90),G4(KX(e),e=>{$X(t,e)&&QX(r,e.getFirstToken(),83)})}),r}function tQ(e,t){var r=[];return QX(r,e.getFirstToken(),113),e.catchClause&&QX(r,e.catchClause.getFirstToken(),85),e.finallyBlock&&QX(r,MH(e,98,t),98),r}function rQ(e,r){e=function(e){let t=e;for(;t.parent;){var r=t.parent;if(O_(r)||307===r.kind)return r;if(l1(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(e);if(e){let t=[];return G4(HX(e),e=>{t.push(MH(e,111,r))}),O_(e)&&L5(e,e=>{t.push(MH(e,107,r))}),t}}function nQ(e,r){e=X5(e);if(e){let t=[];return L5(s3(e.body,KP),e=>{t.push(MH(e,107,r))}),G4(HX(e.body),e=>{t.push(MH(e,111,r))}),t}}function iQ(e){e=X5(e);if(e){let t=[];return e.modifiers&&e.modifiers.forEach(e=>{QX(t,e,134)}),h9(e,e=>{aQ(e,e=>{RP(e)&&QX(t,e.getFirstToken(),135)})}),t}}function aQ(e,t){t(e),jC(e)||qC(e)||iF(e)||sF(e)||aF(e)||KC(e)||h9(e,e=>aQ(e,t))}function oQ(e){return!!e.sourceFile}function sQ(e,t,r){return cQ(e,t,r)}function cQ(e,o="",h,y){let v=new Map,s=ze(!!e);function b(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function c(e,t,r,n,i,a,o,s){return _(e,t,r,n,i,a,!0,o,s)}function l(e,t,r,n,i,a,o,s){return _(e,t,b(r),n,i,a,!1,o,s)}function x(e,t){e=oQ(e)?e:e.get(Y4.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return Y4.assert(void 0===t||!e||e.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==e?void 0:e.sourceFile.scriptKind}, !entry: `+!e),e}function _(e,r,t,n,i,a,o,s,c){s=ym(e,s);var l=b(t),t=t===l?void 0:t,_=6===s?100:vD(l),c="object"==typeof c?c:{languageVersion:_,impliedNodeFormat:t&&jJ(r,null==(u=null==(u=null==(c=null==(c=t.getCompilerHost)?void 0:c.call(t))?void 0:c.getModuleResolutionCache)?void 0:u.call(c))?void 0:u.getPackageJsonInfoCache(),t,l),setExternalModuleIndicator:If(l),jsDocParsingMode:h},u=(c.languageVersion=_,Y4.assertEqual(h,c.jsDocParsingMode),v.size);let d=_Q(n,c.impliedNodeFormat),p=IT(v,d,()=>new Map),f=(Z4&&(v.size>u&&Z4.instant(Z4.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:l.configFilePath,key:d}),t=!x9(r)&&j7(v,(e,t)=>t!==d&&e.has(r)&&t))&&Z4.instant(Z4.Phase.Session,"documentRegistryBucketOverlap",{path:r,key1:t,key2:d}),p.get(r)),m=f&&x(f,s);return!m&&y&&(_=y.getDocument(d,r))&&_.scriptKind===s&&_.text===KK(i)&&(Y4.assert(o),m={sourceFile:_,languageServiceRefCount:0},g()),m?(m.sourceFile.version!==a&&(m.sourceFile=Bre(m.sourceFile,i,a,i.getChangeRange(m.sourceFile.scriptSnapshot)),y)&&y.setDocument(d,r,m.sourceFile),o&&m.languageServiceRefCount++):(n=Mre(e,i,c,a,!1,s),y&&y.setDocument(d,r,n),m={sourceFile:n,languageServiceRefCount:1},g()),Y4.assert(0!==m.languageServiceRefCount),m.sourceFile;function g(){var e;f?oQ(f)?((e=new Map).set(f.sourceFile.scriptKind,f),e.set(s,m),p.set(r,e)):f.set(s,m):p.set(r,m)}}function i(e,t,r,n){var t=Y4.checkDefined(v.get(_Q(t,n))),n=t.get(e),i=x(n,r);i.languageServiceRefCount--,Y4.assert(0<=i.languageServiceRefCount),0===i.languageServiceRefCount&&(oQ(n)?t.delete(e):(n.delete(r),1===n.size&&t.set(e,gr(n.values(),Ti))))}return{acquireDocument:function(e,t,r,n,i,a){return c(e,pa(e,o,s),t,lQ(b(t)),r,n,i,a)},acquireDocumentWithKey:c,updateDocument:function(e,t,r,n,i,a){return l(e,pa(e,o,s),t,lQ(b(t)),r,n,i,a)},updateDocumentWithKey:l,releaseDocument:function(e,t,r,n){return i(pa(e,o,s),lQ(t),r,n)},releaseDocumentWithKey:i,getKeyForCompilationSettings:lQ,getDocumentRegistryBucketKeyWithMode:_Q,reportStats:function(){var e=ZT(v.keys()).filter(e=>e&&"_"===e.charAt(0)).map(e=>{var t=v.get(e);let n=[];return t.forEach((e,r)=>{oQ(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((e,t)=>n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount}))}),n.sort((e,t)=>t.refCount-e.refCount),{bucket:e,sourceFiles:n}});return JSON.stringify(e,void 0,2)},getBuckets:()=>v}}function lQ(e){return JI(e,R4)}function _Q(e,t){return t?e+"|"+t:e}function uQ(n,b,x,S,e,t,r){let k=bd(S),i=ze(k),T=dQ(b,x,i,r),C=dQ(x,b,i,r);return I.ChangeTracker.with({host:S,formatContext:e,preferences:t},e=>{{var t=n,a=e,r=T,o=b,s=x,c=S.getCurrentDirectory(),l=k;let i=t.getCompilerOptions()["configFile"];if(i){let n=D3(i.fileName);t=R_(i);function _(e){var t;let r=!1;for(t of NP(e.initializer)?e.initializer.elements:[e.initializer])r=u(t)||r;return r}function u(e){var t;return!!qE(e)&&(t=pQ(n,e.text),void 0!==(t=r(t)))&&(a.replaceRangeWithText(i,mQ(e,i),d(t)),!0)}function d(e){return wa(n,e,!l)}t&&gQ(t,(e,t)=>{switch(t){case"files":case"include":case"exclude":var r;return _(e)||"include"!==t||!NP(e.initializer)?void 0:0===(r=AT(e.initializer.elements,e=>qE(e)?e.text:void 0)).length?void 0:(r=mm(n,[],r,l,c),void(gm(Y4.checkDefined(r.includeFilePattern),l).test(o)&&!gm(Y4.checkDefined(r.includeFilePattern),l).test(s)&&a.insertNodeAfter(i,GT(e.initializer.elements),cT.createStringLiteral(d(s)))));case"compilerOptions":return void gQ(e.initializer,(e,t)=>{var r=j9(t);Y4.assert("listOrElement"!==(null==r?void 0:r.type)),r&&(r.isFilePath||"list"===r.type&&r.element.isFilePath)?_(e):"paths"===t&&gQ(e.initializer,e=>{if(NP(e.initializer))for(var t of e.initializer.elements)u(t)})})}})}}{var p=n,f=e,m=T,g=C,h=S,y=i;let c=p.getSourceFiles();for(let s of c){var v=m(s.fileName);let r=v??s.fileName,t=D3(r),n=g(s.fileName),i=n||s.fileName,a=D3(i),o=void 0!==v||void 0!==n;!function(e,t,r,n){for(var i of e.referencedFiles||H4){var a=r(i.fileName);void 0!==a&&a!==e.text.slice(i.pos,i.end)&&t.replaceRangeWithText(e,i,a)}for(var o of e.imports){var s=n(o);void 0!==s&&s!==o.text&&t.replaceRangeWithText(e,mQ(o,e),s)}}(s,f,e=>{if(T3(e))return e=pQ(a,e),void 0===(e=m(e))?void 0:ga(wa(t,e,y))},e=>{var t=p.getTypeChecker().getSymbolAtLocation(e);return(null==t||!t.declarations||!t.declarations.some(e=>Z7(e)))&&void 0!==(t=void 0!==n?fQ(e,rO(e.text,i,p.getCompilerOptions(),h),m,c):function(e,t,r,n,i,a){{var o;return e?(e=bT(e.declarations,LF).fileName,void 0===(o=a(e))?{newFileName:e,updated:!1}:{newFileName:o,updated:!0}):(e=n.getModeForUsageLocation(r,t),o=i.resolveModuleNameLiterals||!i.resolveModuleNames?n.getResolvedModuleFromModuleSpecifier(t,r):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,e),fQ(t,o,a,n.getSourceFiles()))}}(t,e,s,p,h,m))&&(t.updated||o&&T3(e.text))?yL.updateModuleSpecifier(p.getCompilerOptions(),s,r,t.newFileName,eG(p,h),e.text):void 0})}}})}function dQ(e,a,o,s){let c=o(e);return e=>{var t=s&&s.tryGetSourcePosition({fileName:e,pos:0}),r=function(e){if(o(e)===c)return a;e=Yf(e,c,o);return void 0===e?void 0:a+"/"+e}(t?t.fileName:e);{var n,i;return t?void 0===r?void 0:(t=Da(t=t.fileName,r,o),pQ(D3(e),t)):r}}}function pQ(e,t){return ga(ua(E3(e,t)))}function fQ(e,t,r,n){if(t){if(t.resolvedModule){var i=o(t.resolvedModule.resolvedFileName);if(i)return i}i=G4(t.failedLookupLocations,function(e){let t=r(e);return t&&bT(n,e=>e.fileName===t)?a(e):void 0})||T3(e.text)&&G4(t.failedLookupLocations,a);return i||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1}}function a(e){return u3(e,"/package.json")?void 0:o(e)}function o(e){e=r(e);return e&&{newFileName:e,updated:!0}}}function mQ(e,t){return wp(e.getStart(t)+1,e.end-1)}function gQ(e,t){if(DP(e))for(var r of e.properties)FF(r)&&qE(r.name)&&t(r,r.name.text)}(jX||(jX={})).getDocumentHighlights=function(e,t,r,n,i){var a,o,s=XH(r,n);return s.parent&&(kF(s.parent)&&s.parent.tagName===s||x1(s.parent))?({openingElement:o,closingElement:a}=s.parent.parent,o=[o,a].map(({tagName:e})=>WX(e,r)),[{fileName:r.fileName,highlightSpans:o}]):function(e,t,n,r,i){let a=new Set(i.map(e=>e.fileName)),o=ope.getReferenceEntriesForNode(e,t,n,i,r,void 0,a);if(o){e=e3(o.map(ope.toHighlightSpan),e=>e.fileName,e=>e.span);let r=ze(n.useCaseSensitiveFileNames());return ZT(g(e.entries(),([e,t])=>{if(!a.has(e)){if(!n.redirectTargetsMap.has(pa(e,n.getCurrentDirectory(),r)))return;let t=n.getSourceFile(e);e=bT(i,e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t).fileName,Y4.assert(a.has(e))}return{fileName:e,highlightSpans:t}}))}}(n,s,e,t,i)||function(e,t){e=function(e,n){switch(e.kind){case 101:case 93:return XP(e.parent)?function(e,r){var n=function(e,t){var r=[];for(;XP(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){var n=e.getChildren(t);QX(r,n[0],101);for(let e=n.length-1;0<=e&&!QX(r,n[e],93);e--);if(!e.elseStatement||!XP(e.elseStatement))break;e=e.elseStatement}return r}(e,r),i=[];for(let e=0;e=a.end;e--)if(!so(r.text.charCodeAt(e))){t=!1;break}if(t){i.push({fileName:r.fileName,textSpan:Yo(a.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(WX(n[e],r))}return i}(e.parent,n):void 0;case 107:return i(e.parent,i1,nQ);case 111:return i(e.parent,c1,rQ);case 113:case 85:case 98:return i((85===e.kind?e.parent:e).parent,l1,tQ);case 109:return i(e.parent,o1,eQ);case 84:case 90:return w1(e.parent)||C1(e.parent)?i(e.parent.parent.parent,o1,eQ):void 0;case 83:case 88:return i(e.parent,$s,ZX);case 99:case 117:case 92:return i(e.parent,e=>n7(e,!0),YX);case 137:return t(tP,[137]);case 139:case 153:return t(UC,[139,153]);case 135:return i(e.parent,RP,iQ);case 134:return a(iQ(e));case 127:return a(function(e){e=X5(e);if(e){let t=[];return h9(e,e=>{aQ(e,e=>{K0(e)&&QX(t,e.getFirstToken(),127)})}),t}}(e));case 103:case 147:return;default:return uc(e.kind)&&(u7(e.parent)||GP(e.parent))?a(function(t,e){return AT(function(e,t){var r=e.parent;switch(r.kind){case 268:case 307:case 241:case 296:case 297:return 64&t&&nF(e)?[...e.members,e]:r.statements;case 176:case 174:case 262:return[...r.parameters,...qC(r.parent)?r.parent.members:[]];case 263:case 231:case 264:case 187:var n=r.members;if(15&t){var i=bT(r.members,tP);if(i)return[...n,...i.parameters]}else if(64&t)return[...n,r];return n;case 210:return;default:Y4.assertNever(r,"Invalid container kind.")}}(e,jN(t)),e=>mG(e,t))}(e.kind,e.parent)):void 0}function t(t,r){return i(e.parent,t,e=>{return AT(null==(e=o3(e,l7))?void 0:e.symbol.declarations,e=>t(e)?bT(e.getChildren(n),e=>TT(r,e.kind)):void 0)})}function i(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map(e=>WX(e,n))}}(e,t);return e&&[{fileName:t.fileName,highlightSpans:e}]}(s,r)};var hQ=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(hQ||{});function yQ(e,t){return{kind:e,isCaseSensitive:t}}function vQ(e){let r=new Map,o=e.trim().split(".").map(e=>{return{totalTextChunk:FQ(e=e.trim()),subWordTextChunks:function(t){let r=[],n=0,i=0;for(let e=0;eyQ(2,!0),getFullMatch:()=>yQ(2,!0),patternContainsDots:!1}:o.some(e=>!e.subWordTextChunks.length)?void 0:{getFullMatch:(e,t)=>{var n=e,e=t,i=o,a=r;if((e=SQ(e,GT(i),a))&&!(i.length-1>n.length)){let r;for(let e=i.length-2,t=n.length-1;0<=e;--e,--t)r=kQ(r,SQ(n[t],i[e],a));return r}},getMatchForLastSegmentOfPattern:e=>SQ(e,GT(o),r),patternContainsDots:1EQ(n.charCodeAt(t+r))===e))return r;return-1}(e,t.textLowerCase);if(0===i)return yQ(t.text.length===e.length?0:1,f3(e,t.text));if(t.isLowerCase){if(-1!==i){for(n of bQ(e,r))if(CQ(e,n,t.text,!0))return yQ(2,CQ(e,n,t.text,!1));return t.text.length32!==e&&42!==e)){var n=xQ(e,t.totalTextChunk,r);if(n)return n}var i;let a;for(i of t.subWordTextChunks)a=kQ(a,xQ(e,i,r));return a}function kQ(e,t){return ve([e,t],TQ)}function TQ(e,t){return void 0===e?1:void 0===t?-1:l3(e.kind,t.kind)||Fe(!e.isCaseSensitive,!t.isCaseSensitive)}function CQ(r,n,i,a,o={start:0,length:i.length}){return o.length<=n.length&&RQ(0,o.length,e=>{return t=i.charCodeAt(o.start+e),e=r.charCodeAt(n.start+e),a?EQ(t)===EQ(e):t===e;var t})}function wQ(r,n,i,a){var o=i.characterSpans;let s=0,c=0,l,_;for(;;){if(c===o.length)return 1;if(s===n.length)return;let e=n[s],t=!1;for(;cLQ(e)&&95!==e,t,r)}function RQ(t,r,n){for(let e=t;er(t.charCodeAt(e),e))}function BQ(r,e=!0,n=!1){var t={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0};let i=[],a,o,s,c=0,l=!1;function _(){return o=s,19===(s=VW.scan())?c++:20===s&&c--,s}function u(){var e=VW.getTokenValue(),t=VW.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function d(){i.push(u()),p()}function p(){0===c&&(l=!0)}function f(){return 138===VW.getToken()&&(144===_()&&11===_()&&(a=a||[]).push({ref:u(),depth:c}),1)}function m(){if(25!==o){let e=VW.getToken();if(102===e){if(21===(e=_())){if(11===(e=_())||15===e)d()}else{if(11===e)return d(),1;if(80===(e=156===e&&VW.lookAhead(()=>{var e=VW.scan();return 161!==e&&(42===e||19===e||80===e||Nu(e))})?_():e)||Nu(e))if(161===(e=_())){if(11===(e=_()))return d(),1}else if(64===e){if(g(!0))return 1}else{if(28!==e)return 1;e=_()}if(19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&161===(e=_())&&11===(e=_())&&d()}else 42!==e||130!==(e=_())||80!==(e=_())&&!Nu(e)||161!==(e=_())||11!==(e=_())||d()}return 1}}}function g(e,t=!1){return 149===(e?_():VW.getToken())&&(21===_()&&(11===(e=_())||t&&15===e)&&d(),1)}function h(){for(VW.setText(r),_();;){if(1===VW.getToken())break;if(16===VW.getToken()){var e=[VW.getToken()];e:for(;K4(e);){var t=VW.scan();switch(t){case 1:break e;case 102:m();break;case 16:e.push(t);break;case 19:K4(e)&&e.push(t);break;case 20:!K4(e)||16===KT(e)&&18!==VW.reScanTemplateToken(!1)||e.pop()}}_()}f()||m()||function(){let e=VW.getToken();if(95===e){if(p(),19===(e=156===(e=_())&&VW.lookAhead(()=>{var e=VW.scan();return 42===e||19===e})?_():e)){for(e=_();20!==e&&1!==e;)e=_();20===e&&161===(e=_())&&11===(e=_())&&d()}else if(42===e)161===(e=_())&&11===(e=_())&&d();else if(102===e)if((80===(e=156===(e=_())&&VW.lookAhead(()=>{var e=VW.scan();return 80===e||Nu(e)})?_():e)||Nu(e))&&64===(e=_())&&g(!0));return 1}}()||n&&(g(!1,!0)||function(){let e=VW.getToken();if(80===e&&"define"===VW.getTokenValue()){if(21===(e=_())){if(11===(e=_())||15===e){if(28!==(e=_()))return 1;e=_()}if(23===e)for(e=_();24!==e&&1!==e;)11!==e&&15!==e||d(),e=_()}return 1}}())||_()}VW.setText(void 0)}if(e&&h(),m4(t,r),g4(t,yr),l){if(a)for(var y of a)i.push(y.ref);return{referencedFiles:t.referencedFiles,typeReferenceDirectives:t.typeReferenceDirectives,libReferenceDirectives:t.libReferenceDirectives,importedFiles:i,isLibFile:!!t.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(a)for(var v of a)0===v.depth?(e=e||[]).push(v.ref.fileName):i.push(v.ref);return{referencedFiles:t.referencedFiles,typeReferenceDirectives:t.typeReferenceDirectives,libReferenceDirectives:t.libReferenceDirectives,importedFiles:i,isLibFile:!!t.hasNoDefaultLib,ambientExternalModules:e}}}var JQ=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/;function zQ(a){let o=ze(a.useCaseSensitiveFileNames()),n=a.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:function e(t){if(!x9(t.fileName))return;let r=_(t.fileName);if(!r)return;let n=l(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(e){if(!x9(e.fileName)){var t=_(e.fileName);if(t){var r=a.getProgram();if(!r.isSourceOfProjectReferenceRedirect(t.fileName))return t=r.getCompilerOptions().outFile,void 0===(t=t?qm(t)+".d.ts":Dd(e.fileName,r.getCompilerOptions(),n,r.getCommonSourceDirectory(),o))||(r=l(t,e.fileName).getGeneratedPosition(e))===e?void 0:r}}},toLineColumnOffset:function(e,t){e=u(e);return e.getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),s.clear()},documentPositionMappers:s};function c(e){return pa(e,n,o)}function l(e,t){var r=c(e),n=s.get(r);if(n)return n;let i;return a.getDocumentPositionMapper?i=a.getDocumentPositionMapper(e,t):a.readFile&&(n=u(e),i=n&&qQ({getSourceFileLike:u,getCanonicalFileName:o,log:e=>a.log(e)},e,Ej(n.text,ro(n)),e=>!a.fileExists||a.fileExists(e)?a.readFile(e):void 0)),s.set(r,i||Vj),i||Vj}function _(e){var t=a.getProgram();if(t)return e=c(e),(t=t.getSourceFileByPath(e))&&t.resolvedPath===e?t:void 0}function t(e){var t,r=c(e),n=i.get(r);return void 0!==n?n||void 0:!a.readFile||a.fileExists&&!a.fileExists(e)?void i.set(r,!1):(e=!!(n=a.readFile(e))&&{text:n,lineMap:t,getLineAndCharacterOfPosition(e){return no(ro(this),e)}},i.set(r,e),e||void 0)}function u(e){return a.getSourceFileLike?a.getSourceFileLike(e):_(e)||t(e)}}function qQ(e,t,r,n){let i=Pj(r);if(i){var r=JQ.exec(i);if(r){if(r[1])return r=r[1],UQ(e,yp(Ji,r),t);i=void 0}}var a,r=[],o=(i&&r.push(i),r.push(t+".map"),i&&P3(i,D3(t)));for(a of r){var s=P3(a,D3(t)),c=n(s,o);if(a3(c))return UQ(e,c,s);if(void 0!==c)return c||void 0}}function UQ(e,t,r){t=Ij(t);if(t&&t.sources&&t.file&&t.mappings&&(!t.sourcesContent||!t.sourcesContent.some(a3)))return Uj(e,t,r)}var VQ=new Map;function WQ(n,e,t){var r;e.getSemanticDiagnostics(n,t);let i=[],a=e.getTypeChecker(),o=(!(1===n.impliedNodeFormat||N3(n.fileName,[".cts",".cjs"]))&&n.commonJsModuleIndicator&&(YK(e)||ZK(e.getCompilerOptions()))&&n.statements.some(e=>{switch(e.kind){case 243:return e.declarationList.declarations.some(e=>!!e.initializer&&E8(function e(t){return dT(t)?e(t.expression):t}(e.initializer),!0));case 244:var t,r=e["expression"];return pT(r)?1===(t=V8(r))||2===t:E8(r,!0);default:return!1}})&&i.push(aT(pT(r=n.commonJsModuleIndicator)?r.left:r,eT.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module)),C8(n));if(VQ.clear(),!function e(t){if(o)eY(t,a)&&i.push(aT(eF(t.parent)?t.parent.name:t,eT.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(GP(t)&&t.parent===n&&2&t.declarationList.flags&&1===t.declarationList.declarations.length){let e=t.declarationList.declarations[0].initializer;e&&E8(e,!0)&&i.push(aT(e,eT.require_call_may_be_converted_to_an_import))}let e=hne.getJSDocTypedefNodes(t);for(var r of e)i.push(aT(r,eT.JSDoc_typedef_may_be_converted_to_TypeScript_type));hne.parameterShouldGetTypeFromJSDoc(t)&&i.push(aT(t.name||t,eT.JSDoc_types_may_be_moved_to_TypeScript_types))}tY(t)&&HQ(t,a,i);t.forEachChild(e)}(n),TD(e.getCompilerOptions()))for(var s of n.imports){var c=function(e){switch(e.kind){case 272:var{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&274===t.namedBindings.kind&&qE(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}(su(s));c&&(s=(s=null==(s=e.getResolvedModuleFromModuleSpecifier(s,n))?void 0:s.resolvedModule)&&e.getSourceFile(s.resolvedFileName))&&s.externalModuleIndicator&&!0!==s.externalModuleIndicator&&gF(s.externalModuleIndicator)&&s.externalModuleIndicator.isExportEquals&&i.push(aT(c,eT.Import_may_be_converted_to_a_default_import))}return BT(i,n.bindSuggestionDiagnostics),BT(i,e.getSuggestionDiagnostics(n,t)),i.sort((e,t)=>e.start-t.start)}function HQ(e,t,r){var n;t=t,!Ru(n=e)&&n.body&&KP(n.body)&&function(e,t){return L5(e,e=>GQ(e,t))}(n.body,t)&&KQ(n,t)&&!VQ.has(ZQ(e))&&r.push(aT(!e.name&&eF(e.parent)&&uT(e.parent.name)?e.parent.name:e,eT.This_may_be_converted_to_an_async_function))}function KQ(e,t){e=t.getSignatureFromDeclaration(e),e=e?t.getReturnTypeOfSignature(e):void 0;return!!e&&!!t.getPromisedTypeOfPromise(e)}function GQ(e,t){return i1(e)&&!!e.expression&&$Q(e.expression,t)}function $Q(e,t){if(!XQ(e)||!QQ(e)||!e.arguments.every(e=>YQ(e,t)))return!1;let r=e.expression.expression;for(;XQ(r)||dT(r);)if(PP(r)){if(!QQ(r)||!r.arguments.every(e=>YQ(e,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function XQ(e){return PP(e)&&(cH(e,"then")||cH(e,"catch")||cH(e,"finally"))}function QQ(e){var t=e.expression.name.text,t="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>t)&&(e.arguments.length106===e.kind||uT(e)&&"undefined"===e.text))}function YQ(e,t){switch(e.kind){case 262:case 218:if(1&zw(e))return!1;case 219:VQ.set(ZQ(e),!0);case 106:return!0;case 80:case 211:var r=t.getSymbolAtLocation(e);return r?t.isUndefinedSymbol(r)||X4(Xp(r,t).declarations,e=>jC(e)||b7(e)&&!!e.initializer&&jC(e.initializer)):!1;default:return!1}}function ZQ(e){return e.pos.toString()+":"+e.end.toString()}function eY(e,t){var r;return OP(e)?!(!eF(e.parent)||null==(r=e.symbol.members)||!r.size)||!(!(r=t.getSymbolOfExpando(e,!1))||!(null!=(t=r.exports)&&t.size||null!=(t=r.members)&&t.size)):!!rF(e)&&!(null==(r=e.symbol.members)||!r.size)}function tY(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var rY=new Set(["isolatedModules"]);function nY(e,t){return lY(e,t,!1)}function iY(e,t){return lY(e,t,!0)}var aY,oY,sY=`/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number {} +interface Object {} +interface RegExp {} +interface String {} +interface Array { length: number; [n: number]: T; } +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +}`,cY="lib.d.ts";function lY(e,t,r){aY=aY??Qv(cY,sY,{languageVersion:99});var n,i,a=[],o=t.compilerOptions?uY(t.compilerOptions,a):{},s=Ore();for(n in s)Si(s,n)&&void 0===o[n]&&(o[n]=s[n]);for(i of B4)o.verbatimModuleSyntax&&rY.has(i.name)||(o[i.name]=i.transpileOptionValue);o.suppressOutputPathCheck=!0,o.allowNonTsExtensions=!0,r?(o.declaration=!0,o.emitDeclarationOnly=!0,o.isolatedDeclarations=!0):o.declaration=!1;let c=Cp(o);var l={getSourceFile:e=>e===ua(_)?u:e===ua(cY)?aY:void 0,writeFile:(e,t)=>{w3(e,".map")?(Y4.assertEqual(p,void 0,"Unexpected multiple source map outputs, file:",e),p=t):(Y4.assertEqual(d,void 0,"Unexpected multiple outputs, file:",e),d=t)},getDefaultLibFileName:()=>cY,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>c,fileExists:e=>e===_||!!r&&e===cY,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]};let _=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),u=Qv(_,e,{languageVersion:vD(o),impliedNodeFormat:jJ(pa(_,"",l.getCanonicalFileName),void 0,l,o),setExternalModuleIndicator:If(o),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(u.moduleName=t.moduleName),t.renamedDependencies&&(u.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let d,p;e=BJ(r?[_,cY]:[_],o,l),t.reportDiagnostics&&(BT(a,e.getSyntacticDiagnostics(u)),BT(a,e.getOptionsDiagnostics())),l=e.emit(void 0,void 0,void 0,r,t.transformers,r);return BT(a,l.diagnostics),void 0===d?Y4.fail("Output generation failed"):{outputText:d,diagnostics:a,sourceMapText:p}}function _Y(e,t,r,n,i){e=nY(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!n,moduleName:i});return BT(n,e.diagnostics),e.outputText}function uY(e,r){oY=oY||NT(A4,e=>"object"==typeof e.type&&!j7(e.type,e=>"number"!=typeof e)),e=EK(e);for(var n of oY)if(Si(e,n.name)){let t=e[n.name];a3(t)?e[n.name]=N9(n,t,r):j7(n.type,e=>e===t)||r.push(C9(n))}return e}var dY={};function pY(e,p,t,r,n,i,f){let m=vQ(r);if(!m)return H4;let g=[],h=1===e.length?e[0]:void 0;for(let d of e)t.throwIfCancellationRequested(),i&&d.isDeclarationFile||fY(d,!!f,h)||d.getNamedDeclarations().forEach((e,t)=>{var r,n=m,i=t,t=e,a=p,o=d.fileName,s=!!f,c=h,l=g,_=n.getMatchForLastSegmentOfPattern(i);if(_)for(var u of t)!function(e,t,r,n){switch(e.kind){case 273:case 276:case 271:var i=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(i);return i.escapedName!==a.escapedName&&(null==(i=a.declarations)||!i.every(e=>fY(e.getSourceFile(),r,n)));default:return 1}}(u,a,s,c)||(n.patternContainsDots?(r=n.getFullMatch(function(e){var t=[],r=tC(e);if(r&&167===r.kind&&!mY(r.expression,t))return H4;t.shift();let n=bH(e);for(;n;){if(!function(e,t){e=tC(e);return e&&(gY(e,t)||167===e.kind&&mY(e.expression,t))}(n,t))return H4;n=bH(n)}return t.reverse()}(u),i))&&l.push({name:i,fileName:o,matchKind:r.kind,isCaseSensitive:r.isCaseSensitive,declaration:u}):l.push({name:i,fileName:o,matchKind:_.kind,isCaseSensitive:_.isCaseSensitive,declaration:u}))});return g.sort(hY),(void 0===n?g:g.slice(0,n)).map(yY)}function fY(e,t,r){return e!==r&&t&&($$(e.path)||e.hasNoDefaultLib)}function mY(e,t){return gY(e,t)||dT(e)&&(t.push(e.name.text),!0)&&mY(e.expression,t)}function gY(e,t){return Hw(e)&&(t.push(Kw(e)),!0)}function hY(e,t){return l3(e.matchKind,t.matchKind)||Ee(e.name,t.name)}function yY(e){var t=e.declaration,r=bH(t),n=r&&tC(r);return{name:e.name,kind:xH(t),kindModifiers:xK(t),matchKind:hQ[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:LK(t),containerName:n?n.text:"",containerKind:n?xH(r):""}}r(dY,{getNavigateToItems:()=>pY});var vY,bY,xY,SY,kY={},TY=(r(kY,{getNavigationBarItems:()=>EY,getNavigationTree:()=>PY}),/\s+/g),CY=150,wY=[],NY=[],DY=[];function EY(e,t){vY=t,bY=e;try{return $4(function(e){let n=[];return function e(t){if(function(e){if(e.children)return 1;switch(IY(e)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return 1;case 219:case 262:case 218:return function(e){if(e.node.body)switch(IY(e.parent)){case 268:case 307:case 174:case 176:return 1;default:return}}(e);default:return}}(t)&&(n.push(t),t.children))for(var r of t.children)e(r)}(e),n}(LY(e)),nZ)}finally{FY()}}function PY(e,t){vY=t,bY=e;try{return rZ(LY(e))}finally{FY()}}function FY(){wY=[],xY=vY=bY=void 0,DY=[]}function AY(e){return _Z(e.getText(bY))}function IY(e){return e.node.kind}function OY(e,t){e.children?e.children.push(t):e.children=[t]}function LY(e){Y4.assert(!wY.length);var t,r={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};xY=r;for(t of e.statements)HY(t);return qY(),Y4.assert(!xY&&!wY.length),r}function jY(e,t){OY(xY,RY(e,t))}function RY(e,t){return{node:e,name:t||(u7(e)||nT(e)?tC(e):void 0),additionalNodes:void 0,parent:xY,children:void 0,indent:xY.indent+1}}function MY(e){(SY=SY||new Map).set(e,!0)}function BY(t){for(let e=0;e{G4(e.tags,e=>{iw(e)&&jY(e)})}),h9(r,HY)}}function KY(e,a){let o=new Map;d(e,(e,t)=>{var r=e.name||tC(e.node),r=r&&AY(r);if(!r)return!0;var n=o.get(r);if(!n)return o.set(r,e),!0;if(n instanceof Array){for(var i of n)if($Y(i,e,t,a))return!1;return n.push(e),!0}return!$Y(n=n,e,t,a)&&(o.set(r,[n,e]),!0)})}var GY={[5]:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function $Y(e,t,r,n){return function(t,r,n,i){function a(e){return OP(e)||rF(e)||eF(e)}var e=pT(r.node)||PP(r.node)?V8(r.node):0,o=pT(t.node)||PP(t.node)?V8(t.node):0;if(GY[e]&&GY[o]||a(t.node)&&GY[e]||a(r.node)&&GY[o]||nF(t.node)&&XY(t.node)&&GY[e]||nF(r.node)&&GY[o]||nF(t.node)&&XY(t.node)&&a(r.node)||nF(r.node)&&a(t.node)&&XY(t.node)){let e=t.additionalNodes&&KT(t.additionalNodes)||t.node;!nF(t.node)&&!nF(r.node)||a(t.node)||a(r.node)?(void 0!==(o=a(t.node)?t.node:a(r.node)?r.node:void 0)?((s=RY(fT(cT.createConstructorDeclaration(void 0,[],void 0),o))).indent=t.indent+1,s.children=(t.node===o?t:r).children,t.children=t.node===o?LT([s],r.children||[r]):LT(t.children||[{...t}],[s])):(t.children||r.children)&&(t.children=LT(t.children||[{...t}],r.children||[r]),t.children)&&(KY(t.children,t),YY(t.children)),e=t.node=fT(cT.createClassDeclaration(void 0,t.name||cT.createIdentifier("__class__"),void 0,void 0,[]),t.node)):(t.children=LT(t.children,r.children),t.children&&KY(t.children,t));var s,o=r.node;return i.children[n-1].node.end===e.end?fT(e,{pos:e.pos,end:o.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(fT(cT.createClassDeclaration(void 0,t.name||cT.createIdentifier("__class__"),void 0,void 0,[]),r.node))),1}return 0!==e}(e,t,r,n)||(function(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&(!QY(e,r)||!QY(t,r)))return;switch(e.kind){case 172:case 174:case 177:case 178:return CN(e)===CN(t);case 267:return function e(t,r){if(!t.body||!r.body)return t.body===r.body;return t.body.kind===r.body.kind&&(267!==t.body.kind||e(t.body,r.body))}(e,t)&&oZ(e)===oZ(t);default:return 1}}(e.node,t.node,n)?(r=t,(n=e).additionalNodes=n.additionalNodes||[],n.additionalNodes.push(r.node),r.additionalNodes&&n.additionalNodes.push(...r.additionalNodes),n.children=LT(n.children,r.children),n.children&&(KY(n.children,n),YY(n.children)),1):void 0)}function XY(e){return 16&e.flags}function QY(e,t){e=(cF(e.parent)?e.parent:e).parent;return e===t.node||TT(t.additionalNodes,e)}function YY(e){e.sort(ZY)}function ZY(e,t){return Ee(eZ(e.node),eZ(t.node))||l3(IY(e),IY(t))}function eZ(e){if(267===e.kind)return aZ(e);var t=tC(e);if(t&&LC(t))return(t=Ww(t))&&X3(t);switch(e.kind){case 218:case 219:case 231:return lZ(e);default:return}}function tZ(e,t){if(267===e.kind)return _Z(aZ(e));if(t){t=uT(t)?t.text:EP(t)?`[${AY(t.argumentExpression)}]`:AY(t);if(0";case 277:return gF(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return 2048&ep(e)?"default":lZ(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function rZ(e){return{text:tZ(e.node,e.name),kind:xH(e.node),kindModifiers:cZ(e.node),spans:iZ(e),nameSpan:e.name&&sZ(e.name),childItems:$4(e.children,rZ)}}function nZ(e){return{text:tZ(e.node,e.name),kind:xH(e.node),kindModifiers:cZ(e.node),spans:iZ(e),childItems:$4(e.children,function(e){return{text:tZ(e.node,e.name),kind:xH(e.node),kindModifiers:xK(e.node),spans:iZ(e),childItems:DY,indent:0,bolded:!1,grayed:!1}})||DY,indent:e.indent,bolded:!1,grayed:!1}}function iZ(e){var t=[sZ(e.node)];if(e.additionalNodes)for(var r of e.additionalNodes)t.push(sZ(r));return t}function aZ(e){return Z7(e)?K7(e.name):oZ(e)}function oZ(e){for(var t=[Kw(e.name)];e.body&&267===e.body.kind;)e=e.body,t.push(Kw(e.name));return t.join(".")}function sZ(e){return 307===e.kind?MK(e):LK(e,bY)}function cZ(e){return xK(e=e.parent&&260===e.parent.kind?e.parent:e)}function lZ(e){var t=e["parent"];if(e.name&&0";if(PP(t)){e=function r(n){{if(uT(n))return n.text;if(dT(n)){let e=r(n.expression),t=n.name.text;return void 0===e?t:e+"."+t}}}(t.expression);if(void 0!==e)return(e=_Z(e)).length>CY?e+" callback":e+`(${_Z(AT(t.arguments,e=>k7(e)||Fc(e)?e.getText(bY):void 0).join(", "))}) callback`}return""}function _Z(e){return(e=e.length>CY?e.substring(0,CY)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var uZ={},dZ=(r(uZ,{addExportToChanges:()=>iee,addExportsInOldFile:()=>UZ,addImportsForMovedSymbols:()=>$Z,addNewFileToTsconfig:()=>JZ,addOrRemoveBracesToArrowFunction:()=>Fee,addTargetFileImports:()=>xee,containsJsx:()=>see,convertArrowFunctionOrFunctionExpression:()=>qee,convertParamsToDestructuredObject:()=>Yee,convertStringOrTemplateLiteral:()=>mte,convertToOptionalChainExpression:()=>Nte,createNewFileName:()=>aee,deleteMovedStatements:()=>zZ,deleteUnusedImports:()=>QZ,deleteUnusedOldImports:()=>qZ,doChangeNamedToNamespaceOrDefault:()=>CZ,extractSymbol:()=>Bte,filterImport:()=>tee,forEachImportInStatement:()=>KZ,generateGetAccessorAndSetAccessor:()=>rre,getApplicableRefactors:()=>function(r,n){return ZT(f(dZ.values(),e=>{var t;return r.cancellationToken&&r.cancellationToken.isCancellationRequested()||null==(t=e.kinds)||!t.some(e=>vee(e,r.kind))?void 0:e.getAvailableActions(r,n)}))},getEditsForRefactor:()=>function(e,t,r,n){t=dZ.get(t);return t&&t.getEditsForAction(e,r,n)},getExistingLocals:()=>hee,getIdentifierForNode:()=>bee,getNewStatementsAndRemoveFromOldFile:()=>BZ,getStatementsToMove:()=>oee,getTopLevelDeclarationStatement:()=>nee,getUsageInfo:()=>lee,inferFunctionReturnType:()=>ore,isRefactorErrorInfo:()=>yee,isTopLevelDeclaration:()=>fee,moduleSpecifierFromImport:()=>HZ,nameOfTopLevelDeclaration:()=>ree,refactorKindBeginsWith:()=>vee,registerRefactor:()=>pZ,updateImportsInOtherFiles:()=>VZ}),new Map);function pZ(e,t){dZ.set(e,t)}var fZ="Convert export",mZ={name:"Convert default export to named export",description:xf(eT.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},gZ={name:"Convert named export to default export",description:xf(eT.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function hZ(e,t=!0){var{file:r,program:n}=e,e=Z$(e),i=YH(r,e.start),a=i.parent&&32&ep(i.parent)&&t?i.parent:fG(i,r,e);if(!(a&&(LF(a.parent)||cF(a.parent)&&Z7(a.parent.parent))))return{error:xf(eT.Could_not_find_export_statement)};let o=n.getTypeChecker();var s=function(e,t){if(LF(e))return e.symbol;e=e.parent.symbol;if(e.valueDeclaration&&i5(e.valueDeclaration))return t.getMergedSymbol(e);return e}(a.parent,o),t=ep(a)||(gF(a)&&!a.isExportEquals?2080:0),c=!!(2048&t);if(!(32&t)||!c&&s.exports.has("default"))return{error:xf(eT.This_file_already_has_a_default_export)};var l=e=>uT(e)&&o.getSymbolAtLocation(e)?void 0:{error:xf(eT.Can_only_convert_named_export)};switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:var _=a;return _.name?l(_.name)||{exportNode:_,exportName:_.name,wasDefault:c,exportingModuleSymbol:s}:void 0;case 243:var u,_=a;return 2&_.declarationList.flags&&1===_.declarationList.declarations.length?(u=WT(_.declarationList.declarations)).initializer?(Y4.assert(!c,"Can't have a default flag here"),l(u.name)||{exportNode:_,exportName:u.name,wasDefault:c,exportingModuleSymbol:s}):void 0:void 0;case 277:_=a;return _.isExportEquals?void 0:l(_.expression)||{exportNode:_,exportName:_.expression,wasDefault:c,exportingModuleSymbol:s};default:return}}function yZ(e,t){return cT.createImportSpecifier(!1,e===t?void 0:cT.createIdentifier(e),cT.createIdentifier(t))}function vZ(e,t){return cT.createExportSpecifier(!1,e===t?void 0:cT.createIdentifier(e),cT.createIdentifier(t))}pZ(fZ,{kinds:[mZ.kind,gZ.kind],getAvailableActions:function(e){var t=hZ(e,"invoked"===e.triggerReason);return t?yee(t)?e.preferences.provideRefactorNotApplicableReason?[{name:fZ,description:xf(eT.Convert_default_export_to_named_export),actions:[{...mZ,notApplicableReason:t.error},{...gZ,notApplicableReason:t.error}]}]:H4:(e=t.wasDefault?mZ:gZ,[{name:fZ,description:e.description,actions:[e]}]):H4},getEditsForAction:function(d,e){Y4.assert(e===mZ.name||e===gZ.name,"Unexpected action name");let p=hZ(d);return Y4.assert(p&&!yee(p),"Expected applicable refactor info"),{edits:I.ChangeTracker.with(d,e=>{r=d.file,l=d.program,_=p,e=e,u=d.cancellationToken;var[t,{wasDefault:r,exportNode:n,exportName:i},a,o]=[r,_,e,l.getTypeChecker()];if(r)gF(n)&&!n.isExportEquals?(r=vZ((r=n.expression).text,r.text),a.replaceNode(t,n,cT.createExportDeclaration(void 0,!1,cT.createNamedExports([r])))):a.delete(t,Y4.checkDefined(mG(n,90),"Should find a default keyword in modifier list"));else{var s=Y4.checkDefined(mG(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:a.insertNodeAfter(t,s,cT.createToken(90));break;case 243:var c=WT(n.declarationList.declarations);if(!ope.Core.isSymbolReferencedInFile(i,o,t)&&!c.type){a.replaceNode(t,n,cT.createExportDefault(Y4.checkDefined(c.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:a.deleteModifier(t,s),a.insertNodeAfter(t,n,cT.createExportDefault(cT.createIdentifier(i.text)));break;default:Y4.fail("Unexpected exportNode kind "+n.kind)}}var[r,{wasDefault:g,exportName:h,exportingModuleSymbol:l},y,_]=[l,_,e,u],e=r.getTypeChecker(),u=Y4.checkDefined(e.getSymbolAtLocation(h),"Export name should resolve to a symbol");ope.Core.eachExportReference(r.getSourceFiles(),e,_,u,l,h.text,g,e=>{if(h!==e){var t=e.getSourceFile();if(g){var r=t,n=e,i=y,a=h.text,o=n["parent"];switch(o.kind){case 211:i.replaceNode(r,n,cT.createIdentifier(a));break;case 276:case 281:i.replaceNode(r,o,yZ(a,o.name.text));break;case 273:var s,c=o,l=(Y4.assert(c.name===n,"Import clause name should match provided ref"),yZ(a,n.text)),_=c["namedBindings"];_?274===_.kind?(i.deleteRange(r,{pos:n.getStart(r),end:_.getStart(r)}),s=qE(c.parent.moduleSpecifier)?oG(c.parent.moduleSpecifier,r):1,s=nG(void 0,[yZ(a,n.text)],c.parent.moduleSpecifier,s),i.insertNodeAfter(r,c.parent,s)):(i.delete(r,n),i.insertNodeAtEndOfList(r,_.elements,l)):i.replaceNode(r,n,cT.createNamedImports([l]));break;case 205:c=o;i.replaceNode(r,o,cT.createImportTypeNode(c.argument,c.attributes,cT.createIdentifier(a),c.typeArguments,c.isTypeOf));break;default:Y4.failBadSyntaxKind(o)}}else{var u=t,d=e,p=y,f=d.parent;switch(f.kind){case 211:p.replaceNode(u,d,cT.createIdentifier("default"));break;case 276:var m=cT.createIdentifier(f.name.text);1===f.parent.elements.length?p.replaceNode(u,f.parent,m):(p.delete(u,f),p.insertNodeBefore(u,f.parent,m));break;case 281:p.replaceNode(u,f,vZ("default",f.name.text));break;default:Y4.assertNever(f,"Unexpected parent kind "+f.kind)}}}})}),renameFilename:void 0,renameLocation:void 0}}});var bZ="Convert import",xZ={[0]:{name:"Convert namespace import to named imports",description:xf(eT.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:xf(eT.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:xf(eT.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function SZ(e,t=!0){var r=e["file"],n=Z$(e),i=YH(r,n.start),t=t?tT(i,h3(uF,n9)):fG(i,r,n);return void 0===t||!uF(t)&&!n9(t)?{error:"Selection is not an import declaration."}:(i=n.start+n.length,(n=rK(t,t.parent,r))&&i>n.getStart()?void 0:(r=t["importClause"],r?r.namedBindings?274===r.namedBindings.kind?{convertTo:0,import:r.namedBindings}:kZ(e.program,r)?{convertTo:1,import:r.namedBindings}:{convertTo:2,import:r.namedBindings}:{error:xf(eT.Could_not_find_namespace_import_or_named_imports)}:{error:xf(eT.Could_not_find_import_clause)}))}function kZ(e,t){return TD(e.getCompilerOptions())&&function(e,t){e=t.resolveExternalModuleName(e);if(!e)return!1;t=t.resolveExternalModuleSymbol(e);return e!==t}(t.parent.moduleSpecifier,e.getTypeChecker())}function TZ(e){return dT(e)?e.name:e.right}function CZ(i,e,a,t,r=kZ(e,t.parent)){let o=e.getTypeChecker();var n=t.parent.parent,s=n["moduleSpecifier"];let c=new Set,l=(t.elements.forEach(e=>{e=o.getSymbolAtLocation(e.name);e&&c.add(e)}),s&&qE(s)?lX(s.text,99):"module");let _=t.elements.some(function(e){return!!ope.Core.eachSymbolReferenceInFile(e.name,o,i,e=>{var t=o.resolveName(l,e,-1,!0);return!!t&&(!c.has(t)||vF(e.parent))})})?m$(l,i):l,u=new Set;for(let n of t.elements){let r=(n.propertyName||n.name).text;ope.Core.eachSymbolReferenceInFile(n.name,o,i,e=>{var t=cT.createPropertyAccessExpression(cT.createIdentifier(_),r);AF(e.parent)?a.replaceNode(i,e.parent,cT.createPropertyAssignment(e.text,t)):vF(e.parent)?u.add(n):a.replaceNode(i,e,t)})}a.replaceNode(i,t,r?cT.createIdentifier(_):cT.createNamespaceImport(cT.createIdentifier(_))),u.size&&uF(n)&&(s=ZT(u.values(),e=>cT.createImportSpecifier(e.isTypeOnly,e.propertyName&&cT.createIdentifier(e.propertyName.text),cT.createIdentifier(e.name.text))),a.insertNodeAfter(i,t.parent.parent,wZ(n,void 0,s)))}function wZ(e,t,r){return cT.createImportDeclaration(void 0,NZ(t,r),e.moduleSpecifier,void 0)}function NZ(e,t){return cT.createImportClause(!1,e,t&&t.length?cT.createNamedImports(t):void 0)}pZ(bZ,{kinds:q(xZ).map(e=>e.kind),getAvailableActions:function(e){let t=SZ(e,"invoked"===e.triggerReason);return t?yee(t)?e.preferences.provideRefactorNotApplicableReason?q(xZ).map(e=>({name:bZ,description:e.description,actions:[{...e,notApplicableReason:t.error}]})):H4:(e=xZ[t.convertTo],[{name:bZ,description:e.description,actions:[e]}]):H4},getEditsForAction:function(e,t){Y4.assert(X4(q(xZ),e=>e.name===t),"Unexpected action name");let r=SZ(e);return Y4.assert(r&&!yee(r),"Expected applicable refactor info"),{edits:I.ChangeTracker.with(e,t=>{if(p=e.file,f=e.program,t=t,m=r,g=f.getTypeChecker(),0===m.convertTo){var o=p,s=g,c=t,l=(g=m.import,TD(f.getCompilerOptions()));let r=!1,n=[],i=new Map;ope.Core.eachSymbolReferenceInFile(g.name,s,o,e=>{var t;QC(e.parent)?(t=TZ(e.parent).text,s.resolveName(t,e,-1,!0)&&i.set(t,!0),Y4.assert((dT(t=e.parent)?t.expression:t.left)===e,"Parent expression should match id"),n.push(e.parent)):r=!0});var _=new Map,u;for(u of n){var d=TZ(u).text;let e=_.get(d);void 0===e&&_.set(d,e=i.has(d)?m$(d,o):d),c.replaceNode(o,u,cT.createIdentifier(e))}let a=[],e=(_.forEach((e,t)=>{a.push(cT.createImportSpecifier(!1,e===t?void 0:cT.createIdentifier(t),cT.createIdentifier(e)))}),g.parent.parent);r&&!l&&uF(e)?c.insertNodeAfter(o,e,wZ(e,void 0,a)):(l=r?cT.createIdentifier(g.name.text):void 0,c.replaceNode(o,g.parent,NZ(l,a)))}else CZ(p,f,t,m.import,1===m.convertTo);var p,f,m,g}),renameFilename:void 0,renameLocation:void 0}}});var DZ="Extract type",EZ={name:"Extract to type alias",description:xf(eT.Extract_to_type_alias),kind:"refactor.extract.type"},PZ={name:"Extract to interface",description:xf(eT.Extract_to_interface),kind:"refactor.extract.interface"},FZ={name:"Extract to typedef",description:xf(eT.Extract_to_typedef),kind:"refactor.extract.typedef"};function AZ(e,t=!0){let{file:r,startPosition:n}=e;var i=C8(r);let a=BK(Z$(e));var o,s,c,l,t=a.pos===a.end&&t,t=function(r,e,n,i){var t=[()=>YH(r,e),()=>QH(r,e,()=>!0)];for(var a of t){a=a();let t=AH(a,r,n.pos,n.end);a=tT(a,e=>e.parent&&KC(e)&&!IZ(n,e.parent,r)&&(i||t));if(a)return a}}(r,n,a,t);return t&&KC(t)?(e=e.program.getTypeChecker(),o=i,void 0===(o=tT(l=t,d7)||(o?tT(l,A1):void 0))?{info:{error:xf(eT.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0}:(s=o,KC(l=tT(l=t,e=>e===s?"quit":!(!j0(e.parent)&&!R0(e.parent)))??l)?(c=[],(j0(l.parent)||R0(l.parent))&&a.end>t.end&&BT(c,l.parent.types.filter(e=>AH(e,r,a.pos,a.end))),{typeParameters:c,affectedTextRange:l}=function(i,e,a,o){let s=[],t=se(e),c={pos:t[0].getStart(o),end:t[t.length-1].end};for(var r of t)if(l(r))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:s,affectedTextRange:c};function l(t){if(sP(t)){if(uT(t.typeName)){var e,r=t.typeName,n=i.resolveName(r.text,r,262144,!0);for(e of(null==n?void 0:n.declarations)||H4)if(KE(e)&&e.getSourceFile()===o){if(e.name.escapedText===r.escapedText&&IZ(e,c,o))return!0;if(IZ(a,e,o)&&!IZ(c,e,o)){JT(s,e);break}}}}else if(M0(t)){n=tT(t,e=>gP(e)&&IZ(e.extendsType,t,o));if(!n||!IZ(c,n,o))return!0}else if(oP(t)||yP(t)){n=tT(t.parent,jC);if(n&&n.type&&IZ(n.type,t,o)&&!IZ(c,n,o))return!0}else if(_P(t))if(uT(t.exprName)){n=i.resolveName(t.exprName.text,t.exprName,111551,!1);if(null!=n&&n.valueDeclaration&&IZ(a,n.valueDeclaration,o)&&!IZ(c,n.valueDeclaration,o))return!0}else if(fN(t.exprName.left)&&!IZ(c,t.parent,o))return!0;return o&&dP(t)&&O3(o,t.pos).line===O3(o,t.end).line&&_T(t,1),h9(t,l)}}(e,t=1e.name&&sf(r,XK(e.name))))return;BT(t,e)}return t}if(hP(e))return n(i,e.type);if(uP(e))return e.members}return}(e,t)},affectedTextRange:l}:{info:{error:xf(eT.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0}):{info:{error:xf(eT.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0})):{info:{error:xf(eT.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0}}function IZ(e,t,r){return PH(e,j3(r.text,t.pos),t.end)}function OZ(e){return i3(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:j0(e.selection[0].parent)?cT.createUnionTypeNode(e.selection):cT.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}pZ(DZ,{kinds:[EZ.kind,PZ.kind,FZ.kind],getAvailableActions:function(t){let{info:e,affectedTextRange:r}=AZ(t,"invoked"===t.triggerReason);return e?yee(e)?t.preferences.provideRefactorNotApplicableReason?[{name:DZ,description:xf(eT.Extract_type),actions:[{...FZ,notApplicableReason:e.error},{...EZ,notApplicableReason:e.error},{...PZ,notApplicableReason:e.error}]}]:H4:[{name:DZ,description:xf(eT.Extract_type),actions:e.isJS?[FZ]:Q4([EZ],e.typeElements&&PZ)}].map(e=>({...e,actions:e.actions.map(e=>({...e,range:r?{start:{line:O3(t.file,r.pos).line,offset:O3(t.file,r.pos).character},end:{line:O3(t.file,r.end).line,offset:O3(t.file,r.end).character}}:void 0}))})):H4},getEditsForAction:function(f,m){let g=f["file"],h=AZ(f)["info"],y=(Y4.assert(h&&!yee(h),"Expected to find a range to extract"),m$("NewType",g));var e=I.ChangeTracker.with(f,c=>{switch(m){case EZ.name:Y4.assert(!h.isJS,"Invalid actionName/JS combo");var l=c,_=g,e=y,{enclosingNode:u,typeParameters:t}=d=h,{firstTypeNode:d,lastTypeNode:r,newTypeNode:p}=OZ(d),p=cT.createTypeAliasDeclaration(void 0,e,t.map(e=>cT.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0)),p);return l.insertNodeBefore(_,u,gh(p),!0),void l.replaceNodeRange(_,d,r,cT.createTypeReferenceNode(e,t.map(e=>cT.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:I.LeadingTriviaOption.Exclude,trailingTriviaOption:I.TrailingTriviaOption.ExcludeWhitespace});case FZ.name:Y4.assert(h.isJS,"Invalid actionName/JS combo");{u=c;p=f;l=g;_=y;d=h;se(d.selection).forEach(e=>{_T(e,7168)});let{enclosingNode:e,typeParameters:t}=d,{firstTypeNode:r,lastTypeNode:n,newTypeNode:i}=OZ(d),a=cT.createJSDocTypedefTag(cT.createIdentifier("typedef"),cT.createJSDocTypeExpression(i),cT.createIdentifier(_)),o=[],s=(G4(t,e=>{var t=gC(e),e=cT.createTypeParameterDeclaration(void 0,e.name),t=cT.createJSDocTemplateTag(cT.createIdentifier("template"),t&&s3(t,jF),[e]);o.push(t)}),cT.createJSDocComment(void 0,cT.createNodeArray(LT(o,[a]))));A1(e)?(d=e.getStart(l),p=WG(p.host,null==(p=p.formatContext)?void 0:p.options),u.insertNodeAt(l,e.getStart(l),s,{suffix:p+p+l.text.slice(n$(l.text,d-1),d)})):u.insertNodeBefore(l,e,s,!0);u.replaceNodeRange(l,r,n,cT.createTypeReferenceNode(_,t.map(e=>cT.createTypeReferenceNode(e.name,void 0))));return}case PZ.name:Y4.assert(!h.isJS&&!!h.typeElements,"Invalid actionName/JS combo");var r=c,e=g,t=y,n=h,{enclosingNode:i,typeParameters:a,typeElements:o}=n,s=cT.createInterfaceDeclaration(void 0,t,a,void 0,o),{firstTypeNode:o,lastTypeNode:i}=(fT(s,null==(o=o[0])?void 0:o.parent),r.insertNodeBefore(e,i,gh(s),!0),OZ(n));return void r.replaceNodeRange(e,o,i,cT.createTypeReferenceNode(t,a.map(e=>cT.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:I.LeadingTriviaOption.Exclude,trailingTriviaOption:I.TrailingTriviaOption.ExcludeWhitespace});default:Y4.fail("Unexpected action name")}}),t=g.fileName;return{edits:e,renameFilename:t,renameLocation:g$(e,t,y,!1)}}});var LZ="Move to file",jZ=xf(eT.Move_to_file),RZ={name:"Move to file",description:jZ,kind:"refactor.move.file"};function MZ(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function BZ(e,t,r,n,o,s,c,l,i,a){var _,u,d,p,f,m=s.getTypeChecker(),g=Ge(e.statements,y_),h=!SX(t.fileName,s,c,!!e.commonJsModuleIndicator),l=sG(e,l),c=($Z(r.oldFileImportsFromTargetFile,t.fileName,a,s),qZ(e,o.all,r.unusedImportsFromOldFile,a),a.writeFixes(n,l),zZ(e,o.ranges,n),VZ(n,s,c,e,r.movedSymbols,t.fileName,l),UZ(e,r.targetFileImportsFromOldFile,n,h),xee(e,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,m,s,i),!H_(t)&&g.length&&n.insertStatementsInNewFile(t.fileName,g,e),i.writeFixes(n,l),_=e,a=o.all,u=ZT(r.oldFileImportsFromTargetFile.keys()),d=h,FT(a,e=>{if(YZ(e)&&!XZ(_,e,d)&&uee(e,e=>{return u.includes(Y4.checkDefined(null==(e=o3(e,l7))?void 0:e.symbol))})){t=i$(e);t=d?[function(e){var t=f9(e)?LT([cT.createModifier(95)],nC(e)):void 0;switch(e.kind){case 262:return cT.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:var r=m9(e)?rC(e):void 0;return cT.updateClassDeclaration(e,LT(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return cT.updateVariableStatement(e,t,e.declarationList);case 267:return cT.updateModuleDeclaration(e,t,e.name,e.body);case 266:return cT.updateEnumDeclaration(e,t,e.name,e.members);case 265:return cT.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return cT.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return cT.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return Y4.fail();default:return Y4.assertNever(e,"Unexpected declaration kind "+e.kind)}}(t)]:function(e){return[e,...eee(e).map(ZZ)]}(t);if(t)return t}var t;return i$(e)}));if(H_(t)&&0{var t=yT(!l7(e)||null==(t=a.get(e.symbol.escapedName))?void 0:t.declarations,e=>hF(e)?e:vF(e)?o3(e.parent.parent,hF):void 0);t&&t.moduleSpecifier&&n.set(t,(n.get(t)||new Set).add(e))});for(let[e,t]of ZT(n))e.exportClause&&yF(e.exportClause)&&K4(e.exportClause.elements)&&(p=e.exportClause.elements,0===K4(f=NT(p,e=>void 0===bT(Xp(e.symbol,r).declarations,e=>fee(e)&&t.has(e))))?(y.deleteNode(v,e),i.add(e)):K4(f)hF(e)&&!!e.moduleSpecifier&&!i.has(e));r?y.insertNodesBefore(v,r,g,!0):y.insertNodesAfter(v,v.statements[v.statements.length-1],g)}else H_(t)?n.insertNodesAtEndOfFile(t,c,!1):n.insertStatementsInNewFile(t.fileName,i.hasFixes()?[4,...c]:c,e)}function JZ(e,t,r,n,i){e=e.getCompilerOptions().configFile;e&&(r=ua(E3(r,"..",n)),n=Da(e.fileName,r,i),i=(r=e.statements[0]&&o3(e.statements[0].expression,DP))&&bT(r.properties,e=>FF(e)&&qE(e.name)&&"files"===e.name.text))&&NP(i.initializer)&&t.insertNodeInListAfter(e,GT(i.initializer.elements),cT.createStringLiteral(n),i.initializer.elements)}function zZ(e,t,r){for(var{first:n,afterLast:i}of t)r.deleteNodeRangeExcludingEnd(e,n,i)}function qZ(e,t,r,n){for(var i of e.statements)TT(t,i)||KZ(i,e=>{GZ(e,e=>{r.has(e.symbol)&&n.removeExistingImport(e)})})}function UZ(i,e,a,o){let s=HK();e.forEach((e,t)=>{if(t.declarations)for(var r of t.declarations){var n;fee(r)&&(n=ree(r))&&(r=nee(r),s(r))&&iee(i,r,n,a,o)}})}function VZ(f,r,n,m,g,h,y){let v=r.getTypeChecker();for(let p of r.getSourceFiles())if(p!==m)for(let t of p.statements)KZ(t,e=>{if(v.getSymbolAtLocation(HZ(e))===m.symbol){var i=e=>{e=wP(e.parent)?pG(v,e.parent):Xp(v.getSymbolAtLocation(e),v);return!!e&&g.has(e)},a=(QZ(p,e,f,i),la(D3(P3(m.fileName,r.getCurrentDirectory())),h));if(0!==ke(!r.useCaseSensitiveFileNames())(a,p.fileName)){a=xL(r.getCompilerOptions(),p,p.fileName,a,eG(r,n)),i=tee(e,iG(a,y),i),i=(i&&f.insertNodeAfter(p,t,i),function(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 o3(e.name,uT);default:return Y4.assertNever(e,"Unexpected node kind "+e.kind)}}(e));if(i){var o=f,s=p,c=v,l=g,_=y;let t=lX(a,99),r=!1,n=[];if(ope.Core.eachSymbolReferenceInFile(i,c,s,e=>{dT(e.parent)&&(r=r||!!c.resolveName(t,e,-1,!0),l.has(c.getSymbolAtLocation(e.parent.name)))&&n.push(e)}),n.length){var u,d=r?m$(t,s):t;for(u of n)o.replaceNode(s,u,cT.createIdentifier(d));o.insertNodeAfter(s,e,function(e,t,r,n){var i=cT.createIdentifier(t),a=iG(r,n);switch(e.kind){case 272:return cT.createImportDeclaration(void 0,cT.createImportClause(!1,void 0,cT.createNamespaceImport(i)),a,void 0);case 271:return cT.createImportEqualsDeclaration(void 0,!1,i,cT.createExternalModuleReference(a));case 260:return cT.createVariableDeclaration(i,void 0,void 0,WZ(a));default:return Y4.assertNever(e,"Unexpected node kind "+e.kind)}}(e,t,a,_))}}}}})}function WZ(e){return cT.createCallExpression(cT.createIdentifier("require"),void 0,[e])}function HZ(e){return 272===e.kind?e.moduleSpecifier:271===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function KZ(e,t){if(uF(e))qE(e.moduleSpecifier)&&t(e);else if(_F(e))bF(e.moduleReference)&&k7(e.moduleReference.expression)&&t(e);else if(GP(e))for(var r of e.declarationList.declarations)r.initializer&&E8(r.initializer,!0)&&t(r)}function GZ(e,t){var r;if(272===e.kind){if(null!=(r=e.importClause)&&r.name&&t(e.importClause),274===(null==(r=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:r.kind)&&t(e.importClause.namedBindings),275===(null==(r=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:r.kind))for(var 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(var i of e.name.elements)uT(i.name)&&t(i)}function $Z(e,t,r,n){for(var[i,a]of e){var o=iX(i,vD(n.getCompilerOptions())),s="default"===i.name&&i.parent?1:0;r.addImportForNonExistentExport(o,t,s,i.flags,a)}}function XZ(t,e,r,n){return r?!$P(e)&&TN(e,32)||n&&t.symbol&&null!=(r=t.symbol.exports)&&r.has(n.escapedText):t.symbol&&t.symbol.exports&&eee(e).some(e=>t.symbol.exports.has($3(e)))}function QZ(t,e,r,n){if(272===e.kind&&e.importClause){var{name:i,namedBindings:a}=e.importClause;if((!i||n(i))&&(!a||275===a.kind&&0!==a.elements.length&&a.elements.every(e=>n(e.name))))return r.delete(t,e)}GZ(e,e=>{e.name&&uT(e.name)&&n(e.name)&&r.delete(t,e)})}function YZ(e){return Y4.assert(LF(e.parent),"Node parent should be a SourceFile"),mee(e)||GP(e)}function ZZ(e){return cT.createExpressionStatement(cT.createBinaryExpression(cT.createPropertyAccessExpression(cT.createIdentifier("exports"),cT.createIdentifier(e)),64,cT.createIdentifier(e)))}function eee(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return AT(e.declarationList.declarations,e=>uT(e.name)?e.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return H4;case 244:return Y4.fail("Can't export an ExpressionStatement");default:return Y4.assertNever(e,"Unexpected decl kind "+e.kind)}}function tee(e,t,r){switch(e.kind){case 272:var n=e.importClause;return n?(i=n.name&&r(n.name)?n.name:void 0,s=n.namedBindings&&(s=n.namedBindings,c=r,274===s.kind?c(s.name)?s:void 0:(s=s.elements.filter(e=>c(e.name))).length?cT.createNamedImports(s):void 0),i||s?cT.createImportDeclaration(void 0,cT.createImportClause(n.isTypeOnly,i,s),i$(t),void 0):void 0):void 0;case 271:return r(e.name)?e:void 0;case 260:n=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:var r=e.elements.filter(e=>e.propertyName||!uT(e.name)||t(e.name));return r.length?cT.createObjectBindingPattern(r):void 0}}(e.name,r);return n?([i,n,a,o=2]=[n,e.type,WZ(t),e.parent.flags],cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(i,void 0,n,a)],o))):void 0;default:return Y4.assertNever(e,"Unexpected import kind "+e.kind)}var i,a,o,s,c}function ree(e){return $P(e)?o3(e.expression.left.name,uT):o3(e.name,uT)}function nee(e){switch(e.kind){case 260:return e.parent.parent;case 208:return nee(s3(e.parent.parent,e=>eF(e)||wP(e)));default:return e}}function iee(e,t,r,n,i){XZ(e,t,i,r)||(i?$P(t)||n.insertExportModifier(e,t):0!==(r=eee(t)).length&&n.insertNodesAfter(e,t,r.map(ZZ)))}function aee(e,t,r,n){var i,t=t.getTypeChecker();return n?(n=lee(e,n.all,t),t=D3(e.fileName),e=$m(e.fileName),E3(t,function(t,r,n,i){let a=t;for(let e=1;;e++){var o=E3(n,a+r);if(!i.fileExists(o))return a;a=t+"."+e}}((i=n.oldFileImportsFromTargetFile,n=n.movedSymbols,R7(i,lG)||R7(n,lG)||"newFile"),e,t,r))+e):""}function oee(t){t=function(t){var r=t["file"];let n=BK(Z$(t)),i=ST(t=r.statements,e=>e.end>n.pos);if(-1!==i){var a=gee(r,t[i]);let e=ST(t,e=>e.end>=n.end,i=a?a.start:i);-1!==e&&n.end<=t[e].getStart()&&e--;a=gee(r,t[e]);return a&&(e=a.end),{toMove:t.slice(i,-1===e?t.length:e+1),afterLast:-1===e?void 0:t[e+1]}}}(t);if(void 0!==t){let n=[],e=[],{toMove:i,afterLast:a}=t;return at(i,cee,(t,r)=>{for(let e=t;e!!(2&e.transformFlags))}function cee(e){return!function(e){switch(e.kind){case 272:return 1;case 271:return!TN(e,32);case 243:return e.declarationList.declarations.every(e=>!!e.initializer&&E8(e.initializer,!0));default:return}}(e)&&!y_(e)}function lee(i,e,a,o=new Set){let t,s=new Set,c=new Map,l=new Map;var r,n,_,u,d=function(e){var t;if(void 0!==e)return t=a.getJsxNamespace(e),(t=a.resolveName(t,e,1920,!0))&&X4(t.declarations,dee)?t:void 0}(see(e));d&&c.set(d,[!1,o3(null==(t=d.declarations)?void 0:t[0],e=>mF(e)||dF(e)||g1(e)||_F(e)||wP(e)||eF(e))]);for(r of e)uee(r,e=>{s.add(Y4.checkDefined($P(e)?a.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))});let p=new Set;for(n of e)_ee(n,a,(t,r)=>{var n;if(t.declarations&&!a.resolveName(t.name,void 0,788968,!1))if(o.has(Xp(t,a)))p.add(t);else for(let e of t.declarations)dee(e)?(n=c.get(t),c.set(t,[(void 0===n||n)&&r,o3(e,e=>mF(e)||dF(e)||g1(e)||_F(e)||wP(e)||eF(e))])):fee(e)&&(eF(n=e)?n.parent.parent:n).parent===i&&!s.has(t)&&l.set(t,r)});for(_ of c.keys())p.add(_);let f=new Map;for(u of i.statements)TT(e,u)||(d&&2&u.transformFlags&&p.delete(d),_ee(u,a,(e,t)=>{s.has(e)&&f.set(e,t),p.delete(e)}));return{movedSymbols:s,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:f,oldImportsNeededByTargetFile:c,unusedImportsFromOldFile:p}}function _ee(e,n,i){e.forEachChild(function e(t){var r;uT(t)&&!Dw(t)?(r=n.getSymbolAtLocation(t))&&i(r,XD(t)):t.forEachChild(e)})}function uee(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 yT(e.declarationList.declarations,e=>function t(e,r){switch(e.kind){case 80:return r(s3(e.parent,e=>eF(e)||wP(e)));case 207:case 206:return yT(e.elements,e=>zP(e)?void 0:t(e.name,r));default:return Y4.assertNever(e,"Unexpected name kind "+e.kind)}}(e.name,t));case 244:var r=e["expression"];return pT(r)&&1===V8(r)&&t(e)}}function dee(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return pee(e);case 208:return eF(e.parent.parent)&&pee(e.parent.parent);default:return!1}}function pee(e){return LF(e.parent.parent.parent)&&!!e.initializer&&E8(e.initializer,!0)}function fee(e){return mee(e)&&LF(e.parent)||eF(e)&&LF(e.parent.parent.parent)}function mee(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function gee(n,e){if(MC(e)){var i=e.symbol.declarations;if(void 0===i||K4(i)<=1||!TT(i,e))return;let t=i[0],r=i[K4(i)-1];e=AT(i,e=>iT(e)===n&&d7(e)?e:void 0),i=ST(n.statements,e=>e.end>=r.end);return{toMove:e,start:ST(n.statements,e=>e.end>=t.end),end:i}}}function hee(t,e,r){let n=new Set;for(var i of t.imports){i=su(i);if(uF(i)&&i.importClause&&i.importClause.namedBindings&&h1(i.importClause.namedBindings))for(var a of i.importClause.namedBindings.elements){a=r.getSymbolAtLocation(a.propertyName||a.name);a&&n.add(Xp(a,r))}if($_(i.parent)&&TP(i.parent.name))for(var o of i.parent.name.elements){o=r.getSymbolAtLocation(o.propertyName||o.name);o&&n.add(Xp(o,r))}}for(var s of e)_ee(s,r,e=>{e=Xp(e,r);e.valueDeclaration&&iT(e.valueDeclaration).path===t.path&&n.add(e)});return n}function yee(e){return void 0!==e.error}function vee(e,t){return!t||e.substr(0,t.length)===t}function bee(e,t,r,n){return!dT(e)||qC(t)||r.resolveName(e.name.text,e,111551,!1)||UE(e.name)||Q3(e.name)?m$(qC(t)?"newProperty":"newLocal",n):e.name.text}function xee(e,t,r,a,n,o){t.forEach(([e,t],r)=>{var n,i=Xp(r,a);a.isUnknownSymbol(i)?o.addVerbatimImport(Y4.checkDefined(t??tT(null==(n=r.declarations)?void 0:n[0],a_))):o.addImportFromExportedSymbol(i,e,t)}),$Z(r,e.fileName,o,n)}pZ(LZ,{kinds:[RZ.kind],getAvailableActions:function(e,t){var r=e.file,n=oee(e);if(!t)return H4;if("implicit"===e.triggerReason&&void 0!==e.endPosition){var t=tT(YH(r,e.startPosition),kX),i=tT(YH(r,e.endPosition),kX);if(t&&!LF(t)&&i&&!LF(i))return H4}return e.preferences.allowTextChangesInNewFiles&&n?(t={start:{line:O3(r,n.all[0].getStart(r)).line,offset:O3(r,n.all[0].getStart(r)).character},end:{line:O3(r,GT(n.all).end).line,offset:O3(r,GT(n.all).end).character}},[{name:LZ,description:jZ,actions:[{...RZ,range:t}]}]):e.preferences.provideRefactorNotApplicableReason?[{name:LZ,description:jZ,actions:[{...RZ,notApplicableReason:xf(eT.Selection_is_not_a_valid_statement_or_statements)}]}]:H4},getEditsForAction:function(d,e,p){Y4.assert(e===LZ,"Wrong refactor invoked");let f=Y4.checkDefined(oee(d));var{host:e,program:t}=d,r=(Y4.assert(p,"No interactive refactor arguments available"),p.targetFile);return Im(r)||Om(r)?e.fileExists(r)&&void 0===t.getSourceFile(r)?MZ(xf(eT.Cannot_move_statements_to_the_selected_file)):{edits:I.ChangeTracker.with(d,e=>{return r=(t=d).file,n=p.targetFile,i=d.program,a=f,e=e,o=d.host,s=d.preferences,c=i.getTypeChecker(),l=!o.fileExists(n),_=l?TX(n,r.externalModuleIndicator?99:r.commonJsModuleIndicator?1:void 0,i,o):Y4.checkDefined(i.getSourceFile(n)),u=hne.createImportAdder(r,t.program,t.preferences,t.host),t=hne.createImportAdder(_,t.program,t.preferences,t.host),BZ(r,_,lee(r,a.all,c,l?void 0:hee(_,a.all,c)),e,a,i,o,s,t,u),void(l&&JZ(i,e,r.fileName,n,xd(o)));var t,r,n,i,a,o,s,c,l,_,u}),renameFilename:void 0,renameLocation:void 0}:MZ(xf(eT.Cannot_move_to_file_selected_file_is_invalid))}});var See="Inline variable",kee=xf(eT.Inline_variable),Tee={name:See,description:kee,kind:"refactor.inline.variable"};function Cee(e,t,r,n){var i,n=n.getTypeChecker(),t=XH(e,t),a=t.parent;if(uT(t))return Kp(a)&&z5(a)&&uT(a.name)?1!==(null==(i=n.getMergedSymbol(a.symbol).declarations)?void 0:i.length)?{error:xf(eT.Variables_with_multiple_declarations_cannot_be_inlined)}:wee(a)?void 0:(i=Nee(a,n,e))&&{references:i,declaration:a,replacement:a.initializer}:r?1!==(null==(a=null==(i=(i=n.resolveName(t.text,t,111551,!1))&&n.getMergedSymbol(i))?void 0:i.declarations)?void 0:a.length)?{error:xf(eT.Variables_with_multiple_declarations_cannot_be_inlined)}:!(Kp(r=i.declarations[0])&&z5(r)&&uT(r.name))||wee(r)?void 0:(t=Nee(r,n,e))&&{references:t,declaration:r,replacement:r.initializer}:{error:xf(eT.Could_not_find_variable_to_inline)}}function wee(e){return X4(s3(e.parent.parent,GP).modifiers,S0)}function Nee(t,e,r){let n=[];e=ope.Core.eachSymbolReferenceInFile(t.name,e,r,e=>!(!ope.isWriteAccessForReference(e)||AF(e.parent))||!!(vF(e.parent)||gF(e.parent)||_P(e.parent)||q3(t,e.pos))||void n.push(e));return 0===n.length||e?void 0:n}pZ(See,{kinds:[Tee.kind],getAvailableActions(e){var{file:e,program:t,preferences:r,startPosition:n,triggerReason:i}=e,e=Cee(e,n,"invoked"===i,t);return e?uZ.isRefactorErrorInfo(e)?r.provideRefactorNotApplicableReason?[{name:See,description:kee,actions:[{...Tee,notApplicableReason:e.error}]}]:H4:[{name:See,description:kee,actions:[Tee]}]:H4},getEditsForAction(e,t){Y4.assert(t===See,"Unexpected refactor invoked");let{file:a,program:r,startPosition:n}=e;t=Cee(a,n,!0,r);if(t&&!uZ.isRefactorErrorInfo(t)){let{references:r,declaration:n,replacement:i}=t;return{edits:I.ChangeTracker.with(e,e=>{for(var t of r)e.replaceNode(a,t,function(e,t){t=i$(t);var r=e["parent"];if(nT(r)&&($u(t)<$u(r)||x$(r)))return cT.createParenthesizedExpression(t);if(jC(t)&&(ZC(r)||dT(r)))return cT.createParenthesizedExpression(t);if(dT(r)&&(zE(t)||DP(t)))return cT.createParenthesizedExpression(t);if(uT(e)&&AF(r))return cT.createPropertyAssignment(e,t);return t}(t,i));e.delete(a,n)})}}}});var Dee="Move to a new file",Eee=xf(eT.Move_to_a_new_file),Pee={name:Dee,description:Eee,kind:"refactor.move.newFile"},Fee=(pZ(Dee,{kinds:[Pee.kind],getAvailableActions:function(e){var t=oee(e),r=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){var n=tT(YH(r,e.startPosition),kX),r=tT(YH(r,e.endPosition),kX);if(n&&!LF(n)&&r&&!LF(r))return H4}return e.preferences.allowTextChangesInNewFiles&&t?(r={start:{line:O3(n=e.file,t.all[0].getStart(n)).line,offset:O3(n,t.all[0].getStart(n)).character},end:{line:O3(n,GT(t.all).end).line,offset:O3(n,GT(t.all).end).character}},[{name:Dee,description:Eee,actions:[{...Pee,range:r}]}]):e.preferences.provideRefactorNotApplicableReason?[{name:Dee,description:Eee,actions:[{...Pee,notApplicableReason:xf(eT.Selection_is_not_a_valid_statement_or_statements)}]}]:H4},getEditsForAction:function(u,e){Y4.assert(e===Dee,"Wrong refactor invoked");let d=Y4.checkDefined(oee(u));return{edits:I.ChangeTracker.with(u,e=>{return t=u.file,r=u.program,n=d,e=e,i=u.host,o=(a=u).preferences,s=r.getTypeChecker(),s=lee(t,n.all,s),c=aee(t,r,i,n),l=TX(c,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,i),_=hne.createImportAdder(t,a.program,a.preferences,a.host),a=hne.createImportAdder(l,a.program,a.preferences,a.host),BZ(t,l,s,e,n,r,i,o,a,_),void JZ(r,e,t.fileName,c,xd(i));var t,r,n,i,a,o,s,c,l,_}),renameFilename:void 0,renameLocation:void 0}}}),{}),Aee="Convert overload list to single signature",Iee=xf(eT.Convert_overload_list_to_single_signature),Oee={name:Aee,description:Iee,kind:"refactor.rewrite.function.overloadList"};function Lee(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function jee(t,e,n){var i=tT(YH(t,e),Lee);if(i&&!(MC(i)&&i.body&&NH(i.body,e))){let r=n.getTypeChecker();e=i.symbol;if(e){n=e.declarations;if(!(K4(n)<=1)&&vT(n,e=>iT(e)===t)&&Lee(n[0])){let t=n[0].kind;if(vT(n,e=>e.kind===t)){i=n;if(!X4(i,e=>!!e.typeParameters||X4(e.parameters,e=>!!e.modifiers||!uT(e.name)))){e=AT(i,e=>r.getSignatureFromDeclaration(e));if(K4(e)===K4(n)){let t=r.getReturnTypeOfSignature(e[0]);if(vT(e,e=>r.getReturnTypeOfSignature(e)===t))return i}}}}}}}pZ(Aee,{kinds:[Oee.kind],getEditsForAction:function(e){let{file:n,startPosition:t,program:i}=e,a=jee(n,t,i);if(a){let r=i.getTypeChecker();var o=a[a.length-1];let t=o;switch(o.kind){case 173:t=cT.updateMethodSignature(o,o.modifiers,o.name,o.questionToken,o.typeParameters,s(a),o.type);break;case 174:t=cT.updateMethodDeclaration(o,o.modifiers,o.asteriskToken,o.name,o.questionToken,o.typeParameters,s(a),o.type,o.body);break;case 179:t=cT.updateCallSignature(o,o.typeParameters,s(a),o.type);break;case 176:t=cT.updateConstructorDeclaration(o,o.modifiers,s(a),o.body);break;case 180:t=cT.updateConstructSignature(o,o.typeParameters,s(a),o.type);break;case 262:t=cT.updateFunctionDeclaration(o,o.modifiers,o.asteriskToken,o.name,o.typeParameters,s(a),o.type,o.body);break;default:return Y4.failBadSyntaxKind(o,"Unhandled signature kind in overload list conversion refactoring")}if(t!==o){return{renameFilename:void 0,renameLocation:void 0,edits:I.ChangeTracker.with(e,e=>{e.replaceNodeRange(n,a[0],a[a.length-1],t)})};function s(e){var t=e[e.length-1];return MC(t)&&t.body&&(e=e.slice(0,e.length-1)),cT.createNodeArray([cT.createParameterDeclaration(void 0,cT.createToken(26),"args",void 0,cT.createUnionTypeNode($4(e,c)))])}function c(e){e=$4(e.parameters,l);return _T(cT.createTupleTypeNode(e),X4(e,e=>!!K4(rh(e)))?0:1)}function l(e){Y4.assert(uT(e.name));var t=fT(cT.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||cT.createKeywordTypeNode(133)),e),e=e.symbol&&e.symbol.getDocumentationComment(r);return e&&(e=Ire(e)).length&&jE(t,[{text:`* +${e.split("\n").map(e=>" * "+e).join("\n")} + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}]),t}}}},getAvailableActions:function(e){var{file:e,startPosition:t,program:r}=e,e=jee(e,t,r);return e?[{name:Aee,description:Iee,actions:[Oee]}]:H4}});var Ree="Add or remove braces in an arrow function",Mee=xf(eT.Add_or_remove_braces_in_an_arrow_function),Bee={name:"Add braces to arrow function",description:xf(eT.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},Jee={name:"Remove braces from arrow function",description:xf(eT.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function zee(e,t,r=!0,n){e=YH(e,t),t=X5(e);if(!t)return{error:xf(eT.Could_not_find_a_containing_arrow_function)};if(!LP(t))return{error:xf(eT.Containing_function_is_not_an_arrow_function)};if(CH(t,e)&&(!CH(t.body,e)||r)){if(vee(Bee.kind,n)&&nT(t.body))return{func:t,addBraces:!0,expression:t.body};if(vee(Jee.kind,n)&&KP(t.body)&&1===t.body.statements.length){e=WT(t.body.statements);if(i1(e))return{func:t,addBraces:!1,expression:e.expression&&DP(df(e.expression,!1))?cT.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}pZ(Ree,{kinds:[Jee.kind],getEditsForAction:function(e,t){let{file:r,startPosition:n}=e,i=zee(r,n),{expression:a,returnStatement:o,func:s}=(Y4.assert(i&&!yee(i),"Expected applicable refactor info"),i),c;{var l;t===Bee.name?(l=cT.createReturnStatement(a),c=cT.createBlock([l],!0),h$(a,l,r,3,!0)):t===Jee.name&&o?(l=a||cT.createVoidZero(),c=x$(l)?cT.createParenthesizedExpression(l):l,v$(o,c,r,3,!1),h$(o,c,r,3,!1),y$(o,c,r,3,!1)):Y4.fail("invalid action")}t=I.ChangeTracker.with(e,e=>{e.replaceNode(r,s.body,c)});return{renameFilename:void 0,renameLocation:void 0,edits:t}},getAvailableActions:function(e){var{file:t,startPosition:r,triggerReason:n}=e,t=zee(t,r,"invoked"===n);if(t){if(!yee(t))return[{name:Ree,description:Mee,actions:[t.addBraces?Bee:Jee]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:Ree,description:Mee,actions:[{...Bee,notApplicableReason:t.error},{...Jee,notApplicableReason:t.error}]}]}return H4}});var qee={},Uee="Convert arrow function or function expression",Vee=xf(eT.Convert_arrow_function_or_function_expression),Wee={name:"Convert to anonymous function",description:xf(eT.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},Hee={name:"Convert to named function",description:xf(eT.Convert_to_named_function),kind:"refactor.rewrite.function.named"},Kee={name:"Convert to arrow function",description:xf(eT.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function Gee(e){let r=!1;return e.forEachChild(function e(t){SH(t)?r=!0:qC(t)||rF(t)||OP(t)||h9(t,e)}),r}function $ee(e,t,r){var n,t=YH(e,t),r=r.getTypeChecker(),i=function(e,t,r){if(function(e){return eF(e)||tF(e)&&1===e.declarations.length}(r)){r=(eF(r)?r:WT(r.declarations)).initializer;if(r&&(LP(r)||OP(r)&&!Qee(e,t,r)))return r}}(e,r,t.parent);return!i||Gee(i.body)||r.containsArgumentsReference(i)?!(n=X5(t))||!OP(n)&&!LP(n)||CH(n.body,t)||Gee(n.body)||r.containsArgumentsReference(n)||OP(n)&&Qee(e,r,n)?void 0:{selectedVariableDeclaration:!1,func:n}:{selectedVariableDeclaration:!0,func:i}}function Xee(e){var t,r;return nT(e)?(t=cT.createReturnStatement(e),r=e.getSourceFile(),fT(t,e),l$(t),v$(e,t,r,void 0,!0),cT.createBlock([t],!0)):e}function Qee(e,t,r){return r.name&&ope.Core.isSymbolReferencedInFile(r.name,t,e)}pZ(Uee,{kinds:[Wee.kind,Hee.kind,Kee.kind],getEditsForAction:function(e,t){var{file:r,startPosition:n,program:i}=e,r=$ee(r,n,i);if(r){var a=r["func"],o=[];switch(t){case Wee.name:o.push(...function(e,t){let r=e["file"],n=Xee(t.body),i=cT.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,n);return I.ChangeTracker.with(e,e=>e.replaceNode(r,t,i))}(e,a));break;case Hee.name:var s=function(e){e=e.parent;if(eF(e)&&z5(e)){var t=e.parent,r=t.parent;if(tF(t)&&GP(r)&&uT(e.name))return{variableDeclaration:e,variableDeclarationList:t,statement:r,name:e.name}}}(a);if(!s)return;o.push(...function(e,t,r){let n=e["file"],i=Xee(t.body),{variableDeclaration:a,variableDeclarationList:o,statement:s,name:c}=r,l=(_$(s),32&W3(a)|ON(t)),_=cT.createModifiersFromModifierFlags(l),u=cT.createFunctionDeclaration(K4(_)?_:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===o.declarations.length?I.ChangeTracker.with(e,e=>e.replaceNode(n,s,u)):I.ChangeTracker.with(e,e=>{e.delete(n,a),e.insertNodeAfter(n,s,u)})}(e,a,s));break;case Kee.name:if(!OP(a))return;o.push(...function(e,t){let r=e["file"],n=t.body.statements,i=n[0],a;!function(e,t){return 1===e.statements.length&&i1(t)&&t.expression}(t.body,i)?a=t.body:(l$(a=i.expression),d$(i,a));let o=cT.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,cT.createToken(39),a);return I.ChangeTracker.with(e,e=>e.replaceNode(r,t,o))}(e,a));break;default:return Y4.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:o}}},getAvailableActions:function(e){var{file:t,startPosition:r,program:n,kind:i}=e,t=$ee(t,r,n);if(!t)return H4;var{selectedVariableDeclaration:r,func:n}=t,t=[],a=[];vee(Hee.kind,i)&&((o=r||LP(n)&&eF(n.parent)?void 0:xf(eT.Could_not_convert_to_named_function))?a.push({...Hee,notApplicableReason:o}):t.push(Hee));{var o;vee(Wee.kind,i)&&((o=!r&&LP(n)?void 0:xf(eT.Could_not_convert_to_anonymous_function))?a.push({...Wee,notApplicableReason:o}):t.push(Wee))}vee(Kee.kind,i)&&((r=OP(n)?void 0:xf(eT.Could_not_convert_to_arrow_function))?a.push({...Kee,notApplicableReason:r}):t.push(Kee));return[{name:Uee,description:Vee,actions:0===t.length&&e.preferences.provideRefactorNotApplicableReason?a:t}]}});var Yee={},Zee="Convert parameters to destructured object",ete=1,tte=xf(eT.Convert_parameters_to_destructured_object),rte={name:Zee,description:tte,kind:"refactor.rewrite.parameters.toDestructured"};function nte(e,t){e=Kre(e);if(e){t=t.getContextualTypeForObjectLiteralElement(e),e=null==t?void 0:t.getSymbol();if(e&&!(6&tD(e)))return e}}function ite(e){e=e.node;return mF(e.parent)||dF(e.parent)||_F(e.parent)||g1(e.parent)||vF(e.parent)||gF(e.parent)?e:void 0}function ate(e){if(u7(e.node.parent))return e.node}function ote(e){if(e.node.parent){var t=e.node,r=t.parent;switch(r.kind){case 213:case 214:var n=o3(r,e7);if(n&&n.expression===t)return n;break;case 211:n=o3(r,dT);if(n&&n.parent&&n.name===t){var i=o3(n.parent,e7);if(i&&i.expression===n)return i}break;case 212:n=o3(r,EP);if(n&&n.parent&&n.argumentExpression===t){i=o3(n.parent,e7);if(i&&i.expression===n)return i}}}}function ste(e,t,r){e=QH(e,t),t=J_(e);return function(e){e=tT(e,m7);if(e)return(e=tT(e,e=>!m7(e)))&&MC(e);return}(e)||!(t&&function(e,t){var r;if(function(e,n){return function(e){if(ute(e))return e.length-1;return e.length}(e)>=ete&&vT(e,e=>{var t=n;if(w7(e)){var r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&uT(e.name)})}(e.parameters,t))switch(e.kind){case 262:return lte(e)&&cte(e,t);case 174:return DP(e.parent)?(r=nte(e.name,t),1===(null==(r=null==r?void 0:r.declarations)?void 0:r.length)&&cte(e,t)):cte(e,t);case 176:return nF(e.parent)?lte(e.parent)&&cte(e,t):_te(e.parent.parent)&&cte(e,t);case 218:case 219:return _te(e.parent)}return}(t,r)&&CH(t,e))||t.body&&CH(t.body,e)?void 0:t}function cte(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function lte(e){return!!e.name||!!mG(e,90)}function _te(e){return eF(e)&&f_(e)&&uT(e.name)&&!e.type}function ute(e){return 0ope.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r)),i=function(e){var t={accessExpressions:[],typeUsages:[]},r={functionCalls:[],declarations:[],classReferences:t,valid:!0},n=$4(p,g),i=$4(f,g),a=tP(d),o=$4(p,e=>nte(e,m));for(var s of e){if(s.kind===ope.EntryKind.Span);else{if(TT(o,g(s.node))){if(function(e){return YE(e)&&(iF(e.parent)||uP(e.parent))}(s.node.parent)){r.signature=s.node.parent;continue}var c=ote(s);if(c){r.functionCalls.push(c);continue}}c=nte(s.node,m);if(c&&TT(o,c)){var l=ate(s);if(l){r.declarations.push(l);continue}}if(TT(n,g(s.node))||XW(s.node)){if(ite(s))continue;l=ate(s);if(l){r.declarations.push(l);continue}var _=ote(s);if(_){r.functionCalls.push(_);continue}}if(a&&TT(i,g(s.node))){if(ite(s))continue;_=ate(s);if(_){r.declarations.push(_);continue}var u=function(e){if(e.node.parent){var t=e.node,r=t.parent;switch(r.kind){case 211:var n=o3(r,dT);if(n&&n.expression===t)return n;break;case 212:n=o3(r,EP);if(n&&n.expression===t)return n}}}(s);if(u){t.accessExpressions.push(u);continue}if(nF(d.parent)){u=function(e){e=e.node;if(2===KW(e)||qN(e.parent))return e}(s);if(u){t.typeUsages.push(u);continue}}}}r.valid=!1}return r}(e);vT(i.declarations,e=>TT(n,e))||(i.valid=!1);return i;function g(e){e=m.getSymbolAtLocation(e);return e&&e$(e,m)}}(m,p,n);return u.valid?{renameFilename:void 0,renameLocation:void 0,edits:I.ChangeTracker.with(e,e=>{var t,r,n=d,i=p,a=f,o=e,s=m,e=u,c=e.signature,l=$4(pte(s,i,a),e=>i$(e));c&&(i=$4(pte(c,i,a),e=>i$(e)),_(c,i)),_(s,l);for(t of a=S(e.functionCalls,(e,t)=>l3(e.pos,t.pos)))t.arguments&&t.arguments.length&&(r=i$(function(e,t){let r=dte(e.parameters),n=w7(GT(r)),i=n?t.slice(0,r.length-1):t,a=$4(i,(e,t)=>{t=function(e,t){if(uT(t)&&Kw(t)===e)return cT.createShorthandPropertyAssignment(e);return cT.createPropertyAssignment(e,t)}(fte(r[t]),e);return l$(t.name),FF(t)&&l$(t.initializer),d$(e,t),t});n&&t.length>=r.length&&(e=t.slice(r.length-1),t=cT.createPropertyAssignment(fte(GT(r)),cT.createArrayLiteralExpression(e)),a.push(t));e=cT.createObjectLiteralExpression(a,!1);return e}(s,t.arguments),!0),o.replaceNodeRange(iT(t),WT(t.arguments),GT(t.arguments),r,{leadingTriviaOption:I.LeadingTriviaOption.IncludeAll,trailingTriviaOption:I.TrailingTriviaOption.Include}));function _(e,t){o.replaceNodeRangeWithNodes(n,WT(e.parameters),GT(e.parameters),t,{joiner:", ",indentation:0,leadingTriviaOption:I.LeadingTriviaOption.IncludeAll,trailingTriviaOption:I.TrailingTriviaOption.Include})}})}:{edits:[]}}},getAvailableActions:function(e){var{file:t,startPosition:r}=e,n=C8(t);if(n)return H4;n=ste(t,r,e.program.getTypeChecker());return n?[{name:Zee,description:tte,actions:[rte]}]:H4}});var mte={},gte="Convert to template string",hte=xf(eT.Convert_to_template_string),yte={name:gte,description:hte,kind:"refactor.rewrite.string"};function vte(e,t){e=YH(e,t),t=bte(e);return!xte(t).isValidConcatenation&&IP(t.parent)&&pT(t.parent.parent)?t.parent.parent:e}function bte(e){return tT(e.parent,e=>{switch(e.kind){case 211:case 212:return!1;case 228:case 226:return!(pT(e.parent)&&64!==(t=e.parent).operatorToken.kind&&65!==t.operatorToken.kind);default:return"quit"}var t})||e}function xte(e){let a=e=>{var t,r,n,i;return pT(e)?({nodes:t,operators:r,hasString:n,validOperators:i}=a(e.left),n||qE(e.right)||H0(e.right)?(n=40===e.operatorToken.kind,i=i&&n,t.push(e.right),r.push(e.operatorToken),{nodes:t,operators:r,hasString:!0,validOperators:i}):{nodes:[e],operators:[],hasString:!1,validOperators:!0}):{nodes:[e],operators:[],validOperators:!0,hasString:qE(e)||c0(e)}};var{nodes:e,operators:t,validOperators:r,hasString:n}=a(e);return{nodes:e,operators:t,isValidConcatenation:r&&n}}pZ(gte,{kinds:[yte.kind],getEditsForAction:function(e,t){var{file:r,startPosition:n}=e,r=vte(r,n);{if(t!==hte)return Y4.fail("invalid action");return{edits:function(e,r){let n=bte(r),i=e.file,a=function({nodes:n,operators:e},t){var c=Ste(e,t),l=kte(n,t,c),[e,t,r,i]=Cte(0,n);if(e===n.length)return a=cT.createNoSubstitutionTemplateLiteral(t,r),l(i,a),a;var _=[],a=cT.createTemplateHead(t,r);l(i,a);for(let r=e;r{wte(e);var t=t===i.templateSpans.length-1,r=e.literal.text+(t?a:""),n=Tte(e.literal)+(t?o:"");return cT.createTemplateSpan(e.expression,s&&t?cT.createTemplateTail(r,n):cT.createTemplateMiddle(r,n))}),_.push(...u)):(u=s?cT.createTemplateTail(a,o):cT.createTemplateMiddle(a,o),l(t,u),_.push(cT.createTemplateSpan(i,u)))}return cT.createTemplateExpression(a,_)}(xte(n),i),o=Do(i.text,n.end);{if(o){r=o[o.length-1];let t={pos:o[0].pos,end:r.end};return I.ChangeTracker.with(e,e=>{e.deleteRange(i,t),e.replaceNode(i,n,a)})}return I.ChangeTracker.with(e,e=>e.replaceNode(i,n,a))}}(e,r)}}},getAvailableActions:function(e){var{file:t,startPosition:r}=e,t=vte(t,r),r=bte(t),t=qE(r),n={name:gte,description:hte,actions:[]};if(!t||"invoked"===e.triggerReason){if(h8(r)&&(t||pT(r)&&xte(r).isValidConcatenation))return n.actions.push(yte),[n];if(e.preferences.provideRefactorNotApplicableReason)return n.actions.push({...yte,notApplicableReason:xf(eT.Can_only_convert_string_concatenations_and_string_literals)}),[n]}return H4}});var Ste=(r,n)=>(e,t)=>{e(e,t)=>{for(;0"\\"===e[0]?e:"\\"+e),r.push(e),e++}return[e,n,i,r]}function wte(e){var t=e.getSourceFile();y$(e,e.expression,t,3,!1),v$(e.expression,e.expression,t,3,!1)}var Nte={},Dte="Convert to optional chain expression",Ete=xf(eT.Convert_to_optional_chain_expression),Pte={name:Dte,description:Ete,kind:"refactor.rewrite.expression.optionalChain"};function Fte(e){return pT(e)||W0(e)}function Ate(e){return Fte(e)||$P(e=e)||i1(e)||GP(e)}function Ite(e,t=!0){var{file:r,program:n}=e,e=Z$(e),i=0===e.length;if(!i||t){t=YH(r,e.start),r=tK(r,e.start+e.length),e=Yo(t.pos,(r&&r.end>=t.pos?r:t).getEnd()),r=i?function(e){for(;e.parent;){if(Ate(e)&&!Ate(e.parent))return e;e=e.parent}}(t):function(e,t){for(;e.parent;){if(Ate(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(t,e),i=r&&Ate(r)?function(e){if(Fte(e))return e;{var t;if(GP(e))return t=ow(e),(t=null==t?void 0:t.initializer)&&Fte(t)?t:void 0}return e.expression&&Fte(e.expression)?e.expression:void 0}(r):void 0;if(i){t=n.getTypeChecker();if(W0(i)){e=i;r=t;n=e.condition,t=Rte(e.whenTrue);if(!t||r.isNullableType(r.getTypeAtLocation(t)))return{error:xf(eT.Could_not_find_convertible_access_expression)};return(dT(n)||uT(n))&&Lte(n,t.expression)?{finalExpression:t,occurrences:[n],expression:e}:pT(n)?(r=Ote(t.expression,n))?{finalExpression:t,occurrences:r,expression:e}:{error:xf(eT.Could_not_find_matching_access_expressions)}:void 0;return}else{n=i;if(56!==n.operatorToken.kind)return{error:xf(eT.Can_only_convert_logical_AND_access_chains)};t=Rte(n.right);if(!t)return{error:xf(eT.Could_not_find_convertible_access_expression)};r=Ote(t.expression,n.left);return r?{finalExpression:t,occurrences:r,expression:n}:{error:xf(eT.Could_not_find_matching_access_expressions)};return}}return{error:xf(eT.Could_not_find_convertible_access_expression)}}}function Ote(e,t){for(var r=[];pT(t)&&56===t.operatorToken.kind;){var n=Lte(Cw(e),Cw(t.right));if(!n)break;r.push(n),e=n,t=t.left}var i=Lte(e,t);return i&&r.push(i),0{var t=s.file,r=s.program.getTypeChecker(),{finalExpression:n,occurrences:i,expression:a}=n=c,o=i[i.length-1];(r=function n(i,a,o){if(dT(a)||EP(a)||PP(a)){let e=n(i,a.expression,o),t=0Mte,RangeFacts:()=>Hte,getRangeToExtract:()=>Kte,getRefactorActionsToExtractSymbol:()=>Ute,getRefactorEditsToExtractSymbol:()=>Vte}),"Extract Symbol"),zte={name:"Extract Constant",description:xf(eT.Extract_constant),kind:"refactor.extract.constant"},qte={name:"Extract Function",description:xf(eT.Extract_function),kind:"refactor.extract.function"};function Ute(e){var t=e.kind,r=Kte(e.file,Z$(e),"invoked"===e.triggerReason),n=r.targetRange;if(void 0===n)return r.errors&&0!==r.errors.length&&e.preferences.provideRefactorNotApplicableReason?(m=[],vee(qte.kind,t)&&m.push({name:Jte,description:qte.description,actions:[{...qte,notApplicableReason:g(r.errors)}]}),vee(zte.kind,t)&&m.push({name:Jte,description:zte.description,actions:[{...zte,notApplicableReason:g(r.errors)}]}),m):H4;var{affectedTextRange:i,extractions:r}=function(e,t){let{scopes:r,affectedTextRange:n,readsAndWrites:{functionErrorsPerScope:c,constantErrorsPerScope:l}}=$te(e,t),i=r.map((e,t)=>{var r,n=MC(n=e)?"inner function":qC(n)?"method":"function",i=qC(e)?"readonly field":"constant",a=MC(e)?function(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:D$;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:Y4.assertNever(e,"Unexpected scope kind "+e.kind)}}(e):qC(e)?263===(r=e).kind?r.name?`class '${r.name.text}'`:"anonymous class declaration":r.name?`class expression '${r.name.text}'`:"anonymous class expression":268===(r=e).kind?`namespace '${r.parent.name.getText()}'`:r.externalModuleIndicator?0:1;let o,s;return s=1===a?(o=yf(xf(eT.Extract_to_0_in_1_scope),[n,"global"]),yf(xf(eT.Extract_to_0_in_1_scope),[i,"global"])):0===a?(o=yf(xf(eT.Extract_to_0_in_1_scope),[n,"module"]),yf(xf(eT.Extract_to_0_in_1_scope),[i,"module"])):(o=yf(xf(eT.Extract_to_0_in_1),[n,a]),yf(xf(eT.Extract_to_0_in_1),[i,a])),0!==t||qC(e)||(s=yf(xf(eT.Extract_to_0_in_enclosing_scope),[i])),{functionExtraction:{description:o,errors:c[t]},constantExtraction:{description:s,errors:l[t]}}});return{affectedTextRange:n,extractions:i}}(n,e);if(void 0===r)return H4;var a=[],o=new Map;let s;var c,l,_,u=[],d=new Map;let p,f=0;for({functionExtraction:c,constantExtraction:l}of r)vee(qte.kind,t)&&(_=c.description,0===c.errors.length?o.has(_)||(o.set(_,!0),a.push({description:_,name:"function_scope_"+f,kind:qte.kind,range:{start:{line:O3(e.file,i.pos).line,offset:O3(e.file,i.pos).character},end:{line:O3(e.file,i.end).line,offset:O3(e.file,i.end).character}}})):s=s||{description:_,name:"function_scope_"+f,notApplicableReason:g(c.errors),kind:qte.kind}),vee(zte.kind,t)&&(_=l.description,0===l.errors.length?d.has(_)||(d.set(_,!0),u.push({description:_,name:"constant_scope_"+f,kind:zte.kind,range:{start:{line:O3(e.file,i.pos).line,offset:O3(e.file,i.pos).character},end:{line:O3(e.file,i.end).line,offset:O3(e.file,i.end).character}}})):p=p||{description:_,name:"constant_scope_"+f,notApplicableReason:g(l.errors),kind:zte.kind}),f++;var m=[];return a.length?m.push({name:Jte,description:xf(eT.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&s&&m.push({name:Jte,description:xf(eT.Extract_function),actions:[s]}),u.length?m.push({name:Jte,description:xf(eT.Extract_constant),actions:u}):e.preferences.provideRefactorNotApplicableReason&&p&&m.push({name:Jte,description:xf(eT.Extract_constant),actions:[p]}),m.length?m:H4;function g(e){let t=e[0].messageText;return t="string"!=typeof t?t.messageText:t}}function Vte(a,o){var s=Kte(a.file,Z$(a)).targetRange,f=/^function_scope_(\d+)$/.exec(o);if(f){var f=+f[1],m=(Y4.assert(isFinite(f),"Expected to parse a finite number from the function scope index"),s),g=a,{scopes:h,readsAndWrites:{target:y,usagesPerScope:v,functionErrorsPerScope:b,exposedVariableDeclarations:x}}=$te(m,g);Y4.assert(!b[f].length,"The extraction went missing? How?"),g.cancellationToken.throwIfCancellationRequested();{var[b,S,{usages:y,typeParameterUsages:h,substitutions:v},f,x,k]=[y,h[f],v[f],x,m,g];let i=k.program.getTypeChecker(),a=vD(k.program.getCompilerOptions()),o=hne.createImportAdder(k.file,k.program,k.preferences,k.host),e=S.getSourceFile(),t=m$(qC(S)?"newMethod":"newFunction",e),s=oT(S),r=cT.createIdentifier(t),n,c=[],l=[],_;y.forEach((e,t)=>{let r;s||(n=i.getTypeOfSymbolAtLocation(e.symbol,e.node),n=i.getBaseTypeOfLiteralType(n),r=hne.typeToAutoImportableTypeNode(i,o,n,S,a,1));var n=cT.createParameterDeclaration(void 0,void 0,t,void 0,r);c.push(n),2===e.usage&&(_=_||[]).push(e),l.push(cT.createIdentifier(t))}),h=void 0!==(y=0===(h=(y=ZT(h.values(),e=>({type:e,declaration:function(e,t){let r,n=e.symbol;if(n&&n.declarations)for(var i of n.declarations)(void 0===r||i.pose))?y.map(e=>cT.createTypeReferenceNode(e.name,void 0)):void 0,nT(b)&&!s&&(T=i.getContextualType(b),n=i.typeToTypeNode(T,S,1));var{body:T,returnValueProperty:v}=function(e,t,r,a,n){let o=void 0!==r||0e.pos>=t&&MC(e)&&!tP(e))}(y=(Yte(x.range)?GT(x.range):x.range).end,S))?C.insertNodeBefore(k.file,y,u,!0):C.insertNodeAtEndOfScope(k.file,S,u),o.writeFixes(C),[]),y=function(e,t,r){r=cT.createIdentifier(r);return qC(e)?(t=32&t.facts?cT.createIdentifier(e.name.text):cT.createThis(),cT.createPropertyAccessExpression(t,r)):r}(S,x,t);d&&l.unshift(cT.createIdentifier("this"));let p=cT.createCallExpression(d?cT.createPropertyAccessExpression(y,"call"):y,h,l);if(2&x.facts&&(p=cT.createYieldExpression(cT.createToken(42),p)),4&x.facts&&(p=cT.createAwaitExpression(p)),ere(b)&&(p=cT.createJsxExpression(void 0,p)),f.length&&!_)if(Y4.assert(!v,"Expected no returnValueProperty"),Y4.assert(!(1&x.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===f.length){y=f[0];w.push(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(i$(y.name),void 0,i$(y.type),p)],y.parent.flags)))}else{var N,D=[],E=[];let e=f[0].parent.flags,t=!1;for(N of f){D.push(cT.createBindingElement(void 0,void 0,i$(N.name)));var P=i.typeToTypeNode(i.getBaseTypeOfLiteralType(i.getTypeAtLocation(N)),S,1);E.push(cT.createPropertySignature(void 0,N.symbol.name,void 0,P)),t=t||void 0!==N.type,e&=N.parent.flags}h=t?cT.createTypeLiteralNode(E):void 0;h&&_T(h,1),w.push(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(cT.createObjectBindingPattern(D),void 0,h,p)],e)))}else if(f.length||_){if(f.length)for(var F of f){let e=F.parent.flags;2&e&&(e=-3&e|1),w.push(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(F.symbol.name,void 0,A(F.type))],e)))}v&&w.push(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(v,void 0,A(n))],1)));b=Qte(f,_);v&&b.unshift(cT.createShorthandPropertyAssignment(v)),1===b.length?(Y4.assert(!v,"Shouldn't have returnValueProperty here"),w.push(cT.createExpressionStatement(cT.createAssignment(b[0].name,p))),1&x.facts&&w.push(cT.createReturnStatement())):(w.push(cT.createExpressionStatement(cT.createAssignment(cT.createObjectLiteralExpression(b),p))),v&&w.push(cT.createReturnStatement(cT.createIdentifier(v))))}else 1&x.facts?w.push(cT.createReturnStatement(p)):Yte(x.range)?w.push(cT.createExpressionStatement(p)):w.push(p);return Yte(x.range)?C.replaceNodeRangeWithNodes(k.file,WT(x.range),GT(x.range),w):C.replaceNodeWithNodes(k.file,x.range,w),y=C.getChanges(),h=Yte(x.range)?WT(x.range):x.range,f=h.getSourceFile().fileName,b=g$(y,f,t,!1),{renameFilename:f,renameLocation:b,edits:y};function A(t){if(void 0!==t){t=i$(t);let e=t;for(;hP(e);)e=e.type;return j0(e)&&bT(e.types,e=>157===e.kind)?t:cT.createUnionTypeNode([t,cT.createKeywordTypeNode(157)])}}}}else{m=/^constant_scope_(\d+)$/.exec(o);if(m){var g=+m[1],v=(Y4.assert(isFinite(g),"Expected to parse a finite number from the constant scope index"),s),x=a,h=g,{scopes:f,readsAndWrites:{target:b,usagesPerScope:y,constantErrorsPerScope:o,exposedVariableDeclarations:s}}=$te(v,x),o=(Y4.assert(!o[h].length,"The extraction went missing? How?"),Y4.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),x.cancellationToken.throwIfCancellationRequested(),nT(b)?b:b.statements[0].expression);{var[l,_,a,s,o]=[o,f[h],y[h]["substitutions"],v.facts,x];let c=o.program.getTypeChecker(),e=_.getSourceFile(),t=bee(l,_,c,e),r=oT(_),n=r||!c.isContextSensitive(l)?void 0:c.typeToTypeNode(c.getContextualType(l),_,1),i=function(e,n){return n.size?function e(t){let r=n.get(oj(t).toString());return r?i$(r):hT(t,e,void 0)}(e):e}(Cw(l),a);if({variableType:n,initializer:i}=function(t,r){if(void 0!==t&&(OP(r)||LP(r))&&!r.typeParameters){var n=c.getTypeAtLocation(l),n=xi(c.getSignaturesOfType(n,0));if(n&&!n.getTypeParameters()){var i,a,o,s=[];let e=!1;for(i of r.parameters)i.type?s.push(i):((a=c.getTypeAtLocation(i))===c.getAnyType()&&(e=!0),s.push(cT.updateParameterDeclaration(i,i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type||c.typeToTypeNode(a,_,1),i.initializer)));e||(t=void 0,r=LP(r)?cT.updateArrowFunction(r,f9(l)?nC(l):void 0,r.typeParameters,s,r.type||c.typeToTypeNode(n.getReturnType(),_,1),r.equalsGreaterThanToken,r.body):(n&&n.thisParameter&&(!(o=UT(s))||uT(o.name)&&"this"!==o.name.escapedText)&&(o=c.getTypeOfSymbolAtLocation(n.thisParameter,l),s.splice(0,0,cT.createParameterDeclaration(void 0,void 0,"this",void 0,c.typeToTypeNode(o,_,1)))),cT.updateFunctionExpression(r,f9(l)?nC(l):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||c.typeToTypeNode(n.getReturnType(),_,1),r.body)))}}return{variableType:t,initializer:r}}(n,i),l$(i),a=I.ChangeTracker.fromContext(o),qC(_)){Y4.assert(!r,"Cannot extract to a JS class");var u=[],u=(u.push(cT.createModifier(123)),32&s&&u.push(cT.createModifier(126)),u.push(cT.createModifier(148)),cT.createPropertyDeclaration(u,t,void 0,n,i));let e=cT.createPropertyAccessExpression(32&s?cT.createIdentifier(_.name.getText()):cT.createThis(),cT.createIdentifier(t));ere(l)&&(e=cT.createJsxExpression(void 0,e));s=function(e,t){var r=t.members;Y4.assert(0e)return n||r[0];if(i&&!QE(a)){if(void 0!==n)return a;i=!1}n=a}return void 0===n?Y4.fail():n}(l.pos,_);a.insertNodeBefore(o.file,s,u,!0),a.replaceNode(o.file,l,e)}else{s=cT.createVariableDeclaration(t,void 0,n,i),u=function(e,t){let r;for(;void 0!==e&&e!==t;){if(eF(e)&&e.initializer===r&&tF(e.parent)&&1r.pos)break;e=a}return!e&&C1(t)?(Y4.assert(o1(t.parent.parent),"Grandparent isn't a switch statement"),t.parent.parent):Y4.checkDefined(e,"prevStatement failed to get set")}Y4.assert(t!==n,"Didn't encounter a block-like before encountering scope")}}(l,_);if(0===p.pos?a.insertNodeAtTopOfFile(o.file,s,!1):a.insertNodeBefore(o.file,p,s,!1),244===l.parent.kind)a.delete(o.file,l.parent);else{let e=cT.createIdentifier(t);ere(l)&&(e=cT.createJsxExpression(void 0,e)),a.replaceNode(o.file,l,e)}}}return p=a.getChanges(),s=l.getSourceFile().fileName,o=g$(p,s,t,!0),{renameFilename:s,renameLocation:o,edits:p}}}Y4.fail("Unrecognized action name")}}function Wte(e){return{message:e,code:0,category:3,key:e}}pZ(Jte,{kinds:[zte.kind,qte.kind],getEditsForAction:Vte,getAvailableActions:Ute}),(Toe=Mte=Mte||{}).cannotExtractRange=Wte("Cannot extract range."),Toe.cannotExtractImport=Wte("Cannot extract import statement."),Toe.cannotExtractSuper=Wte("Cannot extract super call."),Toe.cannotExtractJSDoc=Wte("Cannot extract JSDoc."),Toe.cannotExtractEmpty=Wte("Cannot extract empty range."),Toe.expressionExpected=Wte("expression expected."),Toe.uselessConstantType=Wte("No reason to extract constant of type."),Toe.statementOrExpressionExpected=Wte("Statement or expression expected."),Toe.cannotExtractRangeContainingConditionalBreakOrContinueStatements=Wte("Cannot extract range containing conditional break or continue statements."),Toe.cannotExtractRangeContainingConditionalReturnStatement=Wte("Cannot extract range containing conditional return statement."),Toe.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=Wte("Cannot extract range containing labeled break or continue with target outside of the range."),Toe.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=Wte("Cannot extract range containing writes to references located outside of the target range in generators."),Toe.typeWillNotBeVisibleInTheNewScope=Wte("Type will not visible in the new scope."),Toe.functionWillNotBeVisibleInTheNewScope=Wte("Function will not visible in the new scope."),Toe.cannotExtractIdentifier=Wte("Select more than a single identifier."),Toe.cannotExtractExportedEntity=Wte("Cannot extract exported declaration"),Toe.cannotWriteInExpression=Wte("Cannot write back side-effects when extracting an expression"),Toe.cannotExtractReadonlyPropertyInitializerOutsideConstructor=Wte("Cannot move initialization of read-only class property outside of the constructor"),Toe.cannotExtractAmbientBlock=Wte("Cannot extract code from ambient contexts"),Toe.cannotAccessVariablesFromNestedScopes=Wte("Cannot access variables from nested scopes"),Toe.cannotExtractToJSClass=Wte("Cannot extract constant to a class scope in JS"),Toe.cannotExtractToExpressionArrowFunction=Wte("Cannot extract constant to an arrow function without a block"),Toe.cannotExtractFunctionsContainingThisToMethod=Wte("Cannot extract functions containing this to method");var Hte=(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))(Hte||{});function Kte(e,c,t=!0){var r=c["length"];if(0===r&&!t)return{errors:[pD(e,c.start,r,Mte.cannotExtractEmpty)]};var n=0===r&&t,i=eK(e,c.start),a=tK(e,J3(c)),t=i&&a&&t?function(e,t,r){let n=e.getStart(r),i=t.getEnd();59===r.text.charCodeAt(i)&&i++;return{start:n,length:i-n}}(i,a,e):c,o=n?tT(i,e=>e.parent&&Zte(e)&&!pT(e.parent)):fG(i,e,t),s=n?o:fG(a,e,t);let l=0,_;if(!o||!s)return{errors:[pD(e,c.start,r,Mte.cannotExtractRange)]};if(16777216&o.flags)return{errors:[pD(e,c.start,r,Mte.cannotExtractJSDoc)]};if(o.parent!==s.parent)return{errors:[pD(e,c.start,r,Mte.cannotExtractRange)]};if(o===s)return i1(o)&&!o.expression?{errors:[pD(e,c.start,r,Mte.cannotExtractRange)]}:(n=function(e){if(uT($P(e)?e.expression:e))return[aT(e,Mte.cannotExtractIdentifier)]}(i=function(r){if(i1(r)){if(r.expression)return r.expression}else if(GP(r)||tF(r)){var n,i=(GP(r)?r.declarationList:r).declarations;let e=0,t;for(n of i)n.initializer&&(e++,t=n.initializer);if(1===e)return t}else if(eF(r)&&r.initializer)return r.initializer;return r}(o))||f(i))?{errors:n}:{targetRange:{range:function(e){if(d7(e))return[e];if(h8(e))return $P(e.parent)?[e.parent]:e;if(tre(e))return e}(i),facts:l,thisNode:_}};if(!kX(o.parent))return{errors:[pD(e,c.start,r,Mte.cannotExtractRange)]};var u,d=[];for(u of o.parent.statements){if(u===o||d.length){var p=f(u);if(p)return{errors:p};d.push(u)}if(u===s)break}return d.length?{targetRange:{range:d,facts:l,thisNode:_}}:{errors:[pD(e,c.start,r,Mte.cannotExtractRange)]};function f(t){if(0,Y4.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),Y4.assert(!Km(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(d7(t)||h8(t)&&Zte(t)||tre(t)))return[aT(t,Mte.statementOrExpressionExpected)];if(33554432&t.flags)return[aT(t,Mte.cannotExtractAmbientBlock)];var r=Q5(t);if(r){var n=t;var i=r;let e=n;for(;e!==i;){if(172===e.kind){CN(e)&&(l|=32);break}if(169===e.kind){176===X5(e).kind&&(l|=32);break}174===e.kind&&CN(e)&&(l|=32),e=e.parent}}let a,o=4,s;return function t(r){if(a)return!0;if(u7(r)){let e=260===r.kind?r.parent.parent:r;if(TN(e,32))return(a=a||[]).push(aT(r,Mte.cannotExtractExportedEntity)),!0}switch(r.kind){case 272:return(a=a||[]).push(aT(r,Mte.cannotExtractImport)),!0;case 277:return(a=a||[]).push(aT(r,Mte.cannotExtractExportedEntity)),!0;case 108:if(213===r.parent.kind){let e=Q5(r);if(void 0===e||e.pos=c.start+c.length)return(a=a||[]).push(aT(r,Mte.cannotExtractSuper)),!0}else l|=8,_=r;break;case 219:h9(r,function e(t){if(SH(t))l|=8,_=r;else{if(qC(t)||jC(t)&&!LP(t))return!1;h9(t,e)}});case 263:case 262:LF(r.parent)&&void 0===r.parent.externalModuleIndicator&&(a=a||[]).push(aT(r,Mte.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let e=o;switch(r.kind){case 245:o&=-5;break;case 258:o=0;break;case 241:r.parent&&258===r.parent.kind&&r.parent.finallyBlock===r&&(o=4);break;case 297:case 296:o|=1;break;default:n7(r,!1)&&(o|=3)}switch(r.kind){case 197:case 110:l|=8,_=r;break;case 256:{let e=r.label;(s=s||[]).push(e.escapedText),h9(r,t),s.pop();break}case 252:case 251:{let e=r.label;e?TT(s,e.escapedText)||(a=a||[]).push(aT(r,Mte.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):o&(252===r.kind?1:2)||(a=a||[]).push(aT(r,Mte.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:l|=4;break;case 229:l|=2;break;case 253:4&o?l|=1:(a=a||[]).push(aT(r,Mte.cannotExtractRangeContainingConditionalReturnStatement));break;default:h9(r,t)}o=e}(t),8&l&&(262===(r=t8(t,!1,!1)).kind||174===r.kind&&210===r.parent.kind||218===r.kind)&&(l|=16),a}}function Gte(e){return LP(e)?Jc(e.body):MC(e)||LF(e)||cF(e)||qC(e)}function $te(e,t){var r,n=t["file"],i=function(e){let t=Yte(e.range)?WT(e.range):e.range;if(8&e.facts&&!(16&e.facts)){var r,e=Q5(t);if(e)return(r=tT(t,MC))?[r,e]:[e]}for(var n=[];;)if(Gte(t=169===(t=t.parent).kind?tT(t,e=>MC(e)).parent:t)&&(n.push(t),307===t.kind))return n}(e),a=(a=n,Yte((r=e).range)?{pos:WT(r.range).getStart(a),end:GT(r.range).getEnd()}:r.range);return{scopes:i,affectedTextRange:a,readsAndWrites:function(u,d,p,f,m,r){let n=new Map,g=[],h=[],y=[],v=[],i=[],a=new Map,o=[],s,e=Yte(u.range)?1===u.range.length&&$P(u.range[0])?u.range[0].expression:void 0:u.range,t;{var c,l;void 0===e?(l=u.range,c=WT(l).getStart(),l=GT(l).end,t=pD(f,c,l-c,Mte.expressionExpected)):147456&m.getTypeAtLocation(e).flags&&(t=aT(e,Mte.uselessConstantType))}for(var _ of d){g.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),h.push(new Map),y.push([]);var b=[];t&&b.push(t),qC(_)&&oT(_)&&b.push(aT(_,Mte.cannotExtractToJSClass)),LP(_)&&!KP(_.body)&&b.push(aT(_,Mte.cannotExtractToExpressionArrowFunction)),v.push(b)}let x=new Map,S=Yte(u.range)?cT.createBlock(u.range):u.range,k=Yte(u.range)?WT(u.range):u.range,T=function(e){return!!tT(e,e=>t_(e)&&0!==mC(e).length)}(k);(function e(t,r=1){if(T){let e=m.getTypeAtLocation(t);D(e)}u7(t)&&t.symbol&&i.push(t);zN(t)?(e(t.left,2),e(t.right)):Lc(t)?e(t.operand,2):!dT(t)&&!EP(t)&&uT(t)?!t.parent||WE(t.parent)&&t!==t.parent.left||dT(t.parent)&&t!==t.parent.expression||E(t,r,O5(t)):h9(t,e)})(S),!T||Yte(u.range)||CF(u.range)||D(m.getContextualType(u.range));if(0{g[r].typeParameterUsages.set(t,e)}),r++),t_(e))for(var w of mC(e)){w=m.getTypeAtLocation(w);n.has(w.id.toString())&&C.set(w.id.toString(),w)}Y4.assert(r===d.length,"Should have iterated all scopes")}i.length&&h9(e_(d[0],d[0].parent)?d[0]:_5(d[0]),function e(t){if(t===u.range||Yte(u.range)&&u.range.includes(t))return;let r=uT(t)?P(t):m.getSymbolAtLocation(t);if(r){let t=bT(i,e=>e.symbol===r);if(t)if(eF(t)){let e=t.symbol.id.toString();a.has(e)||(o.push(t),a.set(e,!0))}else s=s||t}h9(t,e)});for(let e=0;e{2===e.usage&&(t=!0,106500&e.symbol.flags)&&e.symbol.valueDeclaration&&kN(e.symbol.valueDeclaration,8)&&(r=e.symbol.valueDeclaration)}),Y4.assert(Yte(u.range)||0===o.length,"No variable declarations expected if something was extracted"),t&&!Yte(u.range)?(N=aT(u.range,Mte.cannotWriteInExpression),y[e].push(N),v[e].push(N)):r&&0(r.throwIfCancellationRequested(),!0)).walkType(e)["visitedTypes"];for(t of e)t.isTypeParameter()&&n.set(t.id.toString(),t)}function E(t,e,r){var n=function(t,r,n){var i=P(t);if(i){var a=sj(i).toString(),e=x.get(a);if(e&&r<=e)return a;if(x.set(a,r),e){for(var o of g)o.usages.get(t.text)&&o.usages.set(t.text,{usage:r,symbol:i,node:t});return a}e=i.getDeclarations(),e=e&&bT(e,e=>e.getSourceFile()===f);if(e&&!PH(p,e.getStart(),e.end)){if(2&u.facts&&2===r){var s,c,l=aT(t,Mte.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(s of y)s.push(l);for(c of v)c.push(l)}for(let e=0;ee.parent===r))return cT.createIdentifier(t.name);let a=e(t.parent,r,n);if(void 0===a)return;return n?cT.createQualifiedName(a,cT.createIdentifier(t.name)):cT.createPropertyAccessExpression(a,t.name)}(i.exportSymbol||i,_,n))?h[e].set(a,_):n?262144&i.flags||(_=aT(t,Mte.typeWillNotBeVisibleInTheNewScope),y[e].push(_),v[e].push(_)):g[e].usages.set(t.text,{usage:r,symbol:i,node:t}))}return a}}}(t,e,r);if(n)for(let e=0;ecT.createShorthandPropertyAssignment(e.symbol.name)),t=$4(t,e=>cT.createShorthandPropertyAssignment(e.symbol.name));return void 0===e?t:void 0===t?e:e.concat(t)}function Yte(e){return i3(e)}function Zte(e){var t=e["parent"];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 ere(e){return tre(e)||(xF(e)||SF(e)||S1(e))&&(xF(e.parent)||S1(e.parent))}function tre(e){return qE(e)&&e.parent&&CF(e.parent)}var rre={},nre="Generate 'get' and 'set' accessors",ire=xf(eT.Generate_get_and_set_accessors),are={name:nre,description:ire,kind:"refactor.rewrite.property.generateAccessors"},ore=(pZ(nre,{kinds:[are.kind],getEditsForAction:function(e,t){if(e.endPosition){var r,n=hne.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition),t=(Y4.assert(n&&!yee(n),"Expected applicable refactor info"),hne.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t));if(t)return{renameFilename:e=e.file.fileName,renameLocation:(uT(r=n.renameAccessor?n.accessorName:n.fieldName)?0:-1)+g$(t,e,r.text,GE(n.declaration)),edits:t}}},getAvailableActions(e){var t;return e.endPosition&&(t=hne.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason))?yee(t)?e.preferences.provideRefactorNotApplicableReason?[{name:nre,description:ire,actions:[{...are,notApplicableReason:t.error}]}]:H4:[{name:nre,description:ire,actions:[are]}]:H4}}),{}),sre="Infer function return type",cre=xf(eT.Infer_function_return_type),lre={name:sre,description:cre,kind:"refactor.rewrite.function.returnType"};function _re(e){var t,r;if(!oT(e.file)&&vee(lre.kind,e.kind))return(t=tT(XH(e.file,e.startPosition),e=>{if(KP(e)||e.parent&&LP(e.parent)&&(39===e.kind||e.parent.body===e))return"quit";switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}))&&t.body&&!t.type?(r=function(e,t){if(e.isImplementationOfOverload(t)){var r=e.getTypeAtLocation(t).getCallSignatures();if(1e.getReturnType()))}r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}(e=e.program.getTypeChecker(),t))?(e=e.typeToTypeNode(r,t,1))?{declaration:t,returnTypeNode:e}:void 0:{error:xf(eT.Could_not_determine_function_return_type)}:{error:xf(eT.Return_type_must_be_inferred_from_a_function)}}pZ(sre,{kinds:[lre.kind],getEditsForAction:function(o){let s=_re(o);if(s&&!yee(s))return{renameFilename:void 0,renameLocation:void 0,edits:I.ChangeTracker.with(o,e=>{var t,r,n,i,a;t=o.file,e=e,r=s.declaration,n=s.returnTypeNode,i=MH(r,22,t),a=LP(r)&&void 0===i,(r=a?WT(r.parameters):i)&&(a&&(e.insertNodeBefore(t,r,cT.createToken(21)),e.insertNodeAfter(t,r,cT.createToken(22))),e.insertNodeAt(t,r.end,n,{prefix:": "}))})}},getAvailableActions:function(e){var t=_re(e);if(t){if(!yee(t))return[{name:sre,description:cre,actions:[lre]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:sre,description:cre,actions:[{...lre,notApplicableReason:t.error}]}]}return H4}});var ure=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))({}),dre=(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))({}),pre=(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))({});function fre(e,t,r,n){var e=mre(e,t,r,n),i=(Y4.assert(e.spans.length%3==0),e.spans),a=[];for(let e=0;e{i.push(e.getStart(n),e.getWidth(n),(t+1<<8)+r)};e&&n&&!function(s,c,r,l,_){let u=s.getTypeChecker(),d=!1;!function e(n){switch(n.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:_.throwIfCancellationRequested()}if(n&&Ko(r,n.pos,n.getFullWidth())&&0!==n.getFullWidth()){var t=d;if((xF(n)||SF(n))&&(d=!0),T1(n)&&(d=!1),uT(n)&&!d&&!function(e){return(e=e.parent)&&(dF(e)||mF(e)||g1(e))}(n)&&!iE(n.escapedText)){let r=u.getSymbolAtLocation(n);if(r){let t=function(e,t){var r=e.getFlags();if(32&r)return 0;if(384&r)return 1;if(524288&r)return 5;if(64&r){if(2&t)return 2}else if(262144&r)return 4;let n=e.valueDeclaration||e.declarations&&e.declarations[0];return(n=n&&wP(n)?gre(n):n)&&yre.get(n.kind)}(r=2097152&r.flags?u.getAliasedSymbol(r):r,KW(n));if(void 0!==t){let e=0;n.parent&&(wP(n.parent)||yre.get(n.parent.kind)===t)&&n.parent.name===n&&(e=1),6===t&&hre(n)&&(t=9),t=function(e,r,n){if(7===n||9===n||6===n){let t=e.getTypeAtLocation(r);if(t){if(e=e=>e(t)||t.isUnion()&&t.types.some(e),6!==n&&e(e=>000s.isSourceFileDefaultLibrary(e.getSourceFile()))&&(e|=16),l(n,t,e)}}}h9(n,e),d=t}}(c)}(e,n,t,a,r);return i}(e,r,n,t),endOfLineState:0}}function gre(e){for(;;){if(!wP(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function hre(e){return WE(e.parent)&&e.parent.right===e||dT(e.parent)&&e.parent.name===e}var yre=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]]),vre="0.8";function bre(e,t,r,n){e=Ys(e)?new xre(e,t,r):80===e?new Tre(80,t,r):81===e?new Cre(81,t,r):new kre(e,t,r);return e.parent=n,e.flags=101441536&n.flags,e}var xre=class{constructor(e,t,r){this.pos=t,this.end=r,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){Y4.assert(!Km(this.pos)&&!Km(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return iT(this)}getStart(e,t){return this.assertHasRealPosition(),Ml(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()).text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){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"),Q1(this)??Y1(this,function(r,e){let n=[];if(rl(r))r.forEachChild(e=>{n.push(e)});else{VW.setText((e||r.getSourceFile()).text);let t=r.pos;var e=e=>{Sre(n,t,e.pos,r),n.push(e),t=e.end},i=e=>{Sre(n,t,e.pos,r),n.push(function(e,t){let r=bre(352,e.pos,e.end,t),n=[],i=e.pos;for(var a of e)Sre(n,i,a.pos,t),n.push(a),i=a.end;return Sre(n,i,e.end,t),Y1(r,n),r}(e,r)),t=e.end};G4(r.jsDoc,e),t=r.pos,r.forEachChild(e,i),Sre(n,t,r.end,r),VW.setText(void 0)}return n}(this,e))}getFirstToken(e){this.assertHasRealPosition();var t=this.getChildren(e);if(t.length)return(t=bT(t,e=>e.kind<309||351"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text)}function Nre(e,i){if(!e)return H4;let t=Ofe.getJsDocTagsFromDeclarations(e,i);if(i&&(0===t.length||e.some(wre))){let n=new Set;for(let r of e){var a=Ere(i,r,e=>{var t;if(!n.has(e))return n.add(e),177===r.kind||178===r.kind?e.getContextualJsDocTags(r,i):1===(null==(t=e.declarations)?void 0:t.length)?e.getJsDocTags(i):void 0});a&&(t=[...a,...t])}}return t}function Dre(e,n){if(!e)return H4;let i=Ofe.getJsDocCommentsFromDeclarations(e,n);if(n&&(0===i.length||e.some(wre))){let r=new Set;for(let t of e){var a=Ere(n,t,e=>{if(!r.has(e))return r.add(e),177===t.kind||178===t.kind?e.getContextualDocumentationComment(t,n):e.getDocumentationComment(n)});a&&(i=0===i.length?a.slice():a.concat(HG(),i))}}return i}function Ere(r,n,i){var e=(176===(null==(e=n.parent)?void 0:e.kind)?n.parent:n).parent;if(e){let t=wN(n);return yT(Cu(e),e=>{e=r.getTypeAtLocation(e),e=t&&e.symbol?r.getTypeOfSymbol(e.symbol):e,e=r.getPropertyOfType(e,n.symbol.name);return e?i(e):void 0})}}var Pre=class extends xre{constructor(e,t,r){super(e,t,r)}update(e,t){return Zv(this,e,t)}getLineAndCharacterOfPosition(e){return O3(this,e)}getLineStarts(){return ro(this)}getPositionOfLineAndCharacter(e,t,r){return to(ro(this),e,t,this.text,r)}getLineEndOfPosition(e){var e=this.getLineAndCharacterOfPosition(e)["line"],t=this.getLineStarts();let r;r=(r=e+1>=t.length?this.getEnd():r)||t[e+1]-1;t=this.getFullText();return"\n"===t[r]&&"\r"===t[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let r=n3();return this.forEachChild(function i(a){switch(a.kind){case 262:case 218:case 174:case 173:let r=a,n=c(r);if(n){let e=s(n),t=KT(e);t&&r.parent===t.parent&&r.symbol===t.symbol?r.body&&!t.body&&(e[e.length-1]=r):e.push(r)}h9(a,i);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:o(a),h9(a,i);break;case 169:if(!TN(a,31))break;case 260:case 208:{let e=a;if(GC(e.name)){h9(e.name,i);break}e.initializer&&i(e.initializer)}case 306:case 172:case 171:o(a);break;case 278:let e=a;e.exportClause&&(yF(e.exportClause)?G4(e.exportClause.elements,i):i(e.exportClause.name));break;case 272:let t=a.importClause;t&&(t.name&&o(t.name),t.namedBindings)&&(274===t.namedBindings.kind?o(t.namedBindings):G4(t.namedBindings.elements,i));break;case 226:0!==V8(a)&&o(a);default:h9(a,i)}}),r;function o(e){var t=c(e);t&&r.add(t,e)}function s(e){let t=r.get(e);return t||r.set(e,t=[]),t}function c(e){e=gs(e);return e&&(HE(e)&&dT(e.expression)?e.expression.name.text:LC(e)?XK(e):void 0)}}};function Fre(e){let t=!0;for(var r in e)if(Si(e,r)&&!Are(r)){t=!1;break}if(t)return e;var n,i={};for(n in e)Si(e,n)&&(i[Are(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=e[n]);return i}function Are(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function Ire(e){return e?$4(e,e=>e.text).join(""):""}function Ore(){return{target:1,jsx:1}}function Lre(){return hne.getSupportedErrorCodes()}var jre=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t=this.host.getScriptSnapshot(e);if(!t)throw new Error("Could not find file: '"+e+"'.");var r,n,i=ZG(e,this.host),a=this.host.getScriptVersion(e);let o;return this.currentFileName!==e?(r={languageVersion:99,impliedNodeFormat:jJ(pa(e,this.host.getCurrentDirectory(),(null==(r=null==(r=(n=this.host).getCompilerHost)?void 0:r.call(n))?void 0:r.getCanonicalFileName)||xd(this.host)),null==(n=null==(n=null==(r=null==(r=(n=this.host).getCompilerHost)?void 0:r.call(n))?void 0:r.getModuleResolutionCache)?void 0:n.call(r))?void 0:n.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:If(this.host.getCompilationSettings()),jsDocParsingMode:0},o=Mre(e,t,r,a,!0,i)):this.currentFileVersion!==a&&(n=t.getChangeRange(this.currentFileScriptSnapshot),o=Bre(this.currentSourceFile,t,a,n)),o&&(this.currentFileVersion=a,this.currentFileName=e,this.currentFileScriptSnapshot=t,this.currentSourceFile=o),this.currentSourceFile}};function Rre(e,t,r){e.version=r,e.scriptSnapshot=t}function Mre(e,t,r,n,i,a){e=Qv(e,KK(t),r,i,a);return Rre(e,t,n),e}function Bre(t,r,n,i,a){if(i&&n!==t.version){let e;var o=0!==i.span.start?t.text.substr(0,i.span.start):"",s=J3(i.span)!==t.text.length?t.text.substr(J3(i.span)):"",o=Zv(t,e=0===i.newLength?o&&s?o+s:o||s:(c=r.getText(i.span.start,i.span.start+i.newLength),o&&s?o+c+s:o?o+c:c+s),i,a);return Rre(o,r,n),o.nameTable=void 0,t!==o&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),o}var c={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator,jsDocParsingMode:t.jsDocParsingMode};return Mre(t.fileName,r,c,n,!0,t.scriptKind)}var Jre={isCancellationRequested:vr,throwIfCancellationRequested:yr},zre=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){if(this.isCancellationRequested())throw null!=Z4&&Z4.instant(Z4.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Vr}},qre=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){var e=$t();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){if(this.isCancellationRequested())throw null!=Z4&&Z4.instant(Z4.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Vr}},Ure=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],Vre=[...Ure,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"];function Wre(v,b=sQ(v.useCaseSensitiveFileNames&&v.useCaseSensitiveFileNames(),v.getCurrentDirectory(),v.jsDocParsingMode),e){let t,x,S=(x=void 0===e?0:"boolean"==typeof e?e?2:0:e,new jre(v)),k,T,C=0,w=v.getCancellationToken?new zre(v.getCancellationToken()):Jre,N=v.getCurrentDirectory();function D(e){v.log&&v.log(e)}bf(null==(t=v.getLocalizedDiagnosticMessages)?void 0:t.bind(v));let E=bd(v),P=ze(E),F=zQ({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>N,getProgram:s,fileExists:r3(v,v.fileExists),readFile:r3(v,v.readFile),getDocumentPositionMapper:r3(v,v.getDocumentPositionMapper),getSourceFileLike:r3(v,v.getSourceFileLike),log:D});function _(e){var t=k.getSourceFile(e);if(t)return t;throw(t=new Error(`Could not find source file: '${e}'.`)).ProgramFiles=k.getSourceFiles().map(e=>e.fileName),t}function u(){if(!v.updateFromProject||v.updateFromProjectInProgress){if(Y4.assert(2!==x),v.getProjectVersion){var p=v.getProjectVersion();if(p){if(T===p&&(null==(f=v.hasChangedAutomaticTypeDirectiveNames)||!f.call(v)))return;T=p}}var f=v.getTypeRootsVersion?v.getTypeRootsVersion():0;C!==f&&(D("TypeRoots version has changed; provide new program"),k=void 0,C=f);let e=v.getScriptFileNames().slice(),t=v.getCompilationSettings()||Ore(),r=v.hasInvalidatedResolutions||vr,n=r3(v,v.hasInvalidatedLibResolutions)||vr,i=r3(v,v.hasChangedAutomaticTypeDirectiveNames),a=null==(p=v.getProjectReferences)?void 0:p.call(v),o,c={getSourceFile:h,getSourceFileByPath:y,getCancellationToken:()=>w,getCanonicalFileName:P,useCaseSensitiveFileNames:()=>E,getNewLine:()=>Cp(t),getDefaultLibFileName:e=>v.getDefaultLibFileName(e),writeFile:yr,getCurrentDirectory:()=>N,fileExists:e=>v.fileExists(e),readFile:e=>v.readFile&&v.readFile(e),getSymlinkCache:r3(v,v.getSymlinkCache),realpath:r3(v,v.realpath),directoryExists:e=>Sp(e,v),getDirectories:e=>v.getDirectories?v.getDirectories(e):[],readDirectory:(e,t,r,n,i)=>(Y4.checkDefined(v.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),v.readDirectory(e,t,r,n,i)),onReleaseOldSourceFile:g,onReleaseParsedCommandLine:function(e,t,r){var n;v.getParsedCommandLine?null!=(n=v.onReleaseParsedCommandLine)&&n.call(v,e,t,r):t&&g(t.sourceFile,r)},hasInvalidatedResolutions:r,hasInvalidatedLibResolutions:n,hasChangedAutomaticTypeDirectiveNames:i,trace:r3(v,v.trace),resolveModuleNames:r3(v,v.resolveModuleNames),getModuleResolutionCache:r3(v,v.getModuleResolutionCache),createHash:r3(v,v.createHash),resolveTypeReferenceDirectives:r3(v,v.resolveTypeReferenceDirectives),resolveModuleNameLiterals:r3(v,v.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:r3(v,v.resolveTypeReferenceDirectiveReferences),resolveLibrary:r3(v,v.resolveLibrary),useSourceOfProjectReferenceRedirect:r3(v,v.useSourceOfProjectReferenceRedirect),getParsedCommandLine:m,jsDocParsingMode:v.jsDocParsingMode},s=c.getSourceFile,l=KB(c,e=>pa(e,N,P),(...e)=>s.call(c,...e))["getSourceFileWithCache"],_=(c.getSourceFile=l,null!=(f=v.setCompilerHost)&&f.call(v,c),{useCaseSensitiveFileNames:E,fileExists:e=>c.fileExists(e),readFile:e=>c.readFile(e),directoryExists:e=>c.directoryExists(e),getDirectories:e=>c.getDirectories(e),realpath:c.realpath,readDirectory:(...e)=>c.readDirectory(...e),trace:c.trace,getCurrentDirectory:c.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:yr}),u=b.getKeyForCompilationSettings(t),d=new Set;function m(e){var t=pa(e,N,P),r=null==o?void 0:o.get(t);return void 0!==r?r||void 0:(r=v.getParsedCommandLine?v.getParsedCommandLine(e):function(e){var t=h(e,100);if(t)return t.path=pa(e,N,P),t.resolvedPath=t.path,t.originalFileName=t.fileName,kA(t,_,P3(D3(e),N),void 0,P3(e,N))}(e),(o=o||new Map).set(t,r||!1),r)}function g(e,t){t=b.getKeyForCompilationSettings(t);b.releaseDocumentWithKey(e.resolvedPath,t,e.scriptKind,e.impliedNodeFormat)}function h(e,t,r,n){return y(e,pa(e,N,P),t,0,n)}function y(e,t,r,n,i){Y4.assert(c,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var a=v.getScriptSnapshot(e);if(a){var o=ZG(e,v),s=v.getScriptVersion(e);if(!i){i=k&&k.getSourceFileByPath(t);if(i){if(o===i.scriptKind||d.has(i.resolvedPath))return b.updateDocumentWithKey(e,t,v,u,a,s,o,r);b.releaseDocumentWithKey(i.resolvedPath,b.getKeyForCompilationSettings(k.getCompilerOptions()),i.scriptKind,i.impliedNodeFormat),d.add(i.resolvedPath)}}return b.acquireDocumentWithKey(e,t,v,u,a,s,o,r)}}OJ(k,e,t,(e,t)=>v.getScriptVersion(t),e=>c.fileExists(e),r,n,i,m,a)?(c=void 0,o=void 0,d=void 0):(f={rootNames:e,options:t,host:c,oldProgram:k,projectReferences:a},k=BJ(f),c=void 0,o=void 0,d=void 0,F.clearCache(),k.getTypeChecker())}else v.updateFromProject()}function s(){if(2!==x)return u(),k;Y4.assert(void 0===k)}function r(){if(k){let t=b.getKeyForCompilationSettings(k.getCompilerOptions());G4(k.getSourceFiles(),e=>b.releaseDocumentWithKey(e.resolvedPath,t,e.scriptKind,e.impliedNodeFormat)),k=void 0}}function c(e,t,r,n){u();var i=r&&r.use===ope.FindReferencesUse.Rename?k.getSourceFiles().filter(e=>!k.isSourceFileDefaultLibrary(e)):k.getSourceFiles();return ope.findReferenceOrRenameEntries(k,w,i,e,t,r,n)}let n=new Map(Object.entries({[19]:20,21:22,23:24,32:30}));function i(e){return Y4.assertEqual(e.type,"install package"),v.installPackage?v.installPackage({fileName:pa(e.file,N,P),packageName:e.packageName}):Promise.reject("Host does not implement `installPackage`")}function y(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function l(t,r,n){var i=S.getCurrentSourceFile(t),a=[],{lineStarts:o,firstLine:s,lastLine:c}=y(i,r);let l=n||!1,_=Number.MAX_VALUE;var u,d=new Map,p=new RegExp(/\S/),f=dK(i,o[s]),m=f?"{/*":"//";for(let e=s;e<=c;e++){var g=i.text.substring(o[e],i.getLineEndOfPosition(o[e])),h=p.exec(g);h&&(_=Math.min(_,h.index),d.set(e.toString(),h.index),g.substr(h.index,m.length)!==m)&&(l=void 0===n||n)}for(let e=s;e<=c;e++)s!==c&&o[e]===r.end||void 0!==(u=d.get(e.toString()))&&(f?a.push(...A(t,{pos:o[e]+_,end:i.getLineEndOfPosition(o[e])},l,f)):l?a.push({newText:m,span:{length:0,start:o[e]+_}}):i.text.substr(o[e]+u,m.length)===m&&a.push({newText:"",span:{length:m.length,start:o[e]+u}}));return a}function A(e,t,r,n){var i=S.getCurrentSourceFile(e),a=[],o=i["text"];let s=!1,c=r||!1;var l=[];let _=t["pos"];for(var u=void 0!==n?n:dK(i,_),d=u?"{/*":"/*",p=u?"*/}":"*/",f=u?"\\{\\/\\*":"\\/\\*",m=u?"\\*\\/\\}":"\\*\\/";_<=t.end;){var g=o.substr(_,d.length)===d?d.length:0,g=yK(i,_+g);_=g?(u&&(g.pos--,g.end++),l.push(g.pos),3===g.kind&&l.push(g.end),s=!0,g.end+1):(g=o.substring(_,t.end).search(`(${f})|(${m})`),c=void 0!==r?r:c||!SG(o,_,-1===g?t.end:_+g),-1===g?t.end+1:_+g+p.length)}if(c||!s){2!==(null==(e=yK(i,t.pos))?void 0:e.kind)&&B(l,t.pos,l3),B(l,t.end,l3);n=l[0];o.substr(n,d.length)!==d&&a.push({newText:d,span:{length:0,start:n}});for(let e=1;en.set(e.toString(),Number(t)));let a={dispose:function(){r(),v=void 0},cleanupSemanticCache:r,getSyntacticDiagnostics:function(e){return u(),k.getSyntacticDiagnostics(_(e),w).slice()},getSemanticDiagnostics:function(e){u();var e=_(e),t=k.getSemanticDiagnostics(e,w);return wD(k.getCompilerOptions())?(e=k.getDeclarationDiagnostics(e,w),[...t,...e]):t.slice()},getSuggestionDiagnostics:function(e){return u(),WQ(_(e),k,w)},getCompilerOptionsDiagnostics:function(){return u(),[...k.getOptionsDiagnostics(w),...k.getGlobalDiagnostics(w)]},getSyntacticClassifications:function(e,t){return UX(w,S.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,r){return u(),"2020"===(r||"original")?fre(k,w,_(e),t):MX(k.getTypeChecker(),w,_(e),k.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return VX(w,S.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,r){return u(),"original"===(r||"original")?JX(k.getTypeChecker(),w,_(e),k.getClassifiableNames(),t):mre(k,w,_(e),t)},getCompletionsAtPosition:function(e,t,r=TW,n){var i={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return u(),Cue.getCompletionsAtPosition(v,k,D,_(e),t,i,r.triggerCharacter,r.triggerKind,w,n&&Dge.getFormatContext(n,v),r.includeSymbol)},getCompletionEntryDetails:function(e,t,r,n,i,a=TW,o){return u(),Cue.getCompletionEntryDetails(k,D,_(e),t,{name:r,source:i,data:o},v,n&&Dge.getFormatContext(n,v),a,w)},getCompletionEntrySymbol:function(e,t,r,n,i=TW){return u(),Cue.getCompletionEntrySymbol(k,D,_(e),t,{name:r,source:n},v,i)},getSignatureHelpItems:function(e,t,{triggerReason:r}=TW){return u(),e=_(e),Dme.getSignatureHelpItems(k,e,t,r,w)},getQuickInfoAtPosition:function(e,n){u();let i=_(e);if((e=XH(i,n))!==i){var a=k.getTypeChecker();let r=function(e){if(FP(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;if(pP(e.parent)&&e.pos===e.parent.pos)return e.parent;if(h_(e.parent)&&e.parent.name===e)return e.parent;if(DF(e.parent))return e.parent;return e}(e),t=function(e,t){var r=Kre(e);if(r){var n=t.getContextualType(r.parent),r=n&&Gre(r,t,n,!1);if(r&&1===r.length)return WT(r)}return t.getSymbolAtLocation(e)}(r,a);if(!t||a.isUnknownSymbol(t)){let t=function(e,t,r){switch(t.kind){case 80:return 16777216&t.flags&&!oT(t)&&(171===t.parent.kind&&t.parent.name===t||tT(t,e=>169===e.kind))?void 0:!uH(t)&&!dH(t)&&!kC(t.parent);case 211:case 166:return!yK(e,r);case 110:case 197:case 108:case 202:return 1;case 236:return h_(t);default:return}}(i,r,n)?a.getTypeAtLocation(r):void 0;return t&&{kind:"",kindModifiers:"",textSpan:LK(r,i),displayParts:a.runWithCancellationToken(w,e=>GG(e,t,bH(r))),documentation:t.symbol?t.symbol.getDocumentationComment(a):void 0,tags:t.symbol?t.symbol.getJsDocTags(a):void 0}}var{symbolKind:e,displayParts:n,documentation:o,tags:s}=a.runWithCancellationToken(w,e=>Hme.getSymbolDisplayPartsDocumentationAndSymbolKind(e,t,i,bH(r),r));return{kind:e,kindModifiers:Hme.getSymbolModifiers(a,t),textSpan:LK(r,i),displayParts:n,documentation:o,tags:s}}},getDefinitionAtPosition:function(e,t,r,n){return u(),mfe.getDefinitionAtPosition(k,_(e),t,r,n)},getDefinitionAndBoundSpan:function(e,t){return u(),mfe.getDefinitionAndBoundSpan(k,_(e),t)},getImplementationAtPosition:function(e,t){return u(),ope.getImplementationsAtPosition(k,w,k.getSourceFiles(),_(e),t)},getTypeDefinitionAtPosition:function(e,t){return u(),mfe.getTypeDefinitionAtPosition(k.getTypeChecker(),_(e),t)},getReferencesAtPosition:function(e,t){return u(),c(XH(_(e),t),t,{use:ope.FindReferencesUse.References},ope.toReferenceEntry)},findReferences:function(e,t){return u(),ope.findReferencedSymbols(k,w,k.getSourceFiles(),_(e),t)},getFileReferences:function(e){return u(),ope.Core.getReferencesForFileName(e,k,k.getSourceFiles()).map(ope.toReferenceEntry)},getDocumentHighlights:function(e,t,r){let n=ua(e);return Y4.assert(r.some(e=>ua(e)===n)),u(),r=AT(r,e=>k.getSourceFile(e)),e=_(e),jX.getDocumentHighlights(k,w,e,t,r)},getNameOrDottedNameSpan:function(e,t,r){if(e=S.getCurrentSourceFile(e),(t=XH(e,t))!==e){switch(t.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 e=t;for(;;)if(fH(e)||pH(e))e=e.parent;else{if(!gH(e))break;if(267!==e.parent.parent.kind||e.parent.parent.body!==e.parent)break;e=e.parent.parent.name}return Yo(e.getStart(),t.getEnd())}},getBreakpointStatementAtPosition:function(e,t){return e=S.getCurrentSourceFile(e),Qre.spanInSourceFileAtLocation(e,t)},getNavigateToItems:function(e,t,r,n=!1,i=!1){return u(),pY(r?[_(r)]:k.getSourceFiles(),k.getTypeChecker(),w,e,t,n,i)},getRenameInfo:function(e,t,r){return u(),kme.getRenameInfo(k,_(e),t,r||{})},getSmartSelectionRange:function(e,t){return zme.getSmartSelectionRange(t,S.getCurrentSourceFile(e))},findRenameLocations:function(e,t,r,a,o){u();let s=_(e);var n,i,e=$H(XH(s,t));if(kme.nodeIsEligibleForRename(e)){if(uT(e)&&(kF(e.parent)||x1(e.parent))&&sN(e.escapedText))return{openingElement:n,closingElement:i}=e.parent.parent,[n,i].map(e=>{var t=LK(e.tagName,s);return{fileName:s.fileName,textSpan:t,...ope.toContextSpan(t,s,e.parent)}});{let n=sG(s,o??TW),i="boolean"==typeof o?o:null==o?void 0:o.providePrefixAndSuffixTextForRename;return c(e,t,{findInStrings:r,findInComments:a,providePrefixAndSuffixTextForRename:i,use:ope.FindReferencesUse.Rename},(e,t,r)=>ope.toRenameLocation(e,t,r,i||!1,n))}}},getNavigationBarItems:function(e){return EY(S.getCurrentSourceFile(e),w)},getNavigationTree:function(e){return PY(S.getCurrentSourceFile(e),w)},getOutliningSpans:function(e){return e=S.getCurrentSourceFile(e),fme.collectElements(e,w)},getTodoComments:function(e,r){u();var t,n=_(e),i=(w.throwIfCancellationRequested(),n.text),a=[];if(0"("+e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")").join("|")+")",e=e+(t="("+t+(e=/(?:.*?)/.source)+")")+/(?:$|\*\/)/.source;for(var o,s=new RegExp(e,"gim");o=s.exec(i);){w.throwIfCancellationRequested();Y4.assert(o.length===r.length+3);var c,l=o[1],l=o.index+l.length;if(yK(n,l)){let t;for(let e=0;ee.start-t.start):H4},getIndentationAtPosition:function(e,t,r){var n=$t(),r=Fre(r),e=S.getCurrentSourceFile(e),t=(D("getIndentationAtPosition: getCurrentSourceFile: "+($t()-n)),n=$t(),Dge.SmartIndenter.getIndentation(t,e,r));return D("getIndentationAtPosition: computeIndentation : "+($t()-n)),t},getFormattingEditsForRange:function(e,t,r,n){return e=S.getCurrentSourceFile(e),Dge.formatSelection(t,r,e,Dge.getFormatContext(Fre(n),v))},getFormattingEditsForDocument:function(e,t){return Dge.formatDocument(S.getCurrentSourceFile(e),Dge.getFormatContext(Fre(t),v))},getFormattingEditsAfterKeystroke:function(e,t,r,n){var i=S.getCurrentSourceFile(e),a=Dge.getFormatContext(Fre(n),v);if(!yK(i,t))switch(r){case"{":return Dge.formatOnOpeningCurly(t,i,a);case"}":return Dge.formatOnClosingCurly(t,i,a);case";":return Dge.formatOnSemicolon(t,i,a);case"\n":return Dge.formatOnEnter(t,i,a)}return[]},getDocCommentTemplateAtPosition:function(e,t,r,n){return n=n?Dge.getFormatContext(n,v).options:void 0,Ofe.getDocCommentTemplateAtPosition(WG(v,n),S.getCurrentSourceFile(e),t,r)},isValidBraceCompletionAtPosition:function(e,t,r){if(60===r)return!1;var n=S.getCurrentSourceFile(e);if(sK(n,t))return!1;if(cK(n,t))return 123===r;if(_K(n,t))return!1;switch(r){case 39:case 34:case 96:return!yK(n,t)}return!0},getJsxClosingTagAtPosition:function(e,t){var r,e=S.getCurrentSourceFile(e);if(t=nK(t,e))return(r=32===t.kind&&kF(t.parent)?t.parent.parent:o0(t)&&xF(t.parent)?t.parent:void 0)&&function e({openingElement:t,closingElement:r,parent:n}){return!x4(t.tagName,r.tagName)||xF(n)&&x4(t.tagName,n.openingElement.tagName)&&e(n)}(r)?{newText:``}:(r=32===t.kind&&TF(t.parent)?t.parent.parent:o0(t)&&S1(t.parent)?t.parent:void 0)&&function e({closingFragment:t,parent:r}){return!!(262144&t.flags)||S1(r)&&e(r)}(r)?{newText:""}:void 0},getLinkedEditingRangeAtPosition:function(e,t){e=S.getCurrentSourceFile(e);if((a=nK(t,e))&&307!==a.parent.kind){var r="[a-zA-Z0-9:\\-\\._$]*";if(S1(a.parent.parent)){var n=a.parent.parent.openingFragment,i=a.parent.parent.closingFragment;if(!z7(n)&&!z7(i)){n=n.getStart(e)+1,i=i.getStart(e)+2;if(t===n||t===i)return{ranges:[{start:n,length:0},{start:i,length:0}],wordPattern:r}}}else{n=tT(a.parent,e=>!(!kF(e)&&!x1(e)));if(n){Y4.assert(kF(n)||x1(n),"tag should be opening or closing element");var i=n.parent.openingElement,a=n.parent.closingElement,n=i.tagName.getStart(e),o=i.tagName.end,s=a.tagName.getStart(e),c=a.tagName.end;if(n!==i.getStart(e)&&s!==a.getStart(e)&&o!==i.getEnd()&&c!==a.getEnd()&&(n<=t&&t<=o||s<=t&&t<=c)){t=i.tagName.getText(e);if(t===a.tagName.getText(e))return{ranges:[{start:n,length:o-n},{start:s,length:c-s}],wordPattern:r}}}}}},getSpanOfEnclosingComment:function(e,t,r){return e=S.getCurrentSourceFile(e),!(e=Dge.getRangeOfEnclosingComment(e,t))||r&&3!==e.kind?void 0:MK(e)},getCodeFixesAtPosition:function(e,t,r,n,i,a=TW){u();let o=_(e),s=Yo(t,r),c=Dge.getFormatContext(i,v);return FT(RT(n,c3,l3),e=>(w.throwIfCancellationRequested(),hne.getFixes({errorCode:e,sourceFile:o,span:s,program:k,host:v,cancellationToken:w,formatContext:c,preferences:a})))},getCombinedCodeFix:function(e,t,r,n=TW){return u(),Y4.assert("file"===e.type),e=_(e.fileName),r=Dge.getFormatContext(r,v),hne.getAllFixes({fixId:t,sourceFile:e,program:k,host:v,cancellationToken:w,formatContext:r,preferences:n})},applyCodeActionCommand:function(e,t){return i3(t="string"==typeof e?t:e)?Promise.all(t.map(e=>i(e))):i(t)},organizeImports:function(e,t,r=TW){u(),Y4.assert("file"===e.type);var n=_(e.fileName),t=Dge.getFormatContext(t,v),e=e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":"All");return Gfe.organizeImports(n,t,v,k,r,e)},getEditsForFileRename:function(e,t,r,n=TW){return uQ(s(),e,t,v,Dge.getFormatContext(r,v),n,F)},getEmitOutput:function(e,t,r){u();var e=_(e),n=v.getCustomTransformers&&v.getCustomTransformers();return GJ(k,e,!!t,w,n,r)},getNonBoundSourceFile:function(e){return S.getCurrentSourceFile(e)},getProgram:s,getCurrentProgram:()=>k,getAutoImportProvider:function(){var e;return null==(e=v.getPackageJsonAutoImportProvider)?void 0:e.call(v)},updateIsDefinitionOfReferencedSymbols:function(n,i){let a=k.getTypeChecker();var e,t=function(){for(var e of n)for(var t of e.references){if(i.has(t))return r=s(t),Y4.assertIsDefined(r),a.getSymbolAtLocation(r);var r=TG(t,F,r3(v,v.fileExists));if(r&&i.has(r)){t=s(r);if(t)return a.getSymbolAtLocation(t)}}}();if(!t)return!1;for(e of n)for(var r of e.references){var o=s(r);Y4.assertIsDefined(o),i.has(r)||ope.isDeclarationOfSymbol(o,t)?(i.add(r),r.isDefinition=!0,(o=TG(r,F,r3(v,v.fileExists)))&&i.add(o)):r.isDefinition=!1}return!0;function s(e){var t=k.getSourceFile(e.fileName);if(t)return t=XH(t,e.textSpan.start),ope.Core.getAdjustedNode(t,{use:ope.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,r=TW,n,i,a){return u(),e=_(e),uZ.getApplicableRefactors(d(e,t,r,TW,n,i),a)},getEditsForRefactor:function(e,t,r,n,i,a=TW,o){return u(),e=_(e),uZ.getEditsForRefactor(d(e,r,a,t),n,i,o)},getMoveToRefactoringFileSuggestions:function(e,t,r=TW){u();let n=_(e);var i=Y4.checkDefined(k.getSourceFiles());let a=$m(e),o=see(null==(e=oee(d(n,t,r,TW)))?void 0:e.all);return t=AT(i,e=>{var t=$m(e.fileName);return!(null!=k&&k.isSourceFileFromExternalLibrary(n)||n===_(e.fileName)||".ts"===a&&".d.ts"===t||".d.ts"===a&&f3(ra(e.fileName),"lib.")&&".d.ts"===t)&&(a===t||(".tsx"===a&&".ts"===t||".jsx"===a&&".js"===t)&&!o)?e.fileName:void 0}),{newFileName:aee(n,k,v,e),files:t}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:F.toLineColumnOffset(e,t)},getSourceMapper:()=>F,clearSourceMapperCache:()=>F.clearCache(),prepareCallHierarchy:function(e,t){return u(),(e=Yre.resolveCallHierarchyDeclaration(k,XH(_(e),t)))&&tX(e,e=>Yre.createCallHierarchyItem(k,e))},provideCallHierarchyIncomingCalls:function(e,t){return u(),e=_(e),(e=rX(Yre.resolveCallHierarchyDeclaration(k,0===t?e:XH(e,t))))?Yre.getIncomingCalls(k,e,w):[]},provideCallHierarchyOutgoingCalls:function(e,t){return u(),e=_(e),(e=rX(Yre.resolveCallHierarchyDeclaration(k,0===t?e:XH(e,t))))?Yre.getOutgoingCalls(k,e):[]},toggleLineComment:l,toggleMultilineComment:A,commentSelection:function(e,t){var{firstLine:r,lastLine:n}=y(S.getCurrentSourceFile(e),t);return(r===n&&t.pos!==t.end?A:l)(e,t,!0)},uncommentSelection:function(t,e){var r=S.getCurrentSourceFile(t),n=[],i=e["pos"];let a=e["end"];i===a&&(a+=dK(r,i)?2:1);for(let e=i;e<=a;e++){var o=yK(r,e);if(o){switch(o.kind){case 2:n.push(...l(t,{end:o.end,pos:o.pos+1},!1));break;case 3:n.push(...A(t,{end:o.end,pos:o.pos+1},!1))}e=o.end+1}}return n},provideInlayHints:function(e,t,r=TW){return u(),e=_(e),Dfe.provideInlayHints((t=t,r=r,{file:e,program:s(),host:v,span:t,preferences:r,cancellationToken:w}))},getSupportedCodeFixes:Lre,getPasteEdits:function(e,t){return u(),O0e.pasteEditsProvider(_(e.targetFile),e.pastedText,e.pasteLocations,e.copiedFrom?{file:_(e.copiedFrom.file),range:e.copiedFrom.range}:void 0,v,e.preferences,Dge.getFormatContext(t,v),w)},mapCode:function(e,t,r,n,i){return Vfe.mapCode(S.getCurrentSourceFile(e),t,r,v,Dge.getFormatContext(n,v),i)}};switch(x){case 0:break;case 1:Ure.forEach(e=>a[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:Vre.forEach(e=>a[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)});break;default:Y4.assertNever(x)}return a}function Hre(e){if(!e.nameTable){var t=e;let a=t.nameTable=new Map;t.forEachChild(function e(t){var r,n;if(uT(t)&&!dH(t)&&t.escapedText||qw(t)&&(Dw(n=t)||283===n.parent.kind||function(e){return e&&e.parent&&212===e.parent.kind&&e.parent.argumentExpression===e}(n)||Ew(n))?(n=Gw(t),a.set(n,void 0===a.get(n)?t.pos:-1)):UE(t)&&(r=t.escapedText,a.set(r,void 0===a.get(r)?t.pos:-1)),h9(t,e),y7(t))for(var i of t.jsDoc)h9(i,e)})}return e.nameTable}function Kre(e){e=function(e){switch(e.kind){case 11:case 15:case 9:if(167===e.parent.kind)return il(e.parent.parent)?e.parent.parent:void 0;case 80:return!il(e.parent)||210!==e.parent.parent.kind&&292!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}(e);return e&&(DP(e.parent)||wF(e.parent))?e:void 0}function Gre(t,r,e,n){let i=XK(t.name);if(!i)return H4;if(!e.isUnion())return(a=e.getProperty(i))?[a]:H4;var a=DP(t.parent)||wF(t.parent)?NT(e.types,e=>!r.isTypeInvalidDueToUnionDiscriminant(e,t.parent)):e.types,o=AT(a,e=>e.getProperty(i));if(n&&(0===o.length||o.length===e.types.length)){n=e.getProperty(i);if(n)return[n]}return a.length||o.length?RT(o,c3):AT(e.types,e=>e.getProperty(i))}function $re(e){if(Ji)return E3(D3(ua(Ji.getExecutingFilePath())),zo(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function Xre(e,t,r){var n=[],e=(r=uY(r,n),i3(e)?e:[e]),r=UM(void 0,void 0,cT,r,e,t,!0);return r.diagnostics=LT(r.diagnostics,n),r}hf({getNodeConstructor:()=>xre,getTokenConstructor:()=>kre,getIdentifierConstructor:()=>Tre,getPrivateIdentifierConstructor:()=>Cre,getSourceFileConstructor:()=>Pre,getSymbolConstructor:()=>class{constructor(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}getFlags(){return this.flags}get name(){return Y3(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){var t;return this.documentationComment||(this.documentationComment=H4,!this.declarations&&O7(this)&&this.links.target&&O7(this.links.target)&&this.links.target.links.tupleLabelDeclaration?(t=this.links.target.links.tupleLabelDeclaration,this.documentationComment=Dre([t],e)):this.documentationComment=Dre(this.declarations,e)),this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(h7(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=Dre(NT(this.declarations,h7),t)),K4(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(g7(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=Dre(NT(this.declarations,g7),t)),K4(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return void 0===this.tags&&(this.tags=H4,this.tags=Nre(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(h7(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=Nre(NT(this.declarations,h7),t)),K4(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(g7(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=Nre(NT(this.declarations,g7),t)),K4(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},getTypeConstructor:()=>class{constructor(e,t){this.flags=t,this.checker=e}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(1048576&this.flags)}isIntersection(){return!!(2097152&this.flags)}isUnionOrIntersection(){return!!(3145728&this.flags)}isLiteral(){return!!(2432&this.flags)}isStringLiteral(){return!!(128&this.flags)}isNumberLiteral(){return!!(256&this.flags)}isTypeParameter(){return!!(262144&this.flags)}isClassOrInterface(){return!!(3&sT(this))}isClass(){return!!(1&sT(this))}isIndexType(){return!!(4194304&this.flags)}get typeArguments(){if(4&sT(this))return this.checker.getTypeArguments(this)}},getSignatureConstructor:()=>class{constructor(e,t){this.flags=t,this.checker=e}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){e=this.checker.getParameterType(this,e);if(e.isIndexType()&&lE(e.type)){var t=e.type.getConstraint();if(t)return this.checker.getIndexType(t)}return e}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Dre(v3(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=Nre(v3(this.declaration),this.checker))}},getSourceMapSourceConstructor:()=>class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(e=>e)}getLineAndCharacterOfPosition(e){return O3(this,e)}}});var Qre={},Yre=(r(Qre,{spanInSourceFileAtLocation:()=>function(E,t){if(!E.isDeclarationFile){let e=YH(E,t),r=E.getLineAndCharacterOfPosition(t).line;if(E.getLineAndCharacterOfPosition(e.getStart(E)).line>r){t=nK(e.pos,E);if(!t||E.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;e=t}if(!(33554432&e.flags))return L(e);function P(e,t){var r=m9(e)?xT(e.modifiers,$E):void 0;return Yo(r?j3(E.text,r.end):e.getStart(E),(t||e).getEnd())}function F(e,t){return P(e,rK(t,t.parent,E))}function A(e,t){return e&&r===E.getLineAndCharacterOfPosition(e.getStart(E)).line?L(e):L(t)}function I(e){return L(nK(e.pos,E))}function O(e){return L(rK(e,e.parent,E))}function L(e){if(e){var t=e["parent"];switch(e.kind){case 243:return S(e.declarationList.declarations[0]);case 260:case 172:case 171:return S(e);case 169:return function r(n){{if(GC(n.name))return N(n.name);if(k(n))return P(n);{let e=n.parent,t=e.parameters.indexOf(n);return Y4.assert(-1!==t),0!==t?r(e.parameters[t-1]):L(e.body)}}}(e);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:var r=e;return r.body?T(r)?P(r):L(r.body):void 0;case 241:if(O_(e))return n=(r=e).statements.length?r.statements[0]:r.getLastToken(),T(r.parent)?A(r.parent,n):L(n);case 268:return C(e);case 299:return C(e.block);case 244:return P(e.expression);case 253:return P(e.getChildAt(0),e.expression);case 247:return F(e,e.expression);case 246:return L(e.statement);case 259:return P(e.getChildAt(0));case 245:return F(e,e.expression);case 256:return L(e.statement);case 252:case 251:return P(e.getChildAt(0),e.label);case 248:var n=e;return n.initializer?w(n):n.condition?P(n.condition):n.incrementor?P(n.incrementor):void 0;case 249:return F(e,e.expression);case 250:return w(e);case 255:return F(e,e.expression);case 296:case 297:return L(e.statements[0]);case 258:return C(e.tryBlock);case 257:case 277:return P(e,e.expression);case 271:return P(e,e.moduleReference);case 272:case 278:return P(e,e.moduleSpecifier);case 267:if(1!==oL(e))return;case 263:case 266:case 306:case 208:return P(e);case 254:return L(e.statement);case 170:var i=t.modifiers,a=e,o=$E;if(i){var s=i.indexOf(a);if(0<=s){let e=s,t=s+1;for(;0232!==e.kind?e:void 0);return t?L(t):(208===e.parent.kind?P:x)(e.parent)}function D(e){Y4.assert(207!==e.kind&&206!==e.kind);var t=G4(209===e.kind?e.elements:e.properties,e=>232!==e.kind?e:void 0);return t?L(t):P(226===e.parent.kind?e.parent:e)}}}}}),{});function Zre(e){return QE(e)||eF(e)}function ene(e){return(OP(e)||LP(e)||JP(e))&&Zre(e.parent)&&e===e.parent.initializer&&uT(e.parent.name)&&(!!(2&H3(e.parent))||QE(e.parent))}function tne(e){return LF(e)||sF(e)||rF(e)||OP(e)||nF(e)||JP(e)||eP(e)||ZE(e)||YE(e)||rP(e)||nP(e)}function rne(e){return LF(e)||sF(e)&&uT(e.name)||rF(e)||nF(e)||eP(e)||ZE(e)||YE(e)||rP(e)||nP(e)||(OP(t=e)||JP(t))&&eC(t)||ene(e);var t}function nne(e){return LF(e)?e:eC(e)?e.name:ene(e)?e.parent.name:Y4.checkDefined(e.modifiers&&bT(e.modifiers,ine))}function ine(e){return 90===e.kind}function ane(e,t){t=nne(t);return t&&e.getSymbolAtLocation(t)}function one(e,t){return t.body?t:tP(t)?_N(t.parent):rF(t)||ZE(t)?(e=ane(e,t))&&e.valueDeclaration&&MC(e.valueDeclaration)&&e.valueDeclaration.body?e.valueDeclaration:void 0:t}function sne(t,e){let n=ane(t,e),i;if(n&&n.declarations){var a,t=jT(n.declarations);let r=$4(n.declarations,e=>({file:e.getSourceFile().fileName,pos:e.pos}));t.sort((e,t)=>Se(r[e].file,r[t].file)||r[e].pos-r[t].pos);let e;for(a of $4(t,e=>n.declarations[e]))rne(a)&&(e&&e.parent===a.parent&&e.end===a.pos||(i=Q4(i,a)),e=a)}return i}function cne(e,t){return eP(t)?t:MC(t)?one(e,t)??sne(e,t)??t:sne(e,t)??t}function lne(e,t){var r,n=e.getTypeChecker();let i=!1;for(;;){if(rne(t))return cne(n,t);if(tne(t))return(r=tT(t,rne))&&cne(n,r);if(Dw(t))return rne(t.parent)?cne(n,t.parent):tne(t.parent)?(r=tT(t.parent,rne))&&cne(n,r):Zre(t.parent)&&t.parent.initializer&&ene(t.parent.initializer)?t.parent.initializer:void 0;if(tP(t))return rne(t.parent)?t.parent:void 0;if(126!==t.kind||!eP(t.parent)){if(eF(t)&&t.initializer&&ene(t.initializer))return t.initializer;if(!i){let e=n.getSymbolAtLocation(t);if(e&&(e=2097152&e.flags?n.getAliasedSymbol(e):e).valueDeclaration){i=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function _ne(e,t){var r=t.getSourceFile(),e=function(e,r){if(LF(r))return{text:r.fileName,pos:0,end:0};if((rF(r)||nF(r))&&!eC(r)){var t=r.modifiers&&bT(r.modifiers,ine);if(t)return{text:"default",pos:t.getStart(),end:t.getEnd()}}var n;if(eP(r))return n=(t=j3(r.getSourceFile().text,Pp(r).pos))+6,{text:((i=(a=e.getTypeChecker()).getSymbolAtLocation(r.parent))?a.symbolToString(i,r.parent)+" ":"")+"static {}",pos:t,end:n};var i,a=ene(r)?r.parent.name:Y4.checkDefined(tC(r),"Expected call hierarchy item to have a name");let o=uT(a)?rT(a):qw(a)?a.text:HE(a)&&qw(a.expression)?a.expression.text:void 0;if(void 0===(o=void 0===o&&(t=(i=e.getTypeChecker()).getSymbolAtLocation(a))?i.symbolToString(t,r):o)){let t=xB();o=B7(e=>t.writeNode(4,r,r.getSourceFile(),e))}return{text:o,pos:a.getStart(),end:a.getEnd()}}(e,t),n=function(e){var t,r;if(ene(e))return QE(e.parent)&&qC(e.parent.parent)?JP(e.parent.parent)?null==(t=hs(e.parent.parent))?void 0:t.getText():null==(t=e.parent.parent.name)?void 0:t.getText():cF(e.parent.parent.parent.parent)&&uT(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=hs(e.parent))?void 0:r.getText():null==(r=tC(e.parent))?void 0:r.getText();case 262:case 263:case 267:if(cF(e.parent)&&uT(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),i=xH(t),a=xK(t),t=Yo(j3(r.text,t.getFullStart(),!1,!0),t.getEnd()),o=Yo(e.pos,e.end);return{file:r.fileName,kind:i,kindModifiers:a,name:e.text,containerName:n,span:t,selectionSpan:o}}function une(e){return void 0!==e}function dne(e){if(e.kind===ope.EntryKind.Node){var t,e=e["node"];if(QW(e,!0,!0)||YW(e,!0,!0)||ZW(e,!0,!0)||eH(e,!0,!0)||fH(e)||mH(e))return t=e.getSourceFile(),{declaration:tT(e,rne)||t,range:RK(e,t)}}}function pne(e){return oj(e.declaration)}r(Yre,{createCallHierarchyItem:()=>_ne,getIncomingCalls:()=>function(t,e,r){if(LF(e)||sF(e)||eP(e))return[];e=nne(e),r=NT(ope.findReferenceOrRenameEntries(t,r,t.getSourceFiles(),e,0,{use:ope.FindReferencesUse.References},dne),une);return r?t3(r,pne,e=>{return{from:_ne(t,(e=e)[0].declaration),fromSpans:$4(e,e=>MK(e.range))}}):[]},getOutgoingCalls:()=>function(t,e){if(33554432&e.flags||YE(e))return[];return t3(function(e,t){var r=[],n=function(a,o){function n(e){var t=AP(e)?e.tag:f7(e)?e.tagName:lD(e)||eP(e)?e:e.expression,r=lne(a,t);if(r){var n=RK(t,e.getSourceFile());if(i3(r))for(var i of r)o.push({declaration:i,range:n});else o.push({declaration:r,range:n})}}return function e(t){if(t&&!(33554432&t.flags))if(rne(t)){if(qC(t))for(var r of t.members)r.name&&HE(r.name)&&e(r.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: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 G4(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),h9(t,e);break;case 238:return void e(t.expression)}O5(t)||h9(t,e)}}}(e,r);switch(t.kind){case 307:!function(e,t){G4(e.statements,t)}(t,n);break;case 267:!function(e,t){!TN(e,128)&&e.body&&cF(e.body)&&G4(e.body.statements,t)}(t,n);break;case 262:case 218:case 219:case 174:case 177:case 178:!function(e,t,r){e=one(e,t);e&&(G4(e.parameters,r),r(e.body))}(e.getTypeChecker(),t,n);break;case 263:case 231:!function(e,t){G4(e.modifiers,t);var r=jw(e);r&&t(r.expression);for(var n of e.members)f9(n)&&G4(n.modifiers,t),QE(n)?t(n.initializer):tP(n)&&n.body?(G4(n.parameters,t),t(n.body)):eP(n)&&t(n)}(t,n);break;case 175:n(t.body);break;default:Y4.assertNever(t)}return r}(t,e),pne,e=>{return{to:_ne(t,(e=e)[0].declaration),fromSpans:$4(e,e=>MK(e.range))}})},resolveCallHierarchyDeclaration:()=>lne});var fne,mne={},gne=(r(mne,{v2020:()=>gne}),{}),hne=(r(gne,{TokenEncodingConsts:()=>ure,TokenModifier:()=>pre,TokenType:()=>dre,getEncodedSemanticClassifications:()=>mre,getSemanticClassifications:()=>fre}),{}),yne=(r(hne,{PreserveOptionalFlags:()=>$le,addNewNodeForMemberSymbol:()=>Xle,codeFixAll:()=>Nne,createCodeFixAction:()=>xne,createCodeFixActionMaybeFixAll:()=>Sne,createCodeFixActionWithoutFixAll:()=>bne,createCombinedCodeActions:()=>Cne,createFileTextChanges:()=>wne,createImportAdder:()=>qae,createImportSpecifierResolver:()=>function(i,a,o,s){let c=K$(i,s,o),l=$ae(a.getTypeChecker(),i,a.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:function(e,t,r,n){var{fixes:e,computedWithoutCacheCount:t}=Kae(e,t,r,!1,a,i,o,s,l,n),r=eoe(e,i,a,c,o,s);return r&&{...r,computedWithoutCacheCount:t}}}},createJsonPropertyAssignment:()=>c_e,createMissingMemberNodes:()=>Kle,createSignatureDeclarationFromCallExpression:()=>Yle,createSignatureDeclarationFromSignature:()=>Qle,createStubbedBody:()=>a_e,eachDiagnostic:()=>Dne,findAncestorMatchingSpan:()=>p_e,findJsonProperty:()=>l_e,generateAccessorFromProperty:()=>f_e,getAccessorConvertiblePropertyAtPosition:()=>y_e,getAllFixes:()=>function(e){return vne.get(s3(e.fixId,a3)).getAllCodeActions(e)},getAllSupers:()=>b_e,getArgumentTypesAndTypeParameters:()=>r_e,getFixes:()=>function(t){let r=Ene(t),e=yne.get(String(t.errorCode));return FT(e,e=>$4(e.getCodeActions(t),function(e,t){let r=e["errorCodes"],n=0;for(var i of t)if(TT(r,i.code)&&n++,1a?r:{...r,fixId:e,fixAllDescription:t}}(e,r)))},getImportCompletionAction:()=>function(e,t,r,n,i,a,o,s,c,l,_,u){let d;r?(d=FX(n,o,s,_,u).get(n.path,r),Y4.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=Qi(oN(t.name))?[function(n,i,a,e,t){var e=r(e.getTypeChecker(),!1);if(e)return e;t=null==(e=null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t))?void 0:e.getTypeChecker();return Y4.checkDefined(t&&r(t,!0),"Could not find symbol in specified module for code actions");function r(e,t){var r=AX(a,e);return r&&Xp(r.symbol,e)===n?{symbol:r.symbol,moduleSymbol:a,moduleFileName:void 0,exportKind:r.exportKind,targetFlags:Xp(n,e).flags,isFromPackageJson:t}:(r=e.tryGetMemberInModuleExportsAndProperties(i,a))&&Xp(r,e)===n?{symbol:r,moduleSymbol:a,moduleFileName:void 0,exportKind:0,targetFlags:Xp(n,e).flags,isFromPackageJson:t}:void 0}}(e,i,t,s,o)]:Hae(n,e,i,t,a,s,o,_,u),Y4.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));r=Xae(n,s),e=XD(YH(n,l)),t=Y4.checkDefined(Vae(n,d,s,l,e,r,o,_));return{moduleSpecifier:t.moduleSpecifier,codeAction:Wae(soe({host:o,formatContext:c,preferences:_},n,i,t,!1,s,_))}},getImportKind:()=>noe,getJSDocTypedefNodes:()=>function(e){if(y7(e))return FT(e.jsDoc,e=>{return null==(e=e.tags)?void 0:e.filter(e=>e9(e))});return[]},getNoopSymbolTrackerWithResolver:()=>Gle,getPromoteTypeOnlyCompletionAction:()=>function(e,t,r,n,i,a){var o=r.getCompilerOptions(),o=F(ooe(e,r.getTypeChecker(),t,o)),s=aoe(e,t,o,r),t=o!==t.text;return s&&Wae(soe({host:n,formatContext:i,preferences:a},e,o,s,t,r,a))},getSupportedErrorCodes:()=>function(){return fne=fne??ZT(yne.keys())},importFixName:()=>Bae,importSymbols:()=>d_e,parameterShouldGetTypeFromJSDoc:()=>die,registerCodeFix:()=>Tne,setJsonCompilerOptionValue:()=>s_e,setJsonCompilerOptionValues:()=>o_e,tryGetAutoImportableReferenceFromTypeNode:()=>__e,typeToAutoImportableTypeNode:()=>e_e}),n3()),vne=new Map;function bne(e,t,r){return kne(e,hX(r),t,void 0,void 0)}function xne(e,t,r,n,i,a){return kne(e,hX(r),t,n,hX(i),a)}function Sne(e,t,r,n,i,a){return kne(e,hX(r),t,n,i&&hX(i),a)}function kne(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function Tne(e){for(var t of e.errorCodes)fne=void 0,yne.add(String(t),e);if(e.fixIds)for(var r of e.fixIds)Y4.assert(!vne.has(r)),vne.set(r,e)}function Cne(e,t){return{changes:e,commands:t}}function wne(e,t){return{fileName:e,textChanges:t}}function Nne(e,r,n){let i=[];return Cne(I.ChangeTracker.with(e,t=>Dne(e,r,e=>n(t,e,i))),0===i.length?void 0:i)}function Dne(e,t,r){for(var n of Ene(e))TT(t,n.code)&&r(n)}function Ene({program:e,sourceFile:t,cancellationToken:r}){var n=[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...WQ(t,e,r)];return wD(e.getCompilerOptions())&&n.push(...e.getDeclarationDiagnostics(t,r)),n}var Pne="addConvertToUnknownForNonOverlappingTypes",Fne=[eT.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 Ane(e,t,r){var n=G0(r)?cT.createAsExpression(r.expression,cT.createKeywordTypeNode(159)):cT.createTypeAssertion(cT.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,n)}function Ine(e,t){if(!oT(e))return tT(YH(e,t),e=>G0(e)||z0(e))}Tne({errorCodes:Fne,getCodeActions:function(t){let r=Ine(t.sourceFile,t.span.start);var e;if(void 0!==r)return e=I.ChangeTracker.with(t,e=>Ane(e,t.sourceFile,r)),[xne(Pne,e,eT.Add_unknown_conversion_for_non_overlapping_types,Pne,eT.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[Pne],getAllCodeActions:e=>Nne(e,Fne,(e,t)=>{var r=Ine(t.file,t.start);r&&Ane(e,t.file,r)})}),Tne({errorCodes:[eT.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,eT.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,eT.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){let r=e["sourceFile"];return[bne("addEmptyExportDeclaration",I.ChangeTracker.with(e,e=>{var t=cT.createExportDeclaration(void 0,!1,cT.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(r,r,t)}),eT.Add_export_to_make_this_file_into_a_module)]}});var One="addMissingAsync",Lne=[eT.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,eT.Type_0_is_not_assignable_to_type_1.code,eT.Type_0_is_not_comparable_to_type_1.code];function jne(i,a,e,o){e=e(e=>{var t=i.sourceFile,r=a,n=o;n&&n.has(oj(r))||(null!=n&&n.add(oj(r)),n=cT.replaceModifiers(i$(r,!0),cT.createNodeArray(cT.createModifiersFromModifierFlags(1024|ep(r)))),e.replaceNode(t,r,n))});return xne(One,e,eT.Add_async_modifier_to_containing_function,One,eT.Add_all_missing_async_modifiers)}function Rne(t,r){if(r)return tT(YH(t,r.start),e=>e.getStart(t)J3(r)?"quit":(LP(e)||ZE(e)||OP(e)||rF(e))&&yG(r,LK(e,t)))}Tne({fixIds:[One],errorCodes:Lne,getCodeActions:function(t){var i,a,{sourceFile:e,errorCode:r,cancellationToken:n,program:o,span:s}=t,o=bT(o.getTypeChecker().getDiagnostics(e,n),(i=s,a=r,({start:e,length:t,relatedInformation:r,code:n})=>ce(e)&&ce(t)&&yG({start:e,length:t},i)&&n===a&&!!r&&X4(r,e=>e.code===eT.Did_you_mean_to_mark_this_function_as_async.code))),n=Rne(e,o&&o.relatedInformation&&bT(o.relatedInformation,e=>e.code===eT.Did_you_mean_to_mark_this_function_as_async.code));if(n)return[jne(t,n,e=>I.ChangeTracker.with(t,e))]},getAllCodeActions:r=>{let n=r["sourceFile"],i=new Set;return Nne(r,Lne,(t,e)=>{e=e.relatedInformation&&bT(e.relatedInformation,e=>e.code===eT.Did_you_mean_to_mark_this_function_as_async.code),e=Rne(n,e);if(e)return jne(r,e,e=>(e(t),[]),i)})}});var Mne="addMissingAwait",Bne=eT.Property_0_does_not_exist_on_type_1.code,Jne=[eT.This_expression_is_not_callable.code,eT.This_expression_is_not_constructable.code],zne=[eT.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,eT.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,eT.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,eT.Operator_0_cannot_be_applied_to_type_1.code,eT.Operator_0_cannot_be_applied_to_types_1_and_2.code,eT.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,eT.This_condition_will_always_return_true_since_this_0_is_always_defined.code,eT.Type_0_is_not_an_array_type.code,eT.Type_0_is_not_an_array_type_or_a_string_type.code,eT.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,eT.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,eT.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,eT.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,eT.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,eT.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Bne,...Jne];function qne(e,t,r,n,i){var a=eX(e,r);return a&&function(e,i,a,t,r){r=r.getTypeChecker(),r=r.getDiagnostics(e,t);return X4(r,({start:e,length:t,relatedInformation:r,code:n})=>ce(e)&&ce(t)&&yG({start:e,length:t},a)&&n===i&&!!r&&X4(r,e=>e.code===eT.Did_you_forget_to_use_await.code))}(e,t,r,n,i)&&Wne(a)?a:void 0}function Une(e,r,n,i,t,a){let{sourceFile:o,program:s,cancellationToken:c}=e,l=function(t,i,a,o,s){t=function(r,n){if(dT(r.parent)&&uT(r.parent.expression))return{identifiers:[r.parent.expression],isCompleteFix:!0};if(uT(r))return{identifiers:[r],isCompleteFix:!0};if(pT(r)){let e,t=!0;for(var i of[r.left,r.right]){var a=n.getTypeAtLocation(i);n.getPromisedTypeOfPromise(a)&&(uT(i)?(e=e||[]).push(i):t=!1)}return e&&{identifiers:e,isCompleteFix:t}}}(t,s);if(t){let e=t.isCompleteFix,n;for(let r of t.identifiers){var c=s.getSymbolAtLocation(r);if(c){var l=o3(c.valueDeclaration,eF),_=l&&o3(l.name,uT),u=Bw(l,243);if(l&&u&&!l.type&&l.initializer&&u.getSourceFile()===i&&!TN(u,32)&&_&&Wne(l.initializer)){let t=o.getSemanticDiagnostics(i,a);ope.Core.eachSymbolReferenceInFile(_,s,i,e=>r!==e&&!function(e,t,r,n){let i=dT(e.parent)?e.parent.name:pT(e.parent)?e.parent:e,a=bT(t,e=>e.start===i.getStart(r)&&e.start+e.length===i.getEnd());return a&&TT(zne,a.code)||1&n.getTypeAtLocation(i).flags}(e,t,i,s))?e=!1:(n=n||[]).push({expression:l.initializer,declarationSymbol:c})}else e=!1}}return n&&{initializers:n,needsSecondPassForFixAll:!e}}}(r,o,c,s,i);if(l)return bne("addMissingAwaitToInitializer",t(t=>{G4(l.initializers,({expression:e})=>Hne(t,n,o,i,e,a)),a&&l.needsSecondPassForFixAll&&Hne(t,n,o,i,r,a)}),1===l.initializers.length?[eT.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:eT.Add_await_to_initializers)}function Vne(t,r,n,i,e,a){e=e(e=>Hne(e,n,t.sourceFile,i,r,a));return xne(Mne,e,eT.Add_await,Mne,eT.Fix_all_expressions_possibly_missing_await)}function Wne(e){return 65536&e.flags||tT(e,e=>e.parent&&LP(e.parent)&&e.parent.body===e||KP(e)&&(262===e.parent.kind||218===e.parent.kind||219===e.parent.kind||174===e.parent.kind))}function Hne(e,t,r,n,i,a){if(ZP(i.parent)&&!i.parent.awaitModifier){var o=n.getTypeAtLocation(i),s=n.getAsyncIterableType();if(s&&n.isTypeAssignableTo(o,s))return o=i.parent,void e.replaceNode(r,o,cT.updateForOfStatement(o,cT.createToken(135),o.initializer,o.expression,o.statement))}if(pT(i))for(var c of[i.left,i.right]){if(a&&uT(c)){var l=n.getSymbolAtLocation(c);if(l&&a.has(sj(l)))continue}var l=n.getTypeAtLocation(c),_=n.getPromisedTypeOfPromise(l)?cT.createAwaitExpression(c):c;e.replaceNode(r,c,_)}else if(t===Bne&&dT(i.parent)){if(a&&uT(i.parent.expression)){s=n.getSymbolAtLocation(i.parent.expression);if(s&&a.has(sj(s)))return}e.replaceNode(r,i.parent.expression,cT.createParenthesizedExpression(cT.createAwaitExpression(i.parent.expression))),Kne(e,i.parent.expression,r)}else if(TT(Jne,t)&&e7(i.parent)){if(a&&uT(i)){o=n.getSymbolAtLocation(i);if(o&&a.has(sj(o)))return}e.replaceNode(r,i,cT.createParenthesizedExpression(cT.createAwaitExpression(i))),Kne(e,i,r)}else{if(a&&eF(i.parent)&&uT(i.parent.name)){s=n.getSymbolAtLocation(i.parent.name);if(s&&!OT(a,sj(s)))return}e.replaceNode(r,i,cT.createAwaitExpression(i))}}function Kne(e,t,r){var n=nK(t.pos,r);n&&L$(n.end,n.parent,r)&&e.insertText(r,t.getStart(r),";")}Tne({fixIds:[Mne],errorCodes:zne,getCodeActions:function(t){var{sourceFile:e,errorCode:r,span:n,cancellationToken:i,program:a}=t,e=qne(e,r,n,i,a);if(e)return n=t.program.getTypeChecker(),je([Une(t,e,r,n,i=e=>I.ChangeTracker.with(t,e)),Vne(t,e,r,n,i)])},getAllCodeActions:i=>{let{sourceFile:a,program:o,cancellationToken:s}=i,c=i.program.getTypeChecker(),l=new Set;return Nne(i,zne,(t,e)=>{var r,n=qne(a,e.code,e,s,o);if(n)return r=e=>(e(t),[]),Une(i,n,e.code,c,r,l)||Vne(i,n,e.code,c,r,l)})}});var Gne="addMissingConst",$ne=[eT.Cannot_find_name_0.code,eT.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function Xne(e,t,r,n,i){var r=YH(t,r),a=tT(r,e=>s7(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return 1;default:return}}(e)&&"quit");if(a)return Qne(e,a,t,i);a=r.parent;if(pT(a)&&64===a.operatorToken.kind&&$P(a.parent))return Qne(e,r,t,i);if(NP(a)){let r=n.getTypeChecker();return vT(a.elements,e=>{var t=r;return!!(e=uT(e)?e:zN(e,!0)&&uT(e.left)?e.left:void 0)&&!t.getSymbolAtLocation(e)})?Qne(e,a,t,i):void 0}a=tT(r,e=>!!$P(e.parent)||!function(e){switch(e.kind){case 80:case 226:case 28:return 1;default:return}}(e)&&"quit");if(a&&function t(e,r){if(!pT(e))return!1;if(28===e.operatorToken.kind)return vT([e.left,e.right],e=>t(e,r));return 64===e.operatorToken.kind&&uT(e.left)&&!r.getSymbolAtLocation(e.left)}(a,n.getTypeChecker()))return Qne(e,a,t,i)}function Qne(e,t,r,n){n&&!OT(n,t)||e.insertModifierBefore(r,87,t)}Tne({errorCodes:$ne,getCodeActions:function(t){var e=I.ChangeTracker.with(t,e=>Xne(e,t.sourceFile,t.span.start,t.program));if(0{let n=new Set;return Nne(r,$ne,(e,t)=>Xne(e,t.file,t.start,r.program,n))}});var Yne="addMissingDeclareProperty",Zne=[eT.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 eie(e,t,r,n){var r=YH(t,r);!uT(r)||172!==(r=r.parent).kind||n&&!OT(n,r)||e.insertModifierBefore(t,138,r)}Tne({errorCodes:Zne,getCodeActions:function(t){var e=I.ChangeTracker.with(t,e=>eie(e,t.sourceFile,t.span.start));if(0{let r=new Set;return Nne(e,Zne,(e,t)=>eie(e,t.file,t.start,r))}});var tie="addMissingInvocationForDecorator",rie=[eT._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function nie(e,t,r){var r=tT(YH(t,r),$E),n=(Y4.assert(!!r,"Expected position to be owned by a decorator."),cT.createCallExpression(r.expression,void 0,void 0));e.replaceNode(t,r.expression,n)}Tne({errorCodes:rie,getCodeActions:function(t){var e=I.ChangeTracker.with(t,e=>nie(e,t.sourceFile,t.span.start));return[xne(tie,e,eT.Call_decorator_expression,tie,eT.Add_to_all_uncalled_decorators)]},fixIds:[tie],getAllCodeActions:e=>Nne(e,rie,(e,t)=>nie(e,t.file,t.start))});var iie="addNameToNamelessParameter",aie=[eT.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function oie(e,t,r){var r=YH(t,r),n=r.parent;if(!GE(n))return Y4.fail("Tried to add a parameter name to a non-parameter: "+Y4.formatSyntaxKind(r.kind));r=n.parent.parameters.indexOf(n);Y4.assert(!n.type,"Tried to add a parameter name to a parameter that already had one."),Y4.assert(-1oie(e,t.sourceFile,t.span.start));return[xne(iie,e,eT.Add_parameter_name,iie,eT.Add_names_to_all_parameters_without_names)]},fixIds:[iie],getAllCodeActions:e=>Nne(e,aie,(e,t)=>oie(e,t.file,t.start))});var cie="addOptionalPropertyUndefined",lie=(Tne({errorCodes:[eT.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,eT.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,eT.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){var t=e.program.getTypeChecker();let i=function(e,t,r){var e=function n(i,a){{if(!i)return;if(pT(i.parent)&&64===i.parent.operatorToken.kind)return{source:i.parent.right,target:i.parent.left};if(eF(i.parent)&&i.parent.initializer)return{source:i.parent.initializer,target:i.parent.name};if(PP(i.parent)){let e=a.getSymbolAtLocation(i.parent.expression);if(null==e||!e.valueDeclaration||!gc(e.valueDeclaration.kind))return;if(!nT(i))return;let t=i.parent.arguments.indexOf(i);if(-1===t)return;let r=e.valueDeclaration.parameters[t].name;if(uT(r))return{source:i,target:r}}else if(FF(i.parent)&&uT(i.parent.name)||AF(i.parent)){let e=n(i.parent.parent,a);if(!e)return;let t=a.getPropertyOfType(a.getTypeAtLocation(e.target),i.parent.name.text),r=null==(a=null==t?void 0:t.declarations)?void 0:a[0];return r?{source:FF(i.parent)?i.parent.initializer:i.parent.name,target:r}:void 0}}return}(eX(e,t),r);if(!e)return H4;var{source:t,target:e}=e,t=function(e,t,r){return dT(t)&&r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}(t,e,r)?r.getTypeAtLocation(e.expression):r.getTypeAtLocation(e);if(null!=(e=null==(e=t.symbol)?void 0:e.declarations)&&e.some(e=>iT(e).fileName.match(/\.d\.ts$/)))return H4;return r.getExactOptionalProperties(t)}(e.sourceFile,e.span,t);if(i.length)return t=I.ChangeTracker.with(e,e=>{var t=e;for(n of i){var r,n=n.valueDeclaration;n&&(XE(n)||QE(n))&&n.type&&(r=cT.createUnionTypeNode([...192===n.type.kind?n.type.types:[n.type],cT.createTypeReferenceNode("undefined")]),t.replaceNode(n.getSourceFile(),n.type,r))}}),[bne(cie,t,eT.Add_undefined_to_optional_property_type)]},fixIds:[cie]}),"annotateWithTypeFromJSDoc"),_ie=[eT.JSDoc_types_may_be_moved_to_TypeScript_types.code];function uie(e,t){e=YH(e,t);return o3((GE(e.parent)?e.parent:e).parent,die)}function die(e){return(MC(t=e)||260===t.kind||171===t.kind||172===t.kind)&&pie(e);var t}function pie(e){return MC(e)?e.parameters.some(pie)||!e.type&&!!Ms(e):!e.type&&!!uC(e)}function fie(e,t,r){if(MC(r)&&(Ms(r)||r.parameters.some(e=>!!uC(e)))){r.typeParameters||(a=vN(r)).length&&e.insertTypeParameters(t,r,a);var n,i,a=LP(r)&&!MH(r,21,t);a&&e.insertNodeBefore(t,WT(r.parameters),cT.createToken(21));for(n of r.parameters)n.type||(i=uC(n))&&e.tryInsertTypeAnnotation(t,n,mT(i,mie,KC));a&&e.insertNodeAfter(t,GT(r.parameters),cT.createToken(22)),r.type||(a=Ms(r))&&e.tryInsertTypeAnnotation(t,r,mT(a,mie,KC))}else{a=Y4.checkDefined(uC(r),"A JSDocType for this declaration should exist");Y4.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,mT(a,mie,KC))}}function mie(e){switch(e.kind){case 312:case 313:return cT.createTypeReferenceNode("any",H4);case 316:return cT.createUnionTypeNode([mT(e.type,mie,KC),cT.createTypeReferenceNode("undefined",H4)]);case 315:return mie(e.type);case 314:return cT.createUnionTypeNode([mT(e.type,mie,KC),cT.createTypeReferenceNode("null",H4)]);case 318:return cT.createArrayTypeNode(mT(e.type,mie,KC));case 317:return n=e,cT.createFunctionTypeNode(H4,n.parameters.map(gie),n.type??cT.createKeywordTypeNode(133));case 183:{n=e;let t=n.typeName,r=n.typeArguments;if(uT(n.typeName)){if(D8(n))return function(e){var t=cT.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,cT.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),t=cT.createTypeLiteralNode([cT.createIndexSignature(void 0,[t],e.typeArguments[1])]);return _T(t,1),t}(n);let e=n.typeName.text;switch(n.typeName.text){case"String":case"Boolean":case"Object":case"Number":e=e.toLowerCase();break;case"array":case"date":case"promise":e=e[0].toUpperCase()+e.slice(1)}t=cT.createIdentifier(e),r="Array"!==e&&"Promise"!==e||n.typeArguments?gT(n.typeArguments,mie,KC):cT.createNodeArray([cT.createTypeReferenceNode("any",H4)])}return cT.createTypeReferenceNode(t,r);return}case 322:var t=e;return _T(t=cT.createTypeLiteralNode($4(t.jsDocPropertyTags,e=>cT.createPropertySignature(void 0,uT(e.name)?e.name:e.name.right,dE(e)?cT.createToken(58):void 0,e.typeExpression&&mT(e.typeExpression.type,mie,KC)||cT.createKeywordTypeNode(133)))),1),t;default:t=hT(e,mie,void 0);return _T(t,1),t}var n}function gie(e){var t=e.parent.parameters.indexOf(e),r=318===e.type.kind&&t===e.parent.parameters.length-1,t=e.name||(r?"rest":"arg"+t),r=r?cT.createToken(26):e.dotDotDotToken;return cT.createParameterDeclaration(e.modifiers,r,t,e.questionToken,mT(e.type,mie,KC),e.initializer)}Tne({errorCodes:_ie,getCodeActions(t){let r=uie(t.sourceFile,t.span.start);var e;if(r)return e=I.ChangeTracker.with(t,e=>fie(e,t.sourceFile,r)),[xne(lie,e,eT.Annotate_with_type_from_JSDoc,lie,eT.Annotate_everything_with_types_from_JSDoc)]},fixIds:[lie],getAllCodeActions:e=>Nne(e,_ie,(e,t)=>{var r=uie(t.file,t.start);r&&fie(e,t.file,r)})});var hie="convertFunctionToEs6Class",yie=[eT.This_constructor_function_may_be_converted_to_a_class_declaration.code];function vie(s,u,e,t,c,d){let r=t.getSymbolAtLocation(YH(u,e));var n,i;function a(r){let n=[];return r.exports&&r.exports.forEach(e=>{var t;"prototype"===e.name&&e.declarations?(t=e.declarations[0],1===e.declarations.length&&dT(t)&&pT(t.parent)&&64===t.parent.operatorToken.kind&&DP(t.parent.right)&&i(t.parent.right.symbol,void 0,n)):i(e,[cT.createToken(126)],n)}),r.members&&r.members.forEach((e,t)=>{"constructor"===t&&e.valueDeclaration?(t=null==(t=null==(t=null==(t=null==(t=r.exports)?void 0:t.get("prototype"))?void 0:t.declarations)?void 0:t[0])?void 0:t.parent)&&pT(t)&&DP(t.right)&&X4(t.right.properties,xie)||s.delete(u,e.valueDeclaration.parent):i(e,void 0,n)}),n;function i(t,_,r){if(8192&t.flags||4096&t.flags){var e=t.valueDeclaration;let l=e.parent;var n,i,a=l.right;function o(r,n,i){if(OP(n))a=r,s=i,c=LT(_,bie(o=n,134)),c=cT.createMethodDeclaration(c,void 0,s,void 0,void 0,o.parameters,void 0,o.body),h$(l,c,u),a.push(c);else{s=r,o=n,a=i;let e=o.body,t;t=241===e.kind?e:cT.createBlock([cT.createReturnStatement(e)]);c=LT(_,bie(o,134)),c=cT.createMethodDeclaration(c,void 0,a,void 0,void 0,o.parameters,void 0,t);h$(l,c,u),s.push(c)}var a,o,s,c}n=a,(lD(i=e)?dT(i)&&xie(i)||jC(n):vT(i.properties,e=>!(!ZE(e)&&!hC(e)&&(!(FF(e)&&OP(e.initializer)&&e.name)&&!xie(e)))))&&!X4(r,e=>{e=tC(e);return!(!e||!uT(e)||rT(e)!==Y3(t))})&&(n=l.parent&&244===l.parent.kind?l.parent:l,s.delete(u,n),a?lD(e)&&(OP(a)||LP(a))?(i=sG(u,c),(n=function(e,t,r){if(dT(e))return e.name;e=e.argumentExpression;if(zE(e))return e;if(k7(e))return R3(e.text,vD(t))?cT.createIdentifier(e.text):c0(e)?cT.createStringLiteral(e.text,0===r):e}(e,d,i))&&o(r,a,n)):DP(a)?G4(a.properties,e=>{(ZE(e)||hC(e))&&r.push(e),FF(e)&&OP(e.initializer)&&o(r,e.initializer,e.name),xie(e)}):C8(u)||dT(e)&&(i=cT.createPropertyDeclaration(_,e.name,void 0,void 0,a),h$(l.parent,i,u),r.push(i)):r.push(cT.createPropertyDeclaration(_,t.name,void 0,void 0,void 0)))}}}r&&r.valueDeclaration&&19&r.flags&&(rF(t=r.valueDeclaration)||OP(t)?s.replaceNode(u,t,(e=t,n=a(r),e.body&&n.unshift(cT.createConstructorDeclaration(void 0,e.parameters,e.body)),i=bie(e,95),i=cT.createClassDeclaration(i,e.name,void 0,void 0,n))):eF(t)&&(e=function(e){var t=e.initializer;var r;if(t&&OP(t)&&uT(e.name))return r=a(e.symbol),t.body&&r.unshift(cT.createConstructorDeclaration(void 0,t.parameters,t.body)),t=bie(e.parent.parent,95),cT.createClassDeclaration(t,e.name,void 0,void 0,r)}(t))&&(n=t.parent.parent,tF(t.parent)&&1e.kind===t):void 0}function xie(e){return!!e.name&&!(!uT(e.name)||"constructor"!==e.name.text)}Tne({errorCodes:yie,getCodeActions(t){var e=I.ChangeTracker.with(t,e=>vie(e,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[xne(hie,e,eT.Convert_function_to_an_ES2015_class,hie,eT.Convert_all_constructor_functions_to_classes)]},fixIds:[hie],getAllCodeActions:r=>Nne(r,yie,(e,t)=>vie(e,t.file,t.start,r.program.getTypeChecker(),r.preferences,r.program.getCompilerOptions()))});var Sie="convertToAsyncFunction",kie=[eT.This_may_be_converted_to_an_async_function.code],Tie=!0;function Cie(a,o,e,t){var r=YH(o,e);let n;if(n=uT(r)&&eF(r.parent)&&r.parent.initializer&&MC(r.parent.initializer)?r.parent.initializer:o3(X5(YH(o,e)),tY)){var r=new Map,e=oT(n),s=function(e,r){if(!e.body)return new Set;let n=new Set;return h9(e.body,function e(t){wie(t,r,"then")?(n.add(oj(t)),G4(t.arguments,e)):wie(t,r,"catch")||wie(t,r,"finally")?(n.add(oj(t)),h9(t,e)):Eie(t,r)?n.add(oj(t)):h9(t,e)}),n}(n,t),c=function(e,s,c){let l=new Map,_=n3();return h9(e,function e(r){if(uT(r)){let t=s.getSymbolAtLocation(r);var n,i,a,o;t&&(o=zie(s.getTypeAtLocation(r),s),n=sj(t).toString(),!o||GE(r.parent)||MC(r.parent)||c.has(n)?r.parent&&(GE(r.parent)||eF(r.parent)||wP(r.parent))&&(a=r.text,(i=_.get(a))&&i.some(e=>e!==t)?(i=Pie(r,_),l.set(n,i.identifier),c.set(n,i)):(i=i$(r),c.set(n,Wie(i))),_.add(a,t)):(o=Pie(a=(null==(i=UT(o.parameters))?void 0:i.valueDeclaration)&&GE(i.valueDeclaration)&&o3(i.valueDeclaration.name,uT)||cT.createUniqueName("result",16),_),c.set(n,o),_.add(a.text,t)))}else h9(r,e)}),a$(e,!0,e=>{if(wP(e)&&uT(e.name)&&TP(e.parent)){var t=s.getSymbolAtLocation(e.name),t=t&&l.get(String(sj(t)));if(t&&t.text!==(e.name||e.propertyName).getText())return cT.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,t,e.initializer)}else if(uT(e)){t=s.getSymbolAtLocation(e),e=t&&l.get(String(sj(t)));if(e)return cT.createIdentifier(e.text)}})}(n,t,r);if(KQ(c,t)){c=c.body&&KP(c.body)?function(e,t){let r=[];return L5(e,e=>{GQ(e,t)&&r.push(e)}),r}(c.body,t):H4;let i={checker:t,synthNamesMap:r,setOfExpressionsToReturn:s,isInJSFile:e};if(c.length){t=j3(o.text,Pp(n).pos);a.insertModifierAt(o,t,134,{suffix:" "});for(let n of c)if(h9(n,function e(t){if(PP(t)){var r=Aie(t,t,i,!1);if(!Tie)return!0;a.replaceNodeWithNodes(o,n,r)}else if(!jC(t)&&(h9(t,e),!Tie))return!0}),!Tie)return}}}}function wie(e,t,r){if(PP(e))return(r=cH(e,r)&&t.getTypeAtLocation(e))&&t.getPromisedTypeOfPromise(r)}function Nie(e,t){return 0!=(4&sT(e))&&e.target===t}function Die(e,t,r){var n;return"finally"!==e.expression.name.escapedText&&(Nie(n=r.getTypeAtLocation(e.expression.expression),r.getPromiseType())||Nie(n,r.getPromiseLikeType()))?"then"!==e.expression.name.escapedText||t===Re(e.arguments,0)?Re(e.typeArguments,0):t===Re(e.arguments,1)?Re(e.typeArguments,1):void 0:void 0}function Eie(e,t){return nT(e)&&t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function Pie(e,t){t=(t.get(e.text)||H4).length;return Wie(0===t?e:cT.createIdentifier(e.text+"_"+t))}function Fie(){return Tie=!1,H4}function Aie(e,t,r,n,i){var a,o,s,c,l,_,u;if(wie(t,r.checker,"then"))return u=Re((c=t).arguments,0),s=Re(t.arguments,1),l=r,a=n,o=i,!u||Iie(l,u)?jie(c,s,l,a,o):(!s||Iie(l,s))&&(s=Uie(u,l),_=Aie(c.expression.expression,c.expression.expression,l,!0,s),Tie)&&(u=Bie(u,a,o,s,c,l),Tie)?LT(_,u):Fie();if(wie(t,r.checker,"catch"))return jie(t,Re(t.arguments,0),r,n,i);if(wie(t,r.checker,"finally"))return o=Re((a=t).arguments,0),s=r,c=n,l=i,!o||Iie(s,o)?Aie(a,a.expression.expression,s,c,l):(_=Oie(a,s,l),u=Aie(a,a.expression.expression,s,!0,_),Tie&&(o=Bie(o,c,void 0,void 0,a,s),Tie)?(c=cT.createBlock(u),u=cT.createBlock(o),o=cT.createTryStatement(c,void 0,u),Lie(a,s,o,_,l)):Fie());if(dT(t))return Aie(e,t.expression,r,n,i);var d=r.checker.getTypeAtLocation(t);if(d&&r.checker.getPromisedTypeOfPromise(d)){Y4.assertNode(K3(t).parent,dT);d=t,t=n,n=i;if(Yie(e,r)){let e=i$(d);return t&&(e=cT.createAwaitExpression(e)),[cT.createReturnStatement(e)]}return Rie(n,cT.createAwaitExpression(d),void 0)}return Fie()}function Iie({checker:e},t){return 106===t.kind||(uT(t)&&!PC(t)&&"undefined"===rT(t)?!(t=e.getSymbolAtLocation(t))||e.isUndefinedSymbol(t):void 0)}function Oie(e,r,n){let t;return n&&!Yie(e,r)&&(Qie(n)?(t=n,r.synthNamesMap.forEach((e,t)=>{e.identifier.text===n.identifier.text&&(e=Wie(cT.createUniqueName(n.identifier.text,16)),r.synthNamesMap.set(t,e))})):t=Wie(cT.createUniqueName("result",16),n.types),Xie(t)),t}function Lie(e,t,r,n,i){var a=[];let o;return n&&!Yie(e,t)&&(o=i$(Xie(n)),e=n.types,n=t.checker.getUnionType(e,2),e=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),t=[cT.createVariableDeclaration(o,void 0,e)],n=cT.createVariableStatement(void 0,cT.createVariableDeclarationList(t,1)),a.push(n)),a.push(r),i&&o&&1===i.kind&&a.push(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(i$($ie(i)),void 0,void 0,o)],2))),a}function jie(e,t,r,n,i){var a,o,s;return!t||Iie(r,t)?Aie(e,e.expression.expression,r,n,i):(a=Uie(t,r),o=Oie(e,r,i),s=Aie(e,e.expression.expression,r,!0,o),Tie&&(t=Bie(t,n,o,a,e,r),Tie)?(n=cT.createBlock(s),s=cT.createCatchClause(a&&i$(Gie(a)),cT.createBlock(t)),Lie(e,r,cT.createTryStatement(n,s,void 0),o,i)):Fie())}function Rie(e,t,r){return!e||Vie(e)?[cT.createExpressionStatement(t)]:Qie(e)&&e.hasBeenDeclared?[cT.createExpressionStatement(cT.createAssignment(i$(Kie(e)),t))]:[cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(i$(Gie(e)),void 0,r,t)],2))]}function Mie(e,t){var r;return t&&e?[...Rie(Wie(r=cT.createUniqueName("result",16)),e,t),cT.createReturnStatement(r)]:[cT.createReturnStatement(e)]}function Bie(r,n,i,e,a,o){switch(r.kind){case 106:break;case 211:case 80:if(e)return d=cT.createCallExpression(i$(r),void 0,Qie(e)?[Kie(e)]:[]),Yie(a,o)?Mie(d,Die(a,r,o.checker)):(l=o.checker.getTypeAtLocation(r),(l=o.checker.getSignaturesOfType(l,0)).length?(l=l[0].getReturnType(),d=Rie(i,cT.createAwaitExpression(d),Die(a,r,o.checker)),i&&i.types.push(o.checker.getAwaitedType(l)||l),d):Fie());break;case 218:case 219:var s,c,l=r.body,_=null==(d=zie(o.checker.getTypeAtLocation(r),o.checker))?void 0:d.getReturnType();if(KP(l)){let e=[],t=!1;for(var u of l.statements)if(i1(u))t=!0,GQ(u,o.checker)?e=e.concat(qie(o,u,n,i)):(s=_&&u.expression?Jie(o.checker,_,u.expression):u.expression,e.push(...Mie(s,Die(a,r,o.checker))));else{if(n&&L5(u,ki))return Fie();e.push(u)}if(Yie(a,o))return e.map(e=>i$(e));else{var d=e;var p=i;var f=o;var m=t;var g=[];for(var h of d)i1(h)?h.expression&&(c=Eie(h.expression,f.checker)?cT.createAwaitExpression(h.expression):h.expression,void 0===p?g.push(cT.createExpressionStatement(c)):Qie(p)&&p.hasBeenDeclared?g.push(cT.createExpressionStatement(cT.createAssignment(Kie(p),c))):g.push(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(Gie(p),void 0,void 0,c)],2)))):g.push(i$(h));m||void 0===p||g.push(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(Gie(p),void 0,void 0,cT.createIdentifier("undefined"))],2)));return g;return}}return 0<(m=$Q(l,o.checker)?qie(o,cT.createReturnStatement(l),n,i):H4).length?m:_?(l=Jie(o.checker,_,l),Yie(a,o)?Mie(l,Die(a,r,o.checker)):(l=Rie(i,l,void 0),i&&i.types.push(o.checker.getAwaitedType(_)||_),l)):Fie();default:return Fie()}return H4}function Jie(e,t,r){r=i$(r);return e.getPromisedTypeOfPromise(t)?cT.createAwaitExpression(r):r}function zie(e,t){return KT(t.getSignaturesOfType(e,0))}function qie(n,e,i,a){let o=[];return h9(e,function e(t){var r;PP(t)?(r=Aie(t,t,n,i,a),(o=o.concat(r)).length):jC(t)||h9(t,e)}),o}function Uie(e,n){let i=[],t;var r;if(MC(e)?0zP(e)?[]:[t(e.name)]);return Hie(e,r)}(r)):uT(e)?t=a(e):dT(e)&&uT(e.name)&&(t=a(e.name)),t&&!("identifier"in t&&"undefined"===t.identifier.text))return t;function a(e){var t=(t=e).original||t,r=(null==(r=o3(t=t,l7))?void 0:r.symbol)??n.checker.getSymbolAtLocation(t);return r&&n.synthNamesMap.get(sj(r).toString())||Wie(e,i)}}function Vie(e){return!e||(Qie(e)?!e.identifier.text:vT(e.elements,Vie))}function Wie(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function Hie(e,t=H4,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Kie(e){return e.hasBeenReferenced=!0,e.identifier}function Gie(e){return(Qie(e)?Xie:$ie)(e)}function $ie(e){for(var t of e.elements)Gie(t);return e.bindingPattern}function Xie(e){return e.hasBeenDeclared=!0,e.identifier}function Qie(e){return 0===e.kind}function Yie(e,t){return e.original&&t.setOfExpressionsToReturn.has(oj(e.original))}function Zie(n,i){n.forEachChild(function e(t){var r;dT(t)&&fL(n,t.expression)&&uT(t.name)&&(r=t["parent"],i(t,pT(r)&&r.left===t&&64===r.operatorToken.kind)),t.forEachChild(e)})}function eae(g,e,r,h,y,v,b){let x=e["declarationList"],S=!1;var n=$4(x.declarations,e=>{var{name:t,initializer:r}=e;if(r){if(fL(g,r))return S=!0,uae([]);if(E8(r,!0)){S=!0;var n=t,i=r.arguments[0],a=h,o=y,s=v,c=b;switch(n.kind){case 206:var l=T(n.elements,e=>e.dotDotDotToken||e.initializer||e.propertyName&&!uT(e.propertyName)||!uT(e.name)?void 0:cae(e.propertyName&&e.propertyName.text,e.name.text));if(l)return uae([nG(void 0,l,i,c)]);case 207:l=iae(lX(i.text,s),o);return uae([nG(cT.createIdentifier(l),void 0,i,c),lae(void 0,i$(n),cT.createIdentifier(l))]);case 80:return function(e,t,r,n,i){let a=r.getSymbolAtLocation(e),o=new Map,s=!1,c;for(var l of n.original.get(e.text))if(r.getSymbolAtLocation(l)===a&&l!==e){var _=l["parent"];if(dT(_)){var{text:u}=_["name"];if("default"===u){s=!0;var d=l.getText();(c=c??new Map).set(_,cT.createIdentifier(d))}else{Y4.assert(_.expression===l,"Didn't expect expression === use");let e=o.get(u);void 0===e&&(e=iae(u,n),o.set(u,e)),(c=c??new Map).set(_,cT.createIdentifier(e))}}else s=!0}var p=0===o.size?void 0:ZT(k(o.entries(),([e,t])=>cT.createImportSpecifier(!1,e===t?void 0:cT.createIdentifier(e),cT.createIdentifier(t))));p||(s=!0);return uae([nG(s?i$(e):void 0,p,t,i)],c)}(n,i,a,o,c);default:return Y4.assertNever(n,"Convert to ES module got invalid name kind "+n.kind)}return}if(dT(r)&&E8(r.expression,!0)){S=!0;var _=t,u=r.name.text,d=r.expression.arguments[0],p=y,f=b;switch(_.kind){case 206:case 207:var m=iae(u,p);return uae([sae(m,u,d,f),lae(void 0,_,cT.createIdentifier(m))]);case 80:return uae([sae(_.text,u,d,f)]);default:return Y4.assertNever(_,"Convert to ES module got invalid syntax form "+_.kind)}return}}return uae([cT.createVariableStatement(void 0,cT.createVariableDeclarationList([e],x.flags))])});if(S){r.replaceNodeWithNodes(g,e,FT(n,e=>e.newImports));let t;return G4(n,e=>{e.useSitesToUnqualify&&M7(e.useSitesToUnqualify,t=t??new Map)}),t}}function tae(e){return _ae(void 0,e)}function rae(e){return _ae([cT.createExportSpecifier(!1,void 0,"default")],e)}function nae(t,r){return r&&X4(ZT(r.keys()),e=>CH(t,e))?(i3(t)?c$:a$)(t,!0,e):t;function e(e){var t;if(211===e.kind)return t=r.get(e),r.delete(e),t}}function iae(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.add(e),e}function aae(e){var t=e["parent"];switch(t.kind){case 211:return t.name!==e;case 208:case 276:return t.propertyName!==e;default:return!0}}function oae(e,t,r,n){return cT.createFunctionDeclaration(LT(t,s$(r.modifiers)),i$(r.asteriskToken),e,s$(r.typeParameters),s$(r.parameters),i$(r.type),cT.converters.convertToFunctionBlock(nae(r.body,n)))}function sae(e,t,r,n){return"default"===t?nG(cT.createIdentifier(e),void 0,r,n):nG(void 0,[cae(t,e)],r,n)}function cae(e,t){return cT.createImportSpecifier(!1,void 0!==e&&e!==t?cT.createIdentifier(e):void 0,cT.createIdentifier(t))}function lae(e,t,r){return cT.createVariableStatement(e,cT.createVariableDeclarationList([cT.createVariableDeclaration(t,void 0,void 0,r)],2))}function _ae(e,t){return cT.createExportDeclaration(void 0,!1,e&&cT.createNamedExports(e),void 0===t?void 0:cT.createStringLiteral(t))}function uae(e,t){return{newImports:e,useSitesToUnqualify:t}}Tne({errorCodes:kie,getCodeActions(t){Tie=!0;var e=I.ChangeTracker.with(t,e=>Cie(e,t.sourceFile,t.span.start,t.program.getTypeChecker()));return Tie?[xne(Sie,e,eT.Convert_to_async_function,Sie,eT.Convert_all_to_async_functions)]:[]},fixIds:[Sie],getAllCodeActions:r=>Nne(r,kie,(e,t)=>Cie(e,t.file,t.start,r.program.getTypeChecker()))}),Tne({errorCodes:[eT.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:_,program:u,preferences:d}=e;return[bne("convertToEsModule",I.ChangeTracker.with(e,e=>{if(function(r,e,n,t,i){var a={original:function(e){let t=n3();return function t(e,r){uT(e)&&aae(e)&&r(e);e.forEachChild(e=>t(e,r))}(e,e=>t.add(e.text,e)),t}(r),additional:new Set},o=function(e,r,n){let i=new Map;return Zie(e,e=>{var t=e.name["text"];i.has(t)||!Ou(e.name)&&!r.resolveName(t,e,111551,!0)||i.set(t,iae("_"+t,n))}),i}(r,e,a);!function(r,n,i){Zie(r,(e,t)=>{t||(t=e.name["text"],i.replaceNode(r,e,cT.createIdentifier(n.get(t)||t)))})}(r,o,n);let s=!1,c;for(var l of NT(r.statements,GP)){l=eae(r,l,n,e,a,t,i);l&&M7(l,c=c??new Map)}for(var _ of NT(r.statements,e=>!GP(e))){_=function(e,t,r,n,i,a,o,s,c){switch(t.kind){case 243:return eae(e,t,n,r,i,a,c),!1;case 244:var l=t["expression"];switch(l.kind){case 213:return E8(l,!0)&&n.replaceNode(e,t,nG(void 0,void 0,l.arguments[0],c)),!1;case 226:var _=l["operatorToken"];return 64===_.kind&&function(e,t,r,n,i,a){var{left:o,right:s}=r;if(dT(o))if(fL(e,o)){if(!fL(e,s))return(a=DP(s)?function(e,s){e=T(e.properties,t=>{switch(t.kind){case 177:case 178:case 304:case 305:return;case 303:if(uT(t.name)){var r=t.name.text;var n=t.initializer;var i=s;let e=[cT.createToken(95)];switch(n.kind){case 218:var a=n["name"];if(a&&a.text!==r)return o();case 219:return oae(r,e,n,i);case 231:return function(e,t,r,n){return cT.createClassDeclaration(LT(t,s$(r.modifiers)),e,s$(r.typeParameters),s$(r.heritageClauses),nae(r.members,n))}(r,e,n,i);default:return o()}function o(){return lae(e,cT.createIdentifier(r),nae(n,i))}return}else return void 0;case 174:return uT(t.name)?oae(t.name.text,[cT.createToken(95)],t,s):void 0;default:Y4.assertNever(t,"Convert to ES6 got invalid prop kind "+t.kind)}});return e&&[e,!1]}(s,a):E8(s,!0)?function(e,t){var r=e.text,t=t.getSymbolAtLocation(e),e=t?t.exports:p;return e.has("export=")?[[rae(r)],!0]:e.has("default")?1{n.replaceNode(r,t,e)}),s}(_,u.getTypeChecker(),e,vD(u.getCompilerOptions()),sG(_,d)))for(var t of u.getSourceFiles()){r=l=c=s=o=a=i=n=void 0;var r,n=t,i=_,a=u,o=e,s=sG(t,d);for(r of n.imports){var c=null==(c=a.getResolvedModuleFromModuleSpecifier(r,n))?void 0:c.resolvedModule;if(c&&c.resolvedFileName===i.fileName){var l=su(r);switch(l.kind){case 271:o.replaceNode(n,l,nG(l.name,void 0,r,s));break;case 213:E8(l,!1)&&o.replaceNode(n,l,cT.createPropertyAccessExpression(i$(l),"default"))}}}}}),eT.Convert_to_ES_module)]}});var dae="correctQualifiedNameToIndexedAccessType",pae=[eT.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 fae(e,t){e=tT(YH(e,t),WE);return Y4.assert(!!e,"Expected position to be owned by a qualified name."),uT(e.left)?e:void 0}function mae(e,t,r){var n=r.right.text,n=cT.createIndexedAccessTypeNode(cT.createTypeReferenceNode(r.left,void 0),cT.createLiteralTypeNode(cT.createStringLiteral(n)));e.replaceNode(t,r,n)}Tne({errorCodes:pae,getCodeActions(t){let r=fae(t.sourceFile,t.span.start);var e,n;if(r)return e=I.ChangeTracker.with(t,e=>mae(e,t.sourceFile,r)),n=`${r.left.text}["${r.right.text}"]`,[xne(dae,e,[eT.Rewrite_as_the_indexed_access_type_0,n],dae,eT.Rewrite_all_as_indexed_access_types)]},fixIds:[dae],getAllCodeActions:e=>Nne(e,pae,(e,t)=>{var r=fae(t.file,t.start);r&&mae(e,t.file,r)})});var gae=[eT.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],hae="convertToTypeOnlyExport";function yae(e,t){return o3(YH(t,e.start).parent,vF)}function vae(e,r,n){if(r){var i=r.parent,a=i.parent;let t=function(t,e){var r=t.parent;if(1===r.elements.length)return r.elements;let n=Y$(LK(r),e.program.getSemanticDiagnostics(e.sourceFile,e.cancellationToken));return NT(r.elements,e=>{return e===t||(null==(e=Q$(e,n))?void 0:e.code)===gae[0]})}(r,n);t.length===i.elements.length?e.insertModifierBefore(n.sourceFile,156,i):(r=cT.updateExportDeclaration(a,a.modifiers,!1,cT.updateNamedExports(i,NT(i.elements,e=>!TT(t,e))),a.moduleSpecifier,void 0),i=cT.createExportDeclaration(void 0,!0,cT.createNamedExports(t),a.moduleSpecifier,void 0),e.replaceNode(n.sourceFile,a,r,{leadingTriviaOption:I.LeadingTriviaOption.IncludeAll,trailingTriviaOption:I.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,a,i))}}Tne({errorCodes:gae,getCodeActions:function(t){var e=I.ChangeTracker.with(t,e=>vae(e,yae(t.span,t.sourceFile),t));if(e.length)return[xne(hae,e,eT.Convert_to_type_only_export,hae,eT.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[hae],getAllCodeActions:function(r){let n=new Map;return Nne(r,gae,(e,t)=>{t=yae(t,r.sourceFile);t&&sf(n,oj(t.parent.parent))&&vae(e,t,r)})}});var bae=[eT._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,eT._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],xae="convertToTypeOnlyImport";function Sae(e,t){e=YH(e,t).parent;return mF(e)||uF(e)&&e.importClause?e:void 0}function kae(e,t,n){if(!e.parent.parent.name){e=e.parent.elements.filter(e=>!e.isTypeOnly);if(1!==e.length){let r=n.getTypeChecker();for(var i of e)if(ope.Core.eachSymbolReferenceInFile(i.name,r,t,e=>{var t=r.getSymbolAtLocation(e);return!!t&&r.symbolIsValue(t)||!XD(e)}))return}return 1}}function Tae(e,t,r){var n,i;mF(r)?e.replaceNode(t,r,cT.updateImportSpecifier(r,!0,r.propertyName,r.name)):(i=r.importClause).name&&i.namedBindings?e.replaceNodeWithNodes(t,r,[cT.createImportDeclaration(s$(r.modifiers,!0),cT.createImportClause(!0,i$(i.name,!0),void 0),i$(r.moduleSpecifier,!0),i$(r.attributes,!0)),cT.createImportDeclaration(s$(r.modifiers,!0),cT.createImportClause(!0,void 0,i$(i.namedBindings,!0)),i$(r.moduleSpecifier,!0),i$(r.attributes,!0))]):(n=275===(null==(n=i.namedBindings)?void 0:n.kind)?cT.updateNamedImports(i.namedBindings,ET(i.namedBindings.elements,e=>cT.updateImportSpecifier(e,!1,e.propertyName,e.name))):i.namedBindings,i=cT.updateImportDeclaration(r,r.modifiers,cT.updateImportClause(i,!0,i.name,n),r.moduleSpecifier,r.attributes),e.replaceNode(t,r,i))}Tne({errorCodes:bae,getCodeActions:function(t){let e,r=Sae(t.sourceFile,t.span.start);var n,i;if(r)return i=I.ChangeTracker.with(t,e=>Tae(e,t.sourceFile,r)),n=276===r.kind&&uF(r.parent.parent.parent)&&kae(r,t.sourceFile,t.program)?I.ChangeTracker.with(t,e=>Tae(e,t.sourceFile,r.parent.parent.parent)):void 0,i=xne(xae,i,276===r.kind?[eT.Use_type_0,(null==(e=r.propertyName)?void 0:e.text)??r.name.text]:eT.Use_import_type,xae,eT.Fix_all_with_type_only_imports),X4(n)?[bne(xae,n,eT.Use_import_type),i]:[i]},fixIds:[xae],getAllCodeActions:function(n){let i=new Set;return Nne(n,bae,(e,t)=>{var r=Sae(t.file,t.start);272!==(null==r?void 0:r.kind)||i.has(r)?276===(null==r?void 0:r.kind)&&uF(r.parent.parent.parent)&&!i.has(r.parent.parent.parent)&&kae(r,t.file,n.program)?(Tae(e,t.file,r.parent.parent.parent),i.add(r.parent.parent.parent)):276===(null==r?void 0:r.kind)&&Tae(e,t.file,r):(Tae(e,t.file,r),i.add(r))})}});var Cae="convertTypedefToType",wae=[eT.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function Nae(i,a,o,s,c=!1){if(e9(a)){var l=function(e){var t=e["typeExpression"];if(t){e=null==(e=e.name)?void 0:e.getText();if(e)return 322===t.kind?function(e,t){t=function o(e){let t=e.jsDocPropertyTags;if(!X4(t))return;let r=e=>{var t;let r=Eae(e),n=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed,a;if(n&&HF(n)){let e=o(n);a=cT.createTypeLiteralNode(e)}else n&&(a=i$(n));if(a&&r){let e=i?cT.createToken(58):void 0;return cT.createPropertySignature(void 0,r,e,a)}};return AT(t,r)}(t);if(X4(t))return cT.createInterfaceDeclaration(void 0,e,void 0,void 0,t)}(e,t):309===t.kind?function(e,t){t=i$(t.type);if(t)return cT.createTypeAliasDeclaration(void 0,cT.createIdentifier(e),void 0,t)}(e,t):void 0}}(a);if(l){var _,u,d,p=a.parent,{leftSibling:f,rightSibling:m}=(f=(_=a).parent,u=f.getChildCount()-1,m=f.getChildren().findIndex(e=>e.getStart()===_.getStart()&&e.getEnd()===_.getEnd()),d=0Nae(e,n,t.sourceFile,r))).length?[xne(Cae,e,eT.Convert_typedef_to_TypeScript_type,Cae,eT.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:i=>Nne(i,wae,(e,t)=>{var r=WG(i.host,i.formatContext.options),n=YH(t.file,t.start);n&&Nae(e,n,t.file,r,!0)})});var Pae="convertLiteralTypeToMappedType",Fae=[eT._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function Aae(e,t){var r,t=YH(e,t);if(uT(t))return r=s3(t.parent.parent,XE),t=t.getText(e),{container:s3(r.parent,uP),typeNode:r.type,constraint:t,name:"K"===t?"P":"K"}}function Iae(e,t,{container:r,typeNode:n,constraint:i,name:a}){e.replaceNode(t,r,cT.createMappedTypeNode(void 0,cT.createTypeParameterDeclaration(void 0,a,cT.createTypeReferenceNode(i)),void 0,void 0,n,void 0))}Tne({errorCodes:Fae,getCodeActions:function(e){let{sourceFile:t,span:r}=e,n=Aae(t,r.start);var i,a;if(n)return{name:i,constraint:a}=n,e=I.ChangeTracker.with(e,e=>Iae(e,t,n)),[xne(Pae,e,[eT.Convert_0_to_1_in_0,a,i],Pae,eT.Convert_all_type_literals_to_mapped_type)]},fixIds:[Pae],getAllCodeActions:e=>Nne(e,Fae,(e,t)=>{var r=Aae(t.file,t.start);r&&Iae(e,t.file,r)})});var Oae=[eT.Class_0_incorrectly_implements_interface_1.code,eT.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],Lae="fixClassIncorrectlyImplementsInterface";function jae(e,t){return Y4.checkDefined(Q5(YH(e,t)),"There should be a containing class")}function Rae(e){return!(e.valueDeclaration&&2&ON(e.valueDeclaration))}function Mae(r,e,n,i,a,t){let o=r.program.getTypeChecker(),s=function(e,t){e=Lw(e);if(!e)return I7();e=t.getTypeAtLocation(e),t=t.getPropertiesOfType(e);return I7(t.filter(Rae))}(i,o);var e=o.getTypeAtLocation(e),c=o.getPropertiesOfType(e).filter(g3(Rae,e=>!s.has(e.escapedName))),l=o.getTypeAtLocation(i);let _=bT(i.members,e=>tP(e));l.getNumberIndexType()||u(e,1),l.getStringIndexType()||u(e,0);l=qae(n,r.program,t,r.host);function u(e,t){e=o.getIndexInfoOfType(e,t);e&&d(n,i,o.indexInfoToIndexSignatureDeclaration(e,i,void 0,Gle(r)))}function d(e,t,r){_?a.insertNodeAfter(e,_,r):a.insertMemberAtStart(e,t,r)}Kle(i,c,n,r,t,l,e=>d(n,i,e)),l.writeFixes(a)}Tne({errorCodes:Oae,getCodeActions(r){let{sourceFile:n,span:e}=r,i=jae(n,e.start);return AT(Rw(i),t=>{var e=I.ChangeTracker.with(r,e=>Mae(r,t,n,i,e,r.preferences));return 0===e.length?void 0:xne(Lae,e,[eT.Implement_interface_0,t.getText(n)],Lae,eT.Implement_all_unimplemented_interfaces)})},fixIds:[Lae],getAllCodeActions(i){let a=new Map;return Nne(i,Oae,(e,t)=>{var r=jae(t.file,t.start);if(sf(a,oj(r)))for(var n of Rw(r))Mae(i,n,t.file,r,e,i.preferences)})}});var Bae="import",Jae="fixMissingImport",zae=[eT.Cannot_find_name_0.code,eT.Cannot_find_name_0_Did_you_mean_1.code,eT.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,eT.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,eT.Cannot_find_namespace_0.code,eT._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,eT._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,eT.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,eT._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,eT.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,eT.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,eT.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,eT.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,eT.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,eT.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,eT.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,eT.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,eT.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,eT.Cannot_find_namespace_0_Did_you_mean_1.code];function qae(e,t,r,n,i){return Uae(e,t,!1,r,n,i)}function Uae(m,u,r,g,d,p){let h=u.getCompilerOptions(),y=[],v=[],b=new Map,x=new Set,S=new Set,k=new Map;return{addImportFromDiagnostic:function(e,t){t=Yae(t,e.code,e.start,r);t&&t.length&&f(WT(t))},addImportFromExportedSymbol:function(e,t,r){let n,i=Y4.checkDefined(e.parent),a=iX(e,vD(h)),o=u.getTypeChecker(),s=o.getMergedSymbol(Xp(e,o)),c=Hae(m,s,a,i,!1,u,d,g,p),l=Xae(m,u),_=Vae(m,Y4.checkDefined(c),u,void 0,!!t,l,d,g);_&&(e=(null==(n=o3(null==r?void 0:r.name,uT))?void 0:n.text)??a,f({fix:_=r&&DC(r)&&(3===_.kind||2===_.kind)&&1===_.addAsTypeOnly?{..._,addAsTypeOnly:2}:_,symbolName:e??a,errorIdentifierText:void 0}))},writeFixes:function(n,e){let t,i,a;a=H_(m)&&0===m.imports.length&&void 0!==e?e:sG(m,g);for(var r of y)_oe(n,m,r);for(var o of v)uoe(n,m,o,a);let s;if(x.size){Y4.assert(H_(m),"Cannot remove imports from a future source file");var e=new Set(AT([...x],e=>tT(e,uF))),c=new Set(AT([...x],e=>tT(e,$_)));let r=[...e].filter(e=>{var t;return!b.has(e.importClause)&&(!(null!=(t=e.importClause)&&t.name)||x.has(e.importClause))&&(!o3(null==(t=e.importClause)?void 0:t.namedBindings,g1)||x.has(e.importClause.namedBindings))&&(!o3(null==(t=e.importClause)?void 0:t.namedBindings,h1)||vT(e.importClause.namedBindings.elements,e=>x.has(e)))});var l,_,u,c=[...c].filter(e=>(206!==e.name.kind||!b.has(e.name))&&(206!==e.name.kind||vT(e.name.elements,e=>x.has(e)))),d=[...e].filter(e=>{var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&-1===r.indexOf(e)&&!(null!=(t=b.get(e.importClause))&&t.namedImports)&&(274===e.importClause.namedBindings.kind||vT(e.importClause.namedBindings.elements,e=>x.has(e)))});for(l of[...r,...c])n.delete(m,l);for(_ of d)n.replaceNode(m,_.importClause,cT.updateImportClause(_.importClause,_.importClause.isTypeOnly,_.importClause.name,void 0));for(u of x){var p=tT(u,uF);p&&-1===r.indexOf(p)&&-1===d.indexOf(p)?273===u.kind?n.delete(m,u.name):(Y4.assert(276===u.kind,"NamespaceImport should have been handled earlier"),null!=(t=b.get(p.importClause))&&t.namedImports?(s=s??new Set).add(u):n.delete(m,u)):208===u.kind?null!=(i=b.get(u.parent))&&i.namedImports?(s=s??new Set).add(u):n.delete(m,u):271===u.kind&&n.delete(m,u)}}b.forEach(({importClauseOrBindingPattern:e,defaultImport:t,namedImports:r})=>{loe(n,m,e,t,ZT(r.entries(),([e,t])=>({addAsTypeOnly:t,name:e})),s,g)});let f;k.forEach(({useRequire:e,defaultImport:t,namedImports:r,namespaceLikeImport:n},i)=>{e=(e?goe:moe)(i.slice(2),a,t,r&&ZT(r.entries(),([e,t])=>({addAsTypeOnly:t,name:e})),n,h,g);f=A(f,e)}),(f=A(f,function(){var e,t;if(S.size)return e=new Set(AT([...S],e=>tT(e,uF))),t=new Set(AT([...S],e=>tT(e,Q_))),[...AT([...S],e=>271===e.kind?i$(e,!0):void 0),...[...e].map(e=>{var t;return S.has(e)?i$(e,!0):i$(cT.updateImportDeclaration(e,e.modifiers,e.importClause&&cT.updateImportClause(e.importClause,e.importClause.isTypeOnly,S.has(e.importClause)?e.importClause.name:void 0,S.has(e.importClause.namedBindings)?e.importClause.namedBindings:null!=(t=o3(e.importClause.namedBindings,h1))&&t.elements.some(e=>S.has(e))?cT.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter(e=>S.has(e))):void 0),e.moduleSpecifier,e.attributes),!0)}),...[...t].map(e=>S.has(e)?i$(e,!0):i$(cT.updateVariableStatement(e,e.modifiers,cT.updateVariableDeclarationList(e.declarationList,AT(e.declarationList.declarations,e=>S.has(e)?e:cT.updateVariableDeclaration(e,206===e.name.kind?cT.updateObjectBindingPattern(e.name,e.name.elements.filter(e=>S.has(e))):e.name,e.exclamationToken,e.type,e.initializer)))),!0))]}()))&&gG(n,m,f,!0,g)},hasFixes:function(){return 0e===r,e=>{if(Xp(e[0].symbol,l(e[0].isFromPackageJson))===t&&e.some(e=>e.moduleSymbol===n||e.symbol.parent===n))return e})}function Kae(e,t,r,n,i,a,o,s,c=H_(a)?$ae(i.getTypeChecker(),a,i.getCompilerOptions()):void 0,l){var _,u=i.getTypeChecker(),c=c?FT(e,c.getImportsForExportInfo):H4,d=void 0!==t&&(_=t,yT(c,({declaration:e,importKind:t})=>{return 0===t&&(e=(t=function(e){var t;switch(e.kind){case 260:return null==(t=o3(e.name,uT))?void 0:t.text;case 271:return e.name.text;case 351:case 272:return null==(t=o3(null==(t=e.importClause)?void 0:t.namedBindings,g1))?void 0:t.name.text;default:return Y4.assertNever(e)}}(e))&&(null==(e=Z8(e))?void 0:e.text))?{kind:0,namespacePrefix:t,usagePosition:_,moduleSpecifierKind:void 0,moduleSpecifier:e}:void 0})),u=function(e,s,c,l){let t;for(var r of e){r=function({declaration:e,importKind:t,symbol:r,targetFlags:n}){if(3!==t&&2!==t&&271!==e.kind){if(260===e.kind)return 0!==t&&1!==t||206!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:t,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};var i=e["importClause"];if(i&&k7(e.moduleSpecifier)){var{name:a,namedBindings:o}=i;if(!i.isTypeOnly||0===t&&o){r=Gae(s,0,r,n,c,l);if(!(1===t&&(a||2===r&&o)||0===t&&274===(null==o?void 0:o.kind)))return{kind:2,importClauseOrBindingPattern:i,importKind:t,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:r}}}}}(r);if(r){var n=DC(r.importClauseOrBindingPattern);if(4!==r.addAsTypeOnly&&n||4===r.addAsTypeOnly&&!n)return r;t=t??r}}return t}(c,r,u,i.getCompilerOptions());return u?{computedWithoutCacheCount:0,fixes:[...d?[d]:H4,u]}:({fixes:u,computedWithoutCacheCount:e=0}=function(e,t,c,r,n,l,_,i,a,o){t=yT(t,e=>{var[{declaration:e,importKind:t,symbol:r,targetFlags:n},i,a,o,s]=[e,l,_,c.getTypeChecker(),c.getCompilerOptions()];if(e=null==(e=Z8(e))?void 0:e.text)return i=a?4:Gae(i,0,r,n,o,s),{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:e,importKind:t,addAsTypeOnly:i,useRequire:a}});return t?{fixes:[t]}:function(e,_,u,r,d,t,n,i,a){let p=Im(_.fileName),f=e.getCompilerOptions(),o=eG(e,n),m=Qae(e,n),s=xD(f),g=rG(s),h=a?e=>yL.tryGetModuleSpecifiersFromCache(e.moduleSymbol,_,o,i):(e,t)=>yL.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,t,f,_,o,i,void 0,!0),y=0,c=FT(t,(i,a)=>{let o=m(i.isFromPackageJson),{computedWithoutCache:e,moduleSpecifiers:t,kind:s}=h(i,o)??{},c=!!(111551&i.targetFlags),l=Gae(r,0,i.symbol,i.targetFlags,o,f);return y+=e?1:0,AT(t,e=>{if(!g||!mO(e)){if(!c&&p&&void 0!==u)return{kind:1,moduleSpecifierKind:s,moduleSpecifier:e,usagePosition:u,exportInfo:i,isReExport:0{e=null==s?void 0:s.get(sj(e));if(!e)return H4;if(C8(a)&&!(111551&r)&&!vT(e,n9))return H4;let i=noe(a,t,o);return e.map(e=>({declaration:e,importKind:i,symbol:n,targetFlags:r}))}}}function Xae(e,t){if(!Im(e.fileName))return!1;if(!e.commonJsModuleIndicator||e.externalModuleIndicator){if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;var r=t.getCompilerOptions();if(r.configFile)return bD(r)<5;if(1!==e.impliedNodeFormat){if(99===e.impliedNodeFormat)return!1;for(var n of t.getSourceFiles())if(n!==e&&C8(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}}}return!0}function Qae(t,r){return wi(e=>(e?r.getPackageJsonAutoImportProvider():t).getTypeChecker())}function Yae(e,t,r,n){r=YH(e.sourceFile,r);let i;if(t===eT._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)i=function({sourceFile:e,program:r,host:n,preferences:i},a){var o=r.getTypeChecker(),s=function(e,t){var r=uT(e)?t.getSymbolAtLocation(e):void 0;if(sD(r))return r;r=e.parent;if(f7(r)&&r.tagName===e||TF(r)){t=t.resolveName(t.getJsxNamespace(r),f7(r)?e:r,111551,!1);if(sD(t))return t}}(a,o);if(s){o=o.getAliasedSymbol(s);let t=s.name;s=[{symbol:s,moduleSymbol:o,moduleFileName:void 0,exportKind:3,targetFlags:o.flags,isFromPackageJson:!1}],o=Xae(e,r);return Kae(s,void 0,!1,o,r,e,n,i).fixes.map(e=>{return{fix:e,symbolName:t,errorIdentifierText:null==(e=o3(a,uT))?void 0:e.text}})}}(e,r);else{if(!uT(r))return;if(t===eT._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code)return t=F(ooe(e.sourceFile,e.program.getTypeChecker(),r,e.program.getCompilerOptions())),(a=aoe(e.sourceFile,r,t,e.program))&&[{fix:a,symbolName:t,errorIdentifierText:r.text}];i=ioe(e,r,n)}var a=K$(e.sourceFile,e.preferences,e.host);return i&&Zae(i,e.sourceFile,e.program,a,e.host,e.preferences)}function Zae(e,r,n,i,t,a){let o=e=>pa(e,t.getCurrentDirectory(),xd(t));return E(e,(e,t)=>Fe(!!e.isJsxNamespaceFix,!!t.isJsxNamespaceFix)||l3(e.fix.kind,t.fix.kind)||toe(e.fix,t.fix,r,n,a,i.allowsImportingSpecifier,o))}function eoe(e,r,n,i,a,o){if(X4(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce((e,t)=>-1===toe(t,e,r,n,o,i.allowsImportingSpecifier,e=>pa(e,a.getCurrentDirectory(),xd(a)))?t:e)}function toe(e,t,r,n,i,a,o){var s;return 0!==e.kind&&0!==t.kind?Fe("node_modules"!==t.moduleSpecifierKind||a(t.moduleSpecifier),"node_modules"!==e.moduleSpecifierKind||a(e.moduleSpecifier))||(a=e,s=t,"non-relative"!==(i=i).importModuleSpecifierPreference&&"project-relative"!==i.importModuleSpecifierPreference?0:Fe("relative"===a.moduleSpecifierKind,"relative"===s.moduleSpecifierKind))||(i=e.moduleSpecifier,a=t.moduleSpecifier,s=r,n=n,f3(i,"node:")&&!f3(a,"node:")?mX(s,n)?-1:1:f3(a,"node:")&&!f3(i,"node:")?mX(s,n)?1:-1:0)||Fe(roe(e,r.path,o),roe(t,r.path,o))||Jm(e.moduleSpecifier,t.moduleSpecifier):0}function roe(e,t,r){var n;return!(!e.isReExport||null==(n=e.exportInfo)||!n.moduleFileName||"index"!==ra(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0))&&f3(t,r(D3(e.exportInfo.moduleFileName)))}function noe(e,t,r,n){if(r.verbatimModuleSyntax&&(1===bD(r)||1===e.impliedNodeFormat))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:var i,a=e,o=r,s=!!n,c=TD(o),l=Im(a.fileName);if(!l&&5<=bD(o))return c?1:2;if(l)return a.externalModuleIndicator||s?c?1:2:3;for(i of a.statements??H4)if(_F(i)&&!W7(i.moduleReference))return 3;return c?1:3;case 3:var _=e,o=r,u=!!n;if(TD(o))return 1;var d=bD(o);switch(d){case 2:case 1:case 3:return Im(_.fileName)?_.externalModuleIndicator||u?2:3:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return 99===_.impliedNodeFormat?2:3;default:return Y4.assertNever(d,"Unexpected moduleKind "+d)}return;default:return Y4.assertNever(t)}}function ioe({sourceFile:i,program:a,cancellationToken:e,host:o,preferences:s},c,l){var t=a.getTypeChecker(),r=a.getCompilerOptions();return FT(ooe(i,t,c,r),n=>{if("default"!==n){let t=XD(c),r=Xae(i,a);return ZT(f(function(s,c,l,_,u,t,e,r,d){var n;let p=n3(),f=K$(u,d,r),m=null==(n=r.getModuleSpecifierCache)?void 0:n.call(r),g=wi(e=>eG(e?r.getPackageJsonAutoImportProvider():t,r));function h(e,t,r,n,i,a){var o=g(a);(t&&DX(i,u,t,d,f,o,m)||!t&&f.allowsImportingAmbientModule(e,o))&&(o=i.getTypeChecker(),p.add(t$(r,o).toString(),{symbol:r,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:n,targetFlags:Xp(r,o).flags,isFromPackageJson:a}))}return EX(t,r,d,e,(e,t,r,n)=>{var i=r.getTypeChecker(),a=(_.throwIfCancellationRequested(),r.getCompilerOptions()),o=AX(e,i),a=(o&&yoe(i.getSymbolFlags(o.symbol),l)&&OX(o.symbol,i,a,c,e=>e===s)&&h(e,t,o.symbol,o.exportKind,r,n),i.tryGetMemberInModuleExportsAndProperties(s,e));a&&yoe(i.getSymbolFlags(a),l)&&h(e,t,a,0,r,n)}),p}(n,g8(c),KW(c),e,i,a,l,o,s).values(),e=>Kae(e,c.getStart(i),t,r,a,i,o,s).fixes),e=>({fix:e,symbolName:n,errorIdentifierText:c.text,isJsxNamespaceFix:n!==c.text}))}})}function aoe(e,t,r,n){n=n.getTypeChecker(),r=n.resolveName(r,t,111551,!0);if(r){t=n.getTypeOnlyAliasDeclaration(r);if(t&&iT(t)===e)return{kind:4,typeOnlyAliasDeclaration:t}}}function ooe(e,t,r,n){var i=r.parent;if((f7(i)||x1(i))&&i.tagName===r&&vX(n.jsx)){i=t.getJsxNamespace(e);if(function(e,t,r){if(sN(t.text))return 1;r=r.resolveName(e,t,111551,!0);return!r||X4(r.declarations,EC)&&!(111551&r.flags)}(i,r,t))return!sN(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,i]:[i]}return[r.text]}function soe(e,t,r,n,i,a,o){let s;e=I.ChangeTracker.with(e,e=>{s=function(e,t,r,n,i,a,o){var s=sG(t,o);switch(n.kind){case 0:return _oe(e,t,n),[eT.Change_0_to_1,r,n.namespacePrefix+"."+r];case 1:return uoe(e,t,n,s),[eT.Change_0_to_1,r,doe(n.moduleSpecifier,s)+r];case 2:var{importClauseOrBindingPattern:c,importKind:l,addAsTypeOnly:_,moduleSpecifier:u}=n,c=(loe(e,t,c,1===l?{name:r,addAsTypeOnly:_}:void 0,0===l?[{name:r,addAsTypeOnly:_}]:H4,void 0,o),oN(u));return i?[eT.Import_0_from_1,r,c]:[eT.Update_import_from_0,c];case 3:var{importKind:l,moduleSpecifier:_,addAsTypeOnly:u,useRequire:c,qualification:d}=n,p=c?goe:moe,f=2===l||3===l?{importKind:l,name:(null==d?void 0:d.namespacePrefix)||r,addAsTypeOnly:u}:void 0;return gG(e,t,p(_,s,1===l?{name:r,addAsTypeOnly:u}:void 0,0===l?[{name:r,addAsTypeOnly:u}]:void 0,f,a.getCompilerOptions(),o),!0,o),d&&_oe(e,t,d),i?[eT.Import_0_from_1,r,_]:[eT.Add_import_from_0,_];case 4:p=n["typeOnlyAliasDeclaration"],f=function(i,a,o,s,c){let l=o.getCompilerOptions(),_=l.verbatimModuleSyntax;switch(a.kind){case 276:if(a.isTypeOnly){if(1o.has(e)))n.replaceNode(i,r,cT.createObjectBindingPattern([...r.elements.filter(e=>!o.has(e)),...e?[cT.createBindingElement(void 0,"default",e.name)]:H4,...a.map(e=>cT.createBindingElement(void 0,void 0,e.name))]));else{e&&g(r,e.name,"default");for(var t of a)g(r,t.name,void 0)}else{let t=r.isTypeOnly&&X4([e,...a],e=>4===(null==e?void 0:e.addAsTypeOnly));var c=r.namedBindings&&(null==(_=o3(r.namedBindings,h1))?void 0:_.elements);if(e&&(Y4.assert(!r.name,"Cannot add a default import to an import clause that already has one"),n.insertNodeAt(i,r.getStart(i),cT.createIdentifier(e.name),{suffix:", "})),a.length){var{specifierComparer:l,isSorted:_}=Gfe.getNamedImportSpecifierComparerWithDetection(r.parent,s,i),e=dn(a.map(e=>cT.createImportSpecifier((!r.isTypeOnly||t)&&foe(e,s),void 0,cT.createIdentifier(e.name))),l);if(o)n.replaceNode(i,r.namedBindings,cT.updateNamedImports(r.namedBindings,dn([...c.filter(e=>!o.has(e)),...e],l)));else if(null!=c&&c.length&&!1!==_){var u,d=t&&c?cT.updateNamedImports(r.namedBindings,ET(c,e=>cT.updateImportSpecifier(e,!0,e.propertyName,e.name))).elements:c;for(u of e){var p=Gfe.getImportSpecifierInsertionIndex(d,u,l);n.insertImportSpecifierAtIndex(i,u,r.namedBindings,p)}}else if(null!=c&&c.length)for(var f of e)n.insertNodeInListAfter(i,GT(c),f,c);else e.length&&(a=cT.createNamedImports(e),r.namedBindings?n.replaceNode(i,r.namedBindings,a):n.insertNodeAfter(i,Y4.checkDefined(r.name,"Import clause must have either named imports or a default import"),a))}if(t&&(n.delete(i,hG(r,i)),c))for(var m of c)n.insertModifierBefore(i,156,m);function g(e,t,r){r=cT.createBindingElement(void 0,r,t);e.elements.length?n.insertNodeInListAfter(i,GT(e.elements),r):n.replaceNode(i,e,cT.createObjectBindingPattern([r]))}}}function _oe(e,t,{namespacePrefix:r,usagePosition:n}){e.insertText(t,n,r+".")}function uoe(e,t,{moduleSpecifier:r,usagePosition:n},i){e.insertText(t,n,doe(r,i))}function doe(e,t){t=cG(t);return`import(${t}${e}${t}).`}function poe({addAsTypeOnly:e}){return 2===e}function foe(e,t){return poe(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function moe(e,r,n,i,t,a,o){var s=iG(e,r);let c;if(void 0!==n||null!=i&&i.length){let t=(!n||poe(n))&&vT(i,poe)||(a.verbatimModuleSyntax||o.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!X4(i,e=>4===e.addAsTypeOnly);c=A(c,nG(n&&cT.createIdentifier(n.name),null==i?void 0:i.map(e=>cT.createImportSpecifier(!t&&foe(e,o),void 0,cT.createIdentifier(e.name))),e,r,t))}return t&&(a=3===t.importKind?cT.createImportEqualsDeclaration(void 0,foe(t,o),cT.createIdentifier(t.name),cT.createExternalModuleReference(s)):cT.createImportDeclaration(void 0,cT.createImportClause(foe(t,o),void 0,cT.createNamespaceImport(cT.createIdentifier(t.name))),s,void 0),c=A(c,a)),Y4.checkDefined(c)}function goe(e,t,r,n,i){e=iG(e,t);let a;return(r||null!=n&&n.length)&&(t=(null==n?void 0:n.map(({name:e})=>cT.createBindingElement(void 0,void 0,e)))||[],r&&t.unshift(cT.createBindingElement(void 0,"default",r.name)),n=hoe(cT.createObjectBindingPattern(t),e),a=A(a,n)),i&&(r=hoe(i.name,e),a=A(a,r)),Y4.checkDefined(a)}function hoe(e,t){return cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration("string"==typeof e?cT.createIdentifier(e):e,void 0,void 0,cT.createCallExpression(cT.createIdentifier("require"),void 0,[t]))],2))}function yoe(e,t){return 7===t||(1&t?111551&e:2&t?788968&e:4&t&&1920&e)}Tne({errorCodes:zae,getCodeActions(n){let{errorCode:e,preferences:i,sourceFile:a,span:t,program:o}=n;var r=Yae(n,e,t.start,!0);if(r)return r.map(({fix:e,symbolName:t,errorIdentifierText:r})=>soe(n,a,t,e,t!==r,o,i))},fixIds:[Jae],getAllCodeActions:t=>{var{sourceFile:e,program:r,preferences:n,host:i,cancellationToken:a}=t;let o=Uae(e,r,!0,n,i,a);return Dne(t,zae,e=>o.addImportFromDiagnostic(e,t)),Cne(I.ChangeTracker.with(t,o.writeFixes))}});var voe="addMissingConstraint",boe=[eT.Type_0_is_not_comparable_to_type_1.code,eT.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,eT.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,eT.Type_0_is_not_assignable_to_type_1.code,eT.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,eT.Property_0_is_incompatible_with_index_signature.code,eT.Property_0_in_type_1_is_not_assignable_to_type_2.code,eT.Type_0_does_not_satisfy_the_constraint_1.code];function xoe(t,r,n){var i=bT(t.getSemanticDiagnostics(r),e=>e.start===n.start&&e.length===n.length);if(void 0!==i&&void 0!==i.relatedInformation){i=bT(i.relatedInformation,e=>e.code===eT.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){let e=p_e(i.file,Qo(i.start,i.length));if(void 0!==e)return uT(e)&&KE(e.parent)&&(e=e.parent),!KE(e)||xP(e.parent)?void 0:(r=YH(r,n.start),{constraint:function(e,t){if(KC(t.parent))return e.getTypeArgumentConstraint(t.parent);var r=nT(t)?e.getContextualType(t):void 0;return r||e.getTypeAtLocation(t)}(t.getTypeChecker(),r)||function(e){var[,e]=lJ(e,"\n",0).match(/`extends (.*)`/)||[];return e}(i.messageText),declaration:e,token:r})}}}function Soe(e,t,r,n,i,a){var o,s,{declaration:a,constraint:c}=a,l=t.getTypeChecker();a3(c)?e.insertText(i,a.name.end," extends "+c):(o=vD(t.getCompilerOptions()),s=Gle({program:t,host:n}),(t=e_e(l,l=qae(i,t,r,n),c,void 0,o,void 0,s))&&(e.replaceNode(i,a,cT.updateTypeParameterDeclaration(a,void 0,a.name,t,a.default)),l.writeFixes(e)))}Tne({errorCodes:boe,getCodeActions(e){let{sourceFile:t,span:r,program:n,preferences:i,host:a}=e,o=xoe(n,t,r);if(void 0!==o)return e=I.ChangeTracker.with(e,e=>Soe(e,n,i,a,t,o)),[xne(voe,e,eT.Add_extends_constraint,voe,eT.Add_extends_constraint_to_all_type_parameters)]},fixIds:[voe],getAllCodeActions:e=>{let{program:n,preferences:i,host:a}=e,o=new Map;return Cne(I.ChangeTracker.with(e,r=>{Dne(e,boe,e=>{var t=xoe(n,e.file,Qo(e.start,e.length));if(t&&sf(o,oj(t.declaration)))return Soe(r,n,i,a,e.file,t)})}))}});var koe="fixOverrideModifier",At="fixAddOverrideModifier",Toe="fixRemoveOverrideModifier",Coe=[eT.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,eT.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,eT.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,eT.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,eT.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,eT.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,eT.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,eT.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,eT.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],woe={[eT.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:eT.Add_override_modifier,fixId:At,fixAllDescriptions:eT.Add_all_missing_override_modifiers},[eT.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:eT.Add_override_modifier,fixId:At,fixAllDescriptions:eT.Add_all_missing_override_modifiers},[eT.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:eT.Remove_override_modifier,fixId:Toe,fixAllDescriptions:eT.Remove_all_unnecessary_override_modifiers},[eT.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:eT.Remove_override_modifier,fixId:Toe,fixAllDescriptions:eT.Remove_override_modifier},[eT.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:eT.Add_override_modifier,fixId:At,fixAllDescriptions:eT.Add_all_missing_override_modifiers},[eT.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:eT.Add_override_modifier,fixId:At,fixAllDescriptions:eT.Add_all_missing_override_modifiers},[eT.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:eT.Add_override_modifier,fixId:At,fixAllDescriptions:eT.Remove_all_unnecessary_override_modifiers},[eT.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:eT.Remove_override_modifier,fixId:Toe,fixAllDescriptions:eT.Remove_all_unnecessary_override_modifiers},[eT.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:eT.Remove_override_modifier,fixId:Toe,fixAllDescriptions:eT.Remove_all_unnecessary_override_modifiers}};function Noe(e,t,r,n){switch(r){case eT.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case eT.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case eT.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case eT.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case eT.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:var i,a,o,s,c=e,l=t.sourceFile,_=n;return _=Eoe(l,_),void(C8(l)?c.addJSDocTags(l,_,[cT.createJSDocOverrideTag(cT.createIdentifier("override"))]):(s=_.modifiers||H4,i=bT(s,D0),a=bT(s,E0),o=bT(s,e=>DK(e.kind)),s=xT(s,$E),s=a?a.end:i?i.end:o?o.end:s?j3(l.text,s.end):_.getStart(l),c.insertModifierAt(l,s,164,o||i||a?{prefix:" "}:{suffix:" "})));case eT.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case eT.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case eT.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case eT.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:_=e,c=t.sourceFile,l=n;return l=Eoe(c,l),void(C8(c)?_.filterJSDocTags(c,l,y3(B1)):(l=bT(l.modifiers,P0),Y4.assertIsDefined(l),_.deleteModifier(c,l)));default:Y4.fail("Unexpected error code: "+r)}}function Doe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return U3(e,e.parent);default:return!1}}function Eoe(e,t){e=tT(YH(e,t),e=>qC(e)?"quit":Doe(e));return Y4.assert(e&&Doe(e)),e}Tne({errorCodes:Coe,getCodeActions:function(t){let{errorCode:r,span:n}=t;var e,i,a,o=woe[r];return o?({descriptions:o,fixId:e,fixAllDescriptions:i}=o,a=I.ChangeTracker.with(t,e=>Noe(e,t,r,n.start)),[Sne(koe,a,o,e,i)]):H4},fixIds:[koe,At,Toe],getAllCodeActions:i=>Nne(i,Coe,(e,t)=>{var{code:t,start:r}=t,n=woe[t];n&&n.fixId===i.fixId&&Noe(e,i,t,r)})});var Poe="fixNoPropertyAccessFromIndexSignature",Foe=[eT.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function Aoe(e,t,r,n){n=sG(t,n),n=cT.createStringLiteral(r.name.text,0===n);e.replaceNode(t,r,Vs(r)?cT.createElementAccessChain(r.expression,r.questionDotToken,n):cT.createElementAccessExpression(r.expression,n))}function Ioe(e,t){return s3(YH(e,t).parent,dT)}Tne({errorCodes:Foe,fixIds:[Poe],getCodeActions(t){let{sourceFile:e,span:r,preferences:n}=t,i=Ioe(e,r.start);var a=I.ChangeTracker.with(t,e=>Aoe(e,t.sourceFile,i,n));return[xne(Poe,a,[eT.Use_element_access_for_0,i.name.text],Poe,eT.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:r=>Nne(r,Foe,(e,t)=>Aoe(e,t.file,Ioe(t.file,t.start),r.preferences))});var Ooe="fixImplicitThis",Loe=[eT.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function joe(e,t,r,n){var i,a,o,r=YH(t,r);return!SH(r)||!rF(r=t8(r,!1,!1))&&!OP(r)||LF(t8(r,!1,!1))?void 0:(i=Y4.checkDefined(MH(r,100,t)),a=r["name"],o=Y4.checkDefined(r.body),OP(r)?a&&ope.Core.isSymbolReferencedInFile(a,n,t,o)?void 0:(e.delete(t,i),a&&e.delete(t,a),e.insertText(t,o.pos," =>"),[eT.Convert_function_expression_0_to_arrow_function,a?a.text:D$]):(e.replaceNode(t,i,cT.createToken(87)),e.insertText(t,a.end," = "),e.insertText(t,o.pos," =>"),[eT.Convert_function_declaration_0_to_arrow_function,a.text]))}Tne({errorCodes:Loe,getCodeActions:function(e){let{sourceFile:t,program:r,span:n}=e,i;e=I.ChangeTracker.with(e,e=>{i=joe(e,t,n.start,r.getTypeChecker())});return i?[xne(Ooe,e,i,Ooe,eT.Fix_all_implicit_this_errors)]:H4},fixIds:[Ooe],getAllCodeActions:r=>Nne(r,Loe,(e,t)=>{joe(e,t.file,t.start,r.program.getTypeChecker())})});var Roe="fixImportNonExportedMember",Moe=[eT.Module_0_declares_1_locally_but_it_is_not_exported.code];function Boe(e,t,r){var n,t=YH(e,t);return!uT(t)||void 0===(n=tT(t,uF))||void 0===(n=qE(n.moduleSpecifier)?n.moduleSpecifier:void 0)||void 0===(e=null==(e=r.getResolvedModuleFromModuleSpecifier(n,e))?void 0:e.resolvedModule)||void 0===(e=r.getSourceFile(e.resolvedFileName))||bX(r,e)||void 0===(r=null==(r=o3(e.symbol.valueDeclaration,_7))?void 0:r.locals)||void 0===(r=r.get(t.escapedText))||void 0===(r=function(e){if(void 0===e.valueDeclaration)return UT(e.declarations);var e=e.valueDeclaration,t=eF(e)?o3(e.parent.parent,GP):void 0;return t&&1===K4(t.declarationList.declarations)?t:e}(r))?void 0:{exportName:{node:t,isTypeOnly:_E(r)},node:r,moduleSourceFile:e,moduleSpecifier:n.text}}function Joe(e,t,r,n,i){K4(n)&&(i?qoe(e,t,r,i,n):Uoe(e,t,r,n))}function zoe(e,t){return xT(e.statements,e=>hF(e)&&(t&&e.isTypeOnly||!e.isTypeOnly))}function qoe(e,t,r,n,i){var a=n.exportClause&&yF(n.exportClause)?n.exportClause.elements:cT.createNodeArray([]),t=!(n.isTypeOnly||!SD(t.getCompilerOptions())&&!bT(a,e=>e.isTypeOnly));e.replaceNode(r,n,cT.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,cT.createNamedExports(cT.createNodeArray([...a,...Voe(i,t)],a.hasTrailingComma)),n.moduleSpecifier,n.attributes))}function Uoe(e,t,r,n){e.insertNodeAtEndOfScope(r,r,cT.createExportDeclaration(void 0,!1,cT.createNamedExports(Voe(n,SD(t.getCompilerOptions()))),void 0,void 0))}function Voe(e,t){return cT.createNodeArray($4(e,e=>cT.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node)))}Tne({errorCodes:Moe,fixIds:[Roe],getCodeActions(e){let{sourceFile:t,span:r,program:o}=e,s=Boe(t,r.start,o);if(void 0!==s)return e=I.ChangeTracker.with(e,e=>{var t,r,n,i,a;[e,t,{exportName:r,node:n,moduleSourceFile:i}]=[e,o,s],(a=zoe(i,r.isTypeOnly))?qoe(e,t,i,a,[r]):uE(n)?e.insertExportModifier(i,n):Uoe(e,t,i,[r])}),[xne(Roe,e,[eT.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],Roe,eT.Export_all_referenced_locals)]},getAllCodeActions(e){let a=e["program"];return Cne(I.ChangeTracker.with(e,n=>{let i=new Map;Dne(e,Moe,e=>{var t,r,e=Boe(e.file,e.start,a);void 0!==e&&({exportName:e,node:r,moduleSourceFile:t}=e,void 0===zoe(t,e.isTypeOnly)&&uE(r)?n.insertExportModifier(t,r):(r=i.get(t)||{typeOnlyExports:[],exports:[]},(e.isTypeOnly?r.typeOnlyExports:r.exports).push(e),i.set(t,r)))}),i.forEach((e,t)=>{var r=zoe(t,!0);r&&r.isTypeOnly?(Joe(n,a,t,e.typeOnlyExports,r),Joe(n,a,t,e.exports,zoe(t,!1))):Joe(n,a,t,[...e.exports,...e.typeOnlyExports],r)})}))}});var Woe="fixIncorrectNamedTupleSyntax",Hoe=(Tne({errorCodes:[eT.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,eT.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){let{sourceFile:t,span:r}=e,s=function(e,t){e=YH(e,t);return tT(e,e=>202===e.kind)}(t,r.start);e=I.ChangeTracker.with(e,n=>{var i=t,a=s;if(a){let e=a.type,t=!1,r=!1;for(;190===e.kind||191===e.kind||196===e.kind;)190===e.kind?t=!0:191===e.kind&&(r=!0),e=e.type;var o=cT.updateNamedTupleMember(a,a.dotDotDotToken||(r?cT.createToken(26):void 0),a.name,a.questionToken||(t?cT.createToken(58):void 0),e);o!==a&&n.replaceNode(i,a,o)}});return[xne(Woe,e,eT.Move_labeled_tuple_element_modifiers_to_labels,Woe,eT.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Woe]}),"fixSpelling"),Koe=[eT.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,eT.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,eT.Cannot_find_name_0_Did_you_mean_1.code,eT.Could_not_find_name_0_Did_you_mean_1.code,eT.Cannot_find_namespace_0_Did_you_mean_1.code,eT.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,eT.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,eT._0_has_no_exported_member_named_1_Did_you_mean_2.code,eT.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,eT.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,eT.No_overload_matches_this_call.code,eT.Type_0_is_not_assignable_to_type_1.code];function Goe(e,r,n,i){var r=YH(e,r),a=r.parent;if(i!==eT.No_overload_matches_this_call.code&&i!==eT.Type_0_is_not_assignable_to_type_1.code||CF(a)){var o,i=n.program.getTypeChecker();let t;if(dT(a)&&a.name===r){Y4.assert(Us(r),"Expected an identifier for spelling (property access)");let e=i.getTypeAtLocation(a.expression);64&a.flags&&(e=i.getNonNullableType(e)),t=i.getSuggestedSymbolForNonexistentProperty(r,e)}else pT(a)&&103===a.operatorToken.kind&&a.left===r&&UE(r)?(o=i.getTypeAtLocation(a.right),t=i.getSuggestedSymbolForNonexistentProperty(r,o)):WE(a)&&a.right===r?(o=i.getSymbolAtLocation(a.left))&&1536&o.flags&&(t=i.getSuggestedSymbolForNonexistentModule(a.right,o)):mF(a)&&a.name===r?(Y4.assertNode(r,uT,"Expected an identifier for spelling (import)"),(o=function(e,t,r){if(t&&k7(t.moduleSpecifier)){r=null==(t=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,r))?void 0:t.resolvedModule;if(r)return e.program.getSourceFile(r.resolvedFileName)}}(n,tT(r,uF),e))&&o.symbol&&(t=i.getSuggestedSymbolForNonexistentModule(r,o.symbol))):CF(a)&&a.name===r?(Y4.assertNode(r,uT,"Expected an identifier for JSX attribute"),n=tT(r,f7),e=i.getContextualTypeForArgumentAtIndex(n,0),t=i.getSuggestedSymbolForNonexistentJSXAttribute(r,e)):NN(a)&&zC(a)&&a.name===r?(e=(n=(o=tT(r,qC))?Lw(o):void 0)?i.getTypeAtLocation(n):void 0)&&(t=i.getSuggestedSymbolForNonexistentClassMember(K7(r),e)):(a=KW(r),o=K7(r),Y4.assert(void 0!==o,"name should be defined"),t=i.getSuggestedSymbolForNonexistentSymbol(r,o,function(e){let t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(a)));return void 0===t?void 0:{node:r,suggestedSymbol:t}}}function $oe(e,t,r,n,i){var a=Y3(n);R3(a,i)||!dT(r.parent)||(i=n.valueDeclaration)&&eC(i)&&UE(i.name)?e.replaceNode(t,r,cT.createIdentifier(a)):e.replaceNode(t,r.parent,cT.createElementAccessExpression(r.parent.expression,cT.createStringLiteral(a)))}Tne({errorCodes:Koe,getCodeActions(e){let{sourceFile:i,errorCode:t}=e;var a=Goe(i,e.span.start,e,t);if(a){let{node:t,suggestedSymbol:r}=a,n=vD(e.host.getCompilationSettings());return[xne("spelling",I.ChangeTracker.with(e,e=>$oe(e,i,t,r,n)),[eT.Change_spelling_to_0,Y3(r)],Hoe,eT.Fix_all_detected_spelling_errors)]}},fixIds:[Hoe],getAllCodeActions:n=>Nne(n,Koe,(e,t)=>{var t=Goe(t.file,t.start,n,t.code),r=vD(n.host.getCompilationSettings());t&&$oe(e,n.sourceFile,t.node,t.suggestedSymbol,r)})});var Xoe="returnValueCorrect",Qoe="fixAddReturnStatement",Yoe="fixRemoveBracesFromArrowFunctionBody",Zoe="fixWrapTheBlockWithParen",ese=[eT.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,eT.Type_0_is_not_assignable_to_type_1.code,eT.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function tse(e,t,r){t=e.createSymbol(4,t.escapedText),t.links.type=e.getTypeAtLocation(r),r=I7([t]);return e.createAnonymousType(void 0,r,[],[],[])}function rse(e,t,r,n){if(t.body&&KP(t.body)&&1===K4(t.body.statements)){var i=WT(t.body.statements);if($P(i)&&nse(e,t,e.getTypeAtLocation(i.expression),r,n))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(s1(i)&&$P(i.statement)){var a=cT.createObjectLiteralExpression([cT.createPropertyAssignment(i.label,i.statement.expression)]);if(nse(e,t,tse(e,i.label,i.statement.expression),r,n))return LP(t)?{declaration:t,kind:1,expression:a,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:a,statement:i,commentSource:i.statement.expression}}else if(KP(i)&&1===K4(i.statements)){a=WT(i.statements);if(s1(a)&&$P(a.statement)){var o=cT.createObjectLiteralExpression([cT.createPropertyAssignment(a.label,a.statement.expression)]);if(nse(e,t,tse(e,a.label,a.statement.expression),r,n))return{declaration:t,kind:0,expression:o,statement:i,commentSource:a}}}}}function nse(e,t,r,n,i){return i&&(r=(i=e.getSignatureFromDeclaration(t))?(TN(t,1024)&&(r=e.createPromiseType(r)),t=e.createSignature(t,i.typeParameters,i.thisParameter,i.parameters,r,void 0,i.minArgumentCount,i.flags),e.createAnonymousType(void 0,I7(),[t],[],[])):e.getAnyType()),e.isTypeAssignableTo(r,n)}function ise(e,t,r,n){var i=YH(t,r);if(i.parent){var a,o=tT(i.parent,MC);switch(n){case eT.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return o&&o.body&&o.type&&CH(o.type,i)?rse(e,o,e.getTypeFromTypeNode(o.type),!1):void 0;case eT.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:return o&&PP(o.parent)&&o.body?-1!==(a=o.parent.arguments.indexOf(o))&&(a=e.getContextualTypeForArgumentAtIndex(o.parent,a))?rse(e,o,a,!0):void 0:void 0;case eT.Type_0_is_not_assignable_to_type_1.code:return Dw(i)&&(B5(i.parent)||CF(i.parent))?(a=function(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(T1(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}(i.parent))&&MC(a)&&a.body?rse(e,a,e.getTypeAtLocation(i.parent),!0):void 0:void 0}}}function ase(e,t,r,n){l$(r);var i=j$(t);e.replaceNode(t,n,cT.createReturnStatement(r),{leadingTriviaOption:I.LeadingTriviaOption.Exclude,trailingTriviaOption:I.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function ose(e,t,r,n,i,a){a=a||x$(n)?cT.createParenthesizedExpression(n):n;l$(i),d$(i,a),e.replaceNode(t,r.body,a)}function sse(e,t,r,n){e.replaceNode(t,r.body,cT.createParenthesizedExpression(n))}Tne({errorCodes:ese,fixIds:[Qoe,Yoe,Zoe],getCodeActions:function(e){var t,r,n,i,a,o,s,c,l,_,{program:u,sourceFile:d,span:{start:p},errorCode:f}=e,u=ise(u.getTypeChecker(),d,p,f);if(u)return 0===u.kind?Q4([(c=e,l=u.expression,_=u.statement,d=I.ChangeTracker.with(c,e=>ase(e,c.sourceFile,l,_)),xne(Xoe,d,eT.Add_a_return_statement,Qoe,eT.Add_all_missing_return_statement))],LP(u.declaration)?(i=e,a=u.declaration,o=u.expression,s=u.commentSource,p=I.ChangeTracker.with(i,e=>ose(e,i.sourceFile,a,o,s,!1)),xne(Xoe,p,eT.Remove_braces_from_arrow_function_body,Yoe,eT.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)):void 0):[(t=e,r=u.declaration,n=u.expression,f=I.ChangeTracker.with(t,e=>sse(e,t.sourceFile,r,n)),xne(Xoe,f,eT.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Zoe,eT.Wrap_all_object_literal_with_parentheses))]},getAllCodeActions:n=>Nne(n,ese,(e,t)=>{var r=ise(n.program.getTypeChecker(),t.file,t.start,t.code);if(r)switch(n.fixId){case Qoe:ase(e,t.file,r.expression,r.statement);break;case Yoe:LP(r.declaration)&&ose(e,t.file,r.declaration,r.expression,r.commentSource,!1);break;case Zoe:LP(r.declaration)&&sse(e,t.file,r.declaration,r.expression);break;default:Y4.fail(JSON.stringify(n.fixId))}})});var cse="fixMissingMember",lse="fixMissingProperties",_se="fixMissingAttributes",use="fixMissingFunctionDeclaration",dse=[eT.Property_0_does_not_exist_on_type_1.code,eT.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,eT.Property_0_is_missing_in_type_1_but_required_in_type_2.code,eT.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,eT.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,eT.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,eT.Cannot_find_name_0.code];function pse(e,t,r,n,i){t=YH(e,t);let a=t.parent;if(r===eT.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code)return 19===t.kind&&DP(a)&&PP(a.parent)&&!((r=ST(a.parent.arguments,e=>e===a))<0)&&(o=n.getResolvedSignature(a.parent))&&o.declaration&&o.parameters[r]&&(s=o.parameters[r].valueDeclaration)&&GE(s)&&uT(s.name)&&K4(o=ZT(n.getUnmatchedProperties(n.getTypeAtLocation(a),n.getParameterType(o,r),!1,!1)))?{kind:3,token:s.name,identifier:s.name.text,properties:o,parentDeclaration:a}:void 0;if(19===t.kind&&DP(a))return r=n.getContextualType(a)||n.getTypeAtLocation(a),K4(s=ZT(n.getUnmatchedProperties(n.getTypeAtLocation(a),r,!1,!1)))?{kind:3,token:a,identifier:"",properties:s,parentDeclaration:a}:void 0;if(Us(t)){if(uT(t)&&b7(a)&&a.initializer&&DP(a.initializer))return o=n.getContextualType(t)||n.getTypeAtLocation(t),K4(r=ZT(n.getUnmatchedProperties(n.getTypeAtLocation(a.initializer),o,!1,!1)))?{kind:3,token:t,identifier:t.text,properties:r,parentDeclaration:a.initializer}:void 0;if(uT(t)&&f7(t.parent))return s=function(e,t,r){var n=e.getContextualType(r.attributes);if(void 0===n)return H4;n=n.getProperties();if(!K4(n))return H4;let i=new Set;for(var a of r.attributes.properties){var o;if(CF(a)&&i.add(bE(a.name)),NF(a))for(o of e.getTypeAtLocation(a.expression).getProperties())i.add(o.escapedName)}return NT(n,e=>R3(e.name,t,1)&&!(16777216&e.flags||48&tD(e)||i.has(e.escapedName)))}(n,vD(i.getCompilerOptions()),t.parent),K4(s)?{kind:4,token:t,attributes:s,parentDeclaration:t.parent}:void 0;if(uT(t)){r=null==(o=n.getContextualType(t))?void 0:o.getNonNullableType();if(r&&16&sT(r))return void 0===(s=UT(n.getSignaturesOfType(r,0)))?void 0:{kind:5,token:t,signature:s,sourceFile:e,parentDeclaration:wse(t)};if(PP(a)&&a.expression===t)return{kind:2,token:t,call:a,sourceFile:e,modifierFlags:0,parentDeclaration:wse(t)}}if(dT(a)){var o=$K(n.getTypeAtLocation(a.expression)),r=o.symbol;if(r&&r.declarations){if(uT(t)&&PP(a.parent)){var s=bT(r.declarations,sF),c=null==s?void 0:s.getSourceFile();if(s&&c&&!bX(i,c))return{kind:2,token:t,call:a.parent,sourceFile:e,modifierFlags:32,parentDeclaration:s};c=bT(r.declarations,LF);if(e.commonJsModuleIndicator)return;if(c&&!bX(i,c))return{kind:2,token:t,call:a.parent,sourceFile:c,modifierFlags:32,parentDeclaration:c}}var s=bT(r.declarations,qC);if(s||!UE(t))return(e=s||bT(r.declarations,e=>iF(e)||uP(e)))&&!bX(i,e.getSourceFile())?(c=!uP(e)&&(o.target||o)!==n.getDeclaredTypeOfSymbol(r))&&(UE(t)||iF(e))?void 0:(s=e.getSourceFile(),n=uP(e)?0:(c?256:0)|(uX(t.text)?2:0),c=C8(s),{kind:0,token:t,call:o3(a.parent,PP),modifierFlags:n,parentDeclaration:e,declSourceFile:s,isJSFile:c}):!(n=bT(r.declarations,oF))||1056&o.flags||UE(t)||bX(i,n.getSourceFile())?void 0:{kind:1,token:t,parentDeclaration:n}}}}}function fse(e,t,r,n,i){var a=n.text;i?231!==r.kind&&(i=r.name.getText(),i=mse(cT.createIdentifier(i),a),e.insertNodeAfter(t,r,i)):UE(n)?(i=cT.createPropertyDeclaration(void 0,a,void 0,void 0,void 0),(n=yse(r))?e.insertNodeAfter(t,n,i):e.insertMemberAtStart(t,r,i)):(n=_N(r))&&(i=mse(cT.createThis(),a),e.insertNodeAtConstructorEnd(t,n,i))}function mse(e,t){return cT.createExpressionStatement(cT.createAssignment(cT.createPropertyAccessExpression(e,t),Cse()))}function gse(e,t,r){let n;var i;return(n=226===r.parent.parent.kind?(i=r.parent.parent,i=r.parent===i.left?i.right:i.left,i=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(i))),e.typeToTypeNode(i,t,1)):(i=e.getContextualType(r.parent))?e.typeToTypeNode(i,void 0,1):void 0)||cT.createKeywordTypeNode(133)}function hse(e,t,r,n,i,a){a=a?cT.createNodeArray(cT.createModifiersFromModifierFlags(a)):void 0,a=qC(r)?cT.createPropertyDeclaration(a,n,void 0,i,void 0):cT.createPropertySignature(void 0,n,void 0,i),n=yse(r);n?e.insertNodeAfter(t,n,a):e.insertMemberAtStart(t,r,a)}function yse(e){let t;for(var r of e.members){if(!QE(r))break;t=r}return t}function vse(e,t,r,n,i,a,o){var s=qae(o,e.program,e.preferences,e.host),e=Yle(qC(a)?174:173,e,s,r,n,i,a),r=(n=r,!uP(i=a)&&(n=tT(n,e=>ZE(e)||tP(e)))&&n.parent===i?n:void 0);r?t.insertNodeAfter(o,r,e):t.insertMemberAtStart(o,a,e),s.writeFixes(t)}function bse(e,t,{token:r,parentDeclaration:n}){var i=X4(n.members,e=>{e=t.getTypeAtLocation(e);return!!(e&&402653316&e.flags)}),a=n.getSourceFile(),i=cT.createEnumMember(r,i?cT.createStringLiteral(r.text):void 0),r=KT(n.members);r?e.insertNodeInListAfter(a,r,i,n.members):e.insertMemberAtStart(a,n,i)}function xse(e,t,r){var n=sG(t.sourceFile,t.preferences),i=qae(t.sourceFile,t.program,t.preferences,t.host),t=2===r.kind?Yle(262,t,i,r.call,rT(r.token),r.modifierFlags,r.parentDeclaration):Qle(262,t,n,r.signature,a_e(eT.Function_not_implemented.message,n),r.token,void 0,void 0,void 0,i);void 0===t&&Y4.fail("fixMissingFunctionDeclaration codefix got unexpected error."),i1(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,t,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,t),i.writeFixes(e)}function Sse(e,r,n){let i=qae(r.sourceFile,r.program,r.preferences,r.host),a=sG(r.sourceFile,r.preferences),o=r.program.getTypeChecker();var t=n.parentDeclaration.attributes,s=X4(t.properties,NF),c=$4(n.attributes,e=>{var t=Tse(r,o,i,a,o.getTypeOfSymbol(e),n.parentDeclaration),e=cT.createIdentifier(e.name),t=cT.createJsxAttribute(e,cT.createJsxExpression(void 0,t));return tE(e,t),t}),s=cT.createJsxAttributes(s?[...c,...t.properties]:[...t.properties,...c]),c={prefix:t.pos===t.end?" ":void 0};e.replaceNode(r.sourceFile,t,s,c),i.writeFixes(e)}function kse(e,r,n){let i=qae(r.sourceFile,r.program,r.preferences,r.host),a=sG(r.sourceFile,r.preferences),o=vD(r.program.getCompilerOptions()),s=r.program.getTypeChecker();var t=$4(n.properties,e=>{var t=Tse(r,s,i,a,s.getTypeOfSymbol(e),n.parentDeclaration);return cT.createPropertyAssignment(function(e,t,r,n){if(O7(e)){n=n.symbolToNode(e,111551,void 0,1073741824);if(n&&HE(n))return n}return cE(e.name,t,0===r,!1,!1)}(e,o,a,s),t)}),c={leadingTriviaOption:I.LeadingTriviaOption.Exclude,trailingTriviaOption:I.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(r.sourceFile,n.parentDeclaration,cT.createObjectLiteralExpression([...n.parentDeclaration.properties,...t],!0),c),i.writeFixes(e)}function Tse(r,n,i,a,e,o){var t,s;return 3&e.flags?Cse():134217732&e.flags?cT.createStringLiteral("",0===a):8&e.flags?cT.createNumericLiteral(0):64&e.flags?cT.createBigIntLiteral("0n"):16&e.flags?cT.createFalse():1056&e.flags?(s=e.symbol.exports?VT(e.symbol.exports.values()):e.symbol,t=n.symbolToExpression(e.symbol.parent||e.symbol,111551,void 0,64),void 0===s||void 0===t?cT.createNumericLiteral(0):cT.createPropertyAccessExpression(t,n.symbolToString(s))):256&e.flags?cT.createNumericLiteral(e.value):2048&e.flags?cT.createBigIntLiteral(e.value):128&e.flags?cT.createStringLiteral(e.value,0===a):512&e.flags?e===n.getFalseType()||e===n.getFalseType(!0)?cT.createFalse():cT.createTrue():65536&e.flags?cT.createNull():1048576&e.flags?yT(e.types,e=>Tse(r,n,i,a,e,o))??Cse():n.isArrayLikeType(e)?cT.createArrayLiteralExpression():524288&(t=e).flags&&(128&sT(t)||t.symbol&&o3(xi(t.symbol.declarations),uP))?(s=$4(n.getPropertiesOfType(e),e=>{var t=Tse(r,n,i,a,n.getTypeOfSymbol(e),o);return cT.createPropertyAssignment(e.name,t)}),cT.createObjectLiteralExpression(s,!0)):16&sT(e)?void 0===bT(e.symbol.declarations||H4,h3(cP,YE,ZE))||void 0===(s=n.getSignaturesOfType(e,0))?Cse():Qle(218,r,a,s[0],a_e(eT.Function_not_implemented.message,a),void 0,void 0,void 0,o,i)??Cse():!(1&sT(e))||void 0===(s=oD(e.symbol))||DN(s)||(s=_N(s))&&K4(s.parameters)?Cse():cT.createNewExpression(cT.createIdentifier(e.symbol.name),void 0,void 0)}function Cse(){return cT.createIdentifier("undefined")}function wse(e){if(tT(e,T1)){var t=tT(e.parent,i1);if(t)return t}return iT(e)}Tne({errorCodes:dse,getCodeActions(t){var e,r=t.program.getTypeChecker();let n=pse(t.sourceFile,t.span.start,t.errorCode,r,t.program);if(n)return 3===n.kind?(r=I.ChangeTracker.with(t,e=>kse(e,t,n)),[xne(lse,r,eT.Add_missing_properties,lse,eT.Add_all_missing_properties)]):4===n.kind?(r=I.ChangeTracker.with(t,e=>Sse(e,t,n)),[xne(_se,r,eT.Add_missing_attributes,_se,eT.Add_all_missing_attributes)]):2===n.kind||5===n.kind?(r=I.ChangeTracker.with(t,e=>xse(e,t,n)),[xne(use,r,[eT.Add_missing_function_declaration_0,n.token.text],use,eT.Add_all_missing_function_declarations)]):1===n.kind?(r=I.ChangeTracker.with(t,e=>bse(e,t.program.getTypeChecker(),n)),[xne(cse,r,[eT.Add_missing_enum_member_0,n.token.text],cse,eT.Add_all_missing_members)]):LT(function(r,e){let{parentDeclaration:n,declSourceFile:i,modifierFlags:t,token:a,call:o}=e;var s,c;if(void 0!==o)return e=a.text,c=[xne(cse,(s=t=>I.ChangeTracker.with(r,e=>vse(r,e,o,a,t,n,i)))(256&t),[256&t?eT.Declare_static_method_0:eT.Declare_method_0,e],cse,eT.Add_all_missing_members)],2&t&&c.unshift(bne(cse,s(2),[eT.Declare_private_method_0,e])),c}(t,n),(r=t,(e=n).isJSFile?v3(function(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:n,token:i}){if(!iF(t)&&!uP(t)){var a,e=I.ChangeTracker.with(e,e=>fse(e,r,t,i,!!(256&n)));if(0!==e.length)return a=256&n?eT.Initialize_static_property_0:UE(i)?eT.Declare_a_private_field_named_0:eT.Initialize_property_0_in_the_constructor,xne(cse,e,[a,i.text],cse,eT.Add_all_missing_members)}}(r,e)):function(e,{parentDeclaration:r,declSourceFile:n,modifierFlags:t,token:i}){let a=i.text,o=256&t,s=gse(e.program.getTypeChecker(),r,i),c=t=>I.ChangeTracker.with(e,e=>hse(e,n,r,a,s,t)),l=[xne(cse,c(256&t),[o?eT.Declare_static_property_0:eT.Declare_property_0,a],cse,eT.Add_all_missing_members)];return o||UE(i)||(2&t&&l.unshift(bne(cse,c(2),[eT.Declare_private_property_0,a])),l.push(function(e,t,r,n,i){let a=cT.createKeywordTypeNode(154),o=cT.createParameterDeclaration(void 0,void 0,"x",void 0,a,void 0),s=cT.createIndexSignature(void 0,[o],i),c=I.ChangeTracker.with(e,e=>e.insertMemberAtStart(t,r,s));return bne(cse,c,[eT.Add_index_signature_for_property_0,n])}(e,n,r,i.text,s))),l}(r,e)))},fixIds:[cse,use,lse,_se],getAllCodeActions:_=>{let{program:e,fixId:t}=_,u=e.getTypeChecker(),i=new Map,d=new Map;return Cne(I.ChangeTracker.with(_,l=>{Dne(_,dse,r=>{r=pse(r.file,r.start,r.code,u,_.program);if(r&&sf(i,oj(r.parentDeclaration)+"#"+(3===r.kind?r.identifier:r.token.text)))if(t!==use||2!==r.kind&&5!==r.kind){if(t===lse&&3===r.kind)kse(l,_,r);else if(t===_se&&4===r.kind)Sse(l,_,r);else if(1===r.kind&&bse(l,u,r),0===r.kind){let{parentDeclaration:e,token:t}=r;var n=IT(d,e,()=>[]);n.some(e=>e.token.text===t.text)||n.push(r)}}else xse(l,_,r)}),d.forEach((e,t)=>{var r,n,i,a,o,s,c=uP(t)?void 0:b_e(t,u);for(let t of e)null!=c&&c.some(e=>{e=d.get(e);return!!e&&e.some(({token:e})=>e.text===t.token.text)})||({parentDeclaration:r,declSourceFile:n,modifierFlags:i,token:a,call:s,isJSFile:o}=t,s&&!UE(a)?vse(_,l,s,a,256&i,r,n):!o||iF(r)||uP(r)?(s=gse(u,r,a),hse(l,n,r,a.text,s,256&i)):fse(l,n,r,a,!!(256&i)))})}))}});var Nse="addMissingNewOperator",Dse=[eT.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function Ese(e,t,r){var r=s3(function(e,t){let r=YH(e,t.start),n=J3(t);for(;r.endEse(e,t,r));return[xne(Nse,e,eT.Add_missing_new_operator_to_call,Nse,eT.Add_missing_new_operator_to_all_calls)]},fixIds:[Nse],getAllCodeActions:r=>Nne(r,Dse,(e,t)=>Ese(e,r.sourceFile,t))});var Pse="addMissingParam",Fse="addOptionalParam",Ase=[eT.Expected_0_arguments_but_got_1.code];function Ise(e,t,r){var n=tT(YH(e,r),PP);if(void 0!==n&&0!==K4(n.arguments)){var i=t.getTypeChecker(),e=NT(i.getTypeAtLocation(n.expression).symbol.declarations,Lse);if(void 0!==e){var a=KT(e);if(void 0!==a&&void 0!==a.body&&!bX(t,a.getSourceFile())){r=function(e){var t=tC(e);if(t)return t;if(eF(e.parent)&&uT(e.parent.name)||QE(e.parent)||GE(e.parent))return e.parent.name}(a);if(void 0!==r){var o=[],s=[],c=K4(a.parameters),l=K4(n.arguments);if(!(lK4(e.parameters))return[];return r}(a,e)];for(let e=0,t=0,r=0;et{let n=iT(r);var e=qae(n,t,a,o);K4(r.parameters)?i.replaceNodeRangeWithNodes(n,WT(r.parameters),GT(r.parameters),jse(e,c,r,s),{joiner:", ",indentation:0,leadingTriviaOption:I.LeadingTriviaOption.IncludeAll,trailingTriviaOption:I.TrailingTriviaOption.Include}):G4(jse(e,c,r,s),(e,t)=>{0===K4(r.parameters)&&0===t?i.insertNodeAt(n,r.parameters.end,e):i.insertNodeAtEndOfList(n,r.parameters,e)}),e.writeFixes(i)})}function Lse(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function jse(e,t,r,n){var i,a,o=$4(r.parameters,e=>cT.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer));for({pos:i,declaration:a}of n){var s=0Ose(e,i.program,i.preferences,i.host,t,r)),[1Ose(e,i.program,i.preferences,i.host,t,n)),[1Nne(i,Ase,(e,t)=>{var r,n,t=Ise(i.sourceFile,i.program,t.start);t&&({declarations:t,newParameters:r,newOptionalParameters:n}=t,i.fixId===Pse&&Ose(e,i.program,i.preferences,i.host,t,r),i.fixId===Fse)&&Ose(e,i.program,i.preferences,i.host,t,n)})});var Mse="installTypesPackage",Bse=eT.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Jse=[Bse,eT.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function zse(e,t){return{type:"install package",file:e,packageName:t}}function qse(e,t){e=o3(YH(e,t),qE);if(e)return t=IO(e.text)["packageName"],B3(t)?void 0:t}function Use(e,t,r){return r===Bse?QV.nodeCoreModules.has(e)?"@types/node":void 0:null!=(r=t.isKnownTypesPackageName)&&r.call(t,e)?KO(e):void 0}Tne({errorCodes:Jse,getCodeActions:function(e){var{host:t,sourceFile:r,span:{start:n}}=e,n=qse(r,n);if(void 0!==n)return void 0===(n=Use(n,t,e.errorCode))?[]:[xne("fixCannotFindModule",[],[eT.Install_0,n],Mse,eT.Install_all_missing_types_packages,zse(r.fileName,n))]},fixIds:[Mse],getAllCodeActions:i=>Nne(i,Jse,(e,t,r)=>{var n=qse(t.file,t.start);void 0!==n&&(i.fixId===Mse?(n=Use(n,i.host,t.code))&&r.push(zse(t.file.fileName,n)):Y4.fail("Bad fixId: "+i.fixId))})});var Vse=[eT.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,eT.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,eT.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,eT.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,eT.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,eT.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Wse="fixClassDoesntImplementInheritedAbstractMember";function Hse(e,t){return s3(YH(e,t).parent,qC)}function Kse(t,r,e,n,i){var a=Lw(t),o=e.program.getTypeChecker(),a=o.getTypeAtLocation(a),o=o.getPropertiesOfType(a).filter(Gse),a=qae(r,e.program,i,e.host);Kle(t,o,r,e,i,a,e=>n.insertMemberAtStart(r,t,e)),a.writeFixes(n)}function Gse(e){e=ep(WT(e.getDeclarations()));return!(2&e||!(64&e))}Tne({errorCodes:Vse,getCodeActions:function(t){let{sourceFile:r,span:n}=t;var e=I.ChangeTracker.with(t,e=>Kse(Hse(r,n.start),r,t,e,t.preferences));return 0===e.length?void 0:[xne(Wse,e,eT.Implement_inherited_abstract_class,Wse,eT.Implement_all_inherited_abstract_classes)]},fixIds:[Wse],getAllCodeActions:function(r){let n=new Map;return Nne(r,Vse,(e,t)=>{t=Hse(t.file,t.start);sf(n,oj(t))&&Kse(t,r.sourceFile,r,e,r.preferences)})}});var $se="classSuperMustPrecedeThisAccess",Xse=[eT.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function Qse(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function Yse(e,t){let r=YH(e,t);return 110===r.kind&&(t=Zse((e=X5(r)).body))&&!t.expression.arguments.some(e=>dT(e)&&e.expression===r)?{constructor:e,superCall:t}:void 0}function Zse(e){return $P(e)&&F5(e.expression)?e:jC(e)?void 0:h9(e,Zse)}Tne({errorCodes:Xse,getCodeActions(e){let{sourceFile:n,span:t}=e;var i=Yse(n,t.start);if(i){let{constructor:t,superCall:r}=i;i=I.ChangeTracker.with(e,e=>Qse(e,n,t,r));return[xne($se,i,eT.Make_super_call_the_first_statement_in_the_constructor,$se,eT.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[$se],getAllCodeActions(e){let n=e["sourceFile"],i=new Map;return Nne(e,Xse,(e,t)=>{var r,t=Yse(t.file,t.start);t&&({constructor:t,superCall:r}=t,sf(i,oj(t.parent)))&&Qse(e,n,t,r)})}});var ece="constructorForDerivedNeedSuperCall",tce=[eT.Constructors_for_derived_classes_must_contain_a_super_call.code];function rce(e,t){e=YH(e,t);return Y4.assert(tP(e.parent),"token should be at the constructor declaration"),e.parent}function nce(e,t,r){var n=cT.createExpressionStatement(cT.createCallExpression(cT.createSuper(),void 0,H4));e.insertNodeAtConstructorStart(t,r,n)}Tne({errorCodes:tce,getCodeActions(e){let{sourceFile:t,span:r}=e,n=rce(t,r.start);e=I.ChangeTracker.with(e,e=>nce(e,t,n));return[xne(ece,e,eT.Add_missing_super_call,ece,eT.Add_all_missing_super_calls)]},fixIds:[ece],getAllCodeActions:r=>Nne(r,tce,(e,t)=>nce(e,r.sourceFile,rce(t.file,t.start)))});var ice="fixEnableJsxFlag",ace=[eT.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function oce(e,t){s_e(e,t,"jsx",cT.createStringLiteral("react"))}Tne({errorCodes:ace,getCodeActions:function(e){let t=e.program.getCompilerOptions()["configFile"];if(void 0!==t)return e=I.ChangeTracker.with(e,e=>oce(e,t)),[bne(ice,e,eT.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[ice],getAllCodeActions:r=>Nne(r,ace,e=>{var t=r.program.getCompilerOptions()["configFile"];void 0!==t&&oce(e,t)})});var sce="fixNaNEquality",cce=[eT.This_condition_will_always_return_0.code];function lce(e,t,r){var e=bT(e.getSemanticDiagnostics(t),e=>e.start===r.start&&e.length===r.length);return void 0!==e&&void 0!==e.relatedInformation&&void 0!==(t=bT(e.relatedInformation,e=>e.code===eT.Did_you_mean_0.code))&&void 0!==t.file&&void 0!==t.start&&void 0!==t.length&&void 0!==(e=p_e(t.file,Qo(t.start,t.length)))&&nT(e)&&pT(e.parent)?{suggestion:function(e){var[,e]=lJ(e,"\n",0).match(/'(.*)'/)||[];return e}(t.messageText),expression:e.parent,arg:e}:void 0}function _ce(e,t,r,n){var r=cT.createCallExpression(cT.createPropertyAccessExpression(cT.createIdentifier("Number"),cT.createIdentifier("isNaN")),void 0,[r]),i=n.operatorToken.kind;e.replaceNode(t,n,38===i||36===i?cT.createPrefixUnaryExpression(54,r):r)}Tne({errorCodes:cce,getCodeActions(n){let{sourceFile:i,span:e,program:t}=n;var a=lce(t,i,e);if(void 0!==a){let{suggestion:e,expression:t,arg:r}=a;a=I.ChangeTracker.with(n,e=>_ce(e,i,r,t));return[xne(sce,a,[eT.Use_0,e],sce,eT.Use_Number_isNaN_in_all_conditions)]}},fixIds:[sce],getAllCodeActions:n=>Nne(n,cce,(e,t)=>{var r=lce(n.program,t.file,Qo(t.start,t.length));r&&_ce(e,t.file,r.arg,r.expression)})}),Tne({errorCodes:[eT.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,eT.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,eT.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){var t=e.program.getCompilerOptions();let n=t["configFile"];if(void 0!==n){var i=[];let r=bD(t);5<=r&&r<99&&(a=I.ChangeTracker.with(e,e=>{s_e(e,n,"module",cT.createStringLiteral("esnext"))}),i.push(bne("fixModuleOption",a,[eT.Set_the_module_option_in_your_configuration_file_to_0,"esnext"])));var a=vD(t);return(a<4||99{var t;R_(n)&&(t=[["target",cT.createStringLiteral("es2017")]],1===r&&t.push(["module",cT.createStringLiteral("commonjs")]),o_e(e,n,t))}),i.push(bne("fixTargetOption",t,[eT.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),i.length?i:void 0}}});var uce="fixPropertyAssignment",dce=[eT.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 pce(e,t,r){e.replaceNode(t,r,cT.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function fce(e,t){return s3(YH(e,t).parent,AF)}Tne({errorCodes:dce,fixIds:[uce],getCodeActions(t){var{sourceFile:e,span:r}=t;let n=fce(e,r.start);e=I.ChangeTracker.with(t,e=>pce(e,t.sourceFile,n));return[xne(uce,e,[eT.Change_0_to_1,"=",":"],uce,[eT.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Nne(e,dce,(e,t)=>pce(e,t.file,fce(t.file,t.start)))});var mce="extendsInterfaceBecomesImplements",gce=[eT.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function hce(e,t){e=Q5(YH(e,t)).heritageClauses,t=e[0].getFirstToken();return 96===t.kind?{extendsToken:t,heritageClauses:e}:void 0}function yce(t,r,n,i){if(t.replaceNode(r,n,cT.createToken(119)),2===i.length&&96===i[0].token&&119===i[1].token){var n=i[1].getFirstToken(),i=n.getFullStart(),a=(t.replaceRange(r,{pos:i,end:i},cT.createToken(28)),r.text);let e=n.end;for(;eyce(e,n,t,r));return[xne(mce,i,eT.Change_extends_to_implements,mce,eT.Change_all_extended_interfaces_to_implements)]}},fixIds:[mce],getAllCodeActions:e=>Nne(e,gce,(e,t)=>{var r=hce(t.file,t.start);r&&yce(e,t.file,r.extendsToken,r.heritageClauses)})});var vce="forgottenThisPropertyAccess",bce=eT.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,xce=[eT.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,eT.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,bce];function Sce(e,t,r){e=YH(e,t);if(uT(e)||UE(e))return{node:e,className:r===bce?Q5(e).name.text:void 0}}function kce(e,t,{node:r,className:n}){l$(r),e.replaceNode(t,r,cT.createPropertyAccessExpression(n?cT.createIdentifier(n):cT.createThis(),r))}Tne({errorCodes:xce,getCodeActions(e){let t=e["sourceFile"],r=Sce(t,e.span.start,e.errorCode);if(r)return e=I.ChangeTracker.with(e,e=>kce(e,t,r)),[xne(vce,e,[eT.Add_0_to_unresolved_variable,r.className||"this"],vce,eT.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[vce],getAllCodeActions:r=>Nne(r,xce,(e,t)=>{t=Sce(t.file,t.start,t.code);t&&kce(e,r.sourceFile,t)})});var Tce="fixInvalidJsxCharacters_expression",Cce="fixInvalidJsxCharacters_htmlEntity",wce=[eT.Unexpected_token_Did_you_mean_or_gt.code,eT.Unexpected_token_Did_you_mean_or_rbrace.code],Nce=(Tne({errorCodes:wce,fixIds:[Tce,Cce],getCodeActions(e){let{sourceFile:t,preferences:r,span:n}=e;var i=I.ChangeTracker.with(e,e=>Dce(e,r,t,n.start,!1)),e=I.ChangeTracker.with(e,e=>Dce(e,r,t,n.start,!0));return[xne(Tce,i,eT.Wrap_invalid_character_in_an_expression_container,Tce,eT.Wrap_all_invalid_characters_in_an_expression_container),xne(Cce,e,eT.Convert_invalid_character_to_its_html_entity_code,Cce,eT.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(r){return Nne(r,wce,(e,t)=>Dce(e,r.preferences,t.file,t.start,r.fixId===Cce))}}),{">":">","}":"}"});function Dce(e,t,r,n,i){var a=r.getText()[n];Si(Nce,a)&&(i=i?Nce[a]:`{${k$(r,t,a)}}`,e.replaceRangeWithText(r,{pos:n,end:n+1},i))}var Ece="deleteUnmatchedParameter",Pce="renameUnmatchedParameter",Fce=[eT.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function Ace(e,t){e=YH(e,t);if(e.parent&&QF(e.parent)&&uT(e.parent.name)){var t=e.parent,r=fw(t),n=dw(t);if(r&&n)return{jsDocHost:r,signature:n,name:e.parent.name,jsDocParameterTag:t}}}Tne({fixIds:[Ece,Pce],errorCodes:Fce,getCodeActions:function(e){var t,r,n,i,{sourceFile:a,span:o}=e,s=[],a=Ace(a,o.start);if(a)return Q4(s,([t,{name:o,jsDocHost:r,jsDocParameterTag:n}]=[e,a],i=I.ChangeTracker.with(t,e=>e.filterJSDocTags(t.sourceFile,r,e=>e!==n)),xne(Ece,i,[eT.Delete_unused_param_tag_0,o.getText(t.sourceFile)],Ece,eT.Delete_all_unused_param_tags))),Q4(s,function(e,{name:i,jsDocHost:a,signature:o,jsDocParameterTag:s}){if(K4(o.parameters)){let r=e.sourceFile,n=dC(o),t=new Set;for(var c of n)QF(c)&&uT(c.name)&&t.add(c.name.escapedText);o=yT(o.parameters,e=>uT(e.name)&&!t.has(e.name.escapedText)?e.name.getText(r):void 0);if(void 0!==o){let t=cT.updateJSDocParameterTag(s,s.tagName,cT.createIdentifier(o),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment);e=I.ChangeTracker.with(e,e=>e.replaceJSDocComment(r,a,$4(n,e=>e===s?t:e)));return bne(Pce,e,[eT.Rename_param_tag_name_0_to_1,i.getText(r),o])}}}(e,a)),s},getAllCodeActions:function(t){let r=new Map;return Cne(I.ChangeTracker.with(t,n=>{Dne(t,Fce,({file:e,start:t})=>{e=Ace(e,t);e&&r.set(e.signature,Q4(r.get(e.signature),e.jsDocParameterTag))}),r.forEach((e,r)=>{if(t.fixId===Ece){let t=new Set(e);n.filterJSDocTags(r.getSourceFile(),r,e=>!t.has(e))}})}))}});var Ice="fixUnreferenceableDecoratorMetadata",Oce=(Tne({errorCodes:[eT.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:a=>{let o=function(e,t,r){e=o3(YH(e,r),uT);if(e&&183===e.parent.kind)return bT((null==(r=t.getTypeChecker().getSymbolAtLocation(e))?void 0:r.declarations)||H4,h3(dF,mF,_F))}(a.sourceFile,a.program,a.span.start);if(o){var t=I.ChangeTracker.with(a,e=>{return 276===o.kind&&(e=e,t=a.sourceFile,r=o,n=a.program,void uZ.doChangeNamedToNamespaceOrDefault(t,n,e,r.parent));var t,r,n}),r=I.ChangeTracker.with(a,e=>{var r=a.sourceFile,n=o,i=a.program;if(271===n.kind)e.insertModifierBefore(r,156,n.name);else{n=273===n.kind?n:n.parent.parent;if(!n.name||!n.namedBindings){let t=i.getTypeChecker();!!_u(n,e=>{if(111551&Xp(e.symbol,t).flags)return!0})||e.insertModifierBefore(r,156,n)}}});let e;return t.length&&(e=Q4(e,bne(Ice,t,eT.Convert_named_imports_to_namespace_import))),e=r.length?Q4(e,bne(Ice,r,eT.Use_import_type)):e}},fixIds:[Ice]}),"unusedIdentifier"),Lce="unusedIdentifier_prefix",jce="unusedIdentifier_delete",Rce="unusedIdentifier_deleteImports",Mce="unusedIdentifier_infer",Bce=[eT._0_is_declared_but_its_value_is_never_read.code,eT._0_is_declared_but_never_used.code,eT.Property_0_is_declared_but_its_value_is_never_read.code,eT.All_imports_in_import_declaration_are_unused.code,eT.All_destructured_elements_are_unused.code,eT.All_variables_are_unused.code,eT.All_type_parameters_are_unused.code];function Jce(e,t,r){e.replaceNode(t,r.parent,cT.createKeywordTypeNode(159))}function zce(e,t){return xne(Oce,e,t,jce,eT.Delete_all_unused_declarations)}function qce(e,t,r){e.delete(t,Y4.checkDefined(s3(r.parent,r_).typeParameters,"The type parameter to delete should exist"))}function Uce(e){return 102===e.kind||80===e.kind&&(276===e.parent.kind||273===e.parent.kind)}function Vce(e){return 102===e.kind?o3(e.parent,uF):void 0}function Wce(e,t){return tF(t.parent)&&WT(t.parent.getChildren(e))===t}function Hce(e,t,r){e.delete(t,243===r.parent.kind?r.parent:r)}function Kce(t,e,r,n){e!==eT.Property_0_is_declared_but_its_value_is_never_read.code&&uT(n=140===n.kind?s3(n.parent,M0).typeParameter.name:n)&&function(e){switch(e.parent.kind){case 169:case 168:return 1;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return 1}}return}(n)&&(t.replaceNode(r,n,cT.createIdentifier("_"+n.text)),GE(n.parent))&&iC(n.parent).forEach(e=>{uT(e.name)&&t.replaceNode(r,e.name,cT.createIdentifier("_"+e.name.text))})}function Gce(r,e,n,t,i,a,o,s){if(g=n,h=r,y=t,i=i,a=a,o=o,v=s,GE(b=(m=e).parent)){var[c,l,a,o,_,u,d,p=!1]=[g,h,b,y,i,a,o,v];if(function(e,t,r,n,i,a,o){var s=r["parent"];switch(s.kind){case 174:case 176:var c=s.parameters.indexOf(r),l=ZE(s)?s.name:s,l=ope.Core.getReferencedSymbolsForNode(s.pos,l,i,n,a);if(l)for(var _ of l)for(var u of _.references)if(u.kind===ope.EntryKind.Node){var d=A0(u.node)&&PP(u.node.parent)&&u.node.parent.arguments.length>c,p=dT(u.node.parent)&&A0(u.node.parent.expression)&&PP(u.node.parent.parent)&&u.node.parent.parent.arguments.length>c,u=(ZE(u.node.parent)||YE(u.node.parent))&&u.node.parent!==r.parent&&u.node.parent.parameters.length>c;if(d||p||u)return}return 1;case 262:return!s.name||!function(e,t,r){return ope.Core.eachSymbolReferenceInFile(r,e,t,e=>uT(e)&&PP(e.parent)&&e.parent.arguments.includes(e))}(e,t,s.name)||Xce(s,r,o);case 218:case 219:return Xce(s,r,o);case 178:return;case 177:return 1;default:return Y4.failBadSyntaxKind(s)}}(o,l,a,_,u,d,p))if(a.modifiers&&0{var t;dT(e.parent)&&e.parent.name===e&&(e=e.parent),!s&&(pT((t=e).parent)&&t.parent.left===t||(V0(t.parent)||MP(t.parent))&&t.parent.operand===t)&&$P(t.parent.parent)&&n.delete(r,e.parent.parent)})}function $ce(e,t,r){let n=e.parent.parameters.indexOf(e);return!ope.Core.someSignatureUsage(e.parent,r,t,(e,t)=>!t||t.arguments.length>n)}function Xce(e,t,r){e=e.parameters,t=e.indexOf(t);return Y4.assert(-1!==t,"The parameter should already be in the list"),r?e.slice(t+1).every(e=>uT(e.name)&&!e.symbol.isReferenced):t===e.length-1}Tne({errorCodes:Bce,getCodeActions(o){let{errorCode:t,sourceFile:s,program:r,cancellationToken:n}=o,i=r.getTypeChecker(),a=r.getSourceFiles(),c=YH(s,o.span.start);if(ZF(c))return[zce(I.ChangeTracker.with(o,e=>e.delete(s,c)),eT.Remove_template_tag)];var e,l;if(30===c.kind)return[zce(I.ChangeTracker.with(o,e=>qce(e,s,c)),eT.Remove_type_parameters)];let _=Vce(c);if(_)return u=I.ChangeTracker.with(o,e=>e.delete(s,_)),[xne(Oce,u,[eT.Remove_import_from_0,af(_)],Rce,eT.Delete_all_unused_imports)];if(Uce(c)){var u=I.ChangeTracker.with(o,e=>Gce(s,c,e,i,a,r,n,!1));if(u.length)return[xne(Oce,u,[eT.Remove_unused_declaration_for_Colon_0,c.getText(s)],Rce,eT.Delete_all_unused_imports)]}return TP(c.parent)||CP(c.parent)?GE(c.parent.parent)?(u=[1<(u=c.parent.elements).length?eT.Remove_unused_declarations_for_Colon_0:eT.Remove_unused_declaration_for_Colon_0,$4(u,e=>e.getText(s)).join(", ")],[zce(I.ChangeTracker.with(o,e=>{var t,r;t=e,r=s,G4(c.parent.elements,e=>t.delete(r,e))}),u)]):[zce(I.ChangeTracker.with(o,e=>{var t,r,[e,n,i,a]=[o,e,s,c.parent.parent];eF(a)&&a.initializer&&ZC(a.initializer)?tF(a.parent)&&1Hce(e,s,c.parent)),eT.Remove_variable_statement)]:uT(c)&&rF(c.parent)?[zce(I.ChangeTracker.with(o,e=>{var t=e,r=s,e=c.parent;if(e=e.symbol.declarations)for(var n of e)t.delete(r,n)}),[eT.Remove_unused_declaration_for_Colon_0,c.getText(s)])]:(u=[],140===c.kind?(l=I.ChangeTracker.with(o,e=>Jce(e,s,c)),e=s3(c.parent,M0).typeParameter.name.text,u.push(xne(Oce,l,[eT.Replace_infer_0_with_unknown,e],Mce,eT.Replace_all_unused_infer_with_unknown))):(l=I.ChangeTracker.with(o,e=>Gce(s,c,e,i,a,r,n,!1))).length&&(e=HE(c.parent)?c.parent:c,u.push(zce(l,[eT.Remove_unused_declaration_for_Colon_0,e.getText(s)]))),(l=I.ChangeTracker.with(o,e=>Kce(e,t,s,c))).length&&u.push(xne(Oce,l,[eT.Prefix_0_with_an_underscore,c.getText(s)],Lce,eT.Prefix_all_unused_declarations_with_where_possible)),u)},fixIds:[Lce,jce,Rce,Mce],getAllCodeActions:i=>{let{sourceFile:a,program:o,cancellationToken:s}=i,c=o.getTypeChecker(),l=o.getSourceFiles();return Nne(i,Bce,(e,t)=>{var r=YH(a,t.start);switch(i.fixId){case Lce:Kce(e,t.code,a,r);break;case Rce:var n=Vce(r);n?e.delete(a,n):Uce(r)&&Gce(a,r,e,c,l,o,s,!0);break;case jce:if(140!==r.kind&&!Uce(r))if(ZF(r))e.delete(a,r);else if(30===r.kind)qce(e,a,r);else if(TP(r.parent)){if(r.parent.parent.initializer)break;GE(r.parent.parent)&&!$ce(r.parent.parent,c,l)||e.delete(a,r.parent.parent)}else{if(CP(r.parent.parent)&&r.parent.parent.parent.initializer)break;Wce(a,r)?Hce(e,a,r.parent):Gce(a,r,e,c,l,o,s,!0)}break;case Mce:140===r.kind&&Jce(e,a,r);break;default:Y4.fail(JSON.stringify(i.fixId))}})}});var Qce="fixUnreachableCode",Yce=[eT.Unreachable_code_detected.code];function Zce(e,r,n,i,a){var t=YH(r,n),o=tT(t,d7),s=(o.getStart(r)!==t.getStart(r)&&(t=JSON.stringify({statementKind:Y4.formatSyntaxKind(o.kind),tokenKind:Y4.formatSyntaxKind(t.kind),errorCode:a,start:n,length:i}),Y4.fail("Token and statement should start at the same point. "+t)),(KP(o.parent)?o.parent:o).parent);if(!KP(o.parent)||o===WT(o.parent.statements))switch(s.kind){case 245:if(s.elseStatement){if(KP(o.parent))break;return void e.replaceNode(r,o,cT.createBlock(H4))}case 247:case 248:return void e.delete(r,s)}if(KP(o.parent)){let t=n+i;a=Y4.checkDefined(function(e,t){let r;for(var n of e){if(!t(n))break;r=n}return r}(Zm(o.parent.statements,o),e=>e.posZce(e,t.sourceFile,t.span.start,t.span.length,t.errorCode)),[xne(Qce,e,eT.Remove_unreachable_code,Qce,eT.Remove_all_unreachable_code)]},fixIds:[Qce],getAllCodeActions:e=>Nne(e,Yce,(e,t)=>Zce(e,t.file,t.start,t.length,t.code))});var ele="fixUnusedLabel",tle=[eT.Unused_label.code];function rle(e,t,r){var r=YH(t,r),n=s3(r.parent,s1),r=r.getStart(t),i=n.statement.getStart(t),i=zp(r,i,t)?i:j3(t.text,MH(n,59,t).end,!0);e.deleteRange(t,{pos:r,end:i})}Tne({errorCodes:tle,getCodeActions(t){var e=I.ChangeTracker.with(t,e=>rle(e,t.sourceFile,t.span.start));return[xne(ele,e,eT.Remove_unused_label,ele,eT.Remove_all_unused_labels)]},fixIds:[ele],getAllCodeActions:e=>Nne(e,tle,(e,t)=>rle(e,t.file,t.start))});var nle="fixJSDocTypes_plain",ile="fixJSDocTypes_nullable",ale=[eT.JSDoc_types_can_only_be_used_inside_documentation_comments.code,eT._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,eT._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function ole(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function sle(e,t,r){e=tT(YH(e,t),cle),t=e&&e.type;return t&&{typeNode:t,type:function(e,t){{var r;if(zF(t))return(r=e.getTypeFromTypeNode(t.type))===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Q4([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}(r,t)}}function cle(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}}Tne({errorCodes:ale,getCodeActions(a){let o=a["sourceFile"],s=a.program.getTypeChecker();var t=sle(o,a.span.start,s);if(t){let{typeNode:n,type:e}=t,i=n.getText(o);t=[r(e,nle,eT.Change_all_jsdoc_style_types_to_TypeScript)];return 314===n.kind&&t.push(r(e,ile,eT.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),t;function r(t,e,r){return xne("jdocTypes",I.ChangeTracker.with(a,e=>ole(e,o,n,t,s)),[eT.Change_0_to_1,i,s.typeToString(t)],e,r)}}},fixIds:[nle,ile],getAllCodeActions(e){let{fixId:n,program:t,sourceFile:i}=e,a=t.getTypeChecker();return Nne(e,ale,(e,t)=>{var r,t=sle(t.file,t.start,a);t&&({typeNode:t,type:r}=t,r=314===t.kind&&n===ile?a.getNullableType(r,32768):r,ole(e,i,t,r,a))})}});var lle="fixMissingCallParentheses",_le=[eT.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function ule(e,t,r){e.replaceNodeWithText(t,r,r.text+"()")}function dle(t,e){t=YH(t,e);if(dT(t.parent)){let e=t.parent;for(;dT(e.parent);)e=e.parent;return e.name}if(uT(t))return t}Tne({errorCodes:_le,fixIds:[lle],getCodeActions(t){var{sourceFile:e,span:r}=t;let n=dle(e,r.start);if(n)return e=I.ChangeTracker.with(t,e=>ule(e,t.sourceFile,n)),[xne(lle,e,eT.Add_missing_call_parentheses,lle,eT.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Nne(e,_le,(e,t)=>{var r=dle(t.file,t.start);r&&ule(e,t.file,r)})});var ple="fixMissingTypeAnnotationOnExports",fle="add-annotation",mle="add-type-assertion",gle=[eT.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,eT.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,eT.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,eT.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,eT.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,eT.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,eT.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,eT.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,eT.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,eT.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,eT.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,eT.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,eT.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,eT.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,eT.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,eT.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,eT.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,eT.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,eT.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations.code,eT.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,eT.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],hle=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),yle=1074273293;function vle(e,t,r,n,i){r=ble(r,n,i);r.result&&r.textChanges.length&&t.push(xne(e,r.textChanges,r.result,ple,eT.Add_all_missing_type_annotations))}function ble(a,n,e){let m={typeNode:void 0,mutatedTarget:!1},y=I.ChangeTracker.fromContext(a),v=a.sourceFile,o=a.program,s=o.getTypeChecker(),i=vD(o.getCompilerOptions()),c=qae(a.sourceFile,a.program,a.preferences,a.host),b=new Set,l=new Set,r=SB({preserveSourceNewlines:!1});e=e({addTypeAnnotation:function(e){a.cancellationToken.throwIfCancellationRequested();var e=YH(v,e.start),t=d(e);if(t)return(rF(t)?function(e){if(null==l||!l.has(e)){null!=l&&l.add(e);var t=s.getTypeAtLocation(e),t=s.getPropertiesOfType(t);if(e.name&&0!==t.length){var r,n,i=[];for(r of t)!R3(r.name,vD(o.getCompilerOptions()))||r.valueDeclaration&&eF(r.valueDeclaration)||i.push(cT.createVariableStatement([cT.createModifier(95)],cT.createVariableDeclarationList([cT.createVariableDeclaration(r.name,void 0,w(s.getTypeOfSymbol(r),e),void 0)])));if(0!==i.length)return t=[],null!=(n=e.modifiers)&&n.some(e=>95===e.kind)&&t.push(cT.createModifier(95)),t.push(cT.createModifier(138)),n=cT.createModuleDeclaration(t,e.name,cT.createModuleBlock(i),101441696),y.insertNodeAfter(v,e,n),[eT.Annotate_types_of_properties_expando_function_in_a_namespace]}}}:p)(t);t=function(e){return tT(e,e=>hle.has(e.kind)&&(!TP(e)&&!CP(e)||eF(e.parent)))}(e);if(t)return p(t)},addInlineAssertion:function(e){a.cancellationToken.throwIfCancellationRequested();var t=YH(v,e.start),r=d(t);if(!r){r=D(t,e);if(r&&!bw(r)&&!bw(r.parent)){t=nT(r),e=AF(r);if((e||!u7(r))&&!tT(r,GC)&&!tT(r,OF)&&!(t&&(tT(r,EF)||tT(r,KC))||BP(r))){var n=tT(r,eF),n=n&&s.getTypeAtLocation(n);if(!(n&&8192&n.flags)&&(t||e)){var{typeNode:n,mutatedTarget:i}=k(r,n);if(n&&!i)return e?y.insertNodeAt(v,r.end,u(i$(r.name),n),{prefix:": "}):t?y.replaceNode(v,r,function(e,t){_(e)&&(e=cT.createParenthesizedExpression(e));return cT.createAsExpression(cT.createSatisfiesExpression(e,i$(t)),t)}(i$(r),n)):Y4.assertNever(r),[eT.Add_satisfies_and_an_inline_type_assertion_with_0,N(n)]}}}}},extractAsVariable:function(r){a.cancellationToken.throwIfCancellationRequested();var n=YH(v,r.start),n=D(n,r);if(n&&!bw(n)&&!bw(n.parent)&&nT(n)){if(NP(n))return y.replaceNode(v,n,u(n,cT.createTypeReferenceNode("const"))),[eT.Mark_array_literal_as_const];r=tT(n,FF);if(r&&(r!==n.parent||!UN(n))){var i,r=cT.createUniqueName(bee(n,v,s,v),16);let e=n,t=n;if(BP(e)&&(e=Sw(e.parent),t=C(e.parent)?e=e.parent:u(e,cT.createTypeReferenceNode("const"))),!UN(e))return i=cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(r,void 0,void 0,t)],2)),n=tT(n,d7),y.insertNodeBefore(v,n,i),y.replaceNode(v,e,cT.createAsExpression(cT.cloneNode(r),cT.createTypeQueryNode(cT.cloneNode(r)))),[eT.Extract_to_variable_and_replace_with_0_as_typeof_0,N(r)]}}}});return c.writeFixes(y),{result:e,textChanges:y.getChanges()};function _(e){return!(UN(e)||PP(e)||DP(e)||NP(e))}function u(e,t){return _(e)&&(e=cT.createParenthesizedExpression(e)),cT.createAsExpression(e,t)}function d(t){let r=tT(t,e=>d7(e)?"quit":wE(e));if(r&&wE(r)){let e=r;if(pT(e)&&!wE(e=e.left))return;t=s.getTypeAtLocation(e.expression);if(!t)return;if(X4(s.getPropertiesOfType(t),e=>e.valueDeclaration===r||e.valueDeclaration===r.parent)){t=t.symbol.valueDeclaration;if(t){if(oE(t)&&eF(t.parent))return t.parent;if(rF(t))return t}}}}function p(e){if(null==b||!b.has(e))switch(null!=b&&b.add(e),e.kind){case 169:case 172:case 260:var t=e,r=k(t)["typeNode"];return r?(t.type?y.replaceNode(iT(t),t.type,r):y.tryInsertTypeAnnotation(iT(t),t,r),[eT.Add_annotation_of_type_0,N(r)]):void 0;case 219:case 218:case 262:case 174:case 177:t=e,r=v;if(!t.type){var n=k(t)["typeNode"];if(n)return y.tryInsertTypeAnnotation(r,t,n),[eT.Add_return_type_0,N(n)]}return;case 277:n=e;if(!n.isExportEquals){var i=k(n.expression)["typeNode"];if(i)return a=cT.createUniqueName("_default"),y.replaceNodeWithNodes(v,n,[cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(a,void 0,i,n.expression)],2)),cT.updateExportAssignment(n,null==n?void 0:n.modifiers,a)]),[eT.Extract_default_export_to_variable]}return;case 263:var i=e,a=null==(a=i.heritageClauses)?void 0:a.find(e=>96===e.token);if(a=null==a?void 0:a.types[0]){var o=k(a.expression)["typeNode"];if(o)return l=cT.createUniqueName(i.name?i.name.text+"Base":"Anonymous",16),o=cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(l,void 0,o,a.expression)],2)),y.insertNodeBefore(v,i,o),i=Do(v.text,a.end),i=(null==(o=null==i?void 0:i[i.length-1])?void 0:o.end)??a.end,y.replaceRange(v,{pos:a.getFullStart(),end:i},l,{prefix:" "}),[eT.Extract_base_class_to_variable]}return;case 206:case 207:var s=e,o=s.parent,c=s.parent.parent.parent;if(o.initializer){let e;var l,_,u=[],d=(uT(o.initializer)?e={expression:{kind:3,identifier:o.initializer}}:(l=cT.createUniqueName("dest",16),e={expression:{kind:3,identifier:l}},u.push(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(l,void 0,void 0,o.initializer)],2)))),[]),p=((CP(s)?x:S)(s,d,e),new Map);for(_ of d){_.element.propertyName&&HE(_.element.propertyName)&&(g=_.element.propertyName.expression,f=cT.getGeneratedNameForNode(g),m=cT.createVariableDeclaration(f,void 0,void 0,g),m=cT.createVariableDeclarationList([m],2),m=cT.createVariableStatement(void 0,m),u.push(m),p.set(g,f));var f,m=_.element.name;if(CP(m))x(m,d,_);else if(TP(m))S(m,d,_);else{var g=k(m)["typeNode"];let e=function(e,t){var r=[e];for(;e.parent;)e=e.parent,r.push(e);let n=r[r.length-1].expression.identifier;for(let e=r.length-2;0<=e;--e){var i=r[e].expression;0===i.kind?n=cT.createPropertyAccessChain(n,void 0,cT.createIdentifier(i.text)):1===i.kind?n=cT.createElementAccessExpression(n,t.get(i.computed)):2===i.kind&&(n=cT.createElementAccessExpression(n,i.arrayIndex))}return n}(_,p);_.element.initializer&&(h=null==(f=_.element)?void 0:f.propertyName,h=cT.createUniqueName(h&&uT(h)?h.text:"temp",16),u.push(cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(h,void 0,void 0,e)],2))),e=cT.createConditionalExpression(cT.createBinaryExpression(h,cT.createToken(37),cT.createIdentifier("undefined")),cT.createToken(58),_.element.initializer,cT.createToken(59),e));var h=TN(c,32)?[cT.createToken(95)]:void 0;u.push(cT.createVariableStatement(h,cT.createVariableDeclarationList([cT.createVariableDeclaration(m,void 0,g,e)],2)))}}return 1e!==s.parent)))),y.replaceNodeWithNodes(v,c,u),[eT.Extract_binding_expressions_to_variable]}return;default:throw new Error("Cannot find a fix for the given node "+e.kind)}}function x(t,r,n){for(let e=0;ee.elements,BP,cT.createSpreadElement,e=>cT.createArrayLiteralExpression(e,!0),e=>cT.createTupleTypeNode(e.map(cT.createRestTypeNode))):m}function h(e,t="temp"){return T(e,t,!!tT(e,C),e=>e.properties,IF,cT.createSpreadAssignment,e=>cT.createObjectLiteralExpression(e,!0),cT.createIntersectionTypeNode)}function T(e,r,n,t,i,a,o,s){let c=[],l=[],_,u=tT(e,d7);for(var d of t(e))i(d)?(f(),UN(d.expression)?(c.push(g(d.expression)),l.push(d)):p(d.expression)):(_=_??[]).push(d);return 0===l.length?m:(f(),y.replaceNode(v,e,o(l)),{typeNode:s(c),mutatedTarget:!0});function p(e){var t=cT.createUniqueName(r+"_Part"+(l.length+1),16),e=n?cT.createAsExpression(e,cT.createTypeReferenceNode("const")):e,e=cT.createVariableStatement(void 0,cT.createVariableDeclarationList([cT.createVariableDeclaration(t,void 0,void 0,e)],2));y.insertNodeBefore(v,u,e),c.push(g(t)),l.push(a(t))}function f(){_&&(p(o(_)),_=void 0)}}function C(e){return r7(e)&&kC(e.type)}function w(e,t,r=0){let n=!1;e=e_e(s,c,e,t,i,yle|r,{moduleResolverHost:o,trackSymbol(){return!0},reportTruncationError(){n=!0}});return n?cT.createKeywordTypeNode(133):e}function N(e){_T(e,1);var t=r.printNode(4,e,v);return t.length>E7?t.substring(0,E7-"...".length)+"...":(_T(e,0),t)}function D(e,t){for(;e&&e.ende.addTypeAnnotation(t.span)),vle(fle,e,t,1,e=>e.addTypeAnnotation(t.span)),vle(fle,e,t,2,e=>e.addTypeAnnotation(t.span)),vle(mle,e,t,0,e=>e.addInlineAssertion(t.span)),vle(mle,e,t,1,e=>e.addInlineAssertion(t.span)),vle(mle,e,t,2,e=>e.addInlineAssertion(t.span)),vle("extract-expression",e,t,0,e=>e.extractAsVariable(t.span)),e},getAllCodeActions:e=>{return Cne(ble(e,0,t=>{Dne(e,gle,e=>{t.addTypeAnnotation(e)})}).textChanges)}});var xle="fixAwaitInSyncFunction",Sle=[eT.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,eT.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,eT.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,eT.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function kle(t,r){var n=X5(YH(t,r));if(n){let e;switch(n.kind){case 174:e=n.name;break;case 262:case 218:e=MH(n,100,t);break;case 219:var i=n.typeParameters?30:21;e=MH(n,i,t)||WT(n.parameters);break;default:return}return e&&{insertBefore:e,returnType:(r=n).type||(eF(r.parent)&&r.parent.type&&cP(r.parent.type)?r.parent.type.type:void 0)}}}function Tle(e,t,{insertBefore:r,returnType:n}){var i;!n||(i=u8(n))&&80===i.kind&&"Promise"===i.text||e.replaceNode(t,n,cT.createTypeReferenceNode("Promise",cT.createNodeArray([n]))),e.insertModifierBefore(t,134,r)}Tne({errorCodes:Sle,getCodeActions(e){let{sourceFile:t,span:r}=e,n=kle(t,r.start);if(n)return e=I.ChangeTracker.with(e,e=>Tle(e,t,n)),[xne(xle,e,eT.Add_async_modifier_to_containing_function,xle,eT.Add_all_missing_async_modifiers)]},fixIds:[xle],getAllCodeActions:function(r){let n=new Map;return Nne(r,Sle,(e,t)=>{t=kle(t.file,t.start);t&&sf(n,oj(t.insertBefore))&&Tle(e,r.sourceFile,t)})}});var Cle=[eT._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,eT._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],wle="fixPropertyOverrideAccessor";function Nle(e,t,r,n,i){let a,o;if(n===eT._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)a=t,o=t+r;else if(n===eT._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var r=i.program.getTypeChecker(),t=YH(e,t).parent,s=(Y4.assert(UC(t),"error span of fixPropertyOverrideAccessor should only be on an accessor"),t.parent),s=(Y4.assert(qC(s),"erroneous accessors should only be inside classes"),xi(b_e(s,r)));if(!s)return[];t=X3(m5(t.name)),r=r.getPropertyOfType(r.getTypeAtLocation(s),t);if(!r||!r.valueDeclaration)return[];a=r.valueDeclaration.pos,o=r.valueDeclaration.end,e=iT(r.valueDeclaration)}else Y4.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+n);return f_e(e,i.program,a,o,i,eT.Generate_get_and_set_accessors.message)}Tne({errorCodes:Cle,getCodeActions(e){e=Nle(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(e)return[xne(wle,e,eT.Generate_get_and_set_accessors,wle,eT.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[wle],getAllCodeActions:n=>Nne(n,Cle,(e,t)=>{t=Nle(t.file,t.start,t.length,t.code,n);if(t)for(var r of t)e.pushRaw(n.sourceFile,r)})});var Dle="inferFromUsage",Ele=[eT.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,eT.Variable_0_implicitly_has_an_1_type.code,eT.Parameter_0_implicitly_has_an_1_type.code,eT.Rest_parameter_0_implicitly_has_an_any_type.code,eT.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,eT._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,eT.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,eT.Member_0_implicitly_has_an_1_type.code,eT.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,eT.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,eT.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,eT.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,eT.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,eT._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,eT.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,eT.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,eT.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function Ple(t,r,e,n,i,a,o,s,c){if(dc(e.kind)||80===e.kind||26===e.kind||110===e.kind){var l=e["parent"],_=qae(r,i,c,s);switch(n=function(e){switch(e){case eT.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return eT.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case eT.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return eT.Variable_0_implicitly_has_an_1_type.code;case eT.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return eT.Parameter_0_implicitly_has_an_1_type.code;case eT.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return eT.Rest_parameter_0_implicitly_has_an_any_type.code;case eT.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return eT.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case eT._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return eT._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case eT.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return eT.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case eT.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return eT.Member_0_implicitly_has_an_1_type.code}return e}(n)){case eT.Member_0_implicitly_has_an_1_type.code:case eT.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:return eF(l)&&o(l)||QE(l)||XE(l)?(Fle(t,_,r,l,i,s,a),_.writeFixes(t),l):dT(l)?((u=E$(jle(l.name,i,a),l,i,s))&&(u=cT.createJSDocTypeTag(void 0,cT.createJSDocTypeExpression(u),void 0),t.addJSDocTags(r,s3(l.parent.parent,$P),[u])),_.writeFixes(t),l):void 0;case eT.Variable_0_implicitly_has_an_1_type.code:var u=i.getTypeChecker().getSymbolAtLocation(e);return u&&u.valueDeclaration&&eF(u.valueDeclaration)&&o(u.valueDeclaration)?(Fle(t,_,iT(u.valueDeclaration),u.valueDeclaration,i,s,a),_.writeFixes(t),u.valueDeclaration):void 0}var d,p,f,m=X5(e);if(void 0!==m){let e;switch(n){case eT.Parameter_0_implicitly_has_an_1_type.code:if(nP(m)){Ale(t,_,r,m,i,s,a),e=m;break}case eT.Rest_parameter_0_implicitly_has_an_any_type.code:if(o(m)){var g=s3(l,GE),h=t,y=_,v=r,b=g,x=m,S=i,k=s,T=a;if(uT(b.name)){b=function(e,t,r,n){t=Rle(e,t,r,n);return t&&Mle(r,t,n).parameters(e)||e.parameters.map(e=>({declaration:e,type:uT(e.name)?jle(e.name,r,n):r.getTypeChecker().getAnyType()}))}(x,v,S,T);if(Y4.assert(x.parameters.length===b.length,"Parameter count and inference count should match"),oT(x))Ole(h,v,b,S,k);else{var C,w,T=LP(x)&&!MH(x,21,v);T&&h.insertNodeBefore(v,WT(x.parameters),cT.createToken(21));for({declaration:C,type:w}of b)!C||C.type||C.initializer||Ile(h,y,v,C,w,S,k);T&&h.insertNodeAfter(v,GT(x.parameters),cT.createToken(22))}}e=g}break;case eT.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case eT._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:rP(m)&&uT(m.name)&&(Ile(t,_,r,m,jle(m.name,i,a),i,s),e=m);break;case eT.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:nP(m)&&(Ale(t,_,r,m,i,s,a),e=m);break;case eT.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:I.isThisTypeAnnotatable(m)&&o(m)&&(b=t,T=s,(f=Rle(x=m,g=r,d=i,p=a))&&f.length&&(f=E$(Mle(d,f,p).thisParameter(),x,d,T))&&(oT(x)?b.addJSDocTags(g,x,[cT.createJSDocThisTag(void 0,cT.createJSDocTypeExpression(f))]):b.tryInsertThisTypeAnnotation(g,x,f)),e=m);break;default:return Y4.fail(String(n))}return _.writeFixes(t),e}}}function Fle(e,t,r,n,i,a,o){uT(n.name)&&Ile(e,t,r,n,jle(n.name,i,o),i,a)}function Ale(t,r,n,i,a,o,s){var c=UT(i.parameters);if(c&&uT(i.name)&&uT(c.name)){let e=jle(i.name,a,s);e===a.getTypeChecker().getAnyType()&&(e=jle(c.name,a,s)),oT(i)?Ole(t,n,[{declaration:c,type:e}],a,o):Ile(t,r,n,c,e,a,o)}}function Ile(e,t,r,n,i,a,o){var s,i=E$(i,n,a,o);i&&(oT(r)&&171!==n.kind?(o=eF(n)?o3(n.parent.parent,GP):n)&&(s=cT.createJSDocTypeExpression(i),s=rP(n)?cT.createJSDocReturnTag(void 0,s,void 0):cT.createJSDocTypeTag(void 0,s,void 0),e.addJSDocTags(r,o,[s])):function(e,t,r,n,i,a){e=__e(e,a);if(e&&n.tryInsertTypeAnnotation(r,t,e.typeNode))return G4(e.symbols,e=>i.addImportFromExportedSymbol(e,!0)),1;return}(i,n,r,e,t,vD(a.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,n,i))}function Ole(r,n,e,i,a){var t,o=e.length&&e[0].declaration.parent;o&&(e=AT(e,e=>{var t,r=e.declaration;return!r.initializer&&!uC(r)&&uT(r.name)&&(t=e.type&&E$(e.type,r,i,a))?(_T(cT.cloneNode(r.name),7168),{name:cT.cloneNode(r.name),param:r,isOptional:!!e.isOptional,typeNode:t}):void 0})).length&&(LP(o)||OP(o)?((t=LP(o)&&!MH(o,21,n))&&r.insertNodeBefore(n,WT(o.parameters),cT.createToken(21)),G4(e,({typeNode:e,param:t})=>{e=cT.createJSDocTypeTag(void 0,cT.createJSDocTypeExpression(e)),e=cT.createJSDocComment(void 0,[e]);r.insertNodeAt(n,t.getStart(n),e,{suffix:" "})}),t&&r.insertNodeAfter(n,GT(o.parameters),cT.createToken(22))):(t=$4(e,({name:e,typeNode:t,isOptional:r})=>cT.createJSDocParameterTag(void 0,e,!!r,cT.createJSDocTypeExpression(t),!1,void 0)),r.addJSDocTags(n,o,t)))}function Lle(e,t,r){return AT(ope.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),e=>e.kind!==ope.EntryKind.Span?o3(e.node,uT):void 0)}function jle(e,t,r){return Mle(t,Lle(e,t,r),r).single()}function Rle(e,t,r,n){let i;switch(e.kind){case 176:i=MH(e,137,t);break;case 219:case 218:var a=e.parent;i=((eF(a)||QE(a))&&uT(a.name)?a:e).name;break;case 262:case 174:case 173:i=e.name}if(i)return Lle(i,r,n)}function Mle(l,r,_){let y=l.getTypeChecker(),o={string:()=>y.getStringType(),number:()=>y.getNumberType(),Array:e=>y.createArrayType(e),Promise:e=>y.createPromiseType(e)},i=[y.getStringType(),y.getNumberType(),y.createArrayType(y.getAnyType()),y.createPromiseType(y.getAnyType())];return{single:function(){return d(u(r))},parameters:function(c){if(0!==r.length&&c.parameters){var e,t=v();for(e of r)_.throwIfCancellationRequested(),b(e,t);let s=[...t.constructs||[],...t.calls||[]];return c.parameters.map((e,t)=>{var r,n=[],i=w7(e);let a=!1;for(r of s)if(r.argumentTypes.length<=t)a=oT(c),n.push(y.getUndefinedType());else if(i)for(let e=t;er.every(e=>!e(t)))}(e,[{high:e=>e===y.getStringType()||e===y.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&sT(e)),low:e=>!!(16&sT(e))}]);e=r.filter(e=>16&sT(e));return e.length&&(r=r.filter(e=>!(16&sT(e)))).push(function(n){if(1===n.length)return n[0];let e=[],t=[],r=[],i=[],a=!1,o=!1,s=n3();for(var c of n){for(var l of y.getPropertiesOfType(c))s.add(l.escapedName,l.valueDeclaration?y.getTypeOfSymbolAtLocation(l,l.valueDeclaration):y.getAnyType());e.push(...y.getSignaturesOfType(c,0)),t.push(...y.getSignaturesOfType(c,1));var _=y.getIndexInfoOfType(c,0),_=(_&&(r.push(_.type),a=a||_.isReadonly),y.getIndexInfoOfType(c,1));_&&(i.push(_.type),o=o||_.isReadonly)}var u=C(s,(e,t)=>{var r=t.lengthy.getBaseTypeOfLiteralType(e))),n=null!=(n=e.calls)&&n.length?a(e):void 0;return n&&r?t.push(y.getUnionType([n,...r],2)):(n&&t.push(n),K4(r)&&t.push(...r)),t.push(...function(a){if(a.properties&&a.properties.size){var e=i.filter(e=>{return n=e,!!(e=a).properties&&!j7(e.properties,(e,t)=>{var r,t=y.getTypeOfPropertyOfType(n,t);return!(t&&(e.calls?y.getSignaturesOfType(t,0).length&&y.isTypeAssignableTo(t,(r=e.calls,y.createAnonymousType(void 0,I7(),[c(r)],H4,H4))):y.isTypeAssignableTo(t,s(e))))});var n});if(0{{var t=a;if(!(4&sT(e)&&t.properties))return e;let r=e.target,n=xi(r.typeParameters);if(!n)return e;let i=[];return t.properties.forEach((e,t)=>{t=y.getTypeOfPropertyOfType(r,t);Y4.assert(!!t,"generic should have all the properties of its reference."),i.push(...f(t,s(e),n))}),o[e.symbol.escapedName](d(i))}})}return[]}(e)),t}function a(e){let n=new Map;e.properties&&e.properties.forEach((e,t)=>{var r=y.createSymbol(4,t);r.links.type=s(e),n.set(t,r)});var t=e.calls?[c(e.calls)]:[],r=e.constructs?[c(e.constructs)]:[],e=e.stringIndex?[y.createIndexInfo(y.getStringType(),s(e.stringIndex),!1)]:[];return y.createAnonymousType(void 0,n,t,r,e)}function f(e,t,r){if(e===r)return[t];if(3145728&e.flags)return FT(e.types,e=>f(e,t,r));if(4&sT(e)&&4&sT(t)){var n=y.getTypeArguments(e),i=y.getTypeArguments(t),a=[];if(n&&i)for(let e=0;ee.argumentTypes.length));for(let t=0;te.argumentTypes[t]||y.getUndefinedType())),e.some(e=>void 0===e.argumentTypes[t])&&(i.flags|=16777216),r.push(i)}var t=s(function r(e){let n=new Map;for(var t of e)t.properties&&t.properties.forEach((e,t)=>{n.has(t)||n.set(t,[]),n.get(t).push(e)});let i=new Map;return n.forEach((e,t)=>{i.set(t,r(e))}),{isNumber:e.some(e=>e.isNumber),isString:e.some(e=>e.isString),isNumberOrString:e.some(e=>e.isNumberOrString),candidateTypes:FT(e,e=>e.candidateTypes),properties:i,calls:FT(e,e=>e.calls),constructs:FT(e,e=>e.constructs),numberIndex:G4(e,e=>e.numberIndex),stringIndex:G4(e,e=>e.stringIndex),candidateThisTypes:FT(e,e=>e.candidateThisTypes),inferredTypes:void 0}}(e.map(e=>e.return_)));return y.createSignature(void 0,void 0,void 0,r,t,void 0,n,0)}function S(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function k(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}Tne({errorCodes:Ele,getCodeActions(e){let{sourceFile:t,program:r,span:{start:n},errorCode:i,cancellationToken:a,host:o,preferences:s}=e,c=YH(t,n),l;var e=I.ChangeTracker.with(e,e=>{l=Ple(e,t,c,i,r,a,ki,o,s)}),_=l&&tC(l);return _&&0!==e.length?[xne(Dle,e,[function(e,t){switch(e){case eT.Parameter_0_implicitly_has_an_1_type.code:case eT.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return nP(X5(t))?eT.Infer_type_of_0_from_usage:eT.Infer_parameter_types_from_usage;case eT.Rest_parameter_0_implicitly_has_an_any_type.code:case eT.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return eT.Infer_parameter_types_from_usage;case eT.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return eT.Infer_this_type_of_0_from_usage;default:return eT.Infer_type_of_0_from_usage}}(i,c),K7(_)],Dle,eT.Infer_all_types_from_usage)]:void 0},fixIds:[Dle],getAllCodeActions(e){let{sourceFile:r,program:n,cancellationToken:i,host:a,preferences:o}=e,s=HK();return Nne(e,Ele,(e,t)=>{Ple(e,r,YH(t.file,t.start),t.code,n,i,s,a,o)})}});var Ble="fixReturnTypeInAsyncFunction",Jle=[eT.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 zle(e,t,r){if(!oT(e)){var n,e=tT(YH(e,r),MC),r=null==e?void 0:e.type;if(r)return e=t.getTypeFromTypeNode(r),n=t.getAwaitedType(e)||t.getVoidType(),(t=t.typeToTypeNode(n,r,void 0))?{returnTypeNode:r,returnType:e,promisedTypeNode:t,promisedType:n}:void 0}}function qle(e,t,r,n){e.replaceNode(t,r,cT.createTypeReferenceNode("Promise",[n]))}Tne({errorCodes:Jle,fixIds:[Ble],getCodeActions:function(i){let{sourceFile:a,program:e,span:t}=i;var o=e.getTypeChecker(),s=zle(a,e.getTypeChecker(),t.start);if(s){let{returnTypeNode:t,returnType:e,promisedTypeNode:r,promisedType:n}=s;s=I.ChangeTracker.with(i,e=>qle(e,a,t,r));return[xne(Ble,s,[eT.Replace_0_with_Promise_1,o.typeToString(e),o.typeToString(n)],Ble,eT.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:n=>Nne(n,Jle,(e,t)=>{var r=zle(t.file,n.program.getTypeChecker(),t.start);r&&qle(e,t.file,r.returnTypeNode,r.promisedTypeNode)})});var Ule="disableJsDiagnostics",Vle="disableJsDiagnostics",Wle=AT(Object.keys(eT),e=>{e=eT[e];return 1===e.category?e.code:void 0});function Hle(e,t,r,n){var i=O3(t,r)["line"];n&&!OT(n,i)||e.insertCommentBeforeLine(t,i,r," @ts-ignore")}function Kle(e,t,r,n,i,a,o){var s,c=e.symbol.members;for(s of t)c.has(s.escapedName)||Xle(s,e,r,n,i,a,o,void 0)}function Gle(e){return{trackSymbol:()=>!1,moduleResolverHost:tG(e.program,e.host)}}Tne({errorCodes:Wle,getCodeActions:function(e){let{sourceFile:t,program:r,span:n,host:i,formatContext:a}=e;var o;if(oT(t)&&BD(t,r.getCompilerOptions()))return o=t.checkJsDirective?"":WG(i,a.options),o=[bne(Ule,[wne(t.fileName,[zK(t.checkJsDirective?Yo(t.checkJsDirective.pos,t.checkJsDirective.end):Qo(0,0),"// @ts-nocheck"+o)])],eT.Disable_checking_for_this_file)],I.isValidLocationToAddComment(t,n.start)&&o.unshift(xne(Ule,I.ChangeTracker.with(e,e=>Hle(e,t,n.start)),eT.Ignore_this_error_message,Vle,eT.Add_ts_ignore_to_all_error_messages)),o},fixIds:[Vle],getAllCodeActions:e=>{let r=new Set;return Nne(e,Wle,(e,t)=>{I.isValidLocationToAddComment(t.file,t.start)&&Hle(e,t.file,t.start,r)})}});var $le=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))($le||{});function Xle(t,a,e,o,r,s,c,n,l=3,i=!1){var _=t.getDeclarations();let u=UT(_);var d=o.program.getTypeChecker(),p=vD(o.program.getCompilerOptions()),f=(null==u?void 0:u.kind)??171,m=function(e,t){if(262144&tD(e)){e=e.links.nameType;if(e&&TE(e))return cT.createIdentifier(X3(CE(e)))}return i$(tC(t),!1)}(t,u),g=u?ON(u):0;let h=256&g;h|=1&g?1:4&g?4:0,u&&VC(u)&&(h|=512);var y=function(){let e;h&&(e=A(e,cT.createModifiersFromModifierFlags(h)));o.program.getCompilerOptions().noImplicitOverride&&u&&DN(u)&&(e=Q4(e,cT.createToken(164)));return e&&cT.createNodeArray(e)}(),v=d.getWidenedType(d.getTypeOfSymbolAtLocation(t,a));let b=!!(16777216&t.flags);var x=!!(33554432&a.flags)||i;let S=sG(e,r);switch(f){case 171:case 172:var k=1;k|=0===S?268435456:0;let e=d.typeToTypeNode(v,a,k,Gle(o));s&&(k=__e(e,p))&&(e=k.typeNode,d_e(s,k.symbols)),c(cT.createPropertyDeclaration(y,u?E(m):t.getName(),b&&2&l?cT.createToken(58):void 0,e,void 0));break;case 177:case 178:{Y4.assertIsDefined(_);let e=d.typeToTypeNode(v,a,void 0,Gle(o));var T,C,k=qd(_,u),k=k.secondAccessor?[k.firstAccessor,k.secondAccessor]:[k.firstAccessor];s&&(w=__e(e,p))&&(e=w.typeNode,d_e(s,w.symbols));for(T of k)rP(T)?c(cT.createGetAccessorDeclaration(y,E(m),H4,F(e),P(n,S,x))):(Y4.assertNode(T,nP,"The counterpart to a getter should be a setter"),C=(C=uN(T))&&uT(C.name)?rT(C.name):void 0,c(cT.createSetAccessorDeclaration(y,E(m),n_e(1,[C],[F(e)],1,!1),P(n,S,x))));break}case 173:case 174:Y4.assertIsDefined(_);var w=v.isUnion()?FT(v.types,e=>e.getCallSignatures()):v.getCallSignatures();if(X4(w))if(1===_.length){Y4.assert(1===w.length,"One declaration implies one signature");k=w[0];D(S,k,y,E(m),P(n,S,x))}else{for(var N of w)D(S,N,y,E(m));x||(_.length>w.length?(k=d.getSignatureFromDeclaration(_[_.length-1]),D(S,k,y,E(m),P(n,S))):(Y4.assert(_.length===w.length,"Declarations and signatures should match count"),c(function(e,t,r,n,i,a,o,s,c){let l=n[0],_=n[0].minArgumentCount,u=!1;for(var d of n)_=Math.min(d.minArgumentCount,_),pj(d)&&(u=!0),d.parameters.length>=l.parameters.length&&(!pj(d)||pj(l))&&(l=d);var p=l.parameters.length-(pj(l)?1:0),f=l.parameters.map(e=>e.name),m=n_e(p,f,void 0,_,!1);u&&(f=cT.createParameterDeclaration(void 0,cT.createToken(26),f[p]||"rest",p>=_?cT.createToken(58):void 0,cT.createArrayTypeNode(cT.createKeywordTypeNode(159)),void 0),m.push(f));return function(e,t,r,n,i,a,o,s){return cT.createMethodDeclaration(e,void 0,t,r?cT.createToken(58):void 0,n,i,a,s||i_e(o))}(o,i,a,void 0,m,function(e,t,r,n){if(K4(e))return e=t.getUnionType($4(e,t.getReturnTypeOfSignature)),t.typeToTypeNode(e,n,1,Gle(r))}(n,e,t,r),s,c)}(d,o,a,w,E(m),b&&!!(1&l),y,S,n))))}}function D(e,t,r,n,i){e=Qle(174,o,e,t,i,n,r,b&&!!(1&l),a,s);e&&c(e)}function E(e){return uT(e)&&"constructor"===e.escapedText?cT.createComputedPropertyName(cT.createStringLiteral(rT(e),0===S)):i$(e,!1)}function P(e,t,r){return r?void 0:i$(e,!1)||i_e(t)}function F(e){return i$(e,!1)}}function Qle(n,e,i,a,o,s,c,l,_,u){var d=e.program,p=d.getTypeChecker();let f=vD(d.getCompilerOptions()),m=oT(_);d=p.signatureToSignatureDeclaration(a,n,_,524545|(0===i?268435456:0),Gle(e));if(d){let e=m?void 0:d.typeParameters,t=d.parameters,r=m?void 0:i$(d.type);u&&(e&&(p=ET(e,e=>{let t=e.constraint,r=e.default;var n;return t&&(n=__e(t,f))&&(t=n.typeNode,d_e(u,n.symbols)),r&&(n=__e(r,f))&&(r=n.typeNode,d_e(u,n.symbols)),cT.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,r)}),e!==p)&&(e=fT(cT.createNodeArray(p,e.hasTrailingComma),e)),a=ET(t,e=>{let t=m?void 0:e.type;var r;return t&&(r=__e(t,f))&&(t=r.typeNode,d_e(u,r.symbols)),cT.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,m?void 0:e.questionToken,t,e.initializer)}),t!==a&&(t=fT(cT.createNodeArray(a,t.hasTrailingComma),t)),r)&&(n=__e(r,f))&&(r=n.typeNode,d_e(u,n.symbols));_=l?cT.createToken(58):void 0,i=d.asteriskToken;return OP(d)?cT.updateFunctionExpression(d,c,d.asteriskToken,o3(s,uT),e,t,r,o??d.body):LP(d)?cT.updateArrowFunction(d,c,e,t,r,d.equalsGreaterThanToken,o??d.body):ZE(d)?cT.updateMethodDeclaration(d,c,i,s??cT.createIdentifier(""),_,e,t,r,o):rF(d)?cT.updateFunctionDeclaration(d,c,d.asteriskToken,o3(s,uT),e,t,r,o??d.body):void 0}}function Yle(e,t,r,n,i,a,o){var s=sG(t.sourceFile,t.preferences),c=vD(t.program.getCompilerOptions()),l=Gle(t);let _=t.program.getTypeChecker();var t=oT(o),{typeArguments:u,arguments:d,parent:p}=n,n=t?void 0:_.getContextualType(n),f=$4(d,e=>uT(e)?e.text:dT(e)&&uT(e.name)?e.name.text:void 0),m=t?[]:$4(d,e=>_.getTypeAtLocation(e)),{argumentTypeNodes:r,argumentTypeParameters:m}=r_e(_,r,m,o,c,1,l),g=a?cT.createNodeArray(cT.createModifiersFromModifierFlags(a)):void 0,h=K0(p)?cT.createToken(42):void 0,y=t?void 0:function(r,e,t){let n=new Set(e.map(e=>e[0])),i=new Map(e);if(t){var t=t.filter(t=>!e.some(e=>{return r.getTypeAtLocation(t)===(null==(e=e[1])?void 0:e.argumentType)})),a=n.size+t.length;for(let e=0;n.size{return cT.createTypeParameterDeclaration(void 0,e,null==(e=i.get(e))?void 0:e.constraint)})}(_,m,u),v=n_e(d.length,f,r,void 0,t),b=t||void 0===n?void 0:_.typeToTypeNode(n,o,void 0,l);switch(e){case 174:return cT.createMethodDeclaration(g,h,i,void 0,y,v,b,i_e(s));case 173:return cT.createMethodSignature(g,i,void 0,y,v,void 0===b?cT.createKeywordTypeNode(159):b);case 262:return Y4.assert("string"==typeof i||uT(i),"Unexpected name"),cT.createFunctionDeclaration(g,h,i,y,v,b,a_e(eT.Function_not_implemented.message,s));default:Y4.fail("Unexpected kind")}}function Zle(e){return 84+e<=90?String.fromCharCode(84+e):"T"+e}function e_e(e,t,r,n,i,a,o){let s=e.typeToTypeNode(r,n,a,o);return s&&kP(s)&&(e=__e(s,i))&&(d_e(t,e.symbols),s=e.typeNode),i$(s)}function t_e(e){return e.isUnionOrIntersection()?e.types.some(t_e):262144&e.flags}function r_e(t,r,n,i,a,o,s){var c=[],l=new Map;for(let e=0;e=i?cT.createToken(58):void 0,a?void 0:(null==n?void 0:n[e])||cT.createKeywordTypeNode(159),void 0));o.push(c)}return o}function i_e(e){return a_e(eT.Method_not_implemented.message,e)}function a_e(e,t){return cT.createBlock([cT.createThrowStatement(cT.createNewExpression(cT.createIdentifier("Error"),void 0,[cT.createStringLiteral(e,0===t)]))],!0)}function o_e(e,t,r){var n=R_(t);if(n){var i=l_e(n,"compilerOptions");if(void 0===i)e.insertNodeAtObjectStart(t,n,c_e("compilerOptions",cT.createObjectLiteralExpression(r.map(([e,t])=>c_e(e,t)),!0)));else{var a=i.initializer;if(DP(a))for(var[o,s]of r){var c=l_e(a,o);void 0===c?e.insertNodeAtObjectStart(t,a,c_e(o,s)):e.replaceNode(t,c.initializer,s)}}}}function s_e(e,t,r,n){o_e(e,t,[[r,n]])}function c_e(e,t){return cT.createPropertyAssignment(cT.createStringLiteral(e),t)}function l_e(e,t){return bT(e.properties,e=>FF(e)&&!!e.name&&qE(e.name)&&e.name.text===t)}function __e(e,o){let s;e=mT(e,function i(a){if(I5(a)&&a.qualifier){let e=VN(a.qualifier),t=iX(e.symbol,o),r=t!==e.text?u_e(a.qualifier,cT.createIdentifier(t)):a.qualifier,n=(s=Q4(s,e.symbol),gT(a.typeArguments,i,KC));return cT.createTypeReferenceNode(r,n)}return hT(a,i,void 0)},KC);if(s&&e)return{typeNode:e,symbols:s}}function u_e(e,t){return 80===e.kind?t:cT.createQualifiedName(u_e(e.left,t),e.right)}function d_e(t,e){e.forEach(e=>t.addImportFromExportedSymbol(e,!0))}function p_e(e,t){var r=J3(t);let n=YH(e,t.start);for(;n.ende.replaceNode(t,r,n));return bne(x_e,e,[eT.Replace_import_with_0,e[0].textChanges[0].newText])}function k_e(e,r){var t=e.program.getTypeChecker().getTypeAtLocation(r);if(!(t.symbol&&O7(t.symbol)&&t.symbol.links.originatingImport))return[];var n,i,a,o,s=[],t=t.symbol.links.originatingImport;if(A5(t)||BT(s,(n=e,i=iT(t=t),a=tw(t),c=n.program.getCompilerOptions(),(o=[]).push(S_e(n,i,t,nG(a.name,void 0,t.moduleSpecifier,sG(i,n.preferences)))),1===bD(c)&&o.push(S_e(n,i,t,cT.createImportEqualsDeclaration(void 0,!1,a.name,cT.createExternalModuleReference(t.moduleSpecifier)))),o)),nT(r)&&(!eC(r.parent)||r.parent.name!==r)){let t=e.sourceFile;var c=I.ChangeTracker.with(e,e=>e.replaceNode(t,r,cT.createPropertyAccessExpression(r,"default"),{}));s.push(bne(x_e,c,eT.Use_synthetic_default_member))}return s}Tne({errorCodes:[eT.This_expression_is_not_callable.code,eT.This_expression_is_not_constructable.code],getCodeActions:function(e){let t=e.sourceFile,r=eT.This_expression_is_not_callable.code===e.errorCode?213:214,n=tT(YH(t,e.span.start),e=>e.kind===r);if(!n)return[];var i=n.expression;return k_e(e,i)}}),Tne({errorCodes:[eT.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,eT.Type_0_does_not_satisfy_the_constraint_1.code,eT.Type_0_is_not_assignable_to_type_1.code,eT.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,eT.Type_predicate_0_is_not_assignable_to_1.code,eT.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,eT._0_index_type_1_is_not_assignable_to_2_index_type_3.code,eT.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,eT.Property_0_in_type_1_is_not_assignable_to_type_2.code,eT.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,eT.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(t){var e=t.sourceFile,e=tT(YH(e,t.span.start),e=>e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length);return e?k_e(t,e):[]}});var T_e="strictClassInitialization",C_e="addMissingPropertyDefiniteAssignmentAssertions",w_e="addMissingPropertyUndefinedType",N_e="addMissingPropertyInitializer",D_e=[eT.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function E_e(e,t){e=YH(e,t);if(uT(e)&&QE(e.parent)){t=hN(e.parent);if(t)return{type:t,prop:e.parent,isJs:oT(e.parent)}}}function P_e(e,t,r){l$(r);var n=cT.updatePropertyDeclaration(r,r.modifiers,r.name,cT.createToken(54),r.type,r.initializer);e.replaceNode(t,r,n)}function F_e(e,t,r){var n=cT.createKeywordTypeNode(157),n=j0(r.type)?r.type.types.concat(n):[r.type,n],n=cT.createUnionTypeNode(n);r.isJs?e.addJSDocTags(t,r.prop,[cT.createJSDocTypeTag(void 0,cT.createJSDocTypeExpression(n))]):e.replaceNode(t,r.type,n)}function A_e(e,t,r,n){l$(r);n=cT.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,n);e.replaceNode(t,r,n)}function I_e(e,t){return function t(r,n){{if(512&n.flags)return n===r.getFalseType()||n===r.getFalseType(!0)?cT.createFalse():cT.createTrue();if(n.isStringLiteral())return cT.createStringLiteral(n.value);if(n.isNumberLiteral())return cT.createNumericLiteral(n.value);if(2048&n.flags)return cT.createBigIntLiteral(n.value);if(n.isUnion())return yT(n.types,e=>t(r,e));if(n.isClass()){let e=oD(n.symbol);if(!e||TN(e,64))return;let t=_N(e);return t&&t.parameters.length?void 0:cT.createNewExpression(cT.createIdentifier(n.symbol.name),void 0,void 0)}if(r.isArrayLikeType(n))return cT.createArrayLiteralExpression()}return}(e,e.getTypeFromTypeNode(t.type))}Tne({errorCodes:D_e,getCodeActions:function(e){var t,r,n,i,a=E_e(e.sourceFile,e.span.start);if(a)return Q4(t=[],(r=e,n=a,i=I.ChangeTracker.with(r,e=>F_e(e,r.sourceFile,n)),xne(T_e,i,[eT.Add_undefined_type_to_property_0,n.prop.name.getText()],w_e,eT.Add_undefined_type_to_all_uninitialized_properties))),Q4(t,function(t,r){var e;if(!r.isJs)return e=I.ChangeTracker.with(t,e=>P_e(e,t.sourceFile,r.prop)),xne(T_e,e,[eT.Add_definite_assignment_assertion_to_property_0,r.prop.getText()],C_e,eT.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,a)),Q4(t,function(r,n){if(!n.isJs){var e;let t=I_e(r.program.getTypeChecker(),n.prop);if(t)return e=I.ChangeTracker.with(r,e=>A_e(e,r.sourceFile,n.prop,t)),xne(T_e,e,[eT.Add_initializer_to_property_0,n.prop.name.getText()],N_e,eT.Add_initializers_to_all_uninitialized_properties)}}(e,a)),t},fixIds:[C_e,w_e,N_e],getAllCodeActions:i=>Nne(i,D_e,(e,t)=>{var r=E_e(t.file,t.start);if(r)switch(i.fixId){case C_e:P_e(e,t.file,r.prop);break;case w_e:F_e(e,t.file,r);break;case N_e:var n=I_e(i.program.getTypeChecker(),r.prop);n&&A_e(e,t.file,r.prop,n);break;default:Y4.fail(JSON.stringify(i.fixId))}})});var O_e="requireInTs",L_e=[eT.require_call_may_be_converted_to_an_import.code];function j_e(e,t,r){var{allowSyntheticDefaults:r,defaultImportName:n,namedImports:i,statement:a,required:o}=r;e.replaceNode(t,a,n&&!r?cT.createImportEqualsDeclaration(void 0,!1,n,cT.createExternalModuleReference(o)):cT.createImportDeclaration(void 0,cT.createImportClause(!1,n,i),o,void 0))}function R_e(e,t,r){var e=YH(e,r)["parent"],r=(E8(e,!0)||Y4.failBadSyntaxKind(e),s3(e.parent,eF)),n=o3(r.name,uT),i=TP(r.name)?function(e){var t=[];for(var r of e.elements){if(!uT(r.name)||r.initializer)return;t.push(cT.createImportSpecifier(!1,o3(r.propertyName,uT),r.name))}if(t.length)return cT.createNamedImports(t)}(r.name):void 0;if(n||i)return{allowSyntheticDefaults:TD(t.getCompilerOptions()),defaultImportName:n,namedImports:i,statement:s3(r.parent.parent,GP),required:WT(e.arguments)}}Tne({errorCodes:L_e,getCodeActions(t){let r=R_e(t.sourceFile,t.program,t.span.start);var e;if(r)return e=I.ChangeTracker.with(t,e=>j_e(e,t.sourceFile,r)),[xne(O_e,e,eT.Convert_require_to_import,O_e,eT.Convert_all_require_to_import)]},fixIds:[O_e],getAllCodeActions:r=>Nne(r,L_e,(e,t)=>{t=R_e(t.file,r.program,t.start);t&&j_e(e,r.sourceFile,t)})});var M_e="useDefaultImport",B_e=[eT.Import_may_be_converted_to_a_default_import.code];function J_e(e,t){e=YH(e,t);if(uT(e))return t=e["parent"],_F(t)&&bF(t.moduleReference)?{importNode:t,name:e,moduleSpecifier:t.moduleReference.expression}:g1(t)&&uF(t.parent.parent)?{importNode:t=t.parent.parent,name:e,moduleSpecifier:t.moduleSpecifier}:void 0}function z_e(e,t,r,n){e.replaceNode(t,r.importNode,nG(r.name,void 0,r.moduleSpecifier,sG(t,n)))}Tne({errorCodes:B_e,getCodeActions(t){let{sourceFile:r,span:{start:e}}=t,n=J_e(r,e);var i;if(n)return i=I.ChangeTracker.with(t,e=>z_e(e,r,n,t.preferences)),[xne(M_e,i,eT.Convert_to_default_import,M_e,eT.Convert_all_to_default_imports)]},fixIds:[M_e],getAllCodeActions:n=>Nne(n,B_e,(e,t)=>{var r=J_e(t.file,t.start);r&&z_e(e,t.file,r,n.preferences)})});var q_e="useBigintLiteral",U_e=[eT.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function V_e(e,t,r){var n,r=o3(YH(t,r.start),zE);r&&(n=r.getText(t)+"n",e.replaceNode(t,r,cT.createBigIntLiteral(n)))}Tne({errorCodes:U_e,getCodeActions:function(t){var e=I.ChangeTracker.with(t,e=>V_e(e,t.sourceFile,t.span));if(0Nne(e,U_e,(e,t)=>V_e(e,t.file,t))});var W_e="fixAddModuleReferTypeMissingTypeof",H_e=[eT.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function K_e(e,t){e=YH(e,t);return Y4.assert(102===e.kind,"This token should be an ImportKeyword"),Y4.assert(205===e.parent.kind,"Token parent should be an ImportType"),e.parent}function G_e(e,t,r){var n=cT.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,n)}Tne({errorCodes:H_e,getCodeActions:function(e){let{sourceFile:t,span:r}=e,n=K_e(t,r.start);e=I.ChangeTracker.with(e,e=>G_e(e,t,n));return[xne(W_e,e,eT.Add_missing_typeof,W_e,eT.Add_missing_typeof)]},fixIds:[W_e],getAllCodeActions:r=>Nne(r,H_e,(e,t)=>G_e(e,r.sourceFile,K_e(t.file,t.start)))});var $_e="wrapJsxInFragment",X_e=[eT.JSX_expressions_must_have_one_parent_element.code];function Q_e(e,t){let r=YH(e,t).parent.parent;if((pT(r)||pT(r=r.parent))&&W7(r.operatorToken))return r}function Y_e(e,t,r){var n=function(e){let t=[],r=e;for(;;){if(!pT(r)||!W7(r.operatorToken)||28!==r.operatorToken.kind)return;if(t.push(r.left),Zc(r.right))return t.push(r.right),t;if(!pT(r.right))return;r=r.right}}(r);n&&e.replaceNode(t,r,cT.createJsxFragment(cT.createJsxOpeningFragment(),n,cT.createJsxJsxClosingFragment()))}Tne({errorCodes:X_e,getCodeActions:function(e){let{sourceFile:t,span:r}=e,n=Q_e(t,r.start);if(n)return e=I.ChangeTracker.with(e,e=>Y_e(e,t,n)),[xne($_e,e,eT.Wrap_in_JSX_fragment,$_e,eT.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[$_e],getAllCodeActions:r=>Nne(r,X_e,(e,t)=>{t=Q_e(r.sourceFile,t.start);t&&Y_e(e,r.sourceFile,t)})});var Z_e="wrapDecoratorInParentheses",eue=[eT.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function tue(e,t,r){var r=tT(YH(t,r),$E),n=(Y4.assert(!!r,"Expected position to be owned by a decorator."),cT.createParenthesizedExpression(r.expression));e.replaceNode(t,r.expression,n)}Tne({errorCodes:eue,getCodeActions:function(t){var e=I.ChangeTracker.with(t,e=>tue(e,t.sourceFile,t.span.start));return[xne(Z_e,e,eT.Wrap_in_parentheses,Z_e,eT.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Z_e],getAllCodeActions:e=>Nne(e,eue,(e,t)=>tue(e,t.file,t.start))});var rue="fixConvertToMappedObjectType",nue=[eT.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function iue(e,t){e=o3(YH(e,t).parent.parent,O0);if(e){t=iF(e.parent)?e.parent:o3(e.parent.parent,aF);if(t)return{indexSignature:e,container:t}}}function aue(e,t,{indexSignature:r,container:n}){var i=(iF(n)?n:n.type).members.filter(e=>!O0(e)),a=WT(r.parameters),a=cT.createTypeParameterDeclaration(void 0,s3(a.name,uT),a.type),a=cT.createMappedTypeNode(FN(r)?cT.createModifier(148):void 0,a,void 0,r.questionToken,r.type,void 0),r=cT.createIntersectionTypeNode([...Cu(n),a,...i.length?[cT.createTypeLiteralNode(i)]:H4]);e.replaceNode(t,n,cT.createTypeAliasDeclaration(n.modifiers,n.name,n.typeParameters,r))}Tne({errorCodes:nue,getCodeActions:function(e){let{sourceFile:t,span:r}=e,n=iue(t,r.start);var i;if(n)return e=I.ChangeTracker.with(e,e=>aue(e,t,n)),i=rT(n.container.name),[xne(rue,e,[eT.Convert_0_to_mapped_object_type,i],rue,[eT.Convert_0_to_mapped_object_type,i])]},fixIds:[rue],getAllCodeActions:e=>Nne(e,nue,(e,t)=>{var r=iue(t.file,t.start);r&&aue(e,t.file,r)})});var oue="removeAccidentalCallParentheses",sue=(Tne({errorCodes:[eT.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(t){let r=tT(YH(t.sourceFile,t.span.start),PP);var e;if(r)return e=I.ChangeTracker.with(t,e=>{e.deleteRange(t.sourceFile,{pos:r.expression.end,end:r.end})}),[bne(oue,e,eT.Remove_parentheses)]},fixIds:[oue]}),"removeUnnecessaryAwait"),cue=[eT.await_has_no_effect_on_the_type_of_this_expression.code];function lue(t,r,n){var i,n=o3(YH(r,n.start),e=>135===e.kind),n=n&&o3(n.parent,RP);if(n){let e=n;IP(n.parent)&&uT(df(n.expression,!1))&&(i=nK(n.parent.pos,r))&&105!==i.kind&&(e=n.parent),t.replaceNode(r,e,n.expression)}}Tne({errorCodes:cue,getCodeActions:function(t){var e=I.ChangeTracker.with(t,e=>lue(e,t.sourceFile,t.span));if(0Nne(e,cue,(e,t)=>lue(e,t.file,t))});var _ue=[eT.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],uue="splitTypeOnlyImport";function due(e,t){return tT(YH(e,t.start),uF)}function pue(e,t,r){var n;t&&(n=Y4.checkDefined(t.importClause),e.replaceNode(r.sourceFile,t,cT.updateImportDeclaration(t,t.modifiers,cT.updateImportClause(n,n.isTypeOnly,n.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,cT.createImportDeclaration(void 0,cT.updateImportClause(n,n.isTypeOnly,void 0,n.namedBindings),t.moduleSpecifier,t.attributes)))}Tne({errorCodes:_ue,fixIds:[uue],getCodeActions:function(t){var e=I.ChangeTracker.with(t,e=>pue(e,due(t.sourceFile,t.span),t));if(e.length)return[xne(uue,e,eT.Split_into_two_separate_import_declarations,uue,eT.Split_all_invalid_type_only_imports)]},getAllCodeActions:r=>Nne(r,_ue,(e,t)=>{pue(e,due(r.sourceFile,t),r)})});var fue="fixConvertConstToLet",mue=[eT.Cannot_assign_to_0_because_it_is_a_constant.code];function gue(e,t,r){r=r.getTypeChecker().getSymbolAtLocation(YH(e,t));if(void 0!==r){t=o3(null==(t=null==r?void 0:r.valueDeclaration)?void 0:t.parent,tF);if(void 0!==t){t=MH(t,87,e);if(void 0!==t)return{symbol:r,token:t}}}}function hue(e,t,r){e.replaceNode(t,r,cT.createToken(121))}Tne({errorCodes:mue,getCodeActions:function(e){let{sourceFile:t,span:r,program:n}=e,i=gue(t,r.start,n);if(void 0!==i)return e=I.ChangeTracker.with(e,e=>hue(e,t,i.token)),[Sne(fue,e,eT.Convert_const_to_let,fue,eT.Convert_all_const_to_let)]},getAllCodeActions:e=>{let n=e["program"],i=new Map;return Cne(I.ChangeTracker.with(e,r=>{Dne(e,mue,e=>{var t=gue(e.file,e.start,n);if(t&&sf(i,sj(t.symbol)))return hue(r,e.file,t.token)})}))},fixIds:[fue]});var yue="fixExpectedComma",vue=[eT._0_expected.code];function bue(e,t){e=YH(e,t);return 27===e.kind&&e.parent&&(DP(e.parent)||NP(e.parent))?{node:e}:void 0}function xue(e,t,{node:r}){var n=cT.createToken(28);e.replaceNode(t,r,n)}Tne({errorCodes:vue,getCodeActions(e){let t=e["sourceFile"],r=bue(t,e.span.start,e.errorCode);if(r)return e=I.ChangeTracker.with(e,e=>xue(e,t,r)),[xne(yue,e,[eT.Change_0_to_1,";",","],yue,[eT.Change_0_to_1,";",","])]},fixIds:[yue],getAllCodeActions:r=>Nne(r,vue,(e,t)=>{t=bue(t.file,t.start,t.code);t&&xue(e,r.sourceFile,t)})});var Sue="addVoidToPromise",kue=[eT.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,eT.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function Tue(e,t,r,n,i){var a,o,r=YH(t,r.start);uT(r)&&PP(r.parent)&&r.parent.expression===r&&0===r.parent.arguments.length&&(a=null==(a=(n=n.getTypeChecker()).getSymbolAtLocation(r))?void 0:a.valueDeclaration)&&GE(a)&&FP(a.parent.parent)&&(null!=i&&i.has(a)||(null!=i&&i.add(a),X4(i=function(e){{if(!oT(e))return e.typeArguments;if(IP(e.parent)){e=null==(e=_C(e.parent))?void 0:e.typeExpression.type;if(e&&sP(e)&&uT(e.typeName)&&"Promise"===rT(e.typeName))return e.typeArguments}}}(a.parent.parent))?((o=!j0(i=i[0])&&!hP(i)&&hP(cT.createUnionTypeNode([i,cT.createKeywordTypeNode(116)]).types[0]))&&e.insertText(t,i.pos,"("),e.insertText(t,i.end,o?") | void":" | void")):(r=(o=null==(i=n.getResolvedSignature(r.parent))?void 0:i.parameters[0])&&n.getTypeOfSymbolAtLocation(o,a.parent.parent),oT(a)?(!r||3&r.flags)&&(e.insertText(t,a.parent.parent.end,")"),e.insertText(t,j3(t.text,a.parent.parent.pos),"/** @type {Promise} */(")):(!r||2&r.flags)&&e.insertText(t,a.parent.parent.expression.end,""))))}Tne({errorCodes:kue,fixIds:[Sue],getCodeActions(t){var e=I.ChangeTracker.with(t,e=>Tue(e,t.sourceFile,t.span,t.program));if(0Tue(e,t.file,t,r.program,new Set))}});var Cue={},wue=(r(Cue,{CompletionKind:()=>sde,CompletionSource:()=>Eue,SortText:()=>Due,StringCompletions:()=>Ode,SymbolOriginInfoKind:()=>Pue,createCompletionDetails:()=>ode,createCompletionDetailsForSymbol:()=>ade,getCompletionEntriesFromSymbols:()=>rde,getCompletionEntryDetails:()=>function(e,t,r,n,i,a,o,s,c){let l=e.getTypeChecker(),_=e.getCompilerOptions(),{name:u,source:d,data:p}=i,{previousToken:f,contextToken:m}=_de(n,r);if(sK(r,n,f))return Ode.getStringLiteralCompletionDetails(u,r,n,f,e,a,c,s);var g=nde(e,t,r,n,i,a,s);switch(g.type){case"request":var h=g["request"];switch(h.kind){case 1:return Ofe.getJSDocTagNameCompletionDetails(u);case 2:return Ofe.getJSDocTagCompletionDetails(u);case 3:return Ofe.getJSDocParameterNameCompletionDetails(u);case 4:return X4(h.keywordCompletions,e=>e.name===u)?ide(u,"keyword",5):void 0;default:return Y4.assertNever(h)}case"symbol":var{symbol:y,location:v,contextToken:b,origin:x,previousToken:S}=g,{codeActions:b,sourceDisplay:S}=function(e,n,i,t,a,o,s,c,l,_,r,u,d,p,f,m){if(null!=p&&p.moduleSpecifier&&r&&wde(i||r,l).replacementSpan)return{codeActions:void 0,sourceDisplay:[RG(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){let{importAdder:t,eraseRange:r}=Xue(s,o,c,d,e,a,n,_,i,u);if(null!=t&&t.hasFixes()||r)return{sourceDisplay:void 0,codeActions:[{changes:I.ChangeTracker.with({host:s,formatContext:u,preferences:d},e=>{t&&t.writeFixes(e),r&&e.deleteRange(l,r)}),description:null!=t&&t.hasFixes()?hX([eT.Includes_imports_of_types_referenced_by_0,e]):hX([eT.Update_modifiers_of_0,e])}]}}if(Iue(t))return c=hne.getPromoteTypeOnlyCompletionAction(l,t.declaration.name,o,s,u,d),Y4.assertIsDefined(c,"Expected to have a code action for promoting type-only alias"),{codeActions:[c],sourceDisplay:void 0};if("ObjectLiteralMemberWithComma/"===f&&i){n=I.ChangeTracker.with({host:s,formatContext:u,preferences:d},e=>e.insertText(l,i.end,","));if(n)return{sourceDisplay:void 0,codeActions:[{changes:n,description:hX([eT.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!t||!Fue(t)&&!Aue(t))return{codeActions:void 0,sourceDisplay:void 0};var c=(t.isFromPackageJson?s.getPackageJsonAutoImportProvider():o).getTypeChecker(),f=t["moduleSymbol"],n=c.getMergedSymbol(Xp(a.exportSymbol||a,c)),t=30===(null==i?void 0:i.kind)&&f7(i.parent),{moduleSpecifier:a,codeAction:c}=hne.getImportCompletionAction(n,f,null==p?void 0:p.exportMapKey,l,e,t,s,o,u,r&&uT(r)?r.getStart(l):_,d,m);return Y4.assert(!(null!=p&&p.moduleSpecifier)||a===p.moduleSpecifier),{sourceDisplay:[RG(a)],codeActions:[c]}}(u,v,b,x,y,e,a,_,r,n,S,o,s,p,d,c),x=Lue(x)?x.symbolName:y.name;return ade(y,x,l,r,v,c,b,S);case"literal":y=g["literal"];return ide(Gue(r,s,y),"string","string"==typeof y?8:7);case"cases":x=Hue(m.parent,r,s,e.getCompilerOptions(),a,e,void 0);return null!=x&&x.importAdder.hasFixes()?({entry:v,importAdder:b}=x,S=I.ChangeTracker.with({host:a,formatContext:o,preferences:s},b.writeFixes),{name:v.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:S,description:hX([eT.Includes_imports_of_types_referenced_by_0,u])}]}):{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0};case"none":return fde().some(e=>e.name===u)?ide(u,"keyword",5):void 0;default:Y4.assertNever(g)}},getCompletionEntrySymbol:()=>function(e,t,r,n,i,a,o){e=nde(e,t,r,n,i,a,o);return"symbol"===e.type?e.symbol:void 0},getCompletionsAtPosition:()=>function(e,t,r,n,i,a,o,s,c,l,_=!1){var u=_de(i,n)["previousToken"];if(!o||sK(n,i,u)||function(e,t,r,n){switch(t){case".":case"@":return 1;case'"':case"'":case"`":return r&&C$(r)&&n===r.getStart(e)+1;case"#":return r&&UE(r)&&Q5(r);case"<":return r&&30===r.kind&&(!pT(r.parent)||Cde(r.parent));case"/":return r&&(k7(r)?cu(r):44===r.kind&&x1(r.parent));case" ":return r&&VE(r)&&307===r.parent.kind;default:return Y4.assertNever(t)}}(n,o,u,i))if(" "===o){if(a.includeCompletionsForImportStatements&&a.includeCompletionsWithInsertText)return{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}}else{var d=t.getCompilerOptions(),p=t.getTypeChecker(),f=!a.allowIncompleteCompletions||null==(o=e.getIncompleteCompletionsCache)?void 0:o.call(e);if(f&&3===s&&u&&uT(u)){o=function(e,o,t,s,c,r,n,l){let _=e.get();if(_){e=XH(o,l);let i=t.text.toLowerCase(),a=FX(o,c,s,r,n);l=jue("continuePreviousIncompleteResponse",c,hne.createImportSpecifierResolver(o,s,c,r),s,t.getStart(),r,!1,XD(t),n=>{var e=AT(_.entries,e=>{var t,r;return e.hasAction&&e.source&&e.data&&!Mue(e.data)?Ide(e.name,i)?(r=Y4.checkDefined(ude(e.name,e.data,s,c))["origin"],"skipped"===(t=(t=a.get(o.path,e.data.exportMapKey))&&n.tryResolve(t,!B3(oN(r.moduleSymbol.name))))?e:t&&"failed"!==t?(r={...r,kind:32,moduleSpecifier:t.moduleSpecifier},e.data=Zue(r),e.source=tde(r),e.sourceDisplay=[RG(r.moduleSpecifier)],e):void(null!=(t=c.log)&&t.call(c,`Unexpected failure resolving auto import for '${e.name}' from '${e.source}'`))):void 0:e});return n.skippedAny()||(_.isIncomplete=void 0),e});return _.entries=l,_.flags=4|(_.flags||0),_.optionalReplacementSpan=Vue(e),_}}(f,n,u,t,e,a,c,i);if(o)return o}else null!=f&&f.clear();s=Ode.getStringLiteralCompletions(n,i,u,d,e,t,r,a,_);if(s)return s;if(u&&$s(u.parent)&&(83===u.kind||88===u.kind||80===u.kind))return function(e){e=function(e){let t=[],r=new Map,n=e;for(;n&&!jC(n);){var i;s1(n)&&(i=n.label.text,r.has(i)||(r.set(i,!0),t.push({name:i,kindModifiers:"",kind:"label",sortText:Due.LocationPriority}))),n=n.parent}return t}(e);if(e.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}(u.parent);var m=lde(t,r,n,d,i,a,void 0,e,l,c);if(m)switch(m.kind){case 0:var g=function(t,r,n,i,a,o,s,c,l,_){let{symbols:u,contextToken:d,completionKind:p,isInSnippetScope:f,isNewIdentifierLocation:m,location:g,propertyAccessToConvert:h,keywordFilters:y,symbolToOriginInfoMap:v,recommendedCompletion:b,isJsxInitializer:x,isTypeOnlyLocation:S,isJsxIdentifierExpected:k,isRightOfOpenTag:T,isRightOfDotOrQuestionDot:C,importStatementCompletion:w,insideJsDocTagTypeExpression:j,symbolToSortTextMap:R,hasUnresolvedAutoImports:M}=o,N=o.literals,D=n.getTypeChecker();if(1===Ef(t.scriptKind)){var e=function(e,t){e=tT(e,e=>{switch(e.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});{var r;if(e)return r=!!MH(e,32,t),t=e.parent.openingElement.tagName.getText(t)+(r?"":">"),r=LK(e.tagName),{isGlobalCompletion:!(e={name:t,kind:"class",kindModifiers:void 0,sortText:Due.LocationPriority}),isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:r,entries:[e]}}}(g,t);if(e)return e}e=tT(d,C1);if(e&&(I0(d)||Nw(d,e.expression))){let r=xX(D,e.parent.clauses);N=N.filter(e=>!r.hasValue(e)),u.forEach((e,t)=>{e.valueDeclaration&&OF(e.valueDeclaration)&&void 0!==(e=D.getConstantValue(e.valueDeclaration))&&r.hasValue(e)&&(v[t]={kind:256})})}var E=[],P=Wue(t,i);if(!P||m||u&&0!==u.length||0!==y){var F,A,I=rde(u,E,void 0,d,g,l,t,r,n,vD(i),a,p,s,i,c,S,h,k,x,w,b,v,R,k,T,_);if(0!==y)for(var O of mde(y,!j&&C8(t)))(S&&UK($a(O.name))||!S&&function(e){return"abstract"===e||"async"===e||"await"===e||"declare"===e||"module"===e||"namespace"===e||"type"===e||"satisfies"===e||"as"===e}(O.name)||!I.has(O.name))&&(I.add(O.name),B(E,O,Rue,void 0,!0));for(F of function(e,t){var r=[];{var n,i,a;e&&(a=e.getSourceFile(),n=e.parent,i=a.getLineAndCharacterOfPosition(e.end).line,a=a.getLineAndCharacterOfPosition(t).line,uF(n)||hF(n)&&n.moduleSpecifier)&&e===n.moduleSpecifier&&i===a&&r.push({name:A3[132],kind:"keyword",kindModifiers:"",sortText:Due.GlobalsOrKeywords})}return r}(d,l))I.has(F.name)||(I.add(F.name),B(E,F,Rue,void 0,!0));for(A of N){var L=function(e,t,r){return{name:Gue(e,t,r),kind:"string",kindModifiers:"",sortText:Due.LocationPriority}}(t,s,A);I.add(L.name),B(E,L,Rue,void 0,!0)}P||!function(e,r,n,i,a){Hre(e).forEach((e,t)=>{e!==r&&(e=X3(t),!n.has(e))&&R3(e,i)&&(n.add(e),B(a,{name:e,kind:"warning",kindModifiers:"",sortText:Due.JavascriptIdentifiers,isFromUncheckedFile:!0},Rue))})}(t,g.pos,I,vD(i),E);let e;return s.includeCompletionsWithInsertText&&d&&!T&&!C&&(e=tT(d,u1))&&(a=Hue(e,t,s,i,r,n,c))&&E.push(a.entry),{flags:o.flags,isGlobalCompletion:f,isIncomplete:!(!s.allowIncompleteCompletions||!M)||void 0,isMemberCompletion:function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(p),isNewIdentifierLocation:m,optionalReplacementSpan:Vue(g),entries:E}}}(n,e,t,d,r,m,a,l,i,_);return null!=g&&g.isIncomplete&&null!=f&&f.set(g),g;case 1:return Bue([...Ofe.getJSDocTagNameCompletions(),...Jue(n,i,p,d,a,!0)]);case 2:return Bue([...Ofe.getJSDocTagCompletions(),...Jue(n,i,p,d,a,!1)]);case 3:return Bue(Ofe.getJSDocParameterNameCompletions(m.tag));case 4:return function(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}(m.keywordCompletions,m.isNewIdentifierLocation);default:return Y4.assertNever(m)}}},getPropertiesForObjectExpression:()=>xde,moduleSpecifierResolutionCacheAttemptLimit:()=>Nue,moduleSpecifierResolutionLimit:()=>wue}),100),Nue=1e3,Due={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return e+`${t}`},SortBelow(e){return e+"1"}},Eue=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Eue||{}),Pue=(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))(Pue||{});function Fue(e){return!!(e&&4&e.kind)}function Aue(e){return!(!e||32!==e.kind)}function Iue(e){return!!(e&&64&e.kind)}function Oue(e){return e&&128&e.kind}function Lue(e){return!!(e&&512&e.kind)}function jue(e,t,i,r,a,o,n,s,c){var l=$t();let _=n||Uf(xD(r.getCompilerOptions())),u=!1,d=0,p=0,f=0,m=0;var n=c({tryResolve:function(e,t){if(t)return(t=i.getModuleSpecifierForBestExportInfo(e,a,s))&&d++,t||"failed";var t=_||o.allowIncompleteCompletions&&pu,resolvedAny:()=>0p>wue}),r=m?` (${(f/m*100).toFixed(1)}% hit rate)`:"";return null!=(c=t.log)&&c.call(t,`${e}: resolved ${p} module specifiers, plus ${d} ambient and ${f} from cache`+r),null!=(c=t.log)&&c.call(t,e+": response is "+(u?"incomplete":"complete")),null!=(r=t.log)&&r.call(t,e+": "+($t()-l)),n}function Rue(e,t){let r,n,i=Ee(e.sortText,t.sortText);return 0===(i=0===(i=0===i?Ee(e.name,t.name):i)&&null!=(r=e.data)&&r.moduleSpecifier&&null!=(n=t.data)&&n.moduleSpecifier?Jm(e.data.moduleSpecifier,t.data.moduleSpecifier):i)?-1:i}function Mue(e){return null!=e&&e.moduleSpecifier}function Bue(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function Jue(e,t,a,o,s,c){var r=YH(e,t);if(!nl(r)&&!A1(r))return[];r=A1(r)?r:r.parent;if(!A1(r))return[];var n=r.parent;if(!jC(n))return[];let l=C8(e),_=s.includeCompletionsWithSnippetText||void 0,u=wT(r.tags,e=>QF(e)&&e.getEnd()<=t);return AT(n.parameters,r=>{if(!iC(r).length){if(uT(r.name)){var n={tabstop:1},i=r.name.text;let e=que(i,r.initializer,r.dotDotDotToken,l,!1,!1,a,o,s),t=_?que(i,r.initializer,r.dotDotDotToken,l,!1,!0,a,o,s,n):void 0;return c&&(e=e.slice(1),t=t&&t.slice(1)),{name:e,kind:"parameter",sortText:Due.LocationPriority,insertText:_?t:void 0,isSnippet:_}}if(r.parent.parameters.indexOf(r)===u){i="param"+u,n=zue(i,r.name,r.initializer,r.dotDotDotToken,l,!1,a,o,s),i=_?zue(i,r.name,r.initializer,r.dotDotDotToken,l,!0,a,o,s):void 0;let e=n.join(Cp(o)+"* "),t=null==i?void 0:i.join(Cp(o)+"* ");return c&&(e=e.slice(1),t=t&&t.slice(1)),{name:e,kind:"parameter",sortText:Due.LocationPriority,insertText:_?t:void 0,isSnippet:_}}}})}function zue(e,t,r,n,_,u,d,p,f){return _?m(e,t,r,n,{tabstop:1}):[que(e,r,n,_,!1,u,d,p,f,{tabstop:1})];function m(t,r,n,i,a){if(TP(r)&&!i){var o,s={tabstop:a.tabstop},c=que(t,n,i,_,!0,u,d,p,f,s);let e=[];for(o of r.elements){var l=function(e,t,r){{var n;if(!t.propertyName&&uT(t.name)||uT(t.name))return(n=t.propertyName?s_(t.propertyName):t.name.text)?[que(e+"."+n,t.initializer,t.dotDotDotToken,_,!1,u,d,p,f,r)]:void 0;if(t.propertyName)return(n=s_(t.propertyName))&&m(e+"."+n,t.name,t.initializer,t.dotDotDotToken,r)}}(t,o,s);if(!l){e=void 0;break}e.push(...l)}if(e)return a.tabstop=s.tabstop,[c,...e]}return[que(t,n,i,_,!1,u,d,p,f,a)]}}function que(t,r,n,i,a,o,s,c,l,_){if(o&&Y4.assertIsDefined(_),r&&(t=function(e,t){t=t.getText().trim();if(t.includes("\n")||80e.isLiteral())){var d,p=xX(_,l),f=vD(a),m=sG(n,i),g=hne.createImportAdder(n,s,i,o),h=[];for(d of u.types)if(1024&d.flags){Y4.assert(d.symbol,"An enum member type should have a symbol"),Y4.assert(d.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");var y=d.symbol.valueDeclaration&&_.getConstantValue(d.symbol.valueDeclaration);if(void 0!==y){if(p.hasValue(y))continue;p.addValue(y)}y=hne.typeToAutoImportableTypeNode(_,g,d,e,f);if(!y)return;y=function a(o,s,c){switch(o.kind){case 183:let e=o.typeName;return Kue(e,s,c);case 199:let t=a(o.objectType,s,c),r=a(o.indexType,s,c);return t&&r&&cT.createElementAccessExpression(t,r);case 201:let n=o.literal;switch(n.kind){case 11:return cT.createStringLiteral(n.text,0===c);case 9:return cT.createNumericLiteral(n.text,n.numericLiteralFlags)}return;case 196:let i=a(o.type,s,c);return i&&(uT(i)?i:cT.createParenthesizedExpression(i));case 186:return Kue(o.exprName,s,c);case 205:Y4.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}return}(y,f,m);if(!y)return;h.push(y)}else if(!p.hasValue(d.value))switch(typeof d.value){case"object":h.push(d.value.negative?cT.createPrefixUnaryExpression(41,cT.createBigIntLiteral({negative:!1,base10Value:d.value.base10Value})):cT.createBigIntLiteral(d.value));break;case"number":h.push(d.value<0?cT.createPrefixUnaryExpression(41,cT.createNumericLiteral(-d.value)):cT.createNumericLiteral(d.value));break;case"string":h.push(cT.createStringLiteral(d.value,0===m))}if(0===h.length)return;l=$4(h,e=>cT.createCaseClause(e,[])),s=WG(o,null==c?void 0:c.options);let t=Yue({removeComments:!0,module:a.module,target:a.target,newLine:gX(s)}),r=c?e=>t.printAndFormatNode(4,e,n,c):e=>t.printNode(4,e,n);u=$4(l,(e,t)=>i.includeCompletionsWithSnippetText?r(e)+"$"+(t+1):""+r(e)).join(s);return{entry:{name:t.printNode(4,l[0],n)+" ...",kind:"",sortText:Due.GlobalsOrKeywords,insertText:u,hasAction:g.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!i.includeCompletionsWithSnippetText||void 0},importAdder:g}}}function Kue(e,t,r){var n;return uT(e)?e:pE(n=X3(e.right.escapedText),t)?cT.createPropertyAccessExpression(Kue(e.left,t,r),n):cT.createElementAccessExpression(Kue(e.left,t,r),cT.createStringLiteral(n,0===r))}function Gue(e,t,r){return"object"==typeof r?KD(r)+"n":a3(r)?k$(e,t,r):JSON.stringify(r)}function $ue(t,e,r,n,i,a,o,s,c,l,_,u,d,p,f,m,g,h,y,v,b,x,j,R){let S,k,T,C,w=OK(r,a),N,D,E=tde(u),P,F,A;var r=c.getTypeChecker(),I=u&&!!(16&u.kind),O=u&&!!(2&u.kind)||_;if(u&&1&u.kind)T=_?`this${I?"?.":""}[${ede(o,y,l)}]`:"this"+(I?"?.":".")+l;else if((O||I)&&p){T=O?_?`[${ede(o,y,l)}]`:`[${l}]`:l,(I||p.questionDotToken)&&(T="?."+T);O=MH(p,25,o)||MH(p,29,o);if(!O)return;var L=(f3(l,p.name.text)?p.name:O).end;w=Yo(O.getStart(o),L)}if(f&&(T=`{${T=void 0===T?l:T}}`,"boolean"!=typeof f)&&(w=LK(f,o)),u&&8&u.kind&&p){void 0===T&&(T=l);O=nK(p.pos,o);let e="";O&&L$(O.end,O.parent,o)&&(e=";"),e+=`(await ${p.expression.getText()})`,T=_?""+e+T:e+(I?"?.":".")+T;var L=o3(p.parent,RP)?p.parent:p.expression;w=Yo(L.getStart(o),p.end)}if(Aue(u)&&(P=[RG(u.moduleSpecifier)],m)&&({insertText:T,replacementSpan:w}=function(e,t,r,n,i,a,o){var s=t.replacementSpan,c=ug(k$(i,o,r.moduleSpecifier)),r=r.isDefaultExport?1:"export="===r.exportName?2:0,l=o.includeCompletionsWithSnippetText?"$1":"",o=hne.getImportKind(i,r,a,!0),i=t.couldBeTypeOnlyImportSpecifier,_=t.isTopLevelTypeOnly?` ${A3[156]} `:" ",u=i?A3[156]+" ":"",d=n?";":"";switch(o){case 3:return{replacementSpan:s,insertText:`import${_}${ug(e)}${l} = require(${c})`+d};case 1:return{replacementSpan:s,insertText:`import${_}${ug(e)}${l} from `+c+d};case 2:return{replacementSpan:s,insertText:`import${_}* as ${ug(e)} from `+c+d};case 0:return{replacementSpan:s,insertText:`import${_}{ ${u}${ug(e)}${l} } from `+c+d}}}(l,m,u,g,o,h,y),D=!!y.includeCompletionsWithSnippetText||void 0),64===(null==u?void 0:u.kind)&&(F=!0),0===v&&n&&28!==(null==(S=nK(n.pos,o,n))?void 0:S.kind)&&(ZE(n.parent.parent)||rP(n.parent.parent)||nP(n.parent.parent)||IF(n.parent)||(null==(k=tT(n.parent,FF))?void 0:k.getLastToken(o))===n||AF(n.parent)&&O3(o,n.getEnd()).line!==O3(o,a).line)&&(E="ObjectLiteralMemberWithComma/",F=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===v&&function(e,t,r){if(oT(t))return;return 106500&e.flags&&(qC(t)||t.parent&&t.parent.parent&&zC(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&qC(t.parent.parent)||t.parent&&G1(t)&&qC(t.parent))}(t,i,o)){f=Xue(s,c,h,y,l,t,i,a,n,b);if(!f)return;({insertText:T,filterText:C,isSnippet:D,importAdder:O}=f),(null!=O&&O.hasFixes()||f.eraseRange)&&(F=!0,E="ClassMemberSnippet/")}if(u&&Oue(u)&&({insertText:T,isSnippet:D,labelDetails:A}=u,y.useLabelDetailsInCompletionEntries||(l+=A.detail,A=void 0),E="ObjectLiteralMethodSnippet/",e=Due.SortBelow(e)),x&&!j&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!CF(i.parent)||!i.parent.initializer)){let e="braces"===y.jsxAttributeCompletionStyle;_=r.getTypeOfSymbolAtLocation(t,i);"auto"!==y.jsxAttributeCompletionStyle||528&_.flags||1048576&_.flags&&bT(_.types,e=>!!(528&e.flags))||(402653316&_.flags||1048576&_.flags&&vT(_.types,e=>!!(402686084&e.flags||wK(e)))?(T=ug(l)+"="+k$(o,y,"$1"),D=!0):e=!0),e&&(T=ug(l)+"={$1}",D=!0)}if(void 0===T||y.includeCompletionsWithInsertText)return(Fue(u)||Aue(u))&&(N=Zue(u),F=!m),275===(null==(I=tT(i,_f))?void 0:I.kind)&&(L=$a(l),I)&&L&&(135===L||Fu(L))&&(T=l+` as ${l}_`),{name:l,kind:Hme.getSymbolKind(r,t,i),kindModifiers:Hme.getSymbolModifiers(r,t),sortText:e,source:E,hasAction:!!F||void 0,isRecommended:(p=r,(g=t)===(v=d)||!!(1048576&g.flags)&&p.getExportSymbolOfSymbol(g)===v||void 0),insertText:T,filterText:C,replacementSpan:w,sourceDisplay:P,labelDetails:A,isSnippet:D,isPackageJsonImport:(Fue(s=u)||Aue(s))&&!!s.isFromPackageJson||void 0,isImportStatementCompletion:!!m||void 0,data:N,...R?{symbol:t}:void 0}}function Xue(s,c,l,_,u,d,p,f,m,g){let h=tT(p,qC);if(h){let e,t=u;let r=c.getTypeChecker();var p=p.getSourceFile(),l=Yue({removeComments:!0,module:l.module,target:l.target,omitTrailingSemicolon:!1,newLine:gX(WG(s,null==g?void 0:g.options))}),y=hne.createImportAdder(p,c,_,s);let n,i=(_.includeCompletionsWithSnippetText?(e=!0,v=cT.createEmptyStatement(),n=cT.createBlock([v],!0),mh(v,{kind:0,order:0})):n=cT.createBlock([],!0),0);var{modifiers:v,range:m,decorators:f}=function(e,t,r){if(!e||O3(t,r).line>O3(t,e.getEnd()).line)return{modifiers:0};let n=0,i,a,o={pos:r,end:r};QE(e.parent)&&(a=function(e){if(IC(e))return e.kind;if(uT(e)){e=Q3(e);if(e&&uc(e))return e}}(e))&&(e.parent.modifiers&&(n|=98303&LN(e.parent.modifiers),i=e.parent.modifiers.filter($E)||[],o.pos=Math.min(...e.parent.modifiers.map(e=>e.getStart(t)))),r=jN(a),n&r||(n|=r,o.pos=Math.min(o.pos,e.getStart(t))),e.parent.name!==e)&&(o.end=e.parent.name.getStart(t));return{modifiers:n,decorators:i,range:o.pos{let t=0;a&&(t|=64),zC(e)&&1===r.getMemberOverrideModifierStatus(h,e,d)&&(t|=16),o.length||(i=e.modifierFlagsCache|t),e=cT.replaceModifiers(e,i),o.push(e)},n,hne.PreserveOptionalFlags.Property,!!a),o.length){c=8192&d.flags;let e=17|i;s=v&(e|=c?1024:136);if(v&~e)return;4&i&&1&s&&(i&=-5),0==s||1&s||(i&=-2),i|=s,o=o.map(e=>cT.replaceModifiers(e,i)),null!=f&&f.length&&m9(_=o[o.length-1])&&(o[o.length-1]=cT.replaceDecoratorsAndModifiers(_,f.concat(nC(_)||[])));t=g?l.printAndFormatSnippetList(131073,cT.createNodeArray(o),p,g):l.printSnippetList(131073,cT.createNodeArray(o),p)}return{insertText:t,filterText:u,isSnippet:e,importAdder:y,eraseRange:m}}}function Que(e,t,r,n,i,a,o,s){var c=o.includeCompletionsWithSnippetText||void 0;let l=t;t=r.getSourceFile(),e=function(e,n,t,i,a,o){var s=e.getDeclarations();if(s&&s.length){let r=i.getTypeChecker();var s=s[0],c=i$(tC(s),!1),l=r.getWidenedType(r.getTypeOfSymbolAtLocation(e,n)),_=33554432|(0===sG(t,o)?268435456:0);switch(s.kind){case 171:case 172:case 173:case 174:{let e=1048576&l.flags&&l.types.length<10?r.getUnionType(l.types,2):l;if(1048576&e.flags){var u=NT(e.types,e=>0cT.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer));return cT.createMethodDeclaration(void 0,void 0,c,void 0,void 0,d,void 0,t)}default:return}}}(e,r,t,n,i,o);if(e)return r=Yue({removeComments:!0,module:a.module,target:a.target,omitTrailingSemicolon:!1,newLine:gX(WG(i,null==s?void 0:s.options))}),l=s?r.printAndFormatSnippetList(80,cT.createNodeArray([e],!0),t,s):r.printSnippetList(80,cT.createNodeArray([e],!0),t),n=SB({removeComments:!0,module:a.module,target:a.target,omitTrailingSemicolon:!0}),o=cT.createMethodSignature(void 0,"",e.questionToken,e.typeParameters,e.parameters,e.type),i={detail:n.printNode(4,o,t)},{isSnippet:c,insertText:l,labelDetails:i}}function Yue(e){let c,i=I.createWriter(Cp(e)),n=SB(e,i),a={...i,write:e=>r(e,()=>i.write(e)),nonEscapingWrite:i.write,writeLiteral:e=>r(e,()=>i.writeLiteral(e)),writeStringLiteral:e=>r(e,()=>i.writeStringLiteral(e)),writeSymbol:(e,t)=>r(e,()=>i.writeSymbol(e,t)),writeParameter:e=>r(e,()=>i.writeParameter(e)),writeComment:e=>r(e,()=>i.writeComment(e)),writeProperty:e=>r(e,()=>i.writeProperty(e))};return{printSnippetList:function(e,t,r){e=l(e,t,r);return c?I.applyChanges(e,c):e},printAndFormatSnippetList:function(e,t,r,n){let i={text:l(e,t,r),getLineAndCharacterOfPosition(e){return O3(this,e)}},a=yX(n,r),o=FT(t,e=>{e=I.assignPositionsToNode(e);return Dge.formatNodeGivenIndentation(e,i,r.languageVariant,0,0,{...n,options:a})}),s=c?dn(LT(o,c),(e,t)=>ye(e.span,t.span)):o;return I.applyChanges(i.text,s)},printNode:function(e,t,r){e=o(e,t,r);return c?I.applyChanges(e,c):e},printAndFormatNode:function(e,t,r,n){var e={text:o(e,t,r),getLineAndCharacterOfPosition(e){return O3(this,e)}},i=yX(n,r),t=I.assignPositionsToNode(t),t=Dge.formatNodeGivenIndentation(t,e,r.languageVariant,0,0,{...n,options:i}),r=c?dn(LT(t,c),(e,t)=>ye(e.span,t.span)):t;return I.applyChanges(e.text,r)}};function r(e,t){var r,n=ug(e);n!==e?(e=i.getTextPos(),t(),r=i.getTextPos(),c=Q4(c=c||[],{newText:n,span:{start:e,length:r-e}})):t()}function l(e,t,r){return c=void 0,a.clear(),n.writeList(e,t,r,a),a.getText()}function o(e,t,r){return c=void 0,a.clear(),n.writeNode(e,t,r,a),a.getText()}}function Zue(e){var t=e.fileName?void 0:oN(e.moduleSymbol.name),r=!!e.isFromPackageJson||void 0;return Aue(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:oN(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function ede(e,t,r){return/^\d+$/.test(r)?r:k$(e,t,r)}function tde(e){return Fue(e)?oN(e.moduleSymbol.name):Aue(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function rde(t,r,n,i,o,a,s,c,l,_,e,u,d,p,f,m,g,h,y,v,b,x,S,k,T,C=!1){var w=$t();let N=function(e,t){if(e)return e=tT(e,e=>O_(e)||Fde(e)||GC(e)?"quit":(GE(e)||KE(e))&&!O0(e.parent)),t=tT(t,e=>O_(e)||Fde(e)||GC(e)?"quit":eF(e)),e||t}(i,o);var D=j$(s);let E=l.getTypeChecker(),P=new Map;for(let e=0;e=N.pos&&a&&ie.getSourceFile()===o.getSourceFile())),P.set(F,O),B(r,L,Rue,void 0,!0))}return e("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+($t()-w)),{has:e=>P.has(e),add:e=>P.set(e,!0)}}function nde(e,t,r,n,i,a,o){if("SwitchCases/"===i.source)return{type:"cases"};if(i.data){var s,c=ude(i.name,i.data,e,a);if(c)return{contextToken:s,previousToken:b}=_de(n,r),{type:"symbol",symbol:c.symbol,location:XH(r,n),previousToken:b,contextToken:s,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:c.origin}}let l=e.getCompilerOptions(),_=lde(e,t,r,l,n,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,a,void 0);if(!_)return{type:"none"};if(0!==_.kind)return{type:"request",request:_};let{symbols:u,literals:d,location:p,completionKind:f,symbolToOriginInfoMap:m,contextToken:g,previousToken:h,isJsxInitializer:y,isTypeOnlyLocation:v}=_;var b=bT(d,e=>Gue(r,o,e)===i.name);return void 0!==b?{type:"literal",literal:b}:yT(u,(e,t)=>{var t=m[t],r=dde(e,vD(l),t,f,_.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||tde(t)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:p,origin:t,contextToken:g,previousToken:h,isJsxInitializer:y,isTypeOnlyLocation:v}:void 0})||{type:"none"}}function ide(e,t,r){return ode(e,"",t,[EG(e,r)])}function ade(t,e,r,n,i,a,o,s){var{displayParts:a,documentation:c,symbolKind:l,tags:_}=r.runWithCancellationToken(a,e=>Hme.getSymbolDisplayPartsDocumentationAndSymbolKind(e,t,n,i,i,7));return ode(e,Hme.getSymbolModifiers(r,t),l,a,c,_,o,s)}function ode(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}var sde=(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))(sde||{});function cde(e,t,r){var n=r.getAccessibleSymbolChain(e,t,-1,!1);return n?WT(n):e.parent&&(null!=(n=(n=e.parent).declarations)&&n.some(e=>307===e.kind)?e:cde(e.parent,t,r))}function lde(d,t,p,c,f,m,l,g,j,R){let h=d.getTypeChecker(),M=Wue(p,c);var r=$t();let n=YH(p,f);t("getCompletionData: Get current token: "+($t()-r));var B,r=$t(),i=yK(p,f,n);t("getCompletionData: Is inside comment: "+($t()-r));let _=!1,e=!1,J=!1;if(i){if(vK(p,f)){if(64===p.text.charCodeAt(f-1))return{kind:1};var i=TH(f,p);if(!/[^*|\s(/)]/.test(p.text.substring(i,f)))return{kind:2}}i=n,B=f;i=tT(i,e=>!(!nl(e)||!NH(e,B))||!!A1(e)&&"quit");if(i){if(i.tagName.pos<=f&&f<=i.tagName.end)return{kind:1};if(n9(i))e=!0;else{var a=function(e){{var t;if(function(e){switch(e.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return 1;case 345:return e.constraint;default:return}}(e))return(t=ZF(e)?e.constraint:e.typeExpression)&&309===t.kind?t:void 0}if(GF(e)||H1(e))return e.class}(i);if(!(_=!a||(n=YH(p,f))&&(Dw(n)||348===n.parent.kind&&n.parent.name===n)?_:L(a))&&QF(i)&&(W7(i.name)||i.name.pos<=f&&f<=i.name.end))return{kind:3,tag:i}}}if(!_&&!e)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}r=$t();a=!_&&!e&&C8(p),i=_de(f,p);let u=i.previousToken,y=i.contextToken,v=(t("getCompletionData: Get previous token: "+($t()-r)),n),o,b=!1,x=!1,S=!1,z=!1,s=!1,k=!1,T,C=XH(p,f),w=0,N=!1,D=0;if(y){i=wde(y,p);if(i.keywordCompletion){if(i.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[{name:I3(i.keywordCompletion),kind:"keyword",kindModifiers:"",sortText:Due.GlobalsOrKeywords}],isNewIdentifierLocation:i.isNewIdentifierLocation};w=function(e){if(156===e)return 8;Y4.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(i.keywordCompletion)}if(i.replacementSpan&&m.includeCompletionsForImportStatements&&m.includeCompletionsWithInsertText&&(D|=2,T=i,N=i.isNewIdentifierLocation),!i.replacementSpan&&(r=y,i=$t(),r=function(e){return(s0(e)||sc(e))&&(DH(e,f)||f===e.end&&(!!e.isUnterminated||s0(e)))}(r)||function(e){var t=e.parent,r=t.kind;switch(e.kind){case 28:return 260===r||function(e){return 261===e.parent.kind&&!mK(e,p,h)}(e)||243===r||266===r||ee(r)||264===r||207===r||265===r||qC(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:return 207===r;case 59:return 208===r;case 23:return 207===r;case 21:return 299===r||ee(r);case 19:return 266===r;case 30:return 263===r||231===r||264===r||265===r||gc(r);case 126:return 172===r&&!qC(t.parent);case 26:return 169===r||!!t.parent&&207===t.parent.kind;case 125:case 123:case 124:return 169===r&&!tP(t.parent);case 130:return 276===r||281===r||274===r;case 139:case 153:return!Tde(e);case 80:if(276===r&&e===t.name&&"type"===e.text)return!1;if(tT(e.parent,eF)&&function(e,t){return p.getLineEndOfPosition(e.getEnd())u.end))}(r)||function(e){if(9!==e.kind)return!1;{e=e.getFullText();return"."===e.charAt(e.length-1)}}(r)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(C===e.parent&&(286===C.kind||285===C.kind))return!1;if(286===e.parent.kind)return 286!==C.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(r)||a0(r),t("getCompletionsAtPosition: isCompletionListBlocker: "+($t()-i)),r))return t("Returning an empty list because completion was requested in an invalid position."),w?Uue(w,a,Q()):void 0;let e=y.parent;if(25===y.kind||29===y.kind)switch(b=25===y.kind,x=29===y.kind,e.kind){case 211:if(o=e,v=o.expression,W7(_D(o))||(PP(v)||jC(v))&&v.end===y.pos&&v.getChildCount(p)&&22!==GT(v.getChildren(p)).kind)return;break;case 166:v=e.left;break;case 267:v=e.name;break;case 205:v=e;break;case 236:v=e.getFirstToken(p),Y4.assert(102===v.kind||105===v.kind);break;default:return}else if(!T){if(e&&211===e.kind&&(e=(y=e).parent),n.parent===C)switch(n.kind){case 32:284!==n.parent.kind&&286!==n.parent.kind||(C=n);break;case 44:285===n.parent.kind&&(C=n)}switch(e.kind){case 287:44===y.kind&&(z=!0,C=y);break;case 226:if(!Cde(e))break;case 285:case 284:case 286:k=!0,30===y.kind&&(S=!0,C=y);break;case 294:case 293:(20===u.kind||80===u.kind&&291===u.parent.kind)&&(k=!0);break;case 291:if(e.initializer===u&&u.endeG(e?g.getPackageJsonAutoImportProvider():d,g));if(b||x)!function(){E=2;let n=I5(v),e=n&&!v.isTypeOf||O5(v.parent)||mK(y,p,h),i=GW(v);if(OC(v)||n||dT(v)){var a=sF(v.parent),o=(a&&(N=!0),h.getSymbolAtLocation(v));if(o&&1920&(o=Xp(o,h)).flags){var s=h.getExportsOfModule(o);Y4.assertEachIsDefined(s,"getExportsOfModule() should all be defined");let t=e=>h.isValidPropertyAccess(n?v:v.parent,e.name),r=e=>Ade(e,h);var c,l=a?e=>{return!(!(1920&e.flags)||null!=(e=e.declarations)&&e.every(e=>e.parent===v.parent))}:i?e=>r(e)||t(e):e||_?r:t;for(c of s)l(c)&&P.push(c);if(!e&&!_&&o.declarations&&o.declarations.some(e=>307!==e.kind&&267!==e.kind&&266!==e.kind)){let e=h.getTypeOfSymbolAtLocation(o,v).getNonOptionalType(),t=!1;e.isNullableType()&&((a=b&&!x&&!1!==m.includeAutomaticOptionalChainCompletions)||x)&&(e=e.getNonNullableType(),a)&&(t=!0),K(e,!!(65536&v.flags),t)}return}}if(!e||mN(v)){h.tryGetThisTypeAt(v,!1);let t=h.getTypeAtLocation(v).getNonOptionalType();if(e)K(t.getNonNullableType(),!1,!1);else{let e=!1;t.isNullableType()&&((s=b&&!x&&!1!==m.includeAutomaticOptionalChainCompletions)||x)&&(t=t.getNonNullableType(),s)&&(e=!0),K(t,!!(65536&v.flags),e)}}}();else if(S)P=h.getJsxIntrinsicTagNamesAt(C),Y4.assertEachIsDefined(P,"getJsxIntrinsicTagNames() should all be defined"),$(),E=1,w=0;else if(z){r=y.parent.parent.openingElement.tagName,r=h.getSymbolAtLocation(r);r&&(P=[r]),E=1,w=0}else if(!$())return w?Uue(w,a,N):void 0;t("getCompletionData: Semantic work: "+($t()-i));var W,H,r=u&&function(e,t,r,n){var i=e["parent"];switch(e.kind){case 80:return S$(e,n);case 64:switch(i.kind){case 260:return n.getContextualType(i.initializer);case 226:return n.getTypeAtLocation(i.left);case 291:return n.getContextualTypeForJsxAttribute(i);default:return}case 105:return n.getContextualType(i);case 84:var a=o3(i,C1);return a?N$(a,n):void 0;case 19:return!T1(i)||xF(i.parent)||S1(i.parent)?void 0:n.getContextualTypeForJsxAttribute(i.parent);default:a=Dme.getArgumentInfoForCompletions(e,t,r,n);return a?n.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):T$(e.kind)&&pT(i)&&T$(i.operatorToken.kind)?n.getTypeAtLocation(i.left):n.getContextualType(e,4)||n.getContextualType(e)}}(u,f,p,h),a=!o3(u,k7)&&!k?AT(r&&(r.isUnion()?r.types:[r]),e=>!e.isLiteral()||1024&e.flags?void 0:e.value):[],i=u&&r&&(W=u,t=r,H=h,yT(t&&(t.isUnion()?t.types:[t]),e=>{e=e&&e.symbol;return e&&424&e.flags&&!rf(e)?cde(e,W,H):void 0}));return{kind:0,symbols:P,completionKind:E,isInSnippetScope:J,propertyAccessToConvert:o,isNewIdentifierLocation:N,location:C,keywordFilters:w,literals:a,symbolToOriginInfoMap:A,recommendedCompletion:i,previousToken:u,contextToken:y,isJsxInitializer:s,insideJsDocTagTypeExpression:_,symbolToSortTextMap:I,isTypeOnlyLocation:O,isJsxIdentifierExpected:k,isRightOfOpenTag:S,isRightOfDotOrQuestionDot:b||x,importStatementCompletion:T,hasUnresolvedAutoImports:q,flags:D};function K(t,e,r){N=!!t.getStringIndexType(),x&&X4(t.getCallSignatures())&&(N=!0);let n=205===v.kind?v:v.parent;if(M)for(var i of t.getApparentProperties())h.isValidPropertyAccessForCompletions(n,t,i)&&G(i,!1,r);else P.push(...NT(kde(t,h),e=>h.isValidPropertyAccessForCompletions(n,t,e)));if(e&&m.includeCompletionsWithInsertText){var a=h.getPromisedTypeOfPromise(t);if(a)for(var o of a.getApparentProperties())h.isValidPropertyAccessForCompletions(n,a,o)&&G(o,!0,r)}}function G(e,t,r){var n,i,a,o,s,c=yT(e.declarations,e=>o3(tC(e),HE));function l(e){var t;(t=e).valueDeclaration&&256&ON(t.valueDeclaration)&&qC(t.valueDeclaration.parent)&&(I[sj(e)]=Due.LocalDeclarationPriority)}function _(e){m.includeCompletionsWithInsertText&&(t&&sf(U,sj(e))?A[P.length]={kind:u(8)}:r&&(A[P.length]={kind:16}))}function u(e){return r?16|e:e}c?(n=(c=(c=(c=function e(t){return uT(t)?t:dT(t)?e(t.expression):void 0}(c.expression))&&h.getSymbolAtLocation(c))&&cde(c,y,h))&&sj(c))&&sf(U,n)?(i=P.length,P.push(c),(s=c.parent)&&L7(s)&&h.tryGetMemberInModuleExportsAndProperties(c.name,s)===c?(a=!B3(oN(s.name))||null==(a=q7(s))?void 0:a.fileName,o=((F=F||hne.createImportSpecifierResolver(p,d,g,m)).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:s,symbol:c,targetFlags:Xp(c,h).flags}],f,XD(C))||{})["moduleSpecifier"],o&&(s={kind:u(6),moduleSymbol:s,isDefaultExport:!1,symbolName:c.name,exportName:c.name,fileName:a,moduleSpecifier:o},A[i]=s)):A[i]={kind:u(2)}):!m.includeCompletionsWithInsertText||n&&U.has(n)||(_(e),l(e),P.push(e)):(_(e),l(e),P.push(e))}function $(){return 1===(function(){var e=function(e){if(e){var t=e.parent;switch(e.kind){case 19:if(uP(t))return t;break;case 27:case 28:case 80:if(171===t.kind&&uP(t.parent))return t.parent}}}(y);if(!e)return 0;var t=R0(e.parent)?e.parent:void 0,t=t||e,e=function e(t,r){if(!t)return;if(KC(t)&&S7(t.parent))return r.getTypeArgumentConstraint(t);let n=e(t.parent,r);if(!n)return;switch(t.kind){case 171:return r.getTypeOfPropertyOfContextualType(n,t.symbol.escapedName);case 193:case 187:case 192:return n}}(t,h);if(!e)return 0;let r=h.getTypeFromTypeNode(t),n=kde(e,h),i=kde(r,h),a=new Set;return i.forEach(e=>a.add(e.escapedName)),P=LT(P,NT(n,e=>!a.has(e.escapedName))),E=0,N=!0,1}()||function(){if(26===(null==y?void 0:y.kind))return 0;let e=P.length,r=function(e,t,r){if(e){var n=e["parent"];switch(e.kind){case 19:case 28:if(DP(n)||TP(n))return n;break;case 42:return ZE(n)?o3(n.parent,DP):void 0;case 134:return o3(n.parent,DP);case 80:if("async"===e.text&&AF(e.parent))return e.parent.parent;if(DP(e.parent.parent)&&(IF(e.parent)||AF(e.parent)&&O3(r,e.getEnd()).line!==O3(r,t).line))return e.parent.parent;var i=tT(n,FF);if((null==i?void 0:i.getLastToken(r))===e&&DP(i.parent))return i.parent;break;default:if(null!=(i=n.parent)&&i.parent&&(ZE(n.parent)||rP(n.parent)||nP(n.parent))&&DP(n.parent.parent))return n.parent.parent;if(IF(n)&&DP(n.parent))return n.parent;var a=tT(n,FF);if(59!==e.kind&&(null==a?void 0:a.getLastToken(r))===e&&DP(a.parent))return a.parent}}}(y,f,p);if(!r)return 0;E=0;let n,i;if(210===r.kind){var t=function(e,t){var r=t.getContextualType(e);if(r)return r;r=Sw(e.parent);if(pT(r)&&64===r.operatorToken.kind&&e===r.left)return t.getTypeAtLocation(r);if(nT(r))return t.getContextualType(r)}(r,h);if(void 0===t)return 67108864&r.flags?2:0;var a=h.getContextualType(r,4),o=(a||t).getStringIndexType(),s=(a||t).getNumberIndexType();if(N=!!o||!!s,n=xde(t,a,r,h),i=r.properties,0===n.length&&!s)return 0}else{Y4.assert(206===r.kind),N=!1;o=eN(r.parent);if(!B5(o))return Y4.fail("Root declaration is not variable-like.");let e=b7(o)||!!hN(o)||250===o.parent.parent.kind;if(e||169!==o.kind||(nT(o.parent)?e=!!h.getContextualType(o.parent):174!==o.parent.kind&&178!==o.parent.kind||(e=nT(o.parent.parent)&&!!h.getContextualType(o.parent.parent))),e){let t=h.getTypeAtLocation(r);if(!t)return 2;n=h.getPropertiesOfType(t).filter(e=>h.isPropertyAccessible(r,!1,!1,t,e)),i=r.elements}}n&&0!n.has(e.escapedName));return ne(r,t),t}(n,Y4.checkDefined(i)),P=LT(P,t),re(),210===r.kind)&&m.includeCompletionsWithObjectLiteralMethodSnippets&&m.includeCompletionsWithInsertText&&(function(t){for(let e=t;e{var t;8196&e.flags&&(t=dde(e,vD(c),void 0,0,!1))&&(t=t["name"],t=Que(e,t,r,d,g,c,m,j))&&(t={kind:128,...t},D|=32,A[P.length]=t,P.push(e))})}(t,r));return 1}()||(T?(N=!0,X(),1):0)||function(){if(!y)return 0;var e=19===y.kind||28===y.kind?o3(y.parent,_f):WK(y)?o3(y.parent.parent,_f):void 0;if(!e)return 0;WK(y)||(w=8);var t=(275===e.kind?e.parent:e).parent["moduleSpecifier"];if(!t)return N=!0,275===e.kind?2:0;t=h.getSymbolAtLocation(t);if(!t)return N=!0,2;E=3,N=!1;let r=h.getExportsAndPropertiesOfModule(t),n=new Set(e.elements.filter(e=>!L(e)).map(e=>(e.propertyName||e.name).escapedText)),i=r.filter(e=>"default"!==e.escapedName&&!n.has(e.escapedName));P=LT(P,i),i.length||(w=0);return 1}()||function(){if(void 0===y)return 0;var e=19===y.kind||28===y.kind?o3(y.parent,pF):59===y.kind?o3(y.parent.parent,pF):void 0;if(void 0===e)return 0;let t=new Set(e.elements.map(DE));return P=NT(h.getTypeAtLocation(e).getApparentProperties(),e=>!t.has(e.escapedName)),1}()||function(){var e=!y||19!==y.kind&&28!==y.kind?void 0:o3(y.parent,yF);if(!e)return 0;let n=tT(e,h3(LF,sF));return E=5,N=!1,null==(e=n.locals)||e.forEach((e,t)=>{var r;P.push(e),null!=(r=null==(r=n.symbol)?void 0:r.exports)&&r.has(t)&&(I[sj(e)]=Due.OptionalMember)}),1}()||(function(e){if(e){var t=e.parent;switch(e.kind){case 21:case 28:return tP(e.parent)&&e.parent;default:if(Y(e))return t.parent}}}(y)?(E=5,N=!0,w=4,1):0)||function(){let r=function(e,t,r,n){switch(r.kind){case 352:return o3(r.parent,cf);case 1:var i=o3(KT(s3(r.parent,LF).statements),cf);if(i&&!MH(i,20,e))return i;break;case 81:if(o3(r.parent,QE))return tT(r,qC);break;case 80:if(Q3(r))return;if(QE(r.parent)&&r.parent.initializer===r)return;if(Tde(r))return tT(r,cf)}if(t){if(137===r.kind||uT(t)&&QE(t.parent)&&qC(r))return tT(t,qC);switch(t.kind){case 64:return;case 27:case 20:return Tde(r)&&r.parent.name===r?r.parent.parent:o3(r,cf);case 19:case 28:return o3(t.parent,cf);default:var a;if(cf(r))return O3(e,t.getEnd()).line!==O3(e,n).line?r:(a=qC(t.parent.parent)?yde:hde)(t.kind)||42===t.kind||uT(t)&&a(Q3(t)??0)?t.parent.parent:void 0}}}(p,y,C,f);if(!r)return 0;if(E=3,N=true,w=y.kind===42?0:qC(r)?2:3,qC(r)){var e=(27===y.kind?y.parent:y).parent;let t=zC(e)?ON(e):0;if(80===y.kind&&!L(y))switch(y.getText()){case"private":t|=2;break;case"static":t|=256;break;case"override":t|=16}eP(e)&&(t|=256),2&t||(e=FT(qC(r)&&16&t?v3(Lw(r)):Cu(r),e=>{e=h.getTypeAtLocation(e);return 256&t?(null==e?void 0:e.symbol)&&h.getPropertiesOfType(h.getTypeOfSymbolAtLocation(e.symbol,r)):e&&h.getPropertiesOfType(e)}),G4(P=LT(P,function(e,t,r){let n=new Set;for(var i of t)172!==i.kind&&174!==i.kind&&177!==i.kind&&178!==i.kind||L(i)||kN(i,2)||CN(i)===!!(256&r)&&(i=Ww(i.name))&&n.add(i);return e.filter(e=>!(n.has(e.escapedName)||!e.declarations||2&rD(e)||e.valueDeclaration&&FC(e.valueDeclaration)))}(e,r.members,t)),(e,t)=>{var r=null==e?void 0:e.valueDeclaration;r&&zC(r)&&r.name&&HE(r.name)&&(r={kind:512,symbolName:h.symbolToString(e)},A[t]=r)}))}return 1}()||function(){var e=function(e){if(e){var 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){var r=nK(e.pos,p,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)break;return t.parent.parent;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}}}(y),t=e&&h.getContextualType(e.attributes);if(!t)return 0;var r=e&&h.getContextualType(e.attributes,4);return P=LT(P,function(e,t){let r=new Set,n=new Set;for(var i of t)L(i)||(291===i.kind?r.add(bE(i.name)):NF(i)&&te(i,n));t=e.filter(e=>!r.has(e.escapedName));return ne(n,t),t}(xde(t,r,e.attributes,h),e.attributes.properties)),re(),E=3,N=!1,1}()||(function(){w=function(e){if(e){let t;e=tT(e.parent,e=>qC(e)?"quit":!(!MC(e)||t!==e.body)||(t=e,!1));return e}}(y)?5:1,E=1,N=Q(),u!==y&&Y4.assert(!!u,"Expected 'contextToken' to be defined when different from 'previousToken'.");var e=u!==y?u.getStart():f,e=function(e,t,r){let n=e;for(;n&&!OH(n,t,r);)n=n.parent;return n}(y,e,p)||p,t=(J=function(e){switch(e.kind){case 307:case 228:case 294:case 241:return!0;default:return d7(e)}}(e),2887656|(O?0:111551)),r=u&&!XD(u);P=LT(P,h.getSymbolsInScope(e,t)),Y4.assertEachIsDefined(P,"getSymbolsInScope() should all be defined");for(let e=0;ee.getSourceFile()===p)||(I[sj(n)]=Due.GlobalsOrKeywords),!r||111551&n.flags||(n=n.declarations&&bT(n.declarations,DC))&&(n={kind:64,declaration:n},A[e]=n)}if(m.includeCompletionsWithInsertText&&307!==e.kind){t=h.tryGetThisTypeAt(e,!1,qC(e.parent)?e:void 0);if(t&&!function(e,t,r){var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return 1;n=r.resolveName("global",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return 1;n=r.resolveName("globalThis",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return 1;return}(t,p,h))for(var i of kde(t,h))A[P.length]={kind:1},P.push(i),I[sj(i)]=Due.SuggestedClassMembers}X(),O&&(w=y&&r7(y.parent)?6:7)}(),1))}function X(){var e,o;if((T||m.includeCompletionsForModuleExports&&(p.externalModuleIndicator||p.commonJsModuleIndicator||ZK(d.getCompilerOptions())||null!=(o=d.getSymlinkCache)&&o.call(d).hasAnySymlinks()||d.getCompilerOptions().paths||QK(d)))&&(Y4.assert(!(null!=l&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),!l||l.source)){D|=1;let r=!(u===y&&T)&&u&&uT(u)?u.text.toLowerCase():"",n=null==(o=g.getModuleSpecifierCache)?void 0:o.call(g),t=FX(p,g,d,m,R),i=null==(e=g.getPackageJsonAutoImportProvider)?void 0:e.call(g),a=l?void 0:K$(p,m,g);function s(e){var t=o3(e.moduleSymbol.valueDeclaration,LF);return t?DX(e.isFromPackageJson?i:d,p,t,m,a,V(e.isFromPackageJson),n):(t=oN(e.moduleSymbol.name),(!QV.nodeCoreModules.has(t)||f3(t,"node:")===mX(p,d))&&(!a||a.allowsImportingAmbientModule(e.moduleSymbol,V(e.isFromPackageJson))))}jue("collectAutoImports",g,F=F||hne.createImportSpecifierResolver(p,d,g,m),d,f,m,!!T,XD(C),e=>{t.search(p.path,S,(e,t)=>{return!!R3(e,vD(g.getCompilationSettings()))&&!(!l&&Jw(e)||!(O||T||111551&t)||O&&!(790504&t)||(t=e.charCodeAt(0),S&&(t<65||90{if((!l||X4(r,e=>l.source===oN(e.moduleSymbol.name)))&&(r=NT(r,s)).length){i=e.tryResolve(r,i)||{};if("failed"!==i){let e=r[0],t;"skipped"!==i&&({exportInfo:e=r[0],moduleSpecifier:t}=i);var i=1===e.exportKind,r=i&&fp(Y4.checkDefined(e.symbol))||Y4.checkDefined(e.symbol);r=r,n={kind:t?32:4,moduleSpecifier:t,symbolName:n,exportMapKey:a,exportName:2===e.exportKind?"export=":Y4.checkDefined(e.symbol).name,fileName:e.moduleFileName,isDefaultExport:i,moduleSymbol:e.moduleSymbol,isFromPackageJson:e.isFromPackageJson},a=sj(r),I[a]!==Due.GlobalsOrKeywords&&(A[P.length]=n,I[a]=T?Due.LocationPriority:Due.AutoImportSuggestions,P.push(r))}}}),q=e.skippedAny(),D=(D|=e.resolvedAny()?8:0)|(e.resolvedBeyondLimit()?16:0)})}}function Q(){if(y){var e=y.parent.kind,t=bde(y);switch(t){case 28:return 213===e||176===e||214===e||209===e||226===e||184===e||210===e;case 21:return 213===e||176===e||214===e||217===e||196===e;case 23:return 209===e||181===e||167===e;case 144:case 145:case 102:return!0;case 25:return 267===e;case 19:return 263===e||210===e;case 64:return 260===e||226===e;case 16:return 228===e;case 17:return 239===e;case 134:return 174===e||304===e;case 42:return 174===e}if(yde(t))return!0}return!1}function Y(e){return e.parent&&GE(e.parent)&&tP(e.parent.parent)&&(dc(e.kind)||Dw(e))}function Z(e,t){return 64!==e.kind&&(27===e.kind||!zp(e.end,t,p))}function ee(e){return gc(e)&&176!==e}function te(e,t){var e=e.expression,r=h.getSymbolAtLocation(e),r=r&&h.getTypeOfSymbolAtLocation(r,e),e=r&&r.properties;e&&e.forEach(e=>{t.add(e.name)})}function re(){P.forEach(e=>{16777216&e.flags&&(e=sj(e),I[e]=I[e]??Due.OptionalMember)})}function ne(e,t){if(0!==e.size)for(var r of t)e.has(r.name)&&(I[sj(r)]=Due.MemberDeclaredBySpreadAssignment)}function L(e){return e.getStart(p)<=f&&f<=e.getEnd()}}function _de(e,t){var r=nK(e,t);return r&&e<=r.end&&(Us(r)||Nu(r.kind))?{contextToken:nK(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function ude(e,t,r,n){n=t.isPackageJsonImport?n.getPackageJsonAutoImportProvider():r,r=n.getTypeChecker(),n=t.ambientModuleName?r.tryFindAmbientModule(t.ambientModuleName):t.fileName?r.getMergedSymbol(Y4.checkDefined(n.getSourceFile(t.fileName)).symbol):void 0;if(n){var i,r="export="===t.exportName?r.resolveExternalModuleSymbol(n):r.tryGetMemberInModuleExportsAndProperties(t.exportName,n);if(r)return{symbol:"default"===t.exportName&&fp(r)||r,origin:(r=e,e=n,t="default"===(n=t).exportName,i=!!n.isPackageJsonImport,Mue(n)?{kind:32,exportName:n.exportName,exportMapKey:n.exportMapKey,moduleSpecifier:n.moduleSpecifier,symbolName:r,fileName:n.fileName,moduleSymbol:e,isDefaultExport:t,isFromPackageJson:i}:{kind:4,exportName:n.exportName,exportMapKey:n.exportMapKey,symbolName:r,fileName:n.fileName,moduleSymbol:e,isDefaultExport:t,isFromPackageJson:i})}}}function dde(e,t,r,n,i){if(!((a=r)&&256&a.kind)){var a,o=Fue(a=r)||Aue(a)||Lue(a)?r.symbolName:e.name;if(!(void 0===o||1536&e.flags&&A8(o.charCodeAt(0))||Xw(e))){var s={name:o,needsConvertPropertyAccess:!1};if(R3(o,t,i?1:0)||e.valueDeclaration&&FC(e.valueDeclaration))return s;switch(n){case 3:return Lue(r)?{name:r.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 s;default:Y4.assertNever(n)}}}}var pde=[],fde=Ci(()=>{var t=[];for(let e=83;e<=165;e++)t.push({name:I3(e),kind:"keyword",kindModifiers:"",sortText:Due.GlobalsOrKeywords});return t});function mde(e,t){return t?pde[t=e+8+1]||(pde[t]=gde(e).filter(e=>{switch($a(e.name)){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!1;default:return!void 0}return!0})):gde(e)}function gde(r){return pde[r]||(pde[r]=fde().filter(e=>{var t=$a(e.name);switch(r){case 0:return!1;case 1:return vde(t)||138===t||144===t||156===t||145===t||128===t||UK(t)&&157!==t;case 5:return vde(t);case 2:return yde(t);case 3:return hde(t);case 4:return dc(t);case 6:return UK(t)||87===t;case 7:return UK(t);case 8:return 156===t;default:return Y4.assertNever(r)}}))}function hde(e){return 148===e}function yde(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return pc(e)}}function vde(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Pu(e)&&!yde(e)}function bde(e){return uT(e)?Q3(e)??0:e.kind}function xde(e,t,r,n){var i,a,o=t&&t!==e,e=!o||3&t.flags?e:n.getUnionType([e,t]),n=(i=r,a=n,(t=e).isUnion()?a.getAllPossiblePropertiesOfTypes(NT(t.types,e=>!(402784252&e.flags||a.isArrayLikeType(e)||a.isTypeInvalidDueToUnionDiscriminant(e,i)||a.typeHasCallOrConstructSignatures(e)||e.isClass()&&Sde(e.getApparentProperties())))):t.getApparentProperties());return e.isClass()&&Sde(n)?[]:o?NT(n,function(e){return!K4(e.declarations)||X4(e.declarations,e=>e.parent!==r)}):n}function Sde(e){return X4(e,e=>!!(6&rD(e)))}function kde(e,t){return e.isUnion()?Y4.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):Y4.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Tde(e){return e.parent&&xc(e.parent)&&cf(e.parent.parent)}function Cde({left:e}){return W7(e)}function wde(r,n){let e,t,i,a,o=!1;var s=function(){var e=r.parent;{var t;if(_F(e))return t=e.getLastToken(n),uT(r)&&t!==r?(a=161,void(o=!0)):(a=156===r.kind?void 0:156,Pde(e.moduleReference)?e:void 0)}if(Dde(e,r)&&Ede(e.parent))return e;if(h1(e)||g1(e)){if(e.parent.isTypeOnly||19!==r.kind&&102!==r.kind&&28!==r.kind||(a=156),Ede(e)){if(20!==r.kind&&80!==r.kind)return e.parent.parent;o=!0,a=161}}else{if(!(hF(e)&&42===r.kind||yF(e)&&20===r.kind))return VE(r)&&LF(e)?(a=156,r):VE(r)&&uF(e)&&(a=156,Pde(e.moduleSpecifier))?e:void 0;o=!0,a=161}}();return{isKeywordOnlyCompletion:o,keywordCompletion:a,isNewIdentifierLocation:!(!s&&156!==a),isTopLevelTypeOnly:!(null==(t=null==(e=o3(s,uF))?void 0:e.importClause)||!t.isTypeOnly)||!(null==(i=o3(s,_F))||!i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&Dde(s,r),replacementSpan:function(e){if(e){var e=tT(e,h3(uF,_F,n9))??e,t=e.getSourceFile();if(Ip(e,t))return LK(e,t);Y4.assert(102!==e.kind&&276!==e.kind);var r=272===e.kind||351===e.kind?Nde(null==(r=e.importClause)?void 0:r.namedBindings)??e.moduleSpecifier:e.moduleReference,e={pos:e.getFirstToken().getStart(),end:r.pos};return Ip(e,t)?MK(e):void 0}}(s)}}function Nde(t){var e;return bT(null==(e=o3(t,h1))?void 0:e.elements,e=>{return!e.propertyName&&Jw(e.name.text)&&28!==(null==(e=nK(e.name.pos,t.getSourceFile(),t))?void 0:e.kind)})}function Dde(e,t){return mF(e)&&(e.isTypeOnly||t===e.name&&WK(t))}function Ede(e){var t;return Pde(e.parent.parent.moduleSpecifier)&&!e.parent.name&&(!h1(e)||((t=Nde(e))?e.elements.indexOf(t):e.elements.length)<2)}function Pde(e){return W7(e)||null==(e=o3(bF(e)?e.expression:e,k7))||!e.text}function Fde(e){return e.parent&&LP(e.parent)&&(e.parent.body===e||39===e.kind)}function Ade(e,t,r=new Map){return n(e)||n(Xp(e.exportSymbol||e,t));function n(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&sf(r,sj(e))&&t.getExportsOfModule(e).some(e=>Ade(e,t,r))}}function Ide(t,r){if(0===r.length)return!0;let n=!1,i,a=0;var o=t.length;for(let e=0;efunction(e,t,r,n,i,a,o,s){if(n&&k7(n))return(r=Bde(t,n,r,i,a,s))&&function(t,e,r,n,i,a){switch(r.kind){case 0:var o=bT(r.paths,e=>e.name===t);return o&&ode(t,Mde(o.extension),o.kind,[RG(t)]);case 1:o=bT(r.symbols,e=>e.name===t);return o&&ade(o,o.name,i,n,e,a);case 2:return bT(r.types,e=>e.value===t)?ode(t,"","string",[RG(t)]):void 0;default:return Y4.assertNever(r)}}(e,n,r,t,i.getTypeChecker(),o)},getStringLiteralCompletions:()=>function(e,t,r,n,i,a,o,s,c){{var l;if(FK(e,t))return(l=function(e,t,r,n){var i=YH(e,t),i=No(e.text,i.pos),i=i&&bT(i,e=>t>=e.pos&&t<=e.end);if(i){var a,o,s,c=e.text.slice(i.pos,t),c=npe.exec(c);if(c)return[,c,s,a]=c,o=D3(e.path),s="path"===s?$de(a,o,Gde(r,0,e),n,!0,e.path):"types"===s?rpe(n,r,o,Zde(a),Gde(r,1,e)):Y4.fail(),Hde(a,i.pos+c.length,ZT(s.values()))}}(e,t,n,i))&&Rde(l)}if(sK(e,t,r))if(r&&k7(r))return function(e,r,t,n,i,a,o,s,c,l){if(void 0!==e){var _=jK(r,c);switch(e.kind){case 0:return Rde(e.paths);case 1:var u=[];return rde(e.symbols,u,r,r,t,c,t,n,i,99,a,4,s,o,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};case 2:{let t=15===r.kind?96:f3(K7(r),"'")?39:34;u=e.types.map(e=>({name:aN(e.value,t),kindModifiers:"",kind:"string",sortText:Due.LocationPriority,replacementSpan:OK(r,c)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:_,entries:u}}default:return Y4.assertNever(e)}}}(Bde(e,r,t,a,i,s),r,e,i,a,o,n,s,t,c)}}),{directory:0,script:1,"external module name":2});function jde(){let r=new Map;return{add:function(e){var t=r.get(e.name);(!t||Lde[t.kind]({name:e,kind:t,kindModifiers:Mde(n),sortText:Due.LocationPriority,replacementSpan:r}))}}function Mde(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 Y4.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return Y4.assertNever(e)}}function Bde(e,r,i,n,a,o){let s=n.getTypeChecker(),c=Jde(r.parent);switch(c.kind){case 201:var l=Jde(c.parent);return 205===l.kind?{kind:0,paths:Kde(e,r,n,a,o)}:function r(n){switch(n.kind){case 233:case 183:{let e=tT(c,e=>e.parent===n);return e?{kind:2,types:Ude(s.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 199:let{indexType:e,objectType:t}=n;return NH(e,i)?qde(s.getTypeFromTypeNode(t)):void 0;case 192:{let e=r(Jde(n.parent));if(!e)return;let t=zde(n,c);return 1===e.kind?{kind:1,symbols:e.symbols.filter(e=>!TT(t,e.name)),hasIndexSignature:e.hasIndexSignature}:{kind:2,types:e.types.filter(e=>!TT(t,e.value)),isNewIdentifier:!1}}default:return}}(l);case 303:return DP(c.parent)&&c.name===r?(l=s,u=c.parent,(p=l.getContextualType(u))?(_=l.getContextualType(u,4),{kind:1,symbols:xde(p,_,u,l),hasIndexSignature:w$(p)}):void 0):f()||f(0);case 212:var{expression:_,argumentExpression:u}=c;return r===Cw(u)?qde(s.getTypeAtLocation(_)):void 0;case 213:case 214:case 291:if(!(PP((p=r).parent)&&UT(p.parent.arguments)===p&&uT(p.parent.expression)&&"require"===p.parent.expression.escapedText||A5(c)))return(d=Dme.getArgumentInfoForCompletions(291===c.kind?c.parent:r,i,e,s))&&function(r,e,n,i){let a=!1,o=new Map,s=f7(r)?Y4.checkDefined(tT(e.parent,CF)):e,t=i.getCandidateSignaturesForStringLiteralCompletions(r,s),c=FT(t,t=>{if(pj(t)||!(n.argumentCount>t.parameters.length)){let e=t.getTypeParameterAtPosition(n.argumentIndex);return f7(r)&&(t=i.getTypeOfPropertyOfType(e,xE(s.name)))&&(e=t),a=a||!!(4&e.flags),Ude(e,o)}});return K4(c)?{kind:2,types:c,isNewIdentifier:a}:void 0}(d.invocation,r,d,s)||f(0);case 272:case 278:case 283:case 351:return{kind:0,paths:Kde(e,r,n,a,o)};case 296:let t=xX(s,c.parent.clauses);var d=f();return d?{kind:2,types:d.types.filter(e=>!t.hasValue(e.value)),isNewIdentifier:!1}:void 0;default:return f()||f(0)}var p;function f(e=4){e=Ude(S$(r,s,e));if(e.length)return{kind:2,types:e,isNewIdentifier:!1}}}function Jde(e){switch(e.kind){case 196:return xw(e);case 217:return Sw(e);default:return e}}function zde(e,t){return AT(e.types,e=>e!==t&&SP(e)&&qE(e.literal)?e.literal.text:void 0)}function qde(e){return e&&{kind:1,symbols:NT(e.getApparentProperties(),e=>!(e.valueDeclaration&&FC(e.valueDeclaration))),hasIndexSignature:w$(e)}}function Ude(e,t=new Map){return e?(e=$K(e)).isUnion()?FT(e.types,e=>Ude(e,t)):!e.isStringLiteral()||1024&e.flags||!sf(t,e.value)?H4:[e]:H4}function Vde(e,t,r){return{name:e,kind:t,extension:r}}function Wde(e){return Vde(e,"directory",void 0)}function Hde(e,t,r){i=e,a=t,o=-1!==(o=Math.max(i.lastIndexOf(qi),i.lastIndexOf(Ui)))?o+1:0;let n=0==(s=i.length-o)||R3(i.substr(o,s),99)?void 0:Qo(a+o,s);var i,a,o,s;let c=0===e.length?void 0:Qo(t,e.length);return r.map(({name:e,kind:t,extension:r})=>e.includes(qi)||e.includes(Ui)?{name:e,kind:t,extension:r,span:c}:{name:e,kind:t,extension:r,span:n})}function Kde(e,t,r,n,i){return Hde(t.text,t.getStart(e)+1,(e=e,r=r,n=n,i=i,a=sa((t=t).text),t=k7(t)?r.getModeForUsageLocation(e,t):void 0,o=e.path,s=D3(o),c=r.getCompilerOptions(),r=r.getTypeChecker(),e=Gde(c,1,e,r,i,t),function(e){{var t;if(e&&2<=e.length&&46===e.charCodeAt(0))return t=3<=e.length&&46===e.charCodeAt(1)?2:1,47===(e=e.charCodeAt(t))||92===e}return}(a)||!c.baseUrl&&!c.paths&&(Gi(a)||Ki(a))?function(e,t,r,n,i,a){return r.rootDirs?function(e,t,r,n,i,a,o){var i=i.project||a.getCurrentDirectory(),s=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames()),e=function(e,t,r,n){let i=yT(e=e.map(e=>ma(ua(Gi(e)?e:E3(t,e)))),e=>ka(e,r,t,n)?r.substr(e.length):void 0);return RT([...e.map(e=>E3(e,i)),r].map(e=>fa(e)),Sr,Se)}(e,i,r,s);return RT(FT(e,e=>ZT($de(t,e,n,a,!0,o).values())),(e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension)}(r.rootDirs,e,t,a,r,n,i):ZT($de(e,t,a,n,!0,i).values())}(a,s,c,n,o,e):function(o,t,s,c,l,_,e){let{baseUrl:r,paths:n}=c,u=jde(),i=xD(c);r&&(a=ua(E3(l.getCurrentDirectory(),r)),$de(o,a,_,l,!1,void 0,u));{var a;n&&(a=Fd(c,l),Qde(u,o,a,_,l,n))}var d=Zde(o);for(var p of function(t,e,r){r=r.getAmbientModules().map(e=>oN(e.name)),r=r.filter(e=>f3(e,t)&&!e.includes("*"));if(void 0===e)return r;{let t=ma(e);return r.map(e=>m3(e,t))}}(o,d,e))u.add(Vde(p,"external module name",void 0));if(rpe(l,c,t,d,_,u),rG(i)){let e=!1;if(void 0===d)for(var f of function(e,t){if(!e.readFile||!e.fileExists)return H4;var r=[];for(var n of U$(t,e)){var i,a=bp(n,e);for(i of ipe){var o=a[i];if(o)for(var s in o)Si(o,s)&&!f3(s,"@types/")&&r.push(s)}}return r}(l,t)){f=Vde(f,"external module name",void 0);u.has(f.name)||(e=!0,u.add(f))}if(!e){let e=e=>{e=E3(e,"node_modules");J$(l,e)&&$de(o,e,_,l,!1,void 0,u)};if(d&&jf(c)){let r=e;e=e=>{var n=aa(o);n.shift();let t=n.shift();if(t){if(f3(t,"@")){var i=n.shift();if(!i)return r(e);t=E3(t,i)}var i=E3(e,"node_modules",t),a=E3(i,"package.json");if(B$(l,a)){let r=bp(a,l).exports;if(r){if("object"!=typeof r||null===r)return;a=J(r),n=n.join("/")+(n.length&&Yi(o)?"/":"");let t=LI(c,s);return void Yde(u,!0,n,i,_,l,a,e=>v3(function t(r,n){if("string"==typeof r)return r;if(r&&"object"==typeof r&&!i3(r))for(var i in r)if("default"===i||n.includes(i)||BO(n,i)){let e=r[i];return t(e,n)}}(r[e],t)),jO)}}}return r(e)}}Pa(t,e)}}return ZT(u.values())}(a,s,t,c,n,e,r)));var a,o,s,c}function Gde(e,t,r,n,i,a){return{extensionsToSearch:PT((e=e,n=(n=n)?AT(n.getAmbientModules(),e=>{e=e.name.slice(1,-1);if(e.startsWith("*.")&&!e.includes("/"))return e.slice(1)}):[],n=[...Fm(e),n],rG(xD(e))?Am(e,n):n)),referenceKind:t,importingSourceFile:r,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:a}}function $de(e,t,r,n,i,a,o=jde()){var e=la(t,e=ma(e=""===(e=Yi(e=sa(e=void 0===e?"":e))?e:D3(e))?"."+qi:e)),s=Yi(e)?e:D3(e);if(!i){i=V$(s,n);if(i){var c=bp(i,n).typesVersions;if("object"==typeof c){c=null==(c=DI(c))?void 0:c.paths;if(c){i=D3(i);if(Qde(o,e.slice(ma(i).length),i,r,n,c))return o}}}}var l=!(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames());if(J$(n,s)){var _,e=M$(n,s,r.extensionsToSearch,void 0,["./*"]);if(e)for(var u of e)u=ua(u),a&&0===F3(u,a,t,l)||({name:u,extension:_}=Xde(ra(u),n.getCompilationSettings(),r,!1),o.add(Vde(u,"script",_)));i=R$(n,s);if(i)for(var d of i){d=ra(ua(d));"@types"!==d&&o.add(Wde(d))}}return o}function Xde(e,t,r,n){var i=yL.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:MD(i)};if(0===r.referenceKind)return{name:e,extension:MD(e)};let a=bL({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);return 3===(a=n?a.filter(e=>0!==e&&1!==e):a)[0]?!N3(e,Em)&&(i=yL.tryGetJSExtensionForFile(e,t))?{name:Vm(e,i),extension:i}:{name:e,extension:MD(e)}:n||0!==a[0]&&1!==a[0]||!N3(e,[".js",".jsx",".ts",".tsx",".d.ts"])?(r=yL.tryGetJSExtensionForFile(e,t))?{name:Vm(e,r),extension:r}:{name:e,extension:MD(e)}:{name:qm(e),extension:MD(e)}}function Qde(e,t,r,n,i,a){return Yde(e,!1,t,r,n,i,J(a),e=>a[e],(e,t)=>{var r=Wm(e),n=Wm(t),r=("object"==typeof r?r.prefix:e).length;return l3(("object"==typeof n?n.prefix:t).length,r)})}function Yde(t,e,r,n,i,a,o,s,c){let l=[],_;for(var u of o){var d,p,f,m;"."!==u&&(d=u.replace(/^\.\//,""),(p=s(u))&&(f=Wm(d)))&&(!(m="object"==typeof f&&We(f,r))||void 0!==_&&-1!==c(u,_)||(_=u,l=l.filter(e=>!e.matchedPattern)),"string"!=typeof f&&void 0!==_&&1===c(u,_)||l.push({matchedPattern:m,results:function(e,t,r,n,i,a,o){if(!u3(e,"*"))return e.includes("*")?H4:l(e,"script");let s=e.slice(0,e.length-1),c=Ve(r,s);if(void 0!==c)return FT(t,e=>epe(c,n,e,i,a,o));return"/"===e[e.length-2]?l(s,"directory"):FT(t,e=>{return null==(e=epe("",n,e,i,a,o))?void 0:e.map(({name:e,...t})=>({name:s+e,...t}))});function l(e,t){return f3(e,r)?[{name:fa(e),kind:t,extension:void 0}]:H4}}(d,p,r,n,i,e&&m,a).map(({name:e,kind:t,extension:r})=>Vde(e,t,r))}))}return l.forEach(e=>e.results.forEach(e=>t.add(e))),void 0!==_}function Zde(e){return ape(e)?Yi(e)?e:D3(e):void 0}function epe(e,t,n,a,o,s){if(s.readDirectory){n=Wm(n);if(void 0!==n&&!a3(n)){var c=la(n.prefix),l=Yi(n.prefix)?c:D3(c),c=Yi(n.prefix)?"":ra(c),_=ape(e),e=_?Yi(e)?e:D3(e):void 0,e=_?E3(l,c+e):l,l=ua(n.suffix),n=l&&Ed("_"+l);let r=n?[Vm(l,n),l]:[l];n=ua(E3(t,e));let i=_?n:ma(n)+c;t=l?r.map(e=>"**/*"+e):["./*"],e=AT(M$(s,n,a.extensionsToSearch,void 0,t),e=>{n=e;var n,t,e=yT(r,e=>{t=ua(n),r=i,e=e;var t,r=f3(t,r)&&u3(t,e)?t.slice(r.length,t.length-e.length):void 0;return void 0===r?void 0:tpe(r)});if(e)return ape(e)?Wde(aa(tpe(e))[1]):({name:e,extension:t}=Xde(e,s.getCompilationSettings(),a,o),Vde(e,"script",t))}),_=l?H4:AT(R$(s,n),e=>"node_modules"===e?void 0:Wde(e));return[...e,..._]}}}function tpe(e){return e[0]===qi?e.slice(1):e}function rpe(n,i,e,a,o,s=jde()){let c=new Map;var t,r;for(t of z$(()=>EI(i,n))||H4)l(t);for(r of U$(e,n))l(E3(D3(r),"node_modules/@types"));return s;function l(e){if(J$(n,e))for(var t of R$(n,e)){var r=XO(t);i.types&&!TT(i.types,r)||(void 0===a?c.has(r)||(s.add(Vde(r,"external module name",void 0)),c.set(r,!0)):(t=E3(e,t),void 0!==(r=Yf(a,r,xd(n)))&&$de(r,t,o,n,!1,void 0,s)))}}}var npe=/^(\/\/\/\s*{r=n.getSymbolAtLocation(r);if(r){r=sj(r).toString();let e=i.get(r);e||i.set(r,e=[]),e.push(t)}});return i}(a,s,c);return(e,t,r)=>{var{directImports:n,indirectUsers:i}=function(t,r,n,{exportingModuleSymbol:i,exportKind:a},o,s){let c=HK(),l=HK(),_=[],u=!!i.globalExports,d=u?void 0:[];return function t(e){let r=h(e);if(r)for(var n of r)if(c(n))switch(s&&s.throwIfCancellationRequested(),n.kind){case 213:if(A5(n))p(n);else if(!u){let t=n.parent;if(2===a&&260===t.kind){let e=t["name"];if(80===e.kind){_.push(e);break}}}break;case 80:break;case 271:m(n,n.name,TN(n,32),!1);break;case 272:case 351:_.push(n);let e=n.importClause&&n.importClause.namedBindings;e&&274===e.kind?m(n,e.name,!1,!0):!u&&lu(n)&&g(gpe(n));break;case 278:n.exportClause?280===n.exportClause.kind?g(gpe(n),!0):_.push(n):t(mpe(n,o));break;case 205:!u&&n.isTypeOf&&!n.qualifier&&f(n)&&g(n.getSourceFile(),!0),_.push(n);break;default:Y4.failBadSyntaxKind(n,"Unexpected import kind.")}}(i),{directImports:_,indirectUsers:function(){if(u)return t;if(i.declarations)for(var e of i.declarations)i5(e)&&r.has(e.getSourceFile().fileName)&&g(e);return d.map(iT)}()};function p(e){g(tT(e,hpe)||e.getSourceFile(),!!f(e,!0))}function f(e,t=!1){return tT(e,e=>t&&hpe(e)?"quit":f9(e)&&X4(e.modifiers,S0))}function m(e,t,r,n){2===a?n||_.push(e):u||(n=gpe(e),Y4.assert(307===n.kind||267===n.kind),r||function(e,t,r){let n=r.getSymbolAtLocation(t);return upe(e,e=>{var t;if(hF(e))return{exportClause:e,moduleSpecifier:t}=e,!t&&e&&yF(e)&&e.elements.some(e=>r.getExportSpecifierLocalTargetSymbol(e)===n)})}(n,t,o)?g(n,!0):g(n))}function g(e,t=!1){Y4.assert(!u);var r=l(e);if(r&&(d.push(e),t)){r=o.getMergedSymbol(e.symbol);if(r){Y4.assert(!!(1536&r.flags));t=h(r);if(t)for(var n of t)kP(n)||g(gpe(n),!0)}}}function h(e){return n.get(sj(e).toString())}}(a,o,l,t,s,c);return{indirectUsers:i,...function(e,i,n,a,o){let r=[],s=[];function c(e,t){r.push([e,t])}if(e)for(var t of e)!function(e){if(271===e.kind)ype(e)&&l(e.name);else if(80===e.kind)l(e);else if(205===e.kind)e.qualifier?(t=VN(e.qualifier)).escapedText===Y3(i)&&s.push(t):2===n&&s.push(e.argument.literal);else if(11===e.moduleSpecifier.kind)if(278===e.kind)e.exportClause&&yF(e.exportClause)&&_(e.exportClause);else{var{name:t,namedBindings:r}=e.importClause||{name:void 0,namedBindings:void 0};if(r)switch(r.kind){case 274:l(r.name);break;case 275:0!==n&&1!==n||_(r);break;default:Y4.assertNever(r)}!t||1!==n&&2!==n||o&&t.escapedText!==_G(i)||(e=a.getSymbolAtLocation(t),c(t,e))}}(t);return{importSearches:r,singleReferences:s};function l(e){2!==n||o&&!u(e.escapedText)||c(e,a.getSymbolAtLocation(e))}function _(e){if(e)for(var t of e.elements){var{name:r,propertyName:n}=t;u((n||r).escapedText)&&(n?(s.push(n),o&&r.escapedText!==i.escapedName||c(r,a.getSymbolAtLocation(r))):c(r,281===t.kind&&t.propertyName?a.getExportSpecifierLocalTargetSymbol(t):a.getSymbolAtLocation(r)))}}function u(e){return e===i.escapedName||0!==n&&"default"===e}}(n,e,t.exportKind,s,r)}}}r(ope,{Core:()=>Cpe,DefinitionKind:()=>vpe,EntryKind:()=>bpe,ExportKind:()=>cpe,FindReferencesUse:()=>wpe,ImportExport:()=>lpe,createImportTracker:()=>spe,findModuleReferences:()=>_pe,findReferenceOrRenameEntries:()=>function(t,e,r,n,i,a,o){return $4(Epe(Cpe.getReferencedSymbolsForNode(i,n,t,r,e,a)),e=>o(e,n,t.getTypeChecker()))},findReferencedSymbols:()=>function(e,t,r,n,i){let _=XH(n,i),a={use:1},o=Cpe.getReferencedSymbolsForNode(i,_,e,r,t,a),s=e.getTypeChecker(),c=Cpe.getAdjustedNode(_,a),u=function(e){return 90===e.kind||Su(e)||Ew(e)||137===e.kind&&tP(e.parent)}(c)?s.getSymbolAtLocation(c):void 0;return o&&o.length?AT(o,({definition:l,references:e})=>l&&{definition:s.runWithCancellationToken(t,e=>{var i=l,a=e,o=_,{sourceFile:e,textSpan:t,name:r,kind:n,displayParts:s,context:c}=e=(()=>{switch(i.type){case 0:var e=i["symbol"],{displayParts:t,kind:r}=Fpe(e,a,o),n=t.map(e=>e.text).join(""),e=e.declarations&&UT(e.declarations);return{...Ppe(e?tC(e)||e:o),name:n,kind:r,displayParts:t,context:kpe(e)};case 1:n=i["node"];return{...Ppe(n),name:n.text,kind:"label",displayParts:[EG(n.text,17)]};case 2:r=i["node"],t=I3(r.kind);return{...Ppe(r),name:t,kind:"keyword",displayParts:[{text:t,kind:"keyword"}]};case 3:e=i["node"],n=a.getSymbolAtLocation(e),r=n&&Hme.getSymbolDisplayPartsDocumentationAndSymbolKind(a,n,e.getSourceFile(),bH(e),e).displayParts||[RG("this")];return{...Ppe(e),name:"this",kind:"var",displayParts:r};case 4:t=i["node"];return{...Ppe(t),name:t.text,kind:"var",displayParts:[EG(K7(t),8)]};case 5:return{textSpan:MK(i.reference),sourceFile:i.file,name:i.reference.fileName,kind:"string",displayParts:[EG(`"${i.reference.fileName}"`,8)]};default:return Y4.assertNever(i)}})();return{containerKind:"",containerName:"",fileName:e.fileName,kind:n,name:r,textSpan:t,displayParts:s,...Tpe(t,e,c)}}),references:e.map(e=>{return e=e,t=u,r=Ape(e),t?{...r,isDefinition:0!==e.kind&&Rpe(e.node,t)}:r;var t,r})}):void 0},getContextNode:()=>kpe,getExportInfo:()=>fpe,getImplementationsAtPosition:()=>function(e,t,r,n,i){let a=XH(n,i),o,s=Npe(e,t,r,a,i);if(211===a.parent.kind||208===a.parent.kind||212===a.parent.kind||108===a.kind)o=s&&[...s];else if(s)for(var c=ae(s),l=new Map;!c.isEmpty();){var _=c.dequeue();sf(l,oj(_.node))&&(o=Q4(o,_),_=Npe(e,t,r,_.node,_.node.pos))&&c.enqueue(..._)}let u=e.getTypeChecker();return $4(o,e=>{return e=e,t=u,r=Ipe(e),0!==e.kind?(e=e["node"],{...r,...function(e,t){var r=t.getSymbolAtLocation(u7(e)&&e.name?e.name:e);return r?Fpe(r,t,e):210===e.kind?{kind:"interface",displayParts:[AG(21),RG("object literal"),AG(22)]}:231===e.kind?{kind:"local class",displayParts:[AG(21),RG("anonymous local class"),AG(22)]}:{kind:xH(e),displayParts:[]}}(e,t)}):{...r,kind:"",displayParts:[]};var t,r})},getImportOrExportSymbol:()=>ppe,getReferenceEntriesForNode:()=>Dpe,getTextSpanOfEntry:()=>Lpe,isContextWithStartAndEndNode:()=>Spe,isDeclarationOfSymbol:()=>Rpe,isWriteAccessForReference:()=>jpe,nodeEntry:()=>xpe,toContextSpan:()=>Tpe,toHighlightSpan:()=>function(e){var t=Ipe(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=jpe(e.node),r={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}},toReferenceEntry:()=>Ape,toRenameLocation:()=>function(e,t,r,n,i){return{...Ipe(e),...n&&function(e,t,r,n){if(0!==e.kind&&(uT(t)||k7(t))){var i,{node:a,kind:o}=e,s=a.parent,c=t.text,l=AF(s);if(l||dG(s)&&s.name===a&&void 0===s.dotDotDotToken)return a={prefixText:c+": "},i={suffixText:": "+c},3===o||4!==o&&(!l||DP(o=s.parent)&&pT(o.parent)&&U8(o.parent.left))?a:i;if(mF(s)&&!s.propertyName)return TT((vF(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t)).declarations,s)?{prefixText:c+" as "}:TW;if(vF(s)&&!s.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:c+" as "}:{suffixText:" as "+c}}if(0!==e.kind&&zE(e.node)&&lD(e.node.parent))return{prefixText:l=cG(n),suffixText:l};return TW}(e,t,r,i)}}});var cpe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(cpe||{}),lpe=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(lpe||{});function _pe(e,t,n){let i,a=[],o=e.getTypeChecker();for(let r of t){var s=n.valueDeclaration;if(307===(null==s?void 0:s.kind)){for(var c of r.referencedFiles)e.getSourceFileFromReference(r,c)===s&&a.push({kind:"reference",referencingFile:r,ref:c});for(var l of r.typeReferenceDirectives){var _=null==(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(l,r))?void 0:i.resolvedTypeReferenceDirective;void 0!==_&&_.resolvedFileName===s.fileName&&a.push({kind:"reference",referencingFile:r,ref:l})}}dpe(r,(e,t)=>{o.getSymbolAtLocation(t)===n&&a.push(rN(e)?{kind:"implicit",literal:t,referencingFile:r}:{kind:"import",literal:t})})}return a}function upe(e,t){return G4((307===e.kind?e:e.body).statements,e=>t(e)||hpe(e)&&G4(e.body&&e.body.statements,t))}function dpe(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(var r of e.imports)t(su(r),r);else upe(e,e=>{switch(e.kind){case 278:case 272:e.moduleSpecifier&&qE(e.moduleSpecifier)&&t(e,e.moduleSpecifier);break;case 271:ype(e)&&t(e,e.moduleReference.expression)}})}function ppe(c,l,_,u){return u?e():e()||function(){var t=function(e){var t=e["parent"];switch(t.kind){case 271:return t.name===e&&ype(t);case 276:return!t.propertyName;case 273:case 274:return Y4.assert(t.name===e),!0;case 208:return oT(e)&&P8(t.parent.parent);default:return!1}}(c);if(t){let e=_.getImmediateAliasedSymbol(l);return e&&!("export="===(e=function(e,t){if(e.declarations)for(var r of e.declarations){if(vF(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(dT(r)&&U8(r.expression)&&!UE(r.name))return t.getSymbolAtLocation(r);if(AF(r)&&pT(r.parent.parent)&&2===V8(r.parent.parent))return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}(e,_)).escapedName&&void 0===(e=function(e,t){if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);t=Y4.checkDefined(e.valueDeclaration);{if(gF(t))return null==(e=o3(t.expression,l7))?void 0:e.symbol;if(pT(t))return null==(e=o3(t.right,l7))?void 0:e.symbol;if(LF(t))return t.symbol}}(e,_))||void 0!==(t=_G(e))&&"default"!==t&&t!==l.escapedName)?{kind:0,symbol:e}:void 0}}();function e(){let e,t=c.parent;var r,n,i,a=t.parent;return l.exportSymbol?211===t.kind?null!=(e=l.declarations)&&e.some(e=>e===t)&&pT(a)?s(a,!1):void 0:d(l.exportSymbol,p(t)):(r=t,n=c,(n=(i=eF(r)?r:wP(r)?V3(r):void 0)?r.name===n&&!PF(i.parent)&&GP(i.parent.parent)?i.parent.parent:void 0:r)&&TN(n,32)?_F(n)&&n.moduleReference===c?u?void 0:{kind:0,symbol:_.getSymbolAtLocation(n.name)}:d(l,p(n)):fF(t)?d(l,0):gF(t)?o(t):gF(a)?o(a):pT(t)?s(t,!0):pT(a)?s(a,!0):e9(t)||$F(t)?d(l,0):void 0);function o(e){var t;if(e.symbol.parent)return t=e.isExportEquals?2:1,{kind:1,symbol:l,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:t}}}function s(e,t){let r;switch(V8(e)){case 1:r=0;break;case 2:r=2;break;default:return}t=t?_.getSymbolAtLocation(lf(s3(e.left,lD))):l;return t&&d(t,r)}}function d(e,t){t=fpe(e,t,_);return t&&{kind:1,symbol:e,exportInfo:t}}function p(e){return TN(e,2048)?1:0}}function fpe(e,t,r){e=e.parent;return e&&L7(r=r.getMergedSymbol(e))?{exportingModuleSymbol:r,exportKind:t}:void 0}function mpe(e,t){return t.getMergedSymbol(gpe(e).symbol)}function gpe(e){return 213===e.kind?e.getSourceFile():(e=e["parent"],307===e.kind?e:(Y4.assert(268===e.kind),s3(e.parent,hpe)))}function hpe(e){return 267===e.kind&&11===e.name.kind}function ype(e){return 283===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var vpe=(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))(vpe||{}),bpe=(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))(bpe||{});function xpe(e,t=1){return{kind:t,node:e.name||e,context:function(e){if(u7(e))return kpe(e);if(e.parent){if(!u7(e.parent)&&!gF(e.parent)){if(oT(e)){var t=pT(e.parent)?e.parent:lD(e.parent)&&pT(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==V8(t))return kpe(t)}if(kF(e.parent)||x1(e.parent))return e.parent.parent;if(SF(e.parent)||s1(e.parent)||$s(e.parent))return e.parent;if(k7(e)){t=cu(e);if(t)return r=tT(t,e=>u7(e)||d7(e)||nl(e)),u7(r)?kpe(r):r}var r=tT(e,HE);return r?kpe(r.parent):void 0}if(e.parent.name===e||tP(e.parent)||gF(e.parent)||(NC(e.parent)||wP(e.parent))&&e.parent.propertyName===e||90===e.kind&&TN(e.parent,2080))return kpe(e.parent)}}(e)}}function Spe(e){return e&&void 0===e.kind}function kpe(e){if(e)switch(e.kind){case 260:return tF(e.parent)&&1===e.parent.declarations.length?GP(e.parent.parent)?e.parent.parent:s7(e.parent.parent)?kpe(e.parent.parent):e.parent:e;case 208:return kpe(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 $P(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return PK(e.parent)?kpe(tT(e.parent,e=>pT(e)||s7(e))):e;case 255:return{start:bT(e.getChildren(e.getSourceFile()),e=>109===e.kind),end:e.caseBlock};default:return e}}function Tpe(e,t,r){return r&&((r=Spe(r)?Ope(r.start,t,r.end):Ope(r,t)).start!==e.start||r.length!==e.length)?{contextSpan:r}:void 0}var Cpe,wpe=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(wpe||{});function Npe(e,t,r,n,i){if(307!==n.kind){var a,o=e.getTypeChecker();if(304!==n.parent.kind)return 108===n.kind||s8(n.parent)?(a=o.getSymbolAtLocation(n)).valueDeclaration&&[xpe(a.valueDeclaration)]:Dpe(i,n,e,r,t,{implementations:!0,use:1});{let t=[];return Cpe.getReferenceEntriesForShorthandPropertyAssignment(n,o,e=>t.push(xpe(e))),t}}}function Dpe(e,t,r,n,i,a={},o=new Set(n.map(e=>e.fileName))){return Epe(Cpe.getReferencedSymbolsForNode(e,t,r,n,i,a,o))}function Epe(e){return e&&FT(e,e=>e.references)}function Ppe(e){var t=e.getSourceFile();return{sourceFile:t,textSpan:Ope(HE(e)?e.expression:e,t)}}function Fpe(e,t,r){var n=Cpe.getIntersectingMeaningFromDeclarations(r,e),r=e.declarations&&UT(e.declarations)||r,{displayParts:t,symbolKind:e}=Hme.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r.getSourceFile(),r,r,n);return{displayParts:t,kind:e}}function Ape(e){var t,r=Ipe(e);return 0===e.kind?{...r,isWriteAccess:!1}:({kind:e,node:t}=e,{...r,isWriteAccess:jpe(t),isInString:2===e||void 0})}function Ipe(e){var t,r;return 0===e.kind?{textSpan:e.textSpan,fileName:e.fileName}:(t=e.node.getSourceFile(),{textSpan:r=Ope(e.node,t),fileName:t.fileName,...Tpe(r,t,e.context)})}function Ope(e,t,r){let n=e.getStart(t),i=(r||e).getEnd();return k7(e)&&2e===r||e===n))}{function Mpe(e,t){return 1===t.use?e=GH(e):2===t.use&&(e=$H(e)),e}function Bpe(e,t,r){let n;var i,a,o;for(i of t.get(e.path)||H4)FJ(i)&&(a=r.getSourceFileByPath(i.file),AJ(o=IJ(r,i)))&&(n=Q4(n,{kind:0,fileName:a.fileName,textSpan:MK(o)}));return n}function Jpe(e,t,r){if(e.parent&&lF(e.parent)){e=r.getAliasedSymbol(t),t=r.getMergedSymbol(e);if(e!==t)return t}}function zpe(e,t,r,n,i,a){var o,s,c=1536&e.flags&&e.declarations&&bT(e.declarations,LF);if(c)return o=e.exports.get("export="),s=Vpe(t,e,!!o,r,a),o&&a.has(c.fileName)?(c=t.getTypeChecker(),qpe(t,s,Hpe(e=Xp(o,c),void 0,r,a,c,n,i))):s}function qpe(i,...e){let r;for(var t of e)if(t&&t.length)if(r)for(var n of t)if(n.definition&&0===n.definition.type){let t=n.definition.symbol;var a,o=ST(r,e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===t);-1===o?r.push(n):(a=r[o],r[o]={definition:a.definition,references:a.references.concat(n.references).sort((e,t)=>{var r=Upe(i,e),n=Upe(i,t);return r!==n?l3(r,n):(r=Lpe(e),n=Lpe(t),r.start!==n.start?l3(r.start,n.start):l3(r.length,n.length))})})}else r.push(n);else r=t;return r}function Upe(e,t){t=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(t)}function Vpe(e,t,r,n,i){Y4.assert(!!t.valueDeclaration);var a=AT(_pe(e,n,t),e=>{if("import"!==e.kind)return"implicit"===e.kind?xpe(e.literal.text!==D7&&y9(e.referencingFile,e=>2&e.transformFlags?xF(e)||SF(e)||S1(e)?e:void 0:"skip")||e.referencingFile.statements[0]||e.referencingFile):{kind:0,fileName:e.referencingFile.fileName,textSpan:MK(e.ref)};var t=e.literal.parent;if(SP(t)){t=s3(t.parent,kP);if(r&&!t.qualifier)return}return xpe(e.literal)});if(t.declarations)for(var o of t.declarations)switch(o.kind){case 307:break;case 267:i.has(o.getSourceFile().fileName)&&a.push(xpe(o.name));break;default:Y4.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}e=t.exports.get("export=");if(null!=e&&e.declarations)for(var s of e.declarations){var c=s.getSourceFile();i.has(c.fileName)&&(c=pT(s)&&dT(s.left)?s.left.expression:gF(s)?Y4.checkDefined(MH(s,95,c)):tC(s)||s,a.push(xpe(c)))}return a.length?[{definition:{type:0,symbol:t},references:a}]:H4}function Wpe(e){return 148===e.kind&&vP(e.parent)&&148===e.parent.operator}function Hpe(e,t,r,n,i,a,o){var s=t&&function(t,r,n,e){var i=r["parent"];if(vF(i)&&e)return afe(r,t,i,n);return yT(t.declarations,e=>{if(!e.parent){if(33554432&t.flags)return;Y4.fail(`Unexpected symbol at ${Y4.formatSyntaxKind(r.kind)}: `+Y4.formatSymbol(t))}return uP(e.parent)&&j0(e.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(e.parent.parent),t.name):void 0})}(e,t,i,!ffe(o))||e,c=t?ufe(t,s):7,l=[],r=new zve(r,n,t?function(e){switch(e.kind){case 176:case 137:return 1;case 80:if(qC(e.parent))return Y4.assert(e.parent.name===e),2;default:return 0}}(t):0,i,a,c,o,l),n=ffe(o)&&s.declarations?bT(s.declarations,vF):void 0;return n?ife(n.name,s,n,r.createSearch(t,e,void 0),r,!0,!0):t&&90===t.kind&&"default"===s.escapedName&&s.parent?(ofe(t,s,r),Gpe(t,s,{exportingModuleSymbol:s.parent,exportKind:1},r)):(a=r.createSearch(t,s,void 0,{allSearchSymbols:t?function(n,e,t,r,i,a){let o=[];return lfe(n,e,t,r,!(r&&i),(e,t,r)=>{r&&_fe(n)!==_fe(r)&&(r=void 0),o.push(r||t||e)},()=>!a),o}(s,t,i,2===o.use,!!o.providePrefixAndSuffixTextForRename,!!o.implementations):[s]}),Kpe(s,r,a)),l}function Kpe(e,t,r){e=function(e){var{declarations:t,flags:r,parent:n,valueDeclaration:i}=e;if(i&&(218===i.kind||231===i.kind))return i;if(t)if(8196&r){i=bT(t,e=>kN(e,2)||FC(e));if(i)return Bw(i,263)}else if(!t.some(dG)){r=n&&!(262144&e.flags);if(!r||L7(n)&&!n.globalExports){let e;for(var a of t){var o,a=bH(a);if(e&&e!==a)return;if(!a||307===a.kind&&!N5(a))return;if(OP(e=a))for(;o=gu(e);)e=o}return r?e.getSourceFile():e}}}(e);if(e)rfe(e,e.getSourceFile(),r,t,!(LF(e)&&!TT(t.sourceFiles,e)));else for(var n of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),Xpe(n,r,t)}(o=Cpe=Cpe||{}).getReferencedSymbolsForNode=function(e,t,r,i,a,n={},o=new Set(i.map(e=>e.fileName))){if(LF(t=Mpe(t,n)))return null!=(e=mfe.getReferenceAtPosition(t,e,r))&&e.file?(c=r.getTypeChecker().getMergedSymbol(e.file.symbol))?Vpe(r,c,!1,i,o):(c=r.getFileIncludeReasons())?[{definition:{type:5,reference:e.reference,file:t},references:Bpe(e.file,c,r)||H4}]:void 0:void 0;if(!n.implementations){e=function(e,t,r){if(UK(e.kind))return(116!==e.kind||!U0(e.parent))&&(148!==e.kind||Wpe(e))?function(e,t,r,n){e=FT(e,e=>(r.throwIfCancellationRequested(),AT(Ype(e,I3(t),e),e=>{if(e.kind===t&&(!n||n(e)))return xpe(e)})));return e.length?[{definition:{type:2,node:e[0].node},references:e}]:void 0}(t,e.kind,r,148===e.kind?Wpe:void 0):void 0;if(h_(e.parent)&&e.parent.name===e)return function(e,t){e=FT(e,e=>(t.throwIfCancellationRequested(),AT(Ype(e,"meta",e),e=>{e=e.parent;if(h_(e))return xpe(e)})));return e.length?[{definition:{type:2,node:e[0].node},references:e}]:void 0}(t,r);if(D0(e)&&eP(e.parent))return[{definition:{type:2,node:e},references:[xpe(e)]}];{var n;if(lH(e))return(n=sH(e.parent,e.text))&&efe(n.parent,n);if(_H(e))return efe(e.parent,e)}if(SH(e))return function(e,t,r){let n=t8(e,!1,!1),i=256;switch(n.kind){case 174:case 173:if(H5(n)){i&=ep(n),n=n.parent;break}case 172:case 171:case 176:case 177:case 178:i&=ep(n),n=n.parent;break;case 307:if(b9(n)||cfe(e))return;case 262:case 218:break;default:return}var t=FT(307===n.kind?t:[n.getSourceFile()],e=>(r.throwIfCancellationRequested(),Ype(e,"this",LF(n)?e:n).filter(e=>{if(!SH(e))return!1;var t=t8(e,!1,!1);if(!l7(t))return!1;switch(n.kind){case 218:case 262:return n.symbol===t.symbol;case 174:case 173:return H5(n)&&n.symbol===t.symbol;case 231:case 263:case 210:return t.parent&&l7(t.parent)&&n.symbol===t.parent.symbol&&CN(t)===!!i;case 307:return 307===t.kind&&!b9(t)&&!cfe(e)}}))).map(e=>xpe(e)),a=yT(t,e=>GE(e.node.parent)?e.node:void 0);return[{definition:{type:3,node:a||e},references:t}]}(e,t,r);if(108===e.kind)return function(e){let n=a8(e,!1);if(n){let r=256;switch(n.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:r&=ep(n),n=n.parent;break;default:return}e=AT(Ype(n.getSourceFile(),"super",n),e=>{var t;return 108===e.kind&&(t=a8(e,!1))&&CN(t)===!!r&&t.parent.symbol===n.symbol?xpe(e):void 0});return[{definition:{type:0,symbol:n.symbol},references:e}]}}(e)}(t,i,a);if(e)return e}var s,c=r.getTypeChecker();if(e=c.getSymbolAtLocation(tP(t)&&t.parent.name||t))return"export="===e.escapedName?Vpe(r,e.parent,!1,i,o):!(l=zpe(e,r,i,a,n,o))||33554432&e.flags?(s=(s=Jpe(t,e,c))&&zpe(s,r,i,a,n,o),qpe(r,l,Hpe(e,t,i,o,c,a,n),s)):l;if(!n.implementations&&k7(t)){if(uG(t)){var e=r.getFileIncludeReasons(),l=null==(s=null==(o=r.getResolvedModuleFromModuleSpecifier(t))?void 0:o.resolvedModule)?void 0:s.resolvedFileName,n=l?r.getSourceFile(l):void 0;if(n)return[{definition:{type:4,node:t},references:Bpe(n,e,r)||H4}]}{var _=t,o=i,u=c,d=a;let n=UH(_,u),e=FT(o,r=>(d.throwIfCancellationRequested(),AT(Ype(r,_.text),e=>{var t;if(k7(e)&&e.text===_.text)return n?(t=UH(e,u),n===u.getStringType()||n!==t&&!function(e,t){if(XE(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(e,u)?void 0:xpe(e,2)):c0(e)&&!Ip(e,r)?void 0:xpe(e,2)})));return[{definition:{type:4,node:_},references:e}]}}},o.getAdjustedNode=Mpe,o.getReferencesForFileName=function(e,t,r,n=new Set(r.map(e=>e.fileName))){var i=null==(i=t.getSourceFile(e))?void 0:i.symbol;return i?(null==(i=Vpe(t,i,!1,r,n)[0])?void 0:i.references)||H4:(n=t.getFileIncludeReasons(),(i=t.getSourceFile(e))&&n&&Bpe(i,n,t)||H4)};class zve{constructor(e,t,r,n,i,a,o,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=r,this.checker=n,this.cancellationToken=i,this.searchMeaning=a,this.options=o,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=HK(),this.markSeenReExportRHS=HK(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=spe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,r,n={}){let{text:i=oN(Y3(fp(t)||function(e){if(33555968&e.flags)return(e=e.declarations&&bT(e.declarations,e=>!LF(e)&&!sF(e)))&&e.symbol}(t)||t)),allSearchSymbols:a=[t]}=n;return{symbol:t,comingFrom:r,text:i,escapedText:$3(i),parents:this.options.implementations&&e?function(e,t,r){e=fH(e)?e.parent:void 0,r=e&&r.getTypeAtLocation(e.expression),e=AT(r&&(r.isUnionOrIntersection()?r.types:r.symbol===t.parent?void 0:[r]),e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0);return 0===e.length?void 0:e}(e,t,this.checker):void 0,allSearchSymbols:a,includes:e=>TT(a,e)}}referenceAdder(e){var t=sj(e);let r=this.symbolIdToReferences[t];return r||(r=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:r})),(e,t)=>r.push(xpe(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){var r,e=oj(e),n=this.sourceFileToSeenSymbols[e]||(this.sourceFileToSeenSymbols[e]=new Set);let i=!1;for(r of t)i=OT(n,sj(r))||i;return i}}function Gpe(t,r,n,i){var a,o,e,s,{importSearches:c,singleReferences:l,indirectUsers:_}=i.getImportSearches(r,n);if(l.length){var u=i.referenceAdder(r);for(let e of l)!nfe(a=e,o=i)||2===o.options.use&&(!uT(a)||NC(a.parent)&&"default"===a.escapedText)||u(e)}for([e,s]of c)tfe(e.getSourceFile(),i.createSearch(e,s,1),i);if(_.length){let e;switch(n.exportKind){case 0:e=i.createSearch(t,r,1);break;case 1:e=2===i.options.use?void 0:i.createSearch(t,r,1,{text:"default"})}if(e)for(var d of _)Xpe(d,e,i)}}function $pe(e,t){if(e.declarations)for(var r of e.declarations){var n=r.getSourceFile();tfe(n,t.createSearch(r,e,0),t,t.includesSourceFile(n))}}function Xpe(e,t,r){void 0!==Hre(e).get(t.escapedText)&&tfe(e,t,r)}function Qpe(e,t,r,n,i=r){var a=U3(e.parent,e.parent.parent)?WT(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(a)for(var o of Ype(r,a.name,i))if(uT(o)&&o!==e&&o.escapedText===e.escapedText){var s=t.getSymbolAtLocation(o);if(s===a||t.getShorthandAssignmentValueSymbol(o.parent)===a||vF(o.parent)&&afe(o,s,o.parent,t)===a){s=n(o);if(s)return s}}}function Ype(t,e,r=t){return AT(Zpe(t,e,r),e=>{e=XH(t,e);return e===t?void 0:e})}function Zpe(t,r,n=t){var i=[];if(r&&r.length){var a=t.text,o=a.length,s=r.length;let e=a.indexOf(r,n.pos);for(;0<=e&&!(e>n.end);){var c=e+s;0!==e&&Fo(a.charCodeAt(e-1),99)||c!==o&&Fo(a.charCodeAt(c),99)||i.push(e),e=a.indexOf(r,e+s+1)}}return i}function efe(e,t){var r=e.getSourceFile();let n=t.text;r=AT(Ype(r,n,e),e=>e===t||lH(e)&&sH(e,n)===t?xpe(e):void 0);return[{definition:{type:1,node:t},references:r}]}function tfe(e,t,r,n=!0){r.cancellationToken.throwIfCancellationRequested(),rfe(e,e,t,r,n)}function rfe(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a of Zpe(t,r.text,e)){p=d=u=_=l=c=s=o=void 0;var o=t,s=a,c=r,l=n,_=i,u=XH(o,s);if(function(e,t){switch(e.kind){case 81:if(MF(e.parent))return 1;case 80:return e.text.length===t.length;case 15:case 11:var r=e;return(yH(r)||gH(e)||vH(e)||PP(e.parent)&&W8(e.parent)&&e.parent.arguments[1]===e)&&r.text.length===t.length;case 9:return yH(e)&&e.text.length===t.length;case 90:return"default".length===t.length;default:return}}(u,c.text)){if(nfe(u,l)){let e=l.checker.getSymbolAtLocation(u);if(e){var d=u.parent;if(!mF(d)||d.propertyName!==u)if(vF(d))Y4.assert(80===u.kind),ife(u,e,d,c,l,_);else if(TC(d)&&d.isNameFirst&&d.typeExpression&&HF(d.typeExpression.type)&&d.typeExpression.type.jsDocPropertyTags&&K4(d.typeExpression.type.jsDocPropertyTags))!function(e,t,r,n){let i=n.referenceAdder(r.symbol);ofe(t,r.symbol,n),G4(e,e=>{WE(e.name)&&i(e.name.left)})}(d.typeExpression.type.jsDocPropertyTags,u,c,l);else{var p=function(i,a,e,r){let n=r["checker"];return lfe(a,e,n,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,(e,t,r,n)=>(r&&_fe(a)!==_fe(r)&&(r=void 0),i.includes(r||t||e)?{symbol:!t||6&tD(e)?e:t,kind:n}:void 0),t=>!(i.parents&&!i.parents.some(e=>function r(e,n,i,a){if(e===n)return!0;let t=sj(e)+","+sj(n);let o=i.get(t);if(void 0!==o)return o;i.set(t,!1);let s=!!e.declarations&&e.declarations.some(e=>Cu(e).some(e=>{let t=a.getTypeAtLocation(e);return!!t&&!!t.symbol&&r(t.symbol,n,i,a)}));i.set(t,s);return s}(t.parent,e,r.inheritsFromCache,n))))}(c,e,u,l);if(p){switch(l.specialSearchKind){case 0:_&&ofe(u,p,l);break;case 1:!function(e,t,r,n){XW(e)&&ofe(e,r.symbol,n);var i=()=>n.referenceAdder(r.symbol);qC(e.parent)?(Y4.assert(90===e.kind||e.parent.name===e),function(e,t,r){var n=sfe(e);if(n&&n.declarations)for(var i of n.declarations){var a=MH(i,137,t);Y4.assert(176===i.kind&&!!a),r(a)}e.exports&&e.exports.forEach(e=>{var e=e.valueDeclaration;e&&174===e.kind&&(e=e.body)&&pfe(e,110,e=>{XW(e)&&r(e)})})}(r.symbol,t,i())):(t=function(e){return lp(aH(e).parent)}(e))&&(function(e,t){e=sfe(e.symbol);if(e&&e.declarations)for(var r of e.declarations){Y4.assert(176===r.kind);r=r.body;r&&pfe(r,108,e=>{$W(e)&&t(e)})}}(t,i()),function(e,t){var r;!function(e){return sfe(e.symbol)}(e)&&(e=e.symbol,r=t.createSearch(void 0,e,void 0),Kpe(e,t,r))}(t,n))}(u,o,c,l);break;case 2:!function(e,t,n){ofe(e,t.symbol,n);var i=e.parent;if(2!==n.options.use&&qC(i)){Y4.assert(i.name===e);let r=n.referenceAdder(t.symbol);for(var a of i.members)hc(a)&&CN(a)&&a.body&&a.body.forEachChild(function e(t){110===t.kind?r(t):jC(t)||qC(t)||t.forEachChild(e)})}}(u,c,l);break;default:Y4.assertNever(l.specialSearchKind)}oT(u)&&wP(u.parent)&&P8(u.parent.parent.parent)&&!(e=u.parent.symbol)||!function(e,t,r,n){t=ppe(e,t,n.checker,1===r.comingFrom);t&&(r=t["symbol"],0===t.kind?ffe(n.options)||$pe(r,n):Gpe(e,r,t.exportInfo,n))}(u,e,c,l)}else!function({flags:e,valueDeclaration:t},r,n){var i=n.checker.getShorthandAssignmentValueSymbol(t),t=t&&tC(t);33554432&e||!t||!r.includes(i)||ofe(t,i,n)}(e,c,l)}}}}else!l.options.implementations&&(l.options.findInStrings&&sK(o,s)||l.options.findInComments&&AK(o,s))&&l.addStringOrCommentReference(o.fileName,Qo(s,c.text.length))}}function nfe(e,t){return KW(e)&t.searchMeaning}function ife(e,t,r,n,i,a,o){Y4.assert(!o||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var{parent:s,propertyName:c,name:l}=r,s=s.parent;let _=afe(e,t,r,i.checker);function u(){a&&ofe(e,_,i)}(o||n.includes(_))&&(c?e===c?(s.moduleSpecifier||u(),a&&2!==i.options.use&&i.markSeenReExportRHS(l)&&ofe(l,Y4.checkDefined(r.symbol),i)):i.markSeenReExportRHS(e)&&u():2===i.options.use&&"default"===l.escapedText||u(),(!ffe(i.options)||o)&&(t="default"===e.escapedText||"default"===r.name.escapedText?1:0,o=fpe(l=Y4.checkDefined(r.symbol),t,i.checker))&&Gpe(e,l,o,i),1===n.comingFrom||!s.moduleSpecifier||c||ffe(i.options)||(t=i.checker.getExportSpecifierLocalTargetSymbol(r))&&$pe(t,i))}function afe(e,t,r,n){return function(e,t){var{parent:t,propertyName:r,name:n}=t;return Y4.assert(r===e||n===e),r?r===e:!t.parent.moduleSpecifier}(e,r)&&n.getExportSpecifierLocalTargetSymbol(r)||t}function ofe(e,t,r){var n,i,a,{kind:t,symbol:o}="kind"in t?t:{kind:void 0,symbol:t};function s(e){!function e(t){switch(t.kind){case 217:return e(t.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}(e)||i(e)}2===r.options.use&&90===e.kind||(o=r.referenceAdder(o),r.options.implementations?(i=o,r=r,Dw(n=e)&&function(e){return 33554432&e.flags?!iF(e)&&!aF(e):B5(e)?b7(e):MC(e)?e.body:qC(e)||c7(e)}(n.parent)?i(n):80===n.kind&&(304===n.parent.kind&&dfe(n,r.checker,i),(a=function e(t){return uT(t)||dT(t)?e(t.parent):qP(t)?o3(t.parent.parent,h3(qC,iF)):void 0}(n))?i(a):(a=tT(n,e=>!WE(e.parent)&&!KC(e.parent)&&!bc(e.parent)),v7(n=a.parent)&&n.type===a&&r.markSeenContainingTypeReference(n)&&(b7(n)?s(n.initializer):jC(n)&&n.body?241===(a=n.body).kind?L5(a,e=>{e.expression&&s(e.expression)}):s(a):r7(n)&&s(n.expression))))):o(e,t))}function sfe(e){return e.members&&e.members.get("__constructor")}function cfe(e){return 80===e.kind&&169===e.parent.kind&&e.parent.name===e}function lfe(t,r,i,e,n,a,o){var s=Kre(r);if(s){var c=i.getShorthandAssignmentValueSymbol(r.parent);if(c&&e)return a(c,void 0,void 0,3);var l=i.getContextualType(s.parent),s=l&&yT(Gre(s,i,l,!0),e=>_(e,4));if(s)return s;l=i;l=PK((s=r).parent.parent)?l.getPropertySymbolOfDestructuringAssignment(s):void 0,s=l&&a(l,void 0,void 0,4);if(s)return s;l=c&&a(c,void 0,void 0,3);if(l)return l}s=Jpe(r,t,i);if(s){c=a(s,void 0,void 0,1);if(c)return c}l=_(t);if(l)return l;if(t.valueDeclaration&&U3(t.valueDeclaration,t.valueDeclaration.parent))return s=i.getSymbolsOfParameterPropertyDeclaration(s3(t.valueDeclaration,GE),t.name),Y4.assert(2===s.length&&!!(1&s[0].flags)&&!!(4&s[1].flags)),_(1&t.flags?s[1]:s[0]);c=F7(t,281);if(!e||c&&!c.propertyName){s=c&&i.getExportSpecifierLocalTargetSymbol(c);if(s){c=a(s,void 0,void 0,1);if(c)return c}}if(e)return Y4.assert(e),n?(s=u(t,i))&&_(s,4):void 0;{let e;return(e=n?dG(r.parent)?pG(i,r.parent):void 0:u(t,i))&&_(e,4)}function _(r,n){return yT(i.getRootSymbols(r),t=>a(r,t,void 0,n)||(t.parent&&96&t.parent.flags&&o(t)?function(e,i,a,o){let t=new Map;return function n(e){if(!(96&e.flags&&sf(t,sj(e))))return;return yT(e.declarations,e=>yT(Cu(e),e=>{let t=a.getTypeAtLocation(e),r=t&&t.symbol&&a.getPropertyOfType(t,i);return t&&r&&(yT(a.getRootSymbols(r),o)||n(t.symbol))}))}(e)}(t.parent,t.name,i,e=>a(r,t,e,n)):void 0))}function u(e,t){e=F7(e,208);if(e&&dG(e))return pG(t,e)}}function _fe(e){return!!e.valueDeclaration&&!!(256&ON(e.valueDeclaration))}function ufe(e,t){let r=KW(e);var n,i=t["declarations"];if(i)do{n=r;for(var a of i){a=HW(a);a&r&&(r|=a)}}while(r!==n);return r}function dfe(e,t,r){e=t.getSymbolAtLocation(e),t=t.getShorthandAssignmentValueSymbol(e.valueDeclaration);if(t)for(var n of t.getDeclarations())1&HW(n)&&r(n)}function pfe(e,t,r){h9(e,e=>{e.kind===t&&r(e),pfe(e,t,r)})}function ffe(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}o.eachExportReference=function(e,t,r,n,i,a,o,s){var c,l,_,{importSearches:e,indirectUsers:r,singleReferences:i}=spe(e,new Set(e.map(e=>e.fileName)),t,r)(n,{exportKind:o?1:0,exportingModuleSymbol:i},!1);for([c]of e)s(c);for(l of i)uT(l)&&kP(l.parent)&&s(l);for(_ of r)for(var u of Ype(_,o?"default":a)){var d=t.getSymbolAtLocation(u),p=X4(null==d?void 0:d.declarations,e=>!!o3(e,gF));!uT(u)||NC(u.parent)||d!==n&&!p||s(u)}},o.isSymbolReferencedInFile=function(e,t,r,n=r){return Qpe(e,t,r,()=>!0,n)||!1},o.eachSymbolReferenceInFile=Qpe,o.getTopMostDeclarationNamesInFile=function(e,t){return NT(Ype(t,e),e=>!!Su(e)).reduce((e,t)=>{var r=function(e){let t=0;for(;e;)e=bH(e),t++;return t}(t);return X4(e.declarationNames)&&r!==e.depth?re===t)&&i(o,s))return!0}}return!1},o.getIntersectingMeaningFromDeclarations=ufe,o.getReferenceEntriesForShorthandPropertyAssignment=dfe}var mfe={};function gfe(i,r,o,s,c){var l=yfe(r,o,i),_=l?[(g=l.reference.fileName,_=l.fileName,d=l.unverified,{fileName:_,textSpan:Yo(0,0),kind:"script",name:g,containerName:void 0,containerKind:void 0,unverified:d})]:H4;if(null!=l&&l.file)return _;let u=XH(r,o);if(u!==r){var d,p,f,m,g=u["parent"];let a=i.getTypeChecker();if(164===u.kind||uT(u)&&B1(g)&&g.tagName===u)return function(e,t){var r=tT(t,zC);if(r&&r.name){var n=tT(r,qC);if(n){n=Lw(n);if(n){n=Cw(n.expression),n=JP(n)?n.symbol:e.getSymbolAtLocation(n);if(n){var i=X3(m5(r.name)),r=wN(r)?e.getPropertyOfType(e.getTypeOfSymbol(n),i):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(n),i);if(r)return kfe(e,r,t)}}}}}(a,u)||H4;if(lH(u))return(d=sH(u.parent,u.text))?[Cfe(a,d,"label",u.text,void 0)]:void 0;switch(u.kind){case 107:var h=tT(u.parent,e=>eP(e)?"quit":MC(e));return h?[wfe(a,h)]:void 0;case 90:if(!w1(u.parent))break;case 84:var h=tT(u.parent,o1);if(h)return[(h=h,p=r,h=ope.getContextNode(h),f=LK(Spe(h)?h.start:h,p),{fileName:p.fileName,textSpan:f,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...ope.toContextSpan(f,p,h),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0})]}if(135===u.kind)return(l=tT(u,e=>MC(e)))&&X4(l.modifiers,e=>134===e.kind)?[wfe(a,l)]:void 0;if(127===u.kind)return(o=tT(u,e=>MC(e)))&&o.asteriskToken?[wfe(a,o)]:void 0;if(D0(u)&&eP(u.parent)){var l=u.parent.parent;let{symbol:e,failedAliasResolution:r}=Sfe(l,a,c);var o=NT(l.members,eP);let n=e?a.symbolToString(e,l):"",i=u.getSourceFile();return $4(o,e=>{var t=Pp(e)["pos"],t=j3(i.text,t);return Cfe(a,e,"constructor","static {}",n,!1,r,{start:t,length:"static".length})})}let{symbol:e,failedAliasResolution:n}=Sfe(u,a,c),t=u;if(s&&n&&(o=(l=G4([u,...(null==e?void 0:e.declarations)||H4],e=>tT(e,i_)))&&Z8(l))&&({symbol:e,failedAliasResolution:n}=Sfe(o,a,c),t=o),!e&&uG(t)){c=null==(l=i.getResolvedModuleFromModuleSpecifier(t,r))?void 0:l.resolvedModule;if(c)return[{name:t.text,fileName:c.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Qo(0,0),failedAliasResolution:n,isAmbient:x9(c.resolvedFileName),unverified:t!==u}]}if(!e)return LT(_,(o=u,AT((m=a).getIndexInfosAtLocation(o),e=>e.declaration&&wfe(m,e.declaration))));if(!s||!vT(e.declarations,e=>e.getSourceFile().fileName===r.fileName)){let r=function(e,t){t=function(e){var e=tT(e,e=>!fH(e)),t=null==e?void 0:e.parent;return t&&ZC(t)&&d8(t)===e?t:void 0}(t),e=t&&e.getResolvedSignature(t);return o3(e&&e.declaration,e=>jC(e)&&!cP(e))}(a,u);if(r&&(!f7(u.parent)||!function(e){switch(e.kind){case 176:case 185:case 179:case 180:return 1;default:return}}(r)))return i=wfe(a,r,n),a.getRootSymbols(e).some(e=>{return e=e,t=r,e===t.symbol||e===t.symbol.parent||zN(t.parent)||!ZC(t.parent)&&e===(null==(e=o3(t.parent,l7))?void 0:e.symbol);var t})?[i]:(l=kfe(a,e,u,n,r)||H4,108===u.kind?[i,...l]:[...l,i]);if(304===u.parent.kind){let t=a.getShorthandAssignmentValueSymbol(e.valueDeclaration);return LT(null!=t&&t.declarations?t.declarations.map(e=>Tfe(e,a,t,u,!1,n)):H4,hfe(a,u))}if(LC(u)&&wP(g)&&TP(g.parent)&&u===(g.propertyName||g.name)){let t=XK(u);c=a.getTypeAtLocation(g.parent);return void 0===t?H4:FT(c.isUnion()?c.types:[c],e=>{e=e.getProperty(t);return e&&kfe(a,e,u)})}o=hfe(a,u);return LT(_,o.length?o:kfe(a,e,u,n))}}}function hfe(t,r){var e=Kre(r);if(e){var n=e&&t.getContextualType(e.parent);if(n)return FT(Gre(e,t,n,!1),e=>kfe(t,e,r))}return H4}function yfe(t,r,n){var i=Nfe(t.referencedFiles,r);if(i)return(a=n.getSourceFileFromReference(t,i))&&{reference:i,fileName:a.fileName,file:a,unverified:!1};i=Nfe(t.typeReferenceDirectives,r);if(i)return(a=(a=null==(a=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(i,t))?void 0:a.resolvedTypeReferenceDirective)&&n.getSourceFile(a.resolvedFileName))&&{reference:i,fileName:a.fileName,file:a,unverified:!1};i=Nfe(t.libReferenceDirectives,r);if(i)return(a=n.getLibFileFromReference(i))&&{reference:i,fileName:a.fileName,file:a,unverified:!1};if(t.imports.length||t.moduleAugmentations.length){var a,i=QH(t,r);let e;if(uG(i)&&B3(i.text)&&(e=n.getResolvedModuleFromModuleSpecifier(i,t)))return a=(r=null==(a=e.resolvedModule)?void 0:a.resolvedFileName)||la(D3(t.fileName),i.text),{file:n.getSourceFile(a),fileName:a,reference:{pos:i.getStart(),end:i.getEnd(),fileName:i.text},unverified:!r}}}r(mfe,{createDefinitionInfo:()=>Tfe,findReferenceInPosition:()=>Nfe,getDefinitionAndBoundSpan:()=>function(e,t,r){e=gfe(e,t,r);var n;if(e&&0!==e.length)return(n=Nfe(t.referencedFiles,r)||Nfe(t.typeReferenceDirectives,r)||Nfe(t.libReferenceDirectives,r))?{definitions:e,textSpan:MK(n)}:(n=XH(t,r),t=Qo(n.getStart(),n.getWidth()),{definitions:e,textSpan:t})},getDefinitionAtPosition:()=>gfe,getReferenceAtPosition:()=>yfe,getTypeDefinitionAtPosition:()=>function(e,t,r){r=XH(t,r);var n,i,a,o;if(r!==t)return h_(r.parent)&&r.parent.name===r?xfe(e.getTypeAtLocation(r.parent),e,r.parent,!1):({symbol:t,failedAliasResolution:n}=Sfe(r,e,!1),t?(i=e.getTypeOfSymbolAtLocation(t,r),a=function(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&eF(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){e=t.getCallSignatures();if(1===e.length)return r.getReturnTypeOfSignature(WT(e))}}(t,i,e),o=a&&xfe(a,e,r,n),[a,o]=o&&0!==o.length?[a,o]:[i,xfe(i,e,r,n)],o.length?[...function(e,t,r,n){if(4&sT(t)&&function(e,t){var r=t.symbol.name;if(!vfe.has(r))return;e=e.resolveName(r,void 0,788968,!1);return e&&e===t.target.symbol}(e,t))return xfe(e.getTypeArguments(t)[0],e,r,n);if(bfe(e,t)&&t.aliasTypeArguments)return xfe(t.aliasTypeArguments[0],e,r,n);if(32&sT(t)&&t.target&&bfe(e,t.target)){t=null==(t=null==(t=t.aliasSymbol)?void 0:t.declarations)?void 0:t[0];if(t&&aF(t)&&sP(t.type)&&t.type.typeArguments)return xfe(e.getTypeAtLocation(t.type.typeArguments[0]),e,r,n)}return[]}(e,a,r,n),...o]:!(111551&t.flags)&&788968&t.flags?kfe(e,Xp(t,e),r,n):void 0):void 0)}});var vfe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function bfe(e,t){if(t.aliasSymbol){var r=t.aliasSymbol.name;if(vfe.has(r))return(e=e.resolveName(r,void 0,788968,!1))&&e===t.aliasSymbol}}function xfe(e,t,r,n){return FT(!e.isUnion()||32&e.flags?[e]:e.types,e=>e.symbol&&kfe(t,e.symbol,r,n))}function Sfe(e,t,r){var n=t.getSymbolAtLocation(e);let i=!1;if(null!=n&&n.declarations&&2097152&n.flags&&!r&&(r=e,e=n.declarations[0],80===r.kind)&&(r.parent===e||274!==e.kind)){r=t.getAliasedSymbol(n);if(r.declarations)return{symbol:r};i=!0}return{symbol:n,failedAliasResolution:i}}function kfe(r,n,i,a,t){let o=NT(n.declarations,e=>e!==t);var e=function(){{var e;if(32&n.flags&&!(19&n.flags)&&(XW(i)||137===i.kind))return(e=bT(o,qC))&&s(e.members,!0)}}()||(QW(i)||hH(i)?s(o,!1):void 0);return e||$4(X4(e=NT(o,e=>{return!I8(e)||!((e=tT(e,e=>!!zN(e)||!I8(e)&&"quit"))&&5===V8(e))}))?e:o,e=>Tfe(e,r,n,i,!1,a));function s(e,t){if(e)return t=(e=e.filter(t?tP:jC)).filter(e=>!!e.body),e.length?0!==t.length?t.map(e=>Tfe(e,r,n,i)):[Tfe(GT(e),r,n,i,!1,a)]:void 0}}function Tfe(e,t,r,n,i,a){var o=t.symbolToString(r),s=Hme.getSymbolKind(t,r,n),r=r.parent?t.symbolToString(r.parent,n):"";return Cfe(t,e,s,o,r,i,a)}function Cfe(e,t,r,n,i,a,o,s){var c=t.getSourceFile();return s=s||LK(tC(t)||t,c),{fileName:c.fileName,textSpan:s,kind:r,name:n,containerKind:void 0,containerName:i,...ope.toContextSpan(s,c,ope.getContextNode(t)),isLocal:!function e(t,r){if(t.isDeclarationVisible(r))return!0;if(!r.parent)return!1;if(b7(r.parent)&&r.parent.initializer===r)return e(t,r.parent);switch(r.kind){case 172:case 177:case 178:case 174:if(kN(r,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return e(t,r.parent);default:return!1}}(e,t),isAmbient:!!(33554432&t.flags),unverified:a,failedAliasResolution:o}}function wfe(e,t,r){return Tfe(t,e,t.symbol,t,!1,r)}function Nfe(e,t){return bT(e,e=>q3(e,t))}var Dfe={},Efe=(r(Dfe,{provideInlayHints:()=>function(e){let{file:p,program:t,span:r,cancellationToken:n,preferences:f}=e,m=p.text,g=t.getCompilerOptions(),l=sG(p,f),h=t.getTypeChecker(),y=[];return function e(t){if(!t||0===t.getFullWidth())return;switch(t.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:n.throwIfCancellationRequested()}if(!Ko(r,t.pos,t.getFullWidth()))return;if(KC(t)&&!qP(t))return;f.includeInlayVariableTypeHints&&eF(t)||f.includeInlayPropertyDeclarationTypeHints&&QE(t)?c(t):f.includeInlayEnumMemberValueHints&&OF(t)?o(t):Pfe(f)&&(PP(t)||FP(t))?_(t):(f.includeInlayFunctionParameterTypeHints&&MC(t)&&nE(t)&&d(t),f.includeInlayFunctionLikeReturnTypeHints&&i(t)&&u(t));return h9(t,e)}(p),y;function i(e){return LP(e)||OP(e)||rF(e)||ZE(e)||rP(e)}function a(e,t){y.push({text:"string"==typeof e?": "+e:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function o(e){var t;e.initializer||void 0!==(t=h.getConstantValue(e))&&(t=t.toString(),e=e.end,y.push({text:"= "+t,position:e,kind:"Enum",whitespaceBefore:!0}))}function s(e){return e.symbol&&1536&e.symbol.flags}function c(e){var t,r;void 0===e.initializer&&(!QE(e)||1&h.getTypeAtLocation(e).flags)||GC(e.name)||eF(e)&&!x(e)||hN(e)||s(t=h.getTypeAtLocation(e))||(t=b(t))&&(r="string"==typeof t?t:t.map(e=>e.text).join(""),!1===f.includeInlayVariableTypeHintsWhenTypeMatchesName&&xr(e.name.getText(),r)||a(t,e.name.end))}function _(e){var r=e.arguments;if(r&&r.length){var t=[],n=h.getResolvedSignatureForSignatureHelp(e,t);if(n&&t.length){let t=0;for(var i of r){var a=Cw(i);if("literals"!==f.includeInlayParameterNameHints||v(a)){let e=0;if(BP(a)){var o=h.getTypeAtLocation(a.expression);if(h.isTupleType(o)){var{elementFlags:o,fixedLength:s}=o.target;if(0===s)continue;o=ST(o,e=>!(1&e));0<(o<0?s:o)&&(e=o<0?s:o)}}s=h.getParameterIdentifierInfoAtPosition(n,t);if(t+=e||1,s){var{parameter:o,parameterName:c,isRestParameter:l}=s;if(f.includeInlayParameterNameHintsWhenArgumentMatchesName||!function(e,t){if(uT(e))return e.text===t;if(dT(e))return e.name.text===t;return}(a,c)||l){c=X3(c);if(!function(e,t){if(!R3(t,vD(g),Ef(p.scriptKind)))return;e=No(m,e.pos);if(null==e||!e.length)return;let r=Efe(t);return X4(e,e=>r.test(m.substring(e.pos,e.end)))}(a,c)){a=void 0;_=void 0;u=void 0;d=void 0;a=c;var _=o;var u=i.getStart();var d=l;let e=(d?"...":"")+a,t;Ffe(f)?(t=[S(e,_),{text:":"}],e=""):e+=":",y.push({text:e,position:u,kind:"Parameter",whitespaceAfter:!0,displayParts:t})}}}}else t++}}}}function v(e){switch(e.kind){case 224:var t=e.operand;return CC(t)||uT(t)&&iE(t.escapedText);case 112:case 97:case 106:case 15:case 228:return 1;case 80:t=e.escapedText;return"undefined"===t||iE(t)}return CC(e)}function u(e){var t;LP(e)&&!MH(e,21,p)||!yN(e)&&e.body&&(t=h.getSignatureFromDeclaration(e))&&!s(t=h.getReturnTypeOfSignature(t))&&(t=b(t))&&a(t,function(e){var t=MH(e,22,p);if(t)return t.end;return e.parameters.end}(e))}function d(t){var r=h.getSignatureFromDeclaration(t);if(r)for(let e=0;e{var t=h.typeToTypeNode(n,void 0,71286784);Y4.assertIsDefined(t,"should always get typenode"),r.writeNode(4,t,p,e)})}{e=h.typeToTypeNode(e,void 0,71286784);Y4.assertIsDefined(e,"should always get typenode");let i=[];return a(e),i;function a(e){if(e){var t=I3(e.kind);if(t)i.push({text:t});else if(CC(e))i.push({text:c(e)});else switch(e.kind){case 80:Y4.assertNode(e,uT);var r=rT(e),n=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&tC(e.symbol.declarations[0]);n?i.push(S(r,n)):i.push({text:r});break;case 166:Y4.assertNode(e,WE),a(e.left),i.push({text:"."}),a(e.right);break;case 182:Y4.assertNode(e,oP),e.assertsModifier&&i.push({text:"asserts "}),a(e.parameterName),e.type&&(i.push({text:" is "}),a(e.type));break;case 183:Y4.assertNode(e,sP),a(e.typeName),e.typeArguments&&(i.push({text:"<"}),s(e.typeArguments,", "),i.push({text:">"}));break;case 168:Y4.assertNode(e,KE),e.modifiers&&s(e.modifiers," "),a(e.name),e.constraint&&(i.push({text:" extends "}),a(e.constraint)),e.default&&(i.push({text:" = "}),a(e.default));break;case 169:Y4.assertNode(e,GE),e.modifiers&&s(e.modifiers," "),e.dotDotDotToken&&i.push({text:"..."}),a(e.name),e.questionToken&&i.push({text:"?"}),e.type&&(i.push({text:": "}),a(e.type));break;case 185:Y4.assertNode(e,lP),i.push({text:"new "}),o(e),i.push({text:" => "}),a(e.type);break;case 186:Y4.assertNode(e,_P),i.push({text:"typeof "}),a(e.exprName),e.typeArguments&&(i.push({text:"<"}),s(e.typeArguments,", "),i.push({text:">"}));break;case 187:Y4.assertNode(e,uP),i.push({text:"{"}),e.members.length&&(i.push({text:" "}),s(e.members,"; "),i.push({text:" "})),i.push({text:"}"});break;case 188:Y4.assertNode(e,L0),a(e.elementType),i.push({text:"[]"});break;case 189:Y4.assertNode(e,dP),i.push({text:"["}),s(e.elements,", "),i.push({text:"]"});break;case 202:Y4.assertNode(e,pP),e.dotDotDotToken&&i.push({text:"..."}),a(e.name),e.questionToken&&i.push({text:"?"}),i.push({text:": "}),a(e.type);break;case 190:Y4.assertNode(e,fP),a(e.type),i.push({text:"?"});break;case 191:Y4.assertNode(e,mP),i.push({text:"..."}),a(e.type);break;case 192:Y4.assertNode(e,j0),s(e.types," | ");break;case 193:Y4.assertNode(e,R0),s(e.types," & ");break;case 194:Y4.assertNode(e,gP),a(e.checkType),i.push({text:" extends "}),a(e.extendsType),i.push({text:" ? "}),a(e.trueType),i.push({text:" : "}),a(e.falseType);break;case 195:Y4.assertNode(e,M0),i.push({text:"infer "}),a(e.typeParameter);break;case 196:Y4.assertNode(e,hP),i.push({text:"("}),a(e.type),i.push({text:")"});break;case 198:Y4.assertNode(e,vP),i.push({text:I3(e.operator)+" "}),a(e.type);break;case 199:Y4.assertNode(e,bP),a(e.objectType),i.push({text:"["}),a(e.indexType),i.push({text:"]"});break;case 200:Y4.assertNode(e,xP),i.push({text:"{ "}),e.readonlyToken&&(40===e.readonlyToken.kind?i.push({text:"+"}):41===e.readonlyToken.kind&&i.push({text:"-"}),i.push({text:"readonly "})),i.push({text:"["}),a(e.typeParameter),e.nameType&&(i.push({text:" as "}),a(e.nameType)),i.push({text:"]"}),e.questionToken&&(40===e.questionToken.kind?i.push({text:"+"}):41===e.questionToken.kind&&i.push({text:"-"}),i.push({text:"?"})),i.push({text:": "}),e.type&&a(e.type),i.push({text:"; }"});break;case 201:Y4.assertNode(e,SP),a(e.literal);break;case 184:Y4.assertNode(e,cP),o(e),i.push({text:" => "}),a(e.type);break;case 205:Y4.assertNode(e,kP),e.isTypeOf&&i.push({text:"typeof "}),i.push({text:"import("}),a(e.argument),e.assertions&&(i.push({text:", { assert: "}),s(e.assertions.assertClause.elements,", "),i.push({text:" }"})),i.push({text:")"}),e.qualifier&&(i.push({text:"."}),a(e.qualifier)),e.typeArguments&&(i.push({text:"<"}),s(e.typeArguments,", "),i.push({text:">"}));break;case 171:Y4.assertNode(e,XE),null!=(n=e.modifiers)&&n.length&&(s(e.modifiers," "),i.push({text:" "})),a(e.name),e.questionToken&&i.push({text:"?"}),e.type&&(i.push({text:": "}),a(e.type));break;case 181:Y4.assertNode(e,O0),i.push({text:"["}),s(e.parameters,", "),i.push({text:"]"}),e.type&&(i.push({text:": "}),a(e.type));break;case 173:Y4.assertNode(e,YE),null!=(r=e.modifiers)&&r.length&&(s(e.modifiers," "),i.push({text:" "})),a(e.name),e.questionToken&&i.push({text:"?"}),o(e),e.type&&(i.push({text:": "}),a(e.type));break;case 179:Y4.assertNode(e,iP),o(e),e.type&&(i.push({text:": "}),a(e.type));break;case 207:Y4.assertNode(e,CP),i.push({text:"["}),s(e.elements,", "),i.push({text:"]"});break;case 206:Y4.assertNode(e,TP),i.push({text:"{"}),e.elements.length&&(i.push({text:" "}),s(e.elements,", "),i.push({text:" "})),i.push({text:"}"});break;case 208:Y4.assertNode(e,wP),a(e.name);break;case 224:Y4.assertNode(e,MP),i.push({text:I3(e.operator)}),a(e.operand);break;case 203:Y4.assertNode(e,J0),a(e.head),e.templateSpans.forEach(a);break;case 16:Y4.assertNode(e,l0),i.push({text:c(e)});break;case 204:Y4.assertNode(e,B0),a(e.type),a(e.literal);break;case 17:Y4.assertNode(e,_0),i.push({text:c(e)});break;case 18:Y4.assertNode(e,u0),i.push({text:c(e)});break;case 197:Y4.assertNode(e,yP),i.push({text:"this"});break;default:Y4.failBadSyntaxKind(e)}}}function o(e){e.typeParameters&&(i.push({text:"<"}),s(e.typeParameters,", "),i.push({text:">"})),i.push({text:"("}),s(e.parameters,", "),i.push({text:")"})}function s(e,r){e.forEach((e,t)=>{0new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`));function Pfe(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}function Ffe(e){return!0===e.interactiveInlayHints}var Afe,Ife,Ofe={},Lfe=(r(Ofe,{getDocCommentTemplateAtPosition:()=>function(e,t,r,n){var i=YH(t,r),a=tT(i,A1);if(!a||void 0===a.comment&&!K4(a.tags)){var o=i.getStart(t);if(a||!(ofunction r(n,i){switch(n.kind){case 262:case 218:case 174:case 176:case 173:case 219:let e=n;return{commentOwner:n,parameters:e.parameters,hasReturn:qfe(e,i)};case 303:return r(n.initializer,i);case 263:case 264:case 266:case 306:case 265:return{commentOwner:n};case 171:{let e=n;return e.type&&cP(e.type)?{commentOwner:n,parameters:e.type.parameters,hasReturn:qfe(e.type,i)}:{commentOwner:n}}case 243:{let e=n,t=e.declarationList.declarations,r=1===t.length&&t[0].initializer?Ufe(t[0].initializer):void 0;return r?{commentOwner:n,parameters:r.parameters,hasReturn:qfe(r,i)}:{commentOwner:n}}case 307:return"quit";case 267:return 267===n.parent.kind?void 0:{commentOwner:n};case 244:return r(n.expression,i);case 226:{let e=n;return 0===V8(e)?"quit":jC(e.right)?{commentOwner:n,parameters:e.right.parameters,hasReturn:qfe(e.right,i)}:{commentOwner:n}}case 172:let t=n.initializer;if(t&&(OP(t)||LP(t)))return{commentOwner:n,parameters:t.parameters,hasReturn:qfe(t,i)}}}(e,t))}(i,n);if(i){var{commentOwner:n,parameters:i,hasReturn:s}=i,c=KT(y7(n)&&n.jsDoc?n.jsDoc:void 0);if(!(n.getStart(t){e=80===e.kind?e.text:"param"+r;return i+" * @param "+(n?t?"{...any} ":"{any} ":"")+e+a}).join("")}(i||[],a,c,e):"")+(s?c+" * @returns"+e:""),i=0function(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[RG(e)],documentation:H4,tags:void 0,codeActions:void 0}},getJSDocParameterNameCompletions:()=>function(r){if(!uT(r.name))return H4;let n=r.name.text,i=r.parent,e=i.parent;return jC(e)?AT(e.parameters,e=>{if(uT(e.name)){let t=e.name.text;if(!i.tags.some(e=>e!==r&&QF(e)&&uT(e.name)&&e.name.escapedText===t)&&(void 0===n||f3(t,n)))return{name:t,kind:"parameter",kindModifiers:"",sortText:Cue.SortText.LocationPriority}}}):[]},getJSDocTagCompletionDetails:()=>zfe,getJSDocTagCompletions:()=>function(){return Ife=Ife||$4(Lfe,e=>({name:"@"+e,kind:"keyword",kindModifiers:"",sortText:Cue.SortText.LocationPriority}))},getJSDocTagNameCompletionDetails:()=>Jfe,getJSDocTagNameCompletions:()=>function(){return Afe=Afe||$4(Lfe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Cue.SortText.LocationPriority}))},getJsDocCommentsFromDeclarations:()=>function(e,n){let i=[];return xG(e,e=>{for(var t of function(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(XF(e.parent))return[e.parent.parent];default:return fu(e)}}(e)){var r=A1(t)&&t.tags&&bT(t.tags,e=>327===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText));if(!(void 0===t.comment&&!r||A1(t)&&346!==e.kind&&338!==e.kind&&t.tags&&t.tags.some(e=>346===e.kind||338===e.kind)&&!t.tags.some(e=>341===e.kind||342===e.kind))){let e=t.comment?Mfe(t.comment,n):[];r&&r.comment&&(e=e.concat(Mfe(r.comment,n))),TT(i,e,jfe)||i.push(e)}}}),PT(c(i,[HG()]))},getJsDocTagsFromDeclarations:()=>function(e,r){let n=[];return xG(e,e=>{e=dC(e);if(!e.some(e=>346===e.kind||338===e.kind)||e.some(e=>341===e.kind||342===e.kind))for(var t of e)n.push({name:t.tagName.text,text:Bfe(t,r)}),n.push(...function t(e,r){return FT(e,e=>LT([{name:e.tagName.text,text:Bfe(e,r)}],t(Rfe(e),r)))}(Rfe(t),r))}),n}}),["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 jfe(e,t){return CT(e,t,(e,t)=>e.kind===t.kind&&e.text===t.text)}function Rfe(e){return TC(e)&&e.isNameFirst&&e.typeExpression&&HF(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Mfe(e,t){return"string"==typeof e?[RG(e)]:FT(e,e=>321===e.kind?[RG(e.text)]:UG(e,t))}function Bfe(e,t){let{comment:n,kind:r}=e,i=function(e){switch(e){case 341:return OG;case 348:return LG;case 345:return BG;case 346:case 338:return MG;default:return RG}}(r);switch(r){case 349:var a=e.typeExpression;return a?o(a):void 0===n?void 0:Mfe(n,t);case 329:case 328:return o(e.class);case 345:a=e;let r=[];if(a.constraint&&r.push(RG(a.constraint.getText())),K4(a.typeParameters)){K4(r)&&r.push(PG());let t=a.typeParameters[a.typeParameters.length-1];G4(a.typeParameters,e=>{r.push(i(e.getText())),t!==e&&r.push(AG(28),PG())})}return n&&r.push(PG(),...Mfe(n,t)),r;case 344:case 350:return o(e.typeExpression);case 346:case 338:case 348:case 341:case 347:a=e["name"];return a?o(a):void 0===n?void 0:Mfe(n,t);default:return void 0===n?void 0:Mfe(n,t)}function o(e){return e=e.getText(),n?e.match(/^https?$/)?[RG(e),...Mfe(n,t)]:[i(e),PG(),...Mfe(n,t)]:[RG(e)]}}var Jfe=zfe;function zfe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[RG(e)],documentation:H4,tags:void 0,codeActions:void 0}}function qfe(e,t){return!(null==t||!t.generateReturnInDocTemplate)&&(cP(e)||LP(e)&&nT(e.body)||MC(e)&&e.body&&KP(e.body)&&!!L5(e.body,e=>e))}function Ufe(e){for(;217===e.kind;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return bT(e.members,tP)}}var Vfe={};function Wfe(e,t){var r;return e.kind===t.kind&&(176===e.kind?e.kind===t.kind:eC(e)&&eC(t)?e.name.getText()===t.name.getText():XP(e)&&XP(t)||t1(e)&&t1(t)?e.expression.getText()===t.expression.getText():QP(e)&&QP(t)?(null==(r=e.initializer)?void 0:r.getText())===(null==(r=t.initializer)?void 0:r.getText())&&(null==(r=e.incrementor)?void 0:r.getText())===(null==(r=t.incrementor)?void 0:r.getText())&&(null==(r=e.condition)?void 0:r.getText())===(null==(r=t.condition)?void 0:r.getText()):s7(e)&&s7(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():s1(e)&&s1(t)?e.label.getText()===t.label.getText():e.getText()===t.getText())}function Hfe(e){Kfe(e),e.parent=void 0}function Kfe(e){e.pos=-1,e.end=-1,e.forEachChild(Kfe)}r(Vfe,{mapCode:()=>function(c,l,_,e,t,r){return I.ChangeTracker.with({host:e,formatContext:t,preferences:r},e=>{var t,r,n,i,a,o=l.map(e=>{var t,r,n=c,i=e,e=[{parse:()=>Qv("__mapcode_content_nodes.ts",i,n.languageVersion,!0,n.scriptKind),body:e=>e.statements},{parse:()=>Qv("__mapcode_class_content_nodes.ts",`class __class { +${i} +}`,n.languageVersion,!0,n.scriptKind),body:e=>e.statements[0].members}],a=[];for({parse:t,body:r}of e){t=t(),r=r(t);if(r.length&&0===t.parseDiagnostics.length)return r;r.length&&a.push({sourceFile:t,body:r})}return e=a.sort((e,t)=>e.sourceFile.parseDiagnostics.length-t.sourceFile.parseDiagnostics.length)[0].body}),s=_&&PT(_);for(t of o)r=c,n=e,i=t,a=s,(zC(i[0])||bc(i[0])?function(t,e,r,n){let i;i=n&&n.length?G4(n,e=>tT(YH(t,e.start),h3(qC,iF))):bT(t.statements,h3(qC,iF));var a;i&&((n=i.members.find(t=>r.some(e=>Wfe(e,t))))?(a=xT(i.members,t=>r.some(e=>Wfe(e,t))),G4(r,Hfe),e.replaceNodeRangeWithNodes(t,n,a,r)):(G4(r,Hfe),e.insertNodesAfter(t,i.members[i.members.length-1],r)))}:function(t,r,n,i){if(null!=i&&i.length){for(var a of i){a=tT(YH(t,a.start),e=>h3(KP,LF)(e)&&X4(e.statements,t=>n.some(e=>Wfe(e,t))));if(a){var o=a.statements.find(t=>n.some(e=>Wfe(e,t)));if(o)return a=xT(a.statements,t=>n.some(e=>Wfe(e,t))),G4(n,Hfe),r.replaceNodeRangeWithNodes(t,o,a,n)}}let e=t.statements;for(var s of i){s=tT(YH(t,s.start),KP);if(s){e=s.statements;break}}G4(n,Hfe),r.insertNodesAfter(t,e[e.length-1],n)}else r.insertNodesAtEndOfFile(t,n,!1)})(r,n,i,a)})}});var Gfe={};function $fe(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[ume(e,e.organizeImportsIgnoreCase)]:[ume(e,!0),ume(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function Xfe(e,t){var r,n=M3(e.languageVersion,!1,e.languageVariant),i=[];let a=0;for(r of t)i[a]&&function(e,t,r){var n=t.getFullStart(),i=t.getStart();r.setText(e.text,n,i-n);let a=0;for(;r.getTokenStart(){if(t.attributes){let e=t.attributes.token+" ";for(var r of E(t.attributes.elements,(e,t)=>Se(e.name.text,t.name.text)))e=(e+=r.name.text+":")+(k7(r.value)?`"${r.value.text}"`:r.value.getText()+" ");return e}return""}),o=[];for(i in a){var s,{importWithoutClause:c,typeOnlyImports:l,regularImports:_}=function(e){let t;var r,n,i,a,o={defaultImports:[],namespaceImports:[],namedImports:[]},s={defaultImports:[],namespaceImports:[],namedImports:[]};for(r of e)void 0===r.importClause?t=t||r:(n=r.importClause.isTypeOnly?o:s,{name:i,namedBindings:a}=r.importClause,i&&n.defaultImports.push(r),a&&(g1(a)?n.namespaceImports:n.namedImports).push(r));return{importWithoutClause:t,typeOnlyImports:o,regularImports:s}}(a[i]);c&&o.push(c);for(s of[_,l]){var u,d=s===l,{defaultImports:p,namespaceImports:f,namedImports:m}=s;if(d||1!==p.length||1!==f.length||0!==m.length){for(u of dn(f,(e,t)=>r(e.importClause.namedBindings.name.text,t.importClause.namedBindings.name.text)))o.push(eme(u,void 0,u.importClause.namedBindings));var g=UT(p),h=UT(m),g=g??h;if(g){let e;var y=[];if(1===p.length)e=p[0].importClause.name;else for(var v of p)y.push(cT.createImportSpecifier(!1,cT.createIdentifier("default"),v.importClause.name));y.push(...FT(m,e=>{return $4(null!=(t=(e=e).importClause)&&t.namedBindings&&h1(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0,e=>e.name&&e.propertyName&&e.name.escapedText===e.propertyName.escapedText?cT.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e);var t}));m=cT.createNodeArray(dn(y,t),null==h?void 0:h.importClause.namedBindings.elements.hasTrailingComma),m=0===m.length?e?void 0:cT.createNamedImports(H4):h?cT.updateNamedImports(h.importClause.namedBindings,m):cT.createNamedImports(m);n&&m&&null!=h&&h.importClause.namedBindings&&!Ip(h.importClause.namedBindings,n)&&_T(m,2),d&&e&&m?(o.push(eme(g,e,void 0)),o.push(eme(h??g,void 0,m))):o.push(eme(g,e,m))}}else{d=p[0];o.push(eme(d,d.importClause.name,f[0].importClause.namedBindings))}}}return o}function Zfe(e,t){if(0===e.length)return e;var r,n,i,{exportWithoutClause:e,namedExports:a,typeOnlyExports:o}=function(e){let t,r=[],n=[];for(var i of e)void 0===i.exportClause?t=t||i:(i.isTypeOnly?n:r).push(i);return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}}(e),s=[];e&&s.push(e);for(r of[a,o])0!==r.length&&((n=[]).push(...FT(r,e=>e.exportClause&&yF(e.exportClause)?e.exportClause.elements:H4)),n=dn(n,t),i=r[0],s.push(cT.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(yF(i.exportClause)?cT.updateNamedExports(i.exportClause,n):cT.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes)));return s}function eme(e,t,r){return cT.updateImportDeclaration(e,e.modifiers,cT.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function tme(e,t,r,n){switch(null==n?void 0:n.organizeImportsTypeOrder){case"first":return Fe(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Fe(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function rme(e,t,r){e=void 0===e?void 0:Qfe(e),t=void 0===t?void 0:Qfe(t);return Fe(void 0===e,void 0===t)||Fe(B3(e),B3(t))||r(e,t)}function nme(e){var t;switch(e.kind){case 271:return null==(t=o3(e.moduleReference,bF))?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function ime(e,t){let r=[];return e.forEach(e=>{r.push(e.map(e=>Qfe(nme(e))||""))}),sme(r,t)}function ame(e,t,i){let r=!1;e=e.filter(e=>{e=null==(e=o3(null==(e=e.importClause)?void 0:e.namedBindings,h1))?void 0:e.elements;return!(null==e||!e.length||(!r&&e.some(e=>e.isTypeOnly)&&e.some(e=>!e.isTypeOnly)&&(r=!0),0))});if(0!==e.length){var a=e.map(e=>{return null==(e=o3(null==(e=e.importClause)?void 0:e.namedBindings,h1))?void 0:e.elements}).filter(e=>void 0!==e);if(!r||0===i.length)return{namedImportComparer:(e=sme(a.map(e=>e.map(e=>e.name.text)),t)).comparer,typeOrder:1===i.length?i[0]:void 0,isSorted:e.isSorted};var o={first:1/0,last:1/0,inline:1/0},s={first:t[0],last:t[0],inline:t[0]};for(let n of t){var c,l,_={first:0,last:0,inline:0};for(c of a)for(let r of i)_[r]=(_[r]??0)+ome(c,(e,t)=>tme(e,t,n,{organizeImportsTypeOrder:r}));for(l of i){var u=l;_[u]tme(e,t,n,r)}function pme(e,t,r){return rme(nme(e),nme(t),r)||(r=t,l3(cme(e),cme(r)))}r(Gfe,{compareImportsOrRequireStatements:()=>pme,compareModuleSpecifiers:()=>function(e,t,r){r=!r?Se:xe;return rme(e,t,r)},getDetectionLists:()=>$fe,getImportDeclarationInsertionIndex:()=>function(e,t,r){e=XT(e,t,Ti,(e,t)=>pme(e,t,r));return e<0?~e:e},getImportSpecifierInsertionIndex:()=>function(e,t,r){e=XT(e,t,Ti,r);return e<0?~e:e},getNamedImportSpecifierComparerWithDetection:()=>function(e,t,r){let{comparersToTest:n,typeOrdersToTest:i}=$fe(t),a=ame([e],n,i),o=dme(t,n[0]),s;{var c;"boolean"==typeof t.organizeImportsIgnoreCase&&t.organizeImportsTypeOrder||(a?({namedImportComparer:e,typeOrder:t,isSorted:c}=a,s=c,o=dme({organizeImportsTypeOrder:t},e)):r&&(c=ame(r.statements.filter(uF),n,i))&&({namedImportComparer:t,typeOrder:e,isSorted:r}=c,s=r,o=dme({organizeImportsTypeOrder:e},t)))}return{specifierComparer:o,isSorted:s}},getOrganizeImportsStringComparerWithDetection:()=>function(e,t){return ime([e],$fe(t).comparersToTest)},organizeImports:()=>function(a,i,o,s,n,e){let c=I.ChangeTracker.fromContext({host:o,formatContext:i,preferences:n}),l="SortAndCombine"===e||"All"===e,_=l,u="RemoveUnused"===e||"All"===e,t=a.statements.filter(uF),r=Xfe(a,t),{comparersToTest:d,typeOrdersToTest:p}=$fe(n),f=d[0],m={moduleSpecifierComparer:"boolean"==typeof n.organizeImportsIgnoreCase?f:void 0,namedImportComparer:"boolean"==typeof n.organizeImportsIgnoreCase?f:void 0,typeOrder:n.organizeImportsTypeOrder};"boolean"!=typeof n.organizeImportsIgnoreCase&&({comparer:m.moduleSpecifierComparer}=ime(r,d));{var g,h;m.typeOrder&&"boolean"==typeof n.organizeImportsIgnoreCase||(g=ame(t,d,p))&&({namedImportComparer:g,typeOrder:h}=g,m.namedImportComparer=m.namedImportComparer??g,m.typeOrder=m.typeOrder??h)}r.forEach(e=>b(e,m)),"RemoveUnused"!==e&&function(t){let e=[],r=t.statements,n=K4(r),i=0,a=0;for(;iXfe(t,e))}(a).forEach(e=>x(e,m.namedImportComparer));for(var y of a.statements.filter(Z7))y.body&&(Xfe(a,y.body.statements.filter(uF)).forEach(e=>b(e,m)),"RemoveUnused"!==e)&&x(y.body.statements.filter(hF),m.namedImportComparer);return c.getChanges();function v(e,t){var r,n;0!==K4(e)&&(_T(e[0],1024),n=_?t3(e,e=>Qfe(e.moduleSpecifier)):[e],0===(n=FT(l?dn(n,(e,t)=>rme(e[0].moduleSpecifier,t[0].moduleSpecifier,m.moduleSpecifierComparer??f)):n,e=>Qfe(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?t(e):e)).length?c.deleteNodes(a,e,{leadingTriviaOption:I.LeadingTriviaOption.Exclude,trailingTriviaOption:I.TrailingTriviaOption.Include},!0):(r={leadingTriviaOption:I.LeadingTriviaOption.Exclude,trailingTriviaOption:I.TrailingTriviaOption.Include,suffix:WG(o,i.options)},c.replaceNodeWithNodes(a,e[0],n,r),n=c.nodeHasTrailingComment(a,e[0],r),c.deleteNodes(a,e.slice(1),{trailingTriviaOption:I.TrailingTriviaOption.Include},n)))}function b(e,t){let r=t.moduleSpecifierComparer??f;var n=t.namedImportComparer??f;let i=dme({organizeImportsTypeOrder:t.typeOrder??"last"},n);v(e,e=>(u&&(e=function(e,r,t){let n=t.getTypeChecker(),i=t.getCompilerOptions(),a=n.getJsxNamespace(r),o=n.getJsxFragmentFactory(r),s=!!(2&r.transformFlags),c=[];for(var l of e){var{importClause:_,moduleSpecifier:u}=l;if(_){let{name:e,namedBindings:t}=_;e&&!d(e)&&(e=void 0),t&&(g1(t)?d(t.name)||(t=void 0):(_=t.elements.filter(e=>d(e.name))).lengthqE(e)&&e.text===r)}(r,u)&&(r.isDeclarationFile?c.push(cT.createImportDeclaration(l.modifiers,void 0,u,void 0)):c.push(l))}else c.push(l)}return c;function d(e){return s&&(e.text===a||o&&e.text===o)&&vX(i.jsx)||ope.Core.isSymbolReferencedInFile(e,n,r)}}(e,a,s)),_&&(e=Yfe(e,r,i,a)),e=l?dn(e,(e,t)=>pme(e,t,r)):e))}function x(e,t){let r=dme(n,t);v(e,e=>Zfe(e,r))}},testCoalesceExports:()=>function(e,r,n){var t=(e,t)=>tme(e,t,lme(r),{organizeImportsTypeOrder:(null==n?void 0:n.organizeImportsTypeOrder)??"last"});return Zfe(e,t)},testCoalesceImports:()=>function(e,t,r,n){t=lme(t),n=dme({organizeImportsTypeOrder:null==n?void 0:n.organizeImportsTypeOrder},t);return Yfe(e,t,n,r)}});var fme={},mme=(r(fme,{collectElements:()=>function(e,t){var r=[];return function(r,n,i){let a=40,e=0,t=[...r.statements,r.endOfFileToken],o=t.length;for(;ee.textSpan.start-t.textSpan.start)}}),/^#(end)?region(?:\s+(.*))?(?:\r)?$/);function gme(e){return f3(e=e.trimStart(),"//")?(e=e.slice(2).trim(),mme.exec(e)):null}function hme(n,i,a,o){n=No(i.text,n);if(n){let e=-1,t=-1,r=0;var s,c,l,_=i.getFullText();for({kind:s,pos:c,end:l}of n)switch(a.throwIfCancellationRequested(),s){case 2:gme(_.slice(c,l))?(u(),r=0):(0===r&&(e=c),t=l,r++);break;case 3:u(),o.push(vme(c,l,"comment")),r=0;break;default:Y4.assertNever(s)}function u(){1...");case 288:l=o;return Sme(l=Yo(l.openingFragment.getStart(s),l.closingFragment.getEnd()),"code",l,!1,"<>...");case 285:case 286:var t=o.attributes;return 0!==t.properties.length?vme(t.getStart(s),t.getEnd(),"code"):void 0;case 228:case 15:t=o;return 15!==t.kind||0!==t.text.length?vme(t.getStart(s),t.getEnd(),"code"):void 0;case 207:return f(o,!1,!wP(o.parent),23);case 219:var r=o;return KP(r.body)||IP(r.body)||zp(r.body.getFullStart(),r.body.getEnd(),s)?void 0:Sme(Yo(r.body.getFullStart(),r.body.getEnd()),"code",LK(r));case 213:r=o;if(r.arguments.length){var n=MH(r,21,s),i=MH(r,22,s);if(n&&i&&!zp(n.pos,i.pos,s))return xme(n,i,r,s,!1,!0)}return;case 217:n=o;return zp(n.getStart(),n.getEnd(),s)?void 0:Sme(Yo(n.getStart(),n.getEnd()),"code",LK(n));case 275:case 279:case 300:i=o;if(i.elements.length){var a=MH(i,19,s),c=MH(i,20,s);if(a&&c&&!zp(a.pos,c.pos,s))return xme(a,c,i,s,!1,!1)}return}var l,_,u,d;function p(e,t=19){return f(e,!1,!NP(e.parent)&&!PP(e.parent),t)}function f(e,t=!1,r=!0,n=19,i=19===n?20:24){var a=MH(o,n,s),i=MH(o,i,s);return a&&i&&xme(a,i,e,s,t,r)}}function xme(e,t,r,n,i=!1,a=!0){return Sme(Yo(a?e.getFullStart():e.getStart(n),t.getEnd()),"code",LK(r,n),i)}function Sme(e,t,r=e,n=!1,i="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}var kme={};function Tme(e){var e=aa(e),t=e.lastIndexOf("node_modules");if(-1!==t)return e.slice(0,t+2)}function Cme(e,t,r,n,i,a){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:function(e,t){let r=e.getStart(t),n=e.getWidth(t);k7(e)&&(r+=1,n-=2);return Qo(r,n)}(i,a)}}function wme(e){return{canRename:!1,localizedErrorMessage:xf(e)}}function Nme(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return yH(e);default:return!1}}r(kme,{getRenameInfo:()=>function(e,t,r,n){r=$H(XH(t,r));if(Nme(r)){r=function(e,t,r,n,i){var a=t.getSymbolAtLocation(e);if(a){var o=a["declarations"];if(o&&0!==o.length)return o.some(e=>{var t=n;return e=e.getSourceFile(),t.isSourceFileDefaultLibrary(e)&&w3(e.fileName,".d.ts")})?wme(eT.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):uT(e)&&"default"===e.escapedText&&a.parent&&1536&a.parent.flags?void 0:k7(e)&&cu(e)?i.allowRenameOfImportPath?function(e,t,r){if(!B3(e.text))return wme(eT.You_cannot_rename_a_module_via_a_global_import);r=r.declarations&&bT(r.declarations,LF);var n,i;if(r)return n=u3(e.text,"/index")||u3(e.text,"/index.js")?void 0:Ae(qm(r.fileName),"/index"),r=void 0===n?r.fileName:n,n=void 0===n?"module":"directory",i=e.text.lastIndexOf("/")+1,t=Qo(e.getStart(t)+1+i,e.text.length-i),{canRename:!0,fileToRename:r,kind:n,displayName:r,fullDisplayName:e.text,kindModifiers:"",triggerSpan:t}}(e,r,a):void 0:(o=function(e,t,r,n){!n.providePrefixAndSuffixTextForRename&&2097152&t.flags&&(n=t.declarations&&bT(t.declarations,e=>mF(e)))&&!n.propertyName&&(t=r.getAliasedSymbol(t));n=t.declarations;if(n){var i,a=Tme(e.path);if(void 0===a)return X4(n,e=>$$(e.getSourceFile().path))?eT.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(i of n){var o=Tme(i.getSourceFile().path);if(o){var s=Math.min(a.length,o.length);for(let e=0;e<=s;e++)if(0!==Se(a[e],o[e]))return eT.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}}(r,a,t,i))?wme(o):(i=Hme.getSymbolKind(t,a,e),o=YG(e)||qw(e)&&167===e.parent.kind?oN(Kw(e)):void 0,s=o||t.symbolToString(a),o=o||t.getFullyQualifiedName(a),Cme(s,o,i,Hme.getSymbolModifiers(t,a),e,r))}else if(k7(e)){var s=UH(e,t);if(s&&(128&s.flags||1048576&s.flags&&vT(s.types,e=>!!(128&e.flags))))return Cme(e.text,e.text,"string","",e,r)}else if(uH(e))return Cme(o=K7(e),o,"label","",e,r)}(r,e.getTypeChecker(),t,e,n);if(r)return r}return wme(eT.You_cannot_rename_this_element)},nodeIsEligibleForRename:()=>Nme});var Dme={};function Eme(e,t,r){var n=e.getFullStart();let i=e.parent;for(;i;){var a=nK(n,t,i,!0);if(a)return CH(r,a);i=i.parent}return Y4.fail("Could not find preceding token")}function Pme(e,t,r,n){i=r,o=n;var i,a,o=30===(e=e).kind||21===e.kind?{list:function(e,t,r){e=e.getChildren(r),r=e.indexOf(t);return Y4.assert(0<=r&&e.length>r+1),e[r+1]}(e.parent,e,i),argumentIndex:0}:(i=BH(e))&&{list:i,argumentIndex:Ime(o,i,e)};if(o)return{list:i,argumentIndex:e}=o,o=Ime(n,i,void 0),0!==e&&Y4.assertLessThan(e,o),n=r,a=(r=i).getFullStart(),n=j3(n.text,r.getEnd(),!1),r=Qo(a,n-a),{list:i,argumentIndex:e,argumentCount:o,argumentsSpan:r}}function Fme(e,t,r,n){var i=e["parent"];if(!e7(i)){if(c0(e)&&AP(i))return NK(e,t,r)?Ome(i,0,r):void 0;return l0(e)&&215===i.parent.kind?(o=i.parent,Y4.assert(228===i.kind),Ome(o,NK(e,t,r)?0:1,r)):HP(i)&&AP(i.parent.parent)?(a=(o=i).parent.parent,!u0(e)||NK(e,t,r)?Ome(a,function(e,t,r,n){if(Y4.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),ic(t))return NK(t,r,n)?0:e+2;return e+1}(o.parent.templateSpans.indexOf(o),e,t,r),r):void 0):f7(i)?{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Qo(a=i.attributes.pos,j3(r.text,i.attributes.end,!1)-a),argumentIndex:0,argumentCount:1}:(o=hK(e,r))?({called:t,nTypeArguments:a}=o,{isTypeParameterList:!0,invocation:{kind:1,called:t},argumentsSpan:Yo(t.getStart(r),e.end),argumentIndex:a,argumentCount:a+1}):void 0}var a,o=i,t=Pme(e,0,r,n);if(t)return{list:a,argumentIndex:e,argumentCount:r,argumentsSpan:n}=t,{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===a.pos,invocation:{kind:0,node:o},argumentsSpan:n,argumentIndex:e,argumentCount:r}}function Ame(e){return pT(e.left)?Ame(e.left)+1:2}function Ime(e,t,r){var n,i,a,t=t.getChildren();let o=0,s=!1;for(n of t){if(r&&n===r)return s||28!==n.kind||o++,o;BP(n)?(o+=(i=n,i=(a=e).getTypeAtLocation(i.expression),!a.isTupleType(i)||({elementFlags:a,fixedLength:i}=i.target,0===i)?0:(a=ST(a,e=>!(1&e)))<0?i:a),s=!0):28!==n.kind?(o++,s=!0):s?s=!1:o++}return!r&&t.length&&28===GT(t).kind?o+1:o}function Ome(e,t,r){var n=c0(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&Y4.assertLessThan(t,n),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:function(e,t){let r=e.template,n=r.getStart(),i=r.getEnd();228===r.kind&&0===GT(r.templateSpans).literal.getFullWidth()&&(i=j3(t.text,i,!1));return Qo(n,i-n)}(e,r),argumentIndex:t,argumentCount:n}}function Lme(e){return 0===e.kind?d8(e.node):e.called}function jme(e){return 0!==e.kind&&1===e.kind?e.called:e.node}r(Dme,{getArgumentInfoForCompletions:()=>function(e,t,r,n){e=Fme(e,t,r,n);return!e||e.isTypeParameterList||0!==e.invocation.kind?void 0:{invocation:e.invocation.node,argumentCount:e.argumentCount,argumentIndex:e.argumentIndex}},getSignatureHelpItems:()=>function(e,_,t,r,n){var i=e.getTypeChecker(),a=tK(_,t);if(a){var o=!!r&&"characterTyped"===r.kind;if(!o||!sK(_,t,a)&&!yK(_,t)){r=!!r&&"invoked"===r.kind;let l=function(t,r,n,i,a){for(let e=t;!LF(e)&&(a||!KP(e));e=e.parent){Y4.assert(CH(e.parent,e),"Not a subspan",()=>`Child: ${Y4.formatSyntaxKind(e.kind)}, parent: `+Y4.formatSyntaxKind(e.parent.kind));var o=function(e,t,r,n){return function(e,t,r,n){var i=function(e){switch(e.kind){case 21:case 28:return e;default:return tT(e.parent,e=>!!GE(e)||!(wP(e)||TP(e)||CP(e))&&"quit")}}(e);if(void 0!==i){i=function(e,t,r,n){var i=e["parent"];switch(i.kind){case 217:case 174:case 218:case 219:var a=Pme(e,0,t,n);return a?({argumentIndex:a,argumentCount:s,argumentsSpan:c}=a,(o=ZE(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i))&&{contextualType:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}):void 0;case 226:var o=function e(t){return pT(t.parent)?e(t.parent):t}(i),a=n.getContextualType(o),s=21===e.kind?0:Ame(i)-1,c=Ame(o);return a&&{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:LK(i)};default:return}}(i,r,t,n);if(void 0!==i){var{contextualType:r,argumentIndex:t,argumentCount:n,argumentsSpan:i}=i,r=r.getNonNullableType(),a=r.symbol;if(void 0!==a){r=KT(r.getCallSignatures());if(void 0!==r)return{isTypeParameterList:!1,invocation:{kind:2,signature:r,node:e,symbol:function(e){return"__type"===e.name&&yT(e.declarations,e=>{return!cP(e)||null==(e=o3(e.parent,l7))?void 0:e.symbol})||e}(a)},argumentsSpan:i,argumentIndex:t,argumentCount:n}}}}}(e,t,r,n)||Fme(e,t,r,n)}(e,r,n,i);if(o)return o}}(a,t,_,i,r);if(l){n.throwIfCancellationRequested();let c=function({invocation:e,argumentCount:t},r,n,i,a){switch(e.kind){case 0:return a&&!function(e,t,r){if(!e7(t))return;var n=t.getChildren(r);switch(e.kind){case 21:return TT(n,e);case 28:var i=BH(e);return i&&TT(n,i);case 30:return Eme(e,r,t.expression);default:return}}(i,e.node,n)?void 0:(o=r.getResolvedSignatureForSignatureHelp(e.node,c=[],t),0===c.length?void 0:{kind:0,candidates:c,resolvedSignature:o});case 1:var o,s,c=e["called"];return a&&!Eme(i,n,uT(c)?c.parent:c)?void 0:0!==(o=gK(c,t,r)).length?{kind:0,candidates:o,resolvedSignature:WT(o)}:(s=r.getSymbolAtLocation(c))&&{kind:1,symbol:s};case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return Y4.assertNever(e)}}(l,i,_,a,o);return n.throwIfCancellationRequested(),c?i.runWithCancellationToken(n,e=>{var t,r,n,i,a,o,s;return 0===c.kind?Mme(c.candidates,c.resolvedSignature,l,_,e):([e,{argumentCount:t,argumentsSpan:r,invocation:n,argumentIndex:i},a,o]=[c.symbol,l,_,e],(s=o.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e))?{items:[function(e,t,r,n,i){let a=$G(r,e),o=vB(),s=t.map(e=>Jme(e,r,n,i,o)),c=e.getDocumentationComment(r),l=e.getJsDocTags(r),_=[...a,AG(30)];return{isVariadic:!1,prefixDisplayParts:_,suffixDisplayParts:[AG(32)],separatorDisplayParts:Bme,parameters:s,documentation:c,tags:l}}(e,s,o,jme(n),a)],applicableSpan:r,selectedItemIndex:0,argumentIndex:i,argumentCount:t}:void 0)}):C8(_)?function(i,t,a){if(2!==i.invocation.kind){var r=Lme(i.invocation);let e=dT(r)?r.name.text:void 0,n=t.getTypeChecker();return void 0===e?void 0:yT(t.getSourceFiles(),r=>yT(r.getNamedDeclarations().get(e),e=>{e=e.symbol&&n.getTypeOfSymbolAtLocation(e.symbol,e);let t=e&&e.getCallSignatures();if(t&&t.length)return n.runWithCancellationToken(a,e=>Mme(t,t[0],i,r,e,!0))}))}}(l,e,n):void 0}}}}});var Rme=70246400;function Mme(t,r,{isTypeParameterList:n,argumentCount:i,argumentsSpan:e,invocation:a,argumentIndex:o},s,c,l){let _,p=jme(a);a=2===a.kind?a.symbol:c.getSymbolAtLocation(Lme(a))||l&&(null==(_=r.declaration)?void 0:_.symbol);let f=a?$G(c,a,l?s:void 0,void 0):H4;var u=$4(t,e=>{var l=e,_=f,e=n,u=c,d=p;return e=(e?function(e,r,n,i){let t=(e.target||e).typeParameters,a=vB(),o=(t||H4).map(e=>Jme(e,r,n,i,a)),s=e.thisParameter?[r.symbolToParameterDeclaration(e.thisParameter,n,Rme)]:[];return r.getExpandedParameters(e).map(e=>{let t=cT.createNodeArray([...s,...$4(e,e=>r.symbolToParameterDeclaration(e,n,Rme))]);e=KG(e=>{a.writeList(2576,t,i,e)});return{isVariadic:!1,parameters:o,prefix:[AG(30)],suffix:[AG(32),...e]}})}:function(r,c,l,_){let u=vB(),t=KG(e=>{var t;r.typeParameters&&r.typeParameters.length&&(t=cT.createNodeArray(r.typeParameters.map(e=>c.typeParameterToDeclaration(e,l,Rme))),u.writeList(53776,t,_,e))}),e=c.getExpandedParameters(r),n=c.hasEffectiveRestParameter(r)?1===e.length?e=>!0:e=>{return!!(e.length&&32768&(null==(e=o3(e[e.length-1],O7))?void 0:e.links.checkFlags))}:e=>!1;return e.map(e=>({isVariadic:n(e),parameters:e.map(e=>{return r=e,n=c,i=l,a=_,o=u,e=KG(e=>{var t=n.symbolToParameterDeclaration(r,i,Rme);o.writeNode(4,t,a,e)}),t=n.isOptionalParameter(r.valueDeclaration),s=O7(r)&&!!(32768&r.links.checkFlags),{name:r.name,documentation:r.getDocumentationComment(n),displayParts:e,isOptional:t,isRest:s};var r,n,i,a,o,t,s}),prefix:[...t,AG(21)],suffix:[AG(22)]}))})(l,u,d,s),$4(e,({isVariadic:e,parameters:t,prefix:r,suffix:n})=>{var i,a,o,r=[..._,...r],n=[...n,...(i=l,a=d,o=u,KG(e=>{e.writePunctuation(":"),e.writeSpace(" ");var t=o.getTypePredicateOfSignature(i);t?o.writeTypePredicate(t,a,void 0,e):o.writeType(o.getReturnTypeOfSignature(i),a,void 0,e)}))],s=l.getDocumentationComment(u),c=l.getJsDocTags();return{isVariadic:e,prefixDisplayParts:r,suffixDisplayParts:n,separatorDisplayParts:Bme,parameters:t,documentation:s,tags:c}})});0!==o&&Y4.assertLessThan(o,i);let d=0,m=0;for(let e=0;e=i){d=m+e;break}e++}}m+=g.length}Y4.assert(-1!==d);a={items:y(u,Ti),applicableSpan:e,selectedItemIndex:d,argumentIndex:o,argumentCount:i},l=a.items[d];return l.isVariadic&&(-1<(e=ST(l.parameters,e=>!!e.isRest))&&e{var t=n.typeParameterToDeclaration(r,i,Rme);o.writeNode(4,t,a,e)});return{name:r.symbol.name,documentation:r.symbol.getDocumentationComment(n),displayParts:e,isOptional:!1,isRest:!1}}var zme={},qme=(r(zme,{getSmartSelectionRange:()=>function(r,n){let t,i,a={textSpan:Yo(n.getFullStart(),n.getEnd())},o=n;e:for(;;){var s=function(r){if(LF(r))return Ume(r.getChildAt(0).getChildren(),qme);{var e;if(xP(r))return[t,...e]=r.getChildren(),n=Y4.checkDefined(e.pop()),Y4.assertEqual(t.kind,19),Y4.assertEqual(n.kind,20),e=Ume(e,e=>e===r.readonlyToken||148===e.kind||e===r.questionToken||58===e.kind),e=Ume(e,({kind:e})=>23===e||168===e||24===e),[t,Wme(Vme(e,({kind:e})=>59===e)),n]}{var t,n,i;if(XE(r))return t=Ume(r.getChildren(),e=>e===r.name||TT(r.modifiers,e)),n=320===(null==(e=t[0])?void 0:e.kind)?t[0]:void 0,i=Vme(n?t.slice(1):t,({kind:e})=>59===e),n?[n,Wme(i)]:i}if(GE(r)){let t=Ume(r.getChildren(),e=>e===r.dotDotDotToken||e===r.name);return Vme(Ume(t,e=>e===t[0]||e===r.questionToken),({kind:e})=>64===e)}if(wP(r))return Vme(r.getChildren(),({kind:e})=>64===e);return r.getChildren()}(o);if(!s.length)break;for(let e=0;er)break e;var u=xi(Do(n.text,l.end));if(u&&2===u.kind&&!function(e,t){p(e,t);let r=e;for(;47===n.text.charCodeAt(r);)r++;p(r,t)}(u.pos,u.end),function(e,t,r){if(Y4.assert(r.pos<=t),tQme,getSymbolKind:()=>Gme,getSymbolModifiers:()=>function(e,t){if(!t)return"";let r=new Set(Xme(t));2097152&t.flags&&(e=e.getAliasedSymbol(t))!==t&&G4(Xme(e),e=>{r.add(e)});16777216&t.flags&&r.add("optional");return 0{if(98311&e.getFlags())return"property"})||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property"):"property":""}function Xme(e){if(e.declarations&&e.declarations.length){var[e,...t]=e.declarations,e=xK(e,K4(t)&&fX(e)&&X4(t,e=>!fX(e))?65536:0);if(e)return e.split(",")}return[]}function Qme(e,t,r,n,i,a=KW(i),o){return function e(i,a,o,n,r,s,c,l){let t,_=[],u=[],d=[];var p=nD(a);let f=1&c?$me(i,a,r):"",m=!1;var g,h,y=110===r.kind&&y8(r)||gN(r);let v,b,x=!1;if(110===r.kind&&!y)return{displayParts:[FG(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==f||32&p||2097152&p){if("getter"===f||"setter"===f){var S=bT(a.declarations,e=>e.name===r);if(S)switch(S.kind){case 177:f="getter";break;case 178:f="setter";break;case 172:f="accessor";break;default:Y4.assertNever(S)}else f="property"}let e;s=s??(y?i.getTypeAtLocation(r):i.getTypeOfSymbolAtLocation(a,r));let t;if(e7(r=r.parent&&211===r.parent.kind&&((w=r.parent.name)===r||w&&0===w.getFullWidth())?r.parent:r)?t=r:($W(r)||XW(r)||r.parent&&(f7(r.parent)||AP(r.parent))&&jC(a.valueDeclaration))&&(t=r.parent),t){e=i.getResolvedSignature(t);var k=214===t.kind||PP(t)&&108===t.expression.kind,T=k?s.getConstructSignatures():s.getCallSignatures();if(e=!e||TT(T,e.target)||TT(T,e)?e:T.length?T[0]:void 0){switch(k&&32&p?(f="constructor",A(s.symbol,f)):2097152&p?(I(f="alias"),_.push(PG()),k&&(4&e.flags&&(_.push(FG(128)),_.push(PG())),_.push(FG(105)),_.push(PG())),F(a)):A(a,f),f){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":_.push(AG(59)),_.push(PG()),16&sT(s)||!s.symbol||(BT(_,$G(i,s.symbol,n,void 0,5)),_.push(HG())),k&&(4&e.flags&&(_.push(FG(128)),_.push(PG())),_.push(FG(105)),_.push(PG())),O(e,T,262144);break;default:O(e,T)}m=!0,x=1e===(137===r.kind?t.parent:t))&&(w=176===t.kind?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures(),e=i.isImplementationOfOverload(t)?w[0]:i.getSignatureFromDeclaration(t),176===t.kind?(f="constructor",A(s.symbol,f)):A(179!==t.kind||2048&s.symbol.flags||4096&s.symbol.flags?a:s.symbol,f),e&&O(e,w),m=!0,x=1oF(e)&&E5(e))&&(_.push(FG(87)),_.push(PG())),_.push(FG(94)),_.push(PG()),F(a)),1536&p&&!y&&(D(),w=(w=F7(a,267))&&w.name&&80===w.name.kind,_.push(FG(w?145:144)),_.push(PG()),F(a)),262144&p&&2&c)if(D(),_.push(AG(21)),_.push(RG("type parameter")),_.push(AG(22)),_.push(PG()),F(a),a.parent)P(),F(a.parent,n),L(a.parent,n);else{if(void 0===(w=F7(a,168)))return Y4.fail();(w=w.parent)&&(jC(w)?(P(),N=i.getSignatureFromDeclaration(w),180===w.kind?(_.push(FG(105)),_.push(PG())):179!==w.kind&&w.name&&F(w.symbol),BT(_,XG(i,N,o,32))):aF(w)&&(P(),_.push(FG(156)),_.push(PG()),F(w.symbol),L(w.symbol,o)))}if(8&p&&(f="enum member",A(a,"enum member"),306===(null==(N=null==(t=a.declarations)?void 0:t[0])?void 0:N.kind))&&void 0!==(w=i.getConstantValue(N))&&(_.push(PG()),_.push(IG(64)),_.push(PG()),_.push(EG(Kl(w),"number"==typeof w?7:8))),2097152&a.flags){if(D(),(!m||0===u.length&&0===d.length)&&(N=i.getAliasedSymbol(a))!==a&&N.declarations&&0{if(271===e.kind)return x8(e)?(_.push(PG()),_.push(IG(64)),_.push(PG()),_.push(FG(149)),_.push(AG(21)),_.push(EG(K7(S8(e)),8)),_.push(AG(22))):(e=i.getSymbolAtLocation(e.moduleReference))&&(_.push(PG()),_.push(IG(64)),_.push(PG()),F(e,n)),!0})}if(m||(""!==f?s&&(y?(D(),_.push(FG(110))):A(a,f),"property"===f||"accessor"===f||"getter"===f||"setter"===f||"JSX attribute"===f||3&p||"local var"===f||"index"===f||"using"===f||"await using"===f||y?(_.push(AG(59)),_.push(PG()),s.symbol&&262144&s.symbol.flags&&"index"!==f?(c=KG(e=>{var t=i.typeParameterToDeclaration(s,n,Kme);vB().writeNode(4,t,iT(G3(n)),e)}),BT(_,c)):BT(_,GG(i,s,n)),O7(a)&&a.links.target&&O7(a.links.target)&&a.links.target.links.tupleLabelDeclaration&&(g=a.links.target.links.tupleLabelDeclaration,Y4.assertNode(g.name,uT),_.push(PG()),_.push(AG(21)),_.push(RG(rT(g.name))),_.push(AG(22)))):(16&p||8192&p||16384&p||131072&p||98304&p||"method"===f)&&(h=s.getNonNullableType().getCallSignatures()).length&&(O(h[0],h),x=1307===e.kind))for(var C of a.declarations)if(C.parent&&226===C.parent.kind&&(C=i.getSymbolAtLocation(C.parent.right))&&(u=C.getDocumentationComment(i),d=C.getJsDocTags(i),0(e=e.getProperty(t))?e.getDocumentationComment(i):void 0)||H4}}return 0!==d.length||x||(d=a.getContextualJsDocTags(n,i)),0===u.length&&v&&(u=v),0===d.length&&b&&(d=b),{displayParts:_,documentation:u,symbolKind:f,tags:0===d.length?void 0:d};function D(){_.length&&_.push(HG()),E()}function E(){l&&(I("alias"),_.push(PG()))}function P(){_.push(PG()),_.push(FG(103)),_.push(PG())}function F(e,t){let r,n=(l&&e===a&&(e=l),"index"===f&&(r=i.getIndexInfosOfIndexSymbol(e)),[]);131072&e.flags&&r?((n=e.parent?$G(i,e.parent):n).push(AG(23)),r.forEach((e,t)=>{n.push(...GG(i,e.keyType)),t!==r.length-1&&(n.push(PG()),n.push(AG(52)),n.push(PG()))}),n.push(AG(24))):n=$G(i,e,t||o,void 0,7),BT(_,n),16777216&a.flags&&_.push(AG(58))}function A(e,t){D(),t&&(I(t),e)&&!X4(e.declarations,e=>LP(e)||(OP(e)||JP(e))&&!e.name)&&(_.push(PG()),F(e))}function I(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void _.push(jG(e));default:_.push(AG(21)),_.push(jG(e)),_.push(AG(22))}}function O(e,t,r=0){BT(_,XG(i,e,n,32|r)),1"deprecated"!==e.name))}function L(r,n){var e=KG(e=>{var t=i.symbolToTypeParameterDeclarations(r,n,Kme);vB().writeList(53776,t,iT(G3(n)),e)});BT(_,e)}}(e,t,r,n,i,void 0,a,o)}function Yme(e){return!e.parent&&G4(e.declarations,t=>{if(218!==t.kind){if(260!==t.kind&&262!==t.kind)return!1;for(let e=t.parent;!O_(e);e=e.parent)if(307===e.kind||268===e.kind)return!1}return!0})}var I={};function Zme(e){e=e.__pos;return Y4.assert("number"==typeof e),e}function ege(e,t){Y4.assert("number"==typeof t),e.__pos=t}function tge(e){e=e.__end;return Y4.assert("number"==typeof e),e}function rge(e,t){Y4.assert("number"==typeof t),e.__end=t}r(I,{ChangeTracker:()=>pge,LeadingTriviaOption:()=>nge,TrailingTriviaOption:()=>ige,applyChanges:()=>yge,assignPositionsToNode:()=>xge,createWriter:()=>kge,deleteNode:()=>wge,isThisTypeAnnotatable:()=>function(e){return OP(e)||rF(e)},isValidLocationToAddComment:()=>Tge});var nge=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(nge||{}),ige=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(ige||{});function age(e,t){return j3(e,t,!1,!0)}var oge={leadingTriviaOption:0,trailingTriviaOption:0};function sge(e,t,r,n){return{pos:cge(e,t,n),end:_ge(e,r,n)}}function cge(e,t,r,n=!1){var r=r["leadingTriviaOption"];if(0===r)return t.getStart(e);if(3===r)return a=t.getStart(e),NH(t,i=TH(a,e))?i:a;if(2===r){var i=T_(t,e.text);if(null!=i&&i.length)return TH(i[0].pos,e)}var a=t.getFullStart(),i=t.getStart(e);if(a===i)return i;t=TH(a,e);if(TH(i,e)===t)return 1===r?a:i;if(n){n=(null==(r=No(e.text,a))?void 0:r[0])||(null==(i=Do(e.text,a))?void 0:i[0]);if(n)return j3(e.text,n.end,!0,!0)}r=0a)break;if(aa3(e.comment)?cT.createJSDocText(e.comment):e.comment),t=xi(t.jsDoc);return t&&zp(t.pos,t.end,e)&&0===K4(r)?void 0:cT.createNodeArray(c(r,cT.createJSDocText("\n")))}replaceJSDocComment(e,t,r){this.insertJsdocCommentBefore(e,function(e){if(219!==e.kind)return e;var t=(172===e.parent.kind?e:e.parent).parent;return t.jsDoc=e.jsDoc,t}(t),cT.createJSDocComment(this.createJSDocText(e,t),cT.createNodeArray(r)))}addJSDocTags(e,t,r){let n=y(t.jsDoc,e=>e.tags);r=r.filter(r=>!n.some((e,t)=>{e=function(e,t){if(e.kind===t.kind)switch(e.kind){case 341:return uT(e.name)&&uT(t.name)&&e.name.escapedText===t.name.escapedText?cT.createJSDocParameterTag(void 0,t.name,!1,t.typeExpression,t.isNameFirst,e.comment):void 0;case 342:return cT.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return cT.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(e,r);return e&&(n[t]=e),!!e}));this.replaceJSDocComment(e,t,[...n,...r])}filterJSDocTags(e,t,r){this.replaceJSDocComment(e,t,NT(y(t.jsDoc,e=>e.tags),r))}replaceRangeWithText(e,t,r){this.changes.push({kind:3,sourceFile:e,range:t,text:r})}insertText(e,t,r){this.replaceRangeWithText(e,wp(t),r)}tryInsertTypeAnnotation(e,t,r){let n;if(jC(t)){if(!(n=MH(t,22,e))){if(!LP(t))return!1;n=WT(t.parameters)}}else n=(260===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,n.end,r,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,r){var n=MH(t,21,e).getStart(e)+1,t=t.parameters.length?", ":"";this.insertNodeAt(e,n,r,{prefix:"this: ",suffix:t})}insertTypeParameters(e,t,r){t=(MH(t,21,e)||WT(t.parameters)).getStart(e);this.insertNodesAt(e,t,r,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,r){return d7(e)||zC(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:eF(e)?{suffix:", "}:GE(e)?GE(t)?{suffix:", "}:{}:qE(e)&&uF(e.parent)||h1(e)?{suffix:", "}:mF(e)?{suffix:","+(r?this.newLineCharacter:" ")}:Y4.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,r){var n=UT(t.body.statements);n&&t.body.multiLine?this.insertNodeBefore(e,n,r):this.replaceConstructorBody(e,t,[r,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,r){var n=bT(t.body.statements,e=>$P(e)&&F5(e.expression));n&&t.body.multiLine?this.insertNodeAfter(e,n,r):this.replaceConstructorBody(e,t,[...t.body.statements,r])}insertNodeAtConstructorEnd(e,t,r){var n=KT(t.body.statements);n&&t.body.multiLine?this.insertNodeAfter(e,n,r):this.replaceConstructorBody(e,t,[...t.body.statements,r])}replaceConstructorBody(e,t,r){this.replaceNode(e,t.body,cT.createBlock(r,!0))}insertNodeAtEndOfScope(e,t,r){var n=cge(e,t.getLastToken(),{});this.insertNodeAt(e,n,r,{prefix:L3(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtObjectStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtStartWorker(e,t,r){var n=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,mge(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,n))}guessIndentationFromExistingMembers(e,t){let r,n=t;for(var i of mge(t)){if(Op(n,i,e))return;var a=i.getStart(e),a=Dge.SmartIndenter.findFirstNonWhitespaceColumn(TH(a,e),a,e,this.formatContext.options);if(void 0===r)r=a;else if(a!==r)return;n=i}return r}computeIndentationForNewMember(e,t){t=t.getStart(e);return Dge.SmartIndenter.findFirstNonWhitespaceColumn(TH(t,e),t,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,r){var n=0===mge(t).length,i=sf(this.classesWithNodesInsertedAtStart,oj(t),{node:t,sourceFile:e}),a=DP(t)&&(!D5(e)||!n);return{indentation:r,prefix:(DP(t)&&D5(e)&&n&&!i?",":"")+this.newLineCharacter,suffix:a?",":iF(t)&&n?";":""}}insertNodeAfterComma(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})}insertNodesAfter(e,t,r){var n=this.insertNodeAfterWorker(e,t,WT(r));this.insertNodesAt(e,n,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,r){r=r,((XE(n=t)||QE(n))&&xc(r)&&167===r.name.kind||$c(n)&&$c(r))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,wp(t.end),cT.createToken(27));var n=_ge(e,t,{});return n}getInsertNodeAfterOptions(e,t){var r=this.getInsertNodeAfterOptionsWorker(t);return{...r,prefix:t.end===e.end&&d7(t)?r.prefix?` +`+r.prefix:"\n":r.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 Y4.assert(d7(e)||xc(e)),{suffix:this.newLineCharacter}}}insertName(e,t,r){var n,i;Y4.assert(!t.name),219===t.kind?(n=MH(t,39,e),(i=MH(t,21,e))?(this.insertNodesAt(e,i.getStart(e),[cT.createToken(100),cT.createIdentifier(r)],{joiner:" "}),wge(this,e,n)):(this.insertText(e,WT(t.parameters).getStart(e),`function ${r}(`),this.replaceRange(e,n,cT.createToken(22))),241!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[cT.createToken(19),cT.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[cT.createToken(27),cT.createToken(20)],{joiner:" "}))):(i=MH(t,218===t.kind?100:86,e).end,this.insertNodeAt(e,i,cT.createIdentifier(r),{prefix:" "}))}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,r,n){n=r.elements[n-1];n?this.insertNodeInListAfter(e,n,t):this.insertNodeBefore(e,r.elements[0],t,!zp(r.elements[0].getStart(),r.parent.parent.getStart(),e))}insertNodeInListAfter(r,n,i,a=Dge.SmartIndenter.getContainingList(n,r)){if(a){var o=G7(a,n);if(!(o<0)){var s=n.getEnd();if(o!==a.length-1){var c=YH(r,n.end);c&&uge(n,c)&&(_=a[o+1],_=age(r.text,_.getFullStart()),c=""+I3(c.kind)+r.text.substring(c.end,_),this.insertNodesAt(r,_,[i],{suffix:c}))}else{var l,_=n.getStart(r),c=TH(_,r);let t,e=!1;if(1===a.length?t=28:(l=nK(n.pos,r),t=uge(n,l)?l.kind:28,l=TH(a[o-1].getStart(r),r),e=l!==c),e=!function(e,t){let r=t;for(;r{i=MH(r=e,19,n=t),r=MH(r,20,n);var r,[n,i]=[null==i?void 0:i.end,null==r?void 0:r.end];void 0!==n&&void 0!==i&&(r=0===mge(e).length,e=zp(n,i,t),r&&e&&n!==i-1&&this.deleteRange(t,wp(n,i-1)),e)&&this.insertText(t,i-1,this.newLineCharacter)})}finishDeleteDeclarations(){let n=new Set;for(let{sourceFile:t,node:r}of this.deletedNodes)this.deletedNodes.some(e=>e.sourceFile===t&&wH(e.node,r))||(i3(r)?this.deleteRange(t,UD(t,r)):vge.deleteDeclaration(this,n,t,r));n.forEach(e=>{var t=e.getSourceFile(),r=Dge.SmartIndenter.getContainingList(e,t);e===GT(r)&&-1!==(e=kT(r,e=>!n.has(e),r.length-2))&&this.deleteRange(t,{pos:r[e].end,end:fge(t,r[e+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let r=dge.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach((e,t)=>{r.push(dge.newFileChanges(t,e,this.newLineCharacter,this.formatContext))}),r}createNewFile(e,t,r){this.insertStatementsInNewFile(t,r,e)}};function fge(e,t){return j3(e.text,cge(e,t,{leadingTriviaOption:1}),!1,!0)}function mge(e){return DP(e)?e.properties:e.members}function gge(e,t,r,n){t=FT(t,t=>t.statements.map(e=>4===e?"":hge(e,t.oldFile,r).text)).join(r),e=Qv("any file name",t,{languageVersion:99,jsDocParsingMode:1},!0,e);return yge(t,Dge.formatDocument(e,n))+r}function hge(e,t,r){var n=kge(r);return SB({newLine:gX(r),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},n).writeNode(4,e,t,n),{text:n.getText(),node:xge(e)}}function yge(t,r){for(let e=r.length-1;0<=e;e--){var{span:n,newText:i}=r[e];t=""+t.substring(0,n.start)+i+t.substring(J3(n))}return t}(At=dge=dge||{}).getTextChangesFromChanges=function(e,i,a,o){return AT(t3(e,e=>e.sourceFile.path),e=>{let n=e[0].sourceFile,t=dn(e,(e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end);for(let e=0;eJSON.stringify(t[e].range)+" and "+JSON.stringify(t[e+1].range));e=AT(t,e=>{var t=MK(e.range),r=1===e.kind?iT(K3(e.node))??e.sourceFile:2===e.kind?iT(K3(e.nodes[0]))??e.sourceFile:e.sourceFile,e=function(e,d,p,f,m,g){var t;if(0===e.kind)return"";if(3===e.kind)return e.text;let{options:h={},range:{pos:y}}=e,r=e=>{var[e,t,r,n,{indentation:i,prefix:a,delta:o},s,c,l]=[e,d,p,y,h,f,m,g],{node:_,text:u}=hge(e,t,s);return l&&l(_,u),l=yX(c,t),i=void 0!==i?i:Dge.SmartIndenter.getIndentation(n,r,l,a===s||TH(n,t)===n),void 0===o&&(o=Dge.SmartIndenter.shouldIndentChildNode(l,e)&&l.indentSize||0),r={text:u,getLineAndCharacterOfPosition(e){return O3(this,e)}},a=Dge.formatNodeGivenIndentation(_,r,t.languageVariant,i,o,{...c,options:l}),yge(u,a)},n=2===e.kind?e.nodes.map(e=>kr(r(e),f)).join((null==(t=e.options)?void 0:t.joiner)||f):r(e.node),i=void 0!==h.indentation||TH(y,d)===y?n:n.replace(/^\s+/,"");return(h.prefix||"")+i+(!h.suffix||u3(i,h.suffix)?"":h.suffix)}(e,r,n,i,a,o);if(t.length!==e.length||!_X(r.text,e,t.start))return zK(t,e)});return 0{e&&ege(e,r)},onAfterEmitNode:e=>{e&&rge(e,r)},onBeforeEmitNodeArray:e=>{e&&ege(e,r)},onAfterEmitNodeArray:e=>{e&&rge(e,r)},onBeforeEmitToken:e=>{e&&ege(e,r)},onAfterEmitToken:e=>{e&&rge(e,r)},write:function(e){n.write(e),i(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),i(e,!1)},writeOperator:function(e){n.writeOperator(e),i(e,!1)},writePunctuation:function(e){n.writePunctuation(e),i(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),i(e,!1)},writeParameter:function(e){n.writeParameter(e),i(e,!1)},writeProperty:function(e){n.writeProperty(e),i(e,!1)},writeSpace:function(e){n.writeSpace(e),i(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),i(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),i(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),i(e,!1)},writeLiteral:function(e){n.writeLiteral(e),i(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(),r=0}}}function Tge(e,t){return!(yK(e,t)||sK(e,t)||_K(e,t)||uK(e,t))}function Cge(e,t,r){var n;r.parent.name?(n=Y4.checkDefined(YH(t,r.pos-1)),e.deleteRange(t,{pos:n.getStart(t),end:r.end})):wge(e,t,Bw(r,272))}function wge(e,t,r,n={leadingTriviaOption:1}){var i=cge(t,r,n),r=_ge(t,r,n);e.deleteRange(t,{pos:i,end:r})}function Nge(e,t,r,n){var i=Y4.checkDefined(Dge.SmartIndenter.getContainingList(n,r)),a=G7(i,n);Y4.assert(-1!==a),1===i.length?wge(e,r,n):(Y4.assert(!t.has(n),"Deleting a node twice"),t.add(n),e.deleteRange(r,{pos:fge(r,n),end:a===i.length-1?_ge(r,n,{}):function(e,t,r,n){var i=fge(e,n);if(void 0!==r&&!zp(_ge(e,t,{}),i,e)){n=nK(n.getStart(e),e);if(uge(t,n)){t=nK(t.getStart(e),e);if(uge(r,t)){r=j3(e.text,n.getEnd(),!0,!0);if(zp(t.getStart(e),n.getStart(e),e))return L3(e.text.charCodeAt(r-1))?r-1:r;if(L3(e.text.charCodeAt(r)))return r}}}return i}(r,n,i[a-1],i[a+1])}))}(vge||(vge={})).deleteDeclaration=function(e,t,r,n){switch(n.kind){case 169:var i=n.parent;LP(i)&&1===i.parameters.length&&!MH(i,21,r)?e.replaceNodeWithText(r,n,"()"):Nge(e,t,r,n);break;case 272:case 271:wge(e,r,n,{leadingTriviaOption:r.imports.length&&n===WT(r.imports).parent||n===bT(r.statements,n_)?0:y7(n)?2:3});break;case 208:i=n.parent;207===i.kind&&n!==GT(i.elements)?wge(e,r,n):Nge(e,t,r,n);break;case 260:var a=e,i=t,o=r,s=n,c=s["parent"];if(299===c.kind)a.deleteNodeRange(o,MH(c,21,o),MH(c,22,o));else if(1!==c.declarations.length)Nge(a,i,o,s);else{var l=c.parent;switch(l.kind){case 250:case 249:a.replaceNode(o,s,cT.createObjectLiteralExpression());break;case 248:wge(a,o,c);break;case 243:wge(a,o,l,{leadingTriviaOption:y7(l)?2:3});break;default:Y4.assertNever(l)}}break;case 168:Nge(e,t,r,n);break;case 276:var _=n.parent;1===_.elements.length?Cge(e,r,_):Nge(e,t,r,n);break;case 274:Cge(e,r,n);break;case 27:wge(e,r,n,{trailingTriviaOption:0});break;case 100:wge(e,r,n,{leadingTriviaOption:0});break;case 263:case 262:wge(e,r,n,{leadingTriviaOption:y7(n)?2:3});break;default:var u,d,p,f;n.parent?dF(n.parent)&&n.parent.name===n?(_=e,u=r,(d=n.parent).namedBindings?(p=d.name.getStart(u),(f=YH(u,d.name.end))&&28===f.kind?(f=j3(u.text,f.end,!1,!0),_.deleteRange(u,{pos:p,end:f})):wge(_,u,d.name)):wge(_,u,d.parent)):PP(n.parent)&&TT(n.parent.arguments,n)?Nge(e,t,r,n):wge(e,r,n):wge(e,r,n)}};var Dge={},Ege=(r(Dge,{FormattingContext:()=>Pge,FormattingRequestKind:()=>Ege,RuleAction:()=>jge,RuleFlags:()=>Rge,SmartIndenter:()=>r0e,anyContext:()=>Lge,createTextRangeWithKind:()=>s0e,formatDocument:()=>function(e,t){var r={pos:0,end:e.text.length};return d0e(r,e,t,0)},formatNodeGivenIndentation:()=>function(t,r,e,n,i,a){let o={pos:t.pos,end:t.end};return Ige(r.text,e,o.pos,o.end,e=>p0e(o,t,n,i,e,a,1,e=>!1,r))},formatOnClosingCurly:()=>function(e,t,r){e=c0e(e,20,t);return u0e(l0e(e),t,r,5)},formatOnEnter:()=>function(e,t,r){e=t.getLineAndCharacterOfPosition(e).line;if(0===e)return[];let n=Tl(e,t);for(;so(t.text.charCodeAt(n));)n--;L3(t.text.charCodeAt(n))&&n--;e={pos:Sl(e-1,t),end:n+1};return d0e(e,t,r,2)},formatOnOpeningCurly:()=>function(e,t,r){var n=c0e(e,19,t);if(!n)return[];n=n.parent,n=l0e(n),n={pos:TH(n.getStart(t),t),end:e};return d0e(n,t,r,4)},formatOnSemicolon:()=>function(e,t,r){e=c0e(e,27,t);return u0e(l0e(e),t,r,3)},formatSelection:()=>function(e,t,r,n){e={pos:TH(e,r),end:t};return d0e(e,r,n,1)},getAllRules:()=>Mge,getFormatContext:()=>function(e,t){return{options:e,getRules:function(){void 0===Oge&&(Oge=function(e){let o=function(e){var t=new Array(a0e*a0e),r=new Array(t.length);for(var n of e){var i,a=n.leftTokenRange.isSpecific&&n.rightTokenRange.isSpecific;for(i of n.leftTokenRange.tokens)for(var o of n.rightTokenRange.tokens){o=Yhe(i,o);let e=t[o];!function(e,t,r,n,i){var r=3&t.action?r?0:o0e.StopRulesAny:t.context!==Lge?r?o0e.ContextRulesSpecific:o0e.ContextRulesAny:r?o0e.NoContextRulesSpecific:o0e.NoContextRulesAny,a=n[i]||0;e.splice(function(t,r){let n=0;for(let e=0;e<=r;e+=n0e)n+=t&i0e,t>>=n0e;return n}(a,r),0,t),n[i]=function(e,t){var r=1+(e>>t&i0e);return Y4.assert((r&i0e)==r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(i0e<{var r=o[Yhe(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(r){var n,i=[];let e=0;for(n of r){var a=~function(e){let t=0;1&e&&(t|=28);2&e&&(t|=96);28&e&&(t|=28);96&e&&(t|=96);return t}(e);n.action&a&&vT(n.context,e=>e(t))&&(i.push(n),e|=n.action)}if(i.length)return i}}}(Mge()));return Oge}(),host:t}},getFormattingScanner:()=>Ige,getIndentationString:()=>h0e,getRangeOfEnclosingComment:()=>f0e}),(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))(Ege||{})),Pge=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,n,i){this.currentTokenSpan=Y4.checkDefined(e),this.currentTokenParent=Y4.checkDefined(t),this.nextTokenSpan=Y4.checkDefined(r),this.nextTokenParent=Y4.checkDefined(n),this.contextNode=Y4.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(){var e,t;return void 0===this.tokensAreOnSameLine&&(e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line,this.tokensAreOnSameLine=e===t),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){var t=MH(e,19,this.sourceFile),e=MH(e,20,this.sourceFile);return!(!t||!e)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line}},Fge=M3(99,!1,0),Age=M3(99,!1,1);function Ige(e,t,n,i,r){let a=1===t?Age:Fge,o=(a.setText(e),a.resetTokenState(n),!0),s,c,l,_,u;t=r({advance:function(){u=void 0;var e=a.getTokenFullStart()!==n;e?o=!!c&&4===GT(c).kind:a.scan();s=void 0,c=void 0;let t=a.getTokenFullStart();for(;ts,lastTrailingTriviaWasNewLine:()=>o,skipToEndOf:function(e){a.resetTokenState(e.end),l=a.getTokenFullStart(),_=void 0,u=void 0,o=!1,s=void 0,c=void 0},skipToStartOf:function(e){a.resetTokenState(e.pos),l=a.getTokenFullStart(),_=void 0,u=void 0,o=!1,s=void 0,c=void 0},getTokenFullStart:()=>(null==u?void 0:u.token.pos)??a.getTokenStart(),getStartPos:()=>(null==u?void 0:u.token.pos)??a.getTokenStart()});return u=void 0,a.setText(void 0),t;function d(){var e=u?u.token.kind:a.getToken();return 1!==e&&!Lu(e)}function p(){return 1===(u?u.token.kind:a.getToken())}function f(e,t){return ec(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var Oge,Lge=H4,jge=(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))(jge||{}),Rge=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Rge||{});function Mge(){let t=[];for(let e=0;e<=165;e++)1!==e&&t.push(e);function e(...e){return{tokens:t.filter(t=>!e.some(e=>e===t)),isSpecific:!1}}var r={tokens:t,isSpecific:!1},n=Jge([...t,3]),i=Jge([...t,1]),a=qge(83,165),o=qge(30,79),s=[103,104,165,130,142,152],c=[80,...qK],l=n,_=Jge([80,32,3,86,95,102]),u=Jge([22,3,92,113,98,93,85]),n=[Bge("IgnoreBeforeComment",r,[2,3],Lge,1),Bge("IgnoreAfterLineComment",2,r,Lge,1),Bge("NotSpaceBeforeColon",r,59,[The,Yge,Zge],16),Bge("SpaceAfterColon",59,r,[The,Yge,Phe],4),Bge("NoSpaceBeforeQuestionMark",r,58,[The,Yge,Zge],16),Bge("SpaceAfterQuestionMarkInConditionalOperator",58,r,[The,rhe],4),Bge("NoSpaceAfterQuestionMark",58,r,[The,the],16),Bge("NoSpaceBeforeDot",r,[25,29],[The,Qhe],16),Bge("NoSpaceAfterDot",[25,29],r,[The],16),Bge("NoSpaceBetweenImportParenInImportType",102,21,[The,khe],16),Bge("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[The,Yge],16),Bge("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[The],16),Bge("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[The],16),Bge("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[The,Ghe],16),Bge("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[The,Ghe],16),Bge("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[The,Qge],4),Bge("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[The,Qge],4),Bge("SpaceAfterAddWhenFollowedByPreincrement",40,46,[The,Qge],4),Bge("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[The,Qge],4),Bge("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[The,Qge],4),Bge("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[The,Qge],4),Bge("NoSpaceAfterCloseBrace",20,[28,27],[The],16),Bge("NewLineBeforeCloseBraceInBlockContext",n,20,[ohe],8),Bge("SpaceAfterCloseBrace",20,e(22),[The,mhe],4),Bge("SpaceBetweenCloseBraceAndElse",20,93,[The],4),Bge("SpaceBetweenCloseBraceAndWhile",20,117,[The],4),Bge("NoSpaceBetweenEmptyBraceBrackets",19,20,[The,hhe],16),Bge("SpaceAfterConditionalClosingParen",22,23,[ghe],4),Bge("NoSpaceBetweenFunctionKeywordAndStar",100,42,[dhe],16),Bge("SpaceAfterStarInGeneratorDeclaration",42,80,[dhe],4),Bge("SpaceAfterFunctionInFuncDecl",100,r,[_he],4),Bge("NewLineAfterOpenBraceInBlockContext",19,r,[ohe],8),Bge("SpaceAfterGetSetInMember",[139,153],80,[_he],4),Bge("NoSpaceBetweenYieldKeywordAndStar",127,42,[The,Hhe],16),Bge("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[The,Hhe],4),Bge("NoSpaceBetweenReturnAndSemicolon",107,27,[The],16),Bge("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[The],4),Bge("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[The,jhe],4),Bge("NoSpaceBeforeOpenParenInFuncCall",r,21,[The,yhe,vhe],16),Bge("SpaceBeforeBinaryKeywordOperator",r,s,[The,Qge],4),Bge("SpaceAfterBinaryKeywordOperator",s,r,[The,Qge],4),Bge("SpaceAfterVoidOperator",116,r,[The,Whe],4),Bge("SpaceBetweenAsyncAndOpenParen",134,21,[She,The],4),Bge("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[The],4),Bge("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[The],16),Bge("SpaceBeforeJsxAttribute",r,80,[Dhe,The],4),Bge("SpaceBeforeSlashInJsxOpeningElement",r,44,[Ahe,The],4),Bge("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Ahe,The],16),Bge("NoSpaceBeforeEqualInJsxAttribute",r,64,[Ehe,The],16),Bge("NoSpaceAfterEqualInJsxAttribute",64,r,[Ehe,The],16),Bge("NoSpaceBeforeJsxNamespaceColon",80,59,[Fhe],16),Bge("NoSpaceAfterJsxNamespaceColon",59,80,[Fhe],16),Bge("NoSpaceAfterModuleImport",[144,149],21,[The],16),Bge("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],r,[The],4),Bge("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[The],4),Bge("SpaceAfterModuleName",11,19,[Mhe],4),Bge("SpaceBeforeArrow",r,39,[The],4),Bge("SpaceAfterArrow",39,r,[The],4),Bge("NoSpaceAfterEllipsis",26,80,[The],16),Bge("NoSpaceAfterOptionalParameters",58,[22,28],[The,Yge],16),Bge("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[The,Bhe],16),Bge("NoSpaceBeforeOpenAngularBracket",c,30,[The,qhe],16),Bge("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[The,qhe],16),Bge("NoSpaceAfterOpenAngularBracket",30,r,[The,qhe],16),Bge("NoSpaceBeforeCloseAngularBracket",r,32,[The,qhe],16),Bge("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[The,qhe,uhe,Vhe],16),Bge("SpaceBeforeAt",[22,80],60,[The],4),Bge("NoSpaceAfterAt",60,r,[The],16),Bge("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Ohe],4),Bge("NoSpaceBeforeNonNullAssertionOperator",r,54,[The,Khe],16),Bge("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[The,Jhe],16),Bge("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[The],4)],s=[Bge("SpaceAfterConstructor",137,21,[Vge("insertSpaceAfterConstructor"),The],4),Bge("NoSpaceAfterConstructor",137,21,[Hge("insertSpaceAfterConstructor"),The],16),Bge("SpaceAfterComma",28,r,[Vge("insertSpaceAfterCommaDelimiter"),The,whe,bhe,xhe],4),Bge("NoSpaceAfterComma",28,r,[Hge("insertSpaceAfterCommaDelimiter"),The,whe],16),Bge("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Vge("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),_he],4),Bge("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Hge("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),_he],16),Bge("SpaceAfterKeywordInControl",a,21,[Vge("insertSpaceAfterKeywordsInControlFlowStatements"),ghe],4),Bge("NoSpaceAfterKeywordInControl",a,21,[Hge("insertSpaceAfterKeywordsInControlFlowStatements"),ghe],16),Bge("SpaceAfterOpenParen",21,r,[Vge("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),The],4),Bge("SpaceBeforeCloseParen",r,22,[Vge("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),The],4),Bge("SpaceBetweenOpenParens",21,21,[Vge("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),The],4),Bge("NoSpaceBetweenParens",21,22,[The],16),Bge("NoSpaceAfterOpenParen",21,r,[Hge("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),The],16),Bge("NoSpaceBeforeCloseParen",r,22,[Hge("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),The],16),Bge("SpaceAfterOpenBracket",23,r,[Vge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),The],4),Bge("SpaceBeforeCloseBracket",r,24,[Vge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),The],4),Bge("NoSpaceBetweenBrackets",23,24,[The],16),Bge("NoSpaceAfterOpenBracket",23,r,[Hge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),The],16),Bge("NoSpaceBeforeCloseBracket",r,24,[Hge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),The],16),Bge("SpaceAfterOpenBrace",19,r,[Gge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ihe],4),Bge("SpaceBeforeCloseBrace",r,20,[Gge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ihe],4),Bge("NoSpaceBetweenEmptyBraceBrackets",19,20,[The,hhe],16),Bge("NoSpaceAfterOpenBrace",19,r,[Wge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),The],16),Bge("NoSpaceBeforeCloseBrace",r,20,[Wge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),The],16),Bge("SpaceBetweenEmptyBraceBrackets",19,20,[Vge("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Bge("NoSpaceBetweenEmptyBraceBrackets",19,20,[Wge("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),The],16),Bge("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[Vge("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Che],4,1),Bge("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[Vge("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),The],4),Bge("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[Hge("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Che],16,1),Bge("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[Hge("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),The],16),Bge("SpaceAfterOpenBraceInJsxExpression",19,r,[Vge("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),The,Nhe],4),Bge("SpaceBeforeCloseBraceInJsxExpression",r,20,[Vge("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),The,Nhe],4),Bge("NoSpaceAfterOpenBraceInJsxExpression",19,r,[Hge("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),The,Nhe],16),Bge("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[Hge("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),The,Nhe],16),Bge("SpaceAfterSemicolonInFor",27,r,[Vge("insertSpaceAfterSemicolonInForStatements"),The,$ge],4),Bge("NoSpaceAfterSemicolonInFor",27,r,[Hge("insertSpaceAfterSemicolonInForStatements"),The,$ge],16),Bge("SpaceBeforeBinaryOperator",r,o,[Vge("insertSpaceBeforeAndAfterBinaryOperators"),The,Qge],4),Bge("SpaceAfterBinaryOperator",o,r,[Vge("insertSpaceBeforeAndAfterBinaryOperators"),The,Qge],4),Bge("NoSpaceBeforeBinaryOperator",r,o,[Hge("insertSpaceBeforeAndAfterBinaryOperators"),The,Qge],16),Bge("NoSpaceAfterBinaryOperator",o,r,[Hge("insertSpaceBeforeAndAfterBinaryOperators"),The,Qge],16),Bge("SpaceBeforeOpenParenInFuncDecl",r,21,[Vge("insertSpaceBeforeFunctionParenthesis"),The,_he],4),Bge("NoSpaceBeforeOpenParenInFuncDecl",r,21,[Hge("insertSpaceBeforeFunctionParenthesis"),The,_he],16),Bge("NewLineBeforeOpenBraceInControl",u,19,[Vge("placeOpenBraceOnNewLineForControlBlocks"),ghe,ahe],8,1),Bge("NewLineBeforeOpenBraceInFunction",l,19,[Vge("placeOpenBraceOnNewLineForFunctions"),_he,ahe],8,1),Bge("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Vge("placeOpenBraceOnNewLineForFunctions"),phe,ahe],8,1),Bge("SpaceAfterTypeAssertion",32,r,[Vge("insertSpaceAfterTypeAssertion"),The,Uhe],4),Bge("NoSpaceAfterTypeAssertion",32,r,[Hge("insertSpaceAfterTypeAssertion"),The,Uhe],16),Bge("SpaceBeforeTypeAnnotation",r,[58,59],[Vge("insertSpaceBeforeTypeAnnotation"),The,ehe],4),Bge("NoSpaceBeforeTypeAnnotation",r,[58,59],[Hge("insertSpaceBeforeTypeAnnotation"),The,ehe],16),Bge("NoOptionalSemicolon",27,i,[Uge("semicolons","remove"),$he],32),Bge("OptionalSemicolon",r,i,[Uge("semicolons","insert"),Xhe],64)],a=[Bge("NoSpaceBeforeSemicolon",r,27,[The],16),Bge("SpaceBeforeOpenBraceInControl",u,19,[Kge("placeOpenBraceOnNewLineForControlBlocks"),ghe,Rhe,nhe],4,1),Bge("SpaceBeforeOpenBraceInFunction",l,19,[Kge("placeOpenBraceOnNewLineForFunctions"),_he,che,Rhe,nhe],4,1),Bge("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Kge("placeOpenBraceOnNewLineForFunctions"),phe,Rhe,nhe],4,1),Bge("NoSpaceBeforeComma",r,28,[The],16),Bge("NoSpaceBeforeOpenBracket",e(134,84),23,[The],16),Bge("NoSpaceAfterCloseBracket",24,r,[The,Ihe],16),Bge("SpaceAfterSemicolon",27,r,[The],4),Bge("SpaceBetweenForAndAwaitKeyword",99,135,[The],4),Bge("SpaceBetweenDotDotDotAndTypeName",26,c,[The],16),Bge("SpaceBetweenStatements",[22,92,93,84],r,[The,whe,Xge],4),Bge("SpaceAfterTryCatchFinally",[113,85,98],19,[The],4)];return[...n,...s,...a]}function Bge(e,t,r,n,i,a=0){return{leftTokenRange:zge(t),rightTokenRange:zge(r),rule:{debugName:e,context:n,action:i,flags:a}}}function Jge(e){return{tokens:e,isSpecific:!0}}function zge(e){return"number"==typeof e?Jge([e]):i3(e)?Jge(e):e}function qge(t,r,n=[]){var i=[];for(let e=t;e<=r;e++)TT(n,e)||i.push(e);return Jge(i)}function Uge(t,r){return e=>e.options&&e.options[t]===r}function Vge(t){return e=>e.options&&Si(e.options,t)&&!!e.options[t]}function Wge(t){return e=>e.options&&Si(e.options,t)&&!e.options[t]}function Hge(t){return e=>!e.options||!Si(e.options,t)||!e.options[t]}function Kge(t){return e=>!e.options||!Si(e.options,t)||!e.options[t]||e.TokensAreOnSameLine()}function Gge(t){return e=>!e.options||!Si(e.options,t)||!!e.options[t]}function $ge(e){return 248===e.contextNode.kind}function Xge(e){return!$ge(e)}function Qge(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 Yge(e){return!Qge(e)}function Zge(e){return!ehe(e)}function ehe(e){e=e.contextNode.kind;return 172===e||171===e||169===e||260===e||gc(e)}function the(e){return!(QE((e=e).contextNode)&&e.contextNode.questionToken)}function rhe(e){return 227===e.contextNode.kind||194===e.contextNode.kind}function nhe(e){return e.TokensAreOnSameLine()||che(e)}function ihe(e){return 206===e.contextNode.kind||200===e.contextNode.kind||she(e=e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function ahe(e){return che(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function ohe(e){return she(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function she(e){return lhe(e.contextNode)}function che(e){return lhe(e.nextTokenParent)}function lhe(e){if(fhe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function _he(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 uhe(e){return!_he(e)}function dhe(e){return 262===e.contextNode.kind||218===e.contextNode.kind}function phe(e){return fhe(e.contextNode)}function fhe(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 mhe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:var t=e.currentTokenParent.parent;if(!t||219!==t.kind&&218!==t.kind)return!0}return!1}function ghe(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 hhe(e){return 210===e.contextNode.kind}function yhe(e){return 213===e.contextNode.kind||214===e.contextNode.kind}function vhe(e){return 28!==e.currentTokenSpan.kind}function bhe(e){return 24!==e.nextTokenSpan.kind}function xhe(e){return 22!==e.nextTokenSpan.kind}function She(e){return 219===e.contextNode.kind}function khe(e){return 205===e.contextNode.kind}function The(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function Che(e){return 12!==e.contextNode.kind}function whe(e){return 284!==e.contextNode.kind&&288!==e.contextNode.kind}function Nhe(e){return 294===e.contextNode.kind||293===e.contextNode.kind}function Dhe(e){return 291===e.nextTokenParent.kind||295===e.nextTokenParent.kind&&291===e.nextTokenParent.parent.kind}function Ehe(e){return 291===e.contextNode.kind}function Phe(e){return 295!==e.nextTokenParent.kind}function Fhe(e){return 295===e.nextTokenParent.kind}function Ahe(e){return 285===e.contextNode.kind}function Ihe(e){return!_he(e)&&!che(e)}function Ohe(e){return e.TokensAreOnSameLine()&&AN(e.contextNode)&&Lhe(e.currentTokenParent)&&!Lhe(e.nextTokenParent)}function Lhe(e){for(;e&&nT(e);)e=e.parent;return e&&170===e.kind}function jhe(e){return 261===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Rhe(e){return 2!==e.formattingRequestKind}function Mhe(e){return 267===e.contextNode.kind}function Bhe(e){return 187===e.contextNode.kind}function Jhe(e){return 180===e.contextNode.kind}function zhe(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 qhe(e){return zhe(e.currentTokenSpan,e.currentTokenParent)||zhe(e.nextTokenSpan,e.nextTokenParent)}function Uhe(e){return 216===e.contextNode.kind}function Vhe(e){return!Uhe(e)}function Whe(e){return 116===e.currentTokenSpan.kind&&222===e.currentTokenParent.kind}function Hhe(e){return 229===e.contextNode.kind&&void 0!==e.contextNode.expression}function Khe(e){return 235===e.contextNode.kind}function Ghe(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!1;default:return!void 0}return!0}function $he(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(Lu(t)){var n=e.nextTokenParent===e.currentTokenParent?rK(e.currentTokenParent,tT(e.currentTokenParent,e=>!e.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!n)return!0;t=n.kind,r=n.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(r).line?20===t||1===t:240!==t&&27!==t&&(264===e.contextNode.kind||265===e.contextNode.kind?!XE(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:QE(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 Xhe(e){return L$(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Qhe(e){return!dT(e.contextNode)||!zE(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Yhe(e,t){return Y4.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*a0e+t}var Zhe,e0e,t0e,r0e,n0e=5,i0e=31,a0e=166,o0e=((Toe=o0e||{})[Toe.StopRulesSpecific=0]="StopRulesSpecific",Toe[Toe.StopRulesAny=+n0e]="StopRulesAny",Toe[Toe.ContextRulesSpecific=2*n0e]="ContextRulesSpecific",Toe[Toe.ContextRulesAny=3*n0e]="ContextRulesAny",Toe[Toe.NoContextRulesSpecific=4*n0e]="NoContextRulesSpecific",Toe[Toe.NoContextRulesAny=5*n0e]="NoContextRulesAny",Toe);function s0e(e,t,r){e={pos:e,end:t,kind:r};return Y4.isDebugging&&Object.defineProperty(e,"__debugKind",{get:()=>Y4.formatSyntaxKind(r)}),e}function c0e(e,t,r){r=nK(e,r);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function l0e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!function(e,t){switch(e.kind){case 263:case 264:return CH(e.members,t);case 267:var r=e.body;return r&&268===r.kind&&CH(r.statements,t);case 307:case 241:case 268:return CH(e.statements,t);case 299:return CH(e.block.statements,t)}return}(t.parent,t);)t=t.parent;return t}function _0e(n,i){return function t(e){let r=h9(e,e=>EH(e.getStart(i),e.end,n)&&e);if(r){let e=t(r);if(e)return e}return e}(i)}function u0e(e,t,r,n){return e?d0e({pos:TH(e.getStart(t),t),end:e.end},t,r,n):[]}function d0e(t,r,n,i){let a=_0e(t,r);return Ige(r.text,r.languageVariant,(e=a,o=t,s=r,(c=e.getStart(s))===o.pos&&e.end===o.end?c:!(c=nK(o.pos,s))||c.end>=o.pos?e.pos:c.end),t.end,e=>p0e(t,a,r0e.getIndentationForNode(a,t,r,n.options),function(e,t,r){let n=-1,i;for(;e;){var a=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==n&&a!==n)break;if(r0e.shouldIndentChildNode(t,e,i,r))return t.indentSize;n=a,e=(i=e).parent}return 0}(a,n.options,r),e,n,i,function(e,t){if(!e.length)return i;let r=e.filter(e=>FH(t,e.start,e.start+e.length)).sort((e,t)=>e.start-t.start);if(!r.length)return i;let n=0;return e=>{for(;;){if(n>=r.length)return!1;var t=r[n];if(e.end<=t.start)return!1;if(IH(e.pos,e.end,t.start,t.start+t.length))return!0;n++}};function i(){return!1}}(r.parseDiagnostics,t),r));var e,o,s,c}function p0e(h,r,n,i,g,{options:y,getRules:_,host:u},a,v,b){let e,d=new Pge(b,a,y),x,S,o,s,k,T=-1,p=[];if(g.advance(),g.isOnToken()){a=b.getLineAndCharacterOfPosition(r.getStart(b)).line;let e=a;AN(r)&&(e=b.getLineAndCharacterOfPosition(Bl(r,b)).line),!function d(p,e,t,r,n,i){if(!FH(h,p.getStart(b),p.getEnd()))return;let a=N(p,t,n,i);let f=e;h9(p,e=>{l(e,-1,p,a,t,r,!1)},e=>{o(e,p,t,a)});for(;g.isOnToken()&&g.getTokenFullStart()Math.min(p.end,h.end))break;m(e,p,a,p)}function l(a,o,s,c,e,l,_,u){if(Y4.assert(!rN(a)),!W7(a)&&!wl(s,a)){let t=a.getStart(b),r=b.getLineAndCharacterOfPosition(t).line,n=r,i=(AN(a)&&(n=b.getLineAndCharacterOfPosition(Bl(a,b)).line),-1);if(_&&CH(h,s)&&-1!==(i=C(t,a.end,e,h,o))&&(o=i),FH(h,a.pos,a.end)){if(0!==a.getFullWidth()){for(;g.isOnToken()&&g.getTokenFullStart()h.end)return o;if(e.token.end>t){e.token.pos>t&&g.skipToStartOf(a);break}m(e,p,c,p)}if(g.isOnToken()&&!(g.getTokenFullStart()>=h.end)){if(ec(a)){let e=g.readTokenInfo(a);if(12!==a.kind)return Y4.assert(e.token.end===a.end,"Token end is child end"),m(e,p,c,a),o}let e=170===a.kind?r:l,t=w(a,r,i,p,c,e);d(a,f,r,n,t.indentation,t.delta),f=p,u&&209===s.kind&&-1===o&&(o=t.indentation)}}}else a.endn.pos)break;if(r.token.kind===o){c=b.getLineAndCharacterOfPosition(r.token.pos).line,m(r,i,a,i);let t;if(-1!==T)t=T;else{let e=TH(r.token.pos,b);t=r0e.findFirstNonWhitespaceColumn(e,r.token.pos,b,y)}s=N(i,e,t,y.indentSize)}else m(r,i,a,i)}let r=-1;for(let t=0;tF(e.pos,t,!1))}-1!==e&&r&&(F(n.token.pos,e,1===c),k=_.line,T=e)}g.advance(),f=r}}(r,r,a,e,n,i)}var a=g.getCurrentLeadingTrivia();if(a){let t=r0e.nodeWillIndentChild(y,r,void 0,b,!1)?n+y.indentSize:n;if(D(a,t,!0,e=>{P(e,b.getLineAndCharacterOfPosition(e.pos),r,r,void 0),F(e.pos,t,!1)}),!1!==y.trimTrailingWhitespace){i=a;let e=S?S.end:h.pos;for(var c of i)kK(c.kind)&&(e=h.end&&(n=g.isOnEOF()?g.readEOFTokenRange():g.isOnToken()?g.readTokenInfo(r).token:void 0)&&n.pos===x&&(a=(null==(e=nK(n.end,b,r))?void 0:e.parent)||o,l(n,b.getLineAndCharacterOfPosition(n.pos).line,a,S,s,o,a,void 0)),p;function C(e,t,r,n,i){if(FH(n,e,t)||PH(n,e,t)){if(-1!==i)return i}else{var n=b.getLineAndCharacterOfPosition(e).line,t=TH(e,b),i=r0e.findFirstNonWhitespaceColumn(t,e,b,y);if(n!==r||e===i)return i<(t=r0e.getBaseIndentation(y))?t:i}return-1}function w(e,t,r,n,i,a){var o=r0e.shouldIndentChildNode(y,e)?y.indentSize:0;return a===t?{indentation:t===k?T:i.getIndentation(),delta:Math.min(y.indentSize,i.getDelta(e)+o)}:-1===r?21===e.kind&&t===k?{indentation:T,delta:i.getDelta(e)}:r0e.childStartsOnTheSameLineWithElseInIfStatement(n,e,t,b)||r0e.childIsUnindentedBranchOfConditionalExpression(n,e,t,b)||r0e.argumentStartsOnSameLineAsPreviousArgument(n,e,t,b)?{indentation:i.getIndentation(),delta:o}:{indentation:i.getIndentation()+i.getDelta(e),delta:o}:{indentation:r,delta:o}}function N(i,a,o,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return o+s(r)}return-1!==t?t:o},getIndentationForToken:(e,t,r,n)=>!n&&function(e,t,r){switch(t){case 19:case 20:case 22:case 93:case 117:case 60:return;case 44:case 32:switch(r.kind){case 286:case 287:case 285:return}break;case 23:case 24:if(200!==r.kind)return}return a!==e&&(!AN(i)||t!==function(e){if(f9(e)){var t=bT(e.modifiers,IC,ST(e.modifiers,$E));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:var r=tC(e);if(r)return r.kind}}(i))}(e,t,r)?o+s(r):o,getIndentation:()=>o,getDelta:s,recomputeIndentation:(e,t)=>{r0e.shouldIndentChildNode(y,t,i,b)&&(o+=e?y.indentSize:-y.indentSize,r=r0e.shouldIndentChildNode(y,i)?y.indentSize:0)}};function s(e){return r0e.nodeWillIndentChild(y,i,e,b,!0)?r:0}}function D(e,t,i,r){for(var a of e){var n=CH(h,a);switch(a.kind){case 3:if(n){o=void 0;s=void 0;c=void 0;l=void 0;_=void 0;d=void 0;p=void 0;f=void 0;m=void 0;g=void 0;u=void 0;var[o,s,c,l=!0]=[a,t,!i];let r=b.getLineAndCharacterOfPosition(o.pos).line,n=b.getLineAndCharacterOfPosition(o.end).line;if(r===n)c||F(o.pos,s,!1);else{var _=[];let t=o.pos;for(let e=r;e{if(l=function(e,t,r,n,i){var a=i!==r;switch(e.action){case 1:return 0;case 16:if(t.end!==n.pos)return A(t.end,n.pos-t.end),a?2:0;break;case 32:A(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&r!==i)return 0;if(1!=i-r)return I(t.end,n.pos-t.end,WG(u,y)),a?0:1;break;case 4:if(1!==e.flags&&r!==i)return 0;if(1!=n.pos-t.end||32!==b.text.charCodeAt(t.end))return I(t.end,n.pos-t.end," "),a?2:0;break;case 64:!function(e,t){t&&p.push(JK(e,0,t))}(t.end,";")}return 0}(e,i,a,t,r),s)switch(l){case 2:n.getStart(b)===t.pos&&s.recomputeIndentation(!1,o);break;case 1:n.getStart(b)===t.pos&&s.recomputeIndentation(!0,o);break;default:Y4.assert(0===l)}c=c&&!(16&e.action)&&1!==e.flags}):c=c&&1!==t.kind,r!==a&&c&&f(a,r,i),l}function F(e,t,r){var n=h0e(t,y);r?I(e,0,n):(r=b.getLineAndCharacterOfPosition(e),t===function(t,r){let n=0;for(let e=0;eo||-1!==(i=function(e,t){let r=t;for(;r>=e&&so(b.text.charCodeAt(r));)r--;return r===t?-1:r+1}(a,o))&&(Y4.assert(i===a||!so(b.text.charCodeAt(i-1))),A(i,o+1-i))}}function m(e,t,r){f(b.getLineAndCharacterOfPosition(e).line,b.getLineAndCharacterOfPosition(t).line+1,r)}function A(e,t){t&&p.push(JK(e,t,""))}function I(e,t,r){(t||r)&&p.push(JK(e,t,r))}}function f0e(t,r,e,n=YH(t,r)){var i=tT(n,A1),i=(n=i?i.parent:n).getStart(t);if(!(i<=r&&rDH(e,r)||r===e.end&&(2===e.kind||r===t.getFullWidth()))}function m0e(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}function g0e(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function h0e(t,r){if((!Zhe||Zhe.tabSize!==r.tabSize||Zhe.indentSize!==r.indentSize)&&(Zhe={tabSize:r.tabSize,indentSize:r.indentSize},e0e=t0e=void 0),r.convertTabsToSpaces){let e;var n=Math.floor(t/r.indentSize),i=t%r.indentSize;return void 0===(t0e=t0e||[])[n]?(e=GK(" ",r.indentSize*n),t0e[n]=e):e=t0e[n],i?e+GK(" ",i):e}{n=Math.floor(t/r.tabSize),i=t-n*r.tabSize;let e;return void 0===(e0e=e0e||[])[n]?e0e[n]=e=GK("\t",n):e=e0e[n],i?e+GK(" ",i):e}}function y0e(e){return e.baseIndentSize||0}function v0e(t,r,n,i,a,o,s){let c,l=t.parent;for(;l;){let e=!0;n&&(_=t.getStart(a),e=_n.end);var _=function(e,t,r){t=k0e(t,r),t=t?t.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(t)}(l,t,a),u=_.line===r.line||S0e(l,t,r.line,a);if(e){var d=null==(c=k0e(t,a))?void 0:c[0],d=w0e(t,a,s,!!d&&b0e(d,a).line>_.line);if(-1!==d)return d+i;if(-1!==(d=function(e,t,r,n,i,a){e=(u7(e)||$c(e))&&(307===t.kind||!n);return e?D0e(r,i,a):-1}(t,l,r,u,a,s)))return d+i}A0e(s,l,t,a,o)&&!u&&(i+=s.indentSize);d=x0e(l,t,r.line,a);l=(t=l).parent,r=d?a.getLineAndCharacterOfPosition(t.getStart(a)):_}return i+y0e(s)}function b0e(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function x0e(e,t,r,n){return!(!PP(e)||!TT(e.arguments,t))&&O3(n,e.expression.getEnd()).line===r}function S0e(e,t,r,n){return 245===e.kind&&e.elseStatement===t&&(t=MH(e,93,n),Y4.assert(void 0!==t),b0e(t,n).line===r)}function k0e(e,t){return e.parent&&T0e(e.getStart(t),e.getEnd(),e.parent,t)}function T0e(t,r,n,i){switch(n.kind){case 183:return e(n.typeArguments);case 210:return e(n.properties);case 209:return e(n.elements);case 187:return e(n.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return e(n.typeParameters)||e(n.parameters);case 177:return e(n.parameters);case 263:case 231:case 264:case 265:case 345:return e(n.typeParameters);case 214:case 213:return e(n.typeArguments)||e(n.arguments);case 261:return e(n.declarations);case 275:case 279:return e(n.elements);case 206:case 207:return e(n.elements)}function e(e){return e&&PH(function(e,t,r){var n=e.getChildren(r);for(let e=1;en.text.length)return y0e(i);if(0===i.indentStyle)return 0;var o=nK(r,n,void 0,!0),e=f0e(n,r,o||null);if(e&&3===e.kind)return l=i,e=e,_=O3(s=n,t=r).line-1,e=O3(s,e.pos).line,Y4.assert(0<=e),_<=e?P0e(Sl(e,s),t,s,l):({column:_,character:t}=E0e(e=Sl(_,s),t,s,l),0!==_&&42===(l=s.text.charCodeAt(e+t))?_-1:_);if(!o)return y0e(i);if(TK(o.kind)&&o.getStart(n)<=r&&re.pos===t.pos);if(!i)return!1;i=e.arguments.indexOf(i);if(0===i)return!1;if(r===O3(n,e.arguments[i-1].getEnd()).line)return!0}return!1},o.getContainingList=k0e,o.findFirstNonWhitespaceCharacterAndColumn=E0e,o.findFirstNonWhitespaceColumn=P0e,o.nodeWillIndentChild=F0e,o.shouldIndentChildNode=A0e;var O0e={},L0e=(r(O0e,{pasteEditsProvider:()=>function(t,r,n,i,a,o,s,c){var e=I.ChangeTracker.with({host:a,formatContext:s,preferences:o},e=>j0e(t,r,n,i,a,o,s,c,e));return{edits:e,fixId:L0e}}}),"providePostPasteEdits");function j0e(o,s,t,c,l,_,u,d,p){let r,f=(s.length!==t.length&&(r=1===s.length?s:[s.join("\n")]),[]),n=o.text;for(let e=t.length-1;0<=e;e--){var{pos:i,end:a}=t[e];n=r?n.slice(0,i)+r[0]+n.slice(a):n.slice(0,i)+s[e]+n.slice(a)}Y4.checkDefined(l.runWithTemporaryFileUpdate).call(l,o.fileName,n,(e,n,t)=>{let i=hne.createImportAdder(t,e,_,l);if(null!=c&&c.range){Y4.assert(c.range.length===s.length),c.range.forEach(t=>{var r=c.file.statements,n=ST(r,e=>e.end>t.pos);if(-1!==n){let e=ST(r,e=>e.end>=t.end,n);-1!==e&&t.end<=r[e].getStart()&&e--,f.push(...r.slice(n,-1===e?r.length:e+1))}});var r=lee(c.file,f,n.getTypeChecker(),hee(t,f,n.getTypeChecker())),a=(Y4.assertIsDefined(n),!SX(o.fileName,n,l,!!c.file.commonJsModuleIndicator));UZ(c.file,r.targetFileImportsFromOldFile,p,a),xee(c.file,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,n.getTypeChecker(),e,i)}else{let r={sourceFile:t,program:n,cancellationToken:d,host:l,preferences:_,formatContext:u};h9(t,function e(t){!uT(t)||null!=n&&n.getTypeChecker().resolveName(t.text,t,-1,!1)||i.addImportForUnresolvedIdentifier(r,t,!0),t.forEachChild(e)})}i.writeFixes(p,sG(c?c.file:o,_))}),t.forEach((e,t)=>{p.replaceRangeWithText(o,{pos:e.pos,end:e.end},r?r[0]:s[t])})}var R0e,M0e={},B0e=(r(M0e,{ANONYMOUS:()=>D$,AccessFlags:()=>vn,AssertionLevel:()=>ge,AssignmentDeclarationKind:()=>En,AssignmentKind:()=>yu,Associativity:()=>Hu,BreakpointResolver:()=>Qre,BuilderFileEmit:()=>_z,BuilderProgramKind:()=>Fz,BuilderState:()=>$J,CallHierarchy:()=>Yre,CharacterCodes:()=>Vn,CheckFlags:()=>ln,CheckMode:()=>ej,ClassificationType:()=>UW,ClassificationTypeNames:()=>qW,CommentDirectiveType:()=>Ur,Comparison:()=>a,CompletionInfoFlags:()=>LW,CompletionTriggerKind:()=>NW,Completions:()=>Cue,ContainerFlags:()=>cL,ContextFlags:()=>Zr,Debug:()=>Y4,DiagnosticCategory:()=>Pn,Diagnostics:()=>eT,DocumentHighlights:()=>jX,ElementFlags:()=>yn,EmitFlags:()=>Gn,EmitHint:()=>Yn,EmitOnly:()=>Kr,EndOfLineState:()=>MW,ExitStatus:()=>$r,ExportKind:()=>wX,Extension:()=>Wn,ExternalEmitHelpers:()=>Qn,FileIncludeKind:()=>Wr,FilePreprocessingDiagnosticsKind:()=>Hr,FileSystemEntryKind:()=>Li,FileWatcherEventKind:()=>si,FindAllReferences:()=>ope,FlattenLevel:()=>TR,FlowFlags:()=>qr,ForegroundColorEscapeSequences:()=>QB,FunctionFlags:()=>ju,GeneratedIdentifierFlags:()=>fn,GetLiteralTextFlags:()=>Wl,GoToDefinition:()=>mfe,HighlightSpanKind:()=>EW,IdentifierNameMap:()=>eR,IdentifierNameMultiMap:()=>tR,ImportKind:()=>CX,ImportsNotUsedAsValues:()=>Mn,IndentStyle:()=>PW,IndexFlags:()=>bn,IndexKind:()=>Tn,InferenceFlags:()=>Nn,InferencePriority:()=>wn,InlayHintKind:()=>DW,InlayHints:()=>Dfe,InternalEmitFlags:()=>$n,InternalSymbolName:()=>_n,IntersectionFlags:()=>Yr,InvalidatedProjectKind:()=>TU,JSDocParsingMode:()=>ii,JsDoc:()=>Ofe,JsTyping:()=>QV,JsxEmit:()=>Rn,JsxFlags:()=>Mr,JsxReferenceKind:()=>xn,LanguageFeatureMinimumTarget:()=>Xn,LanguageServiceMode:()=>kW,LanguageVariant:()=>qn,LexicalEnvironmentFlags:()=>ei,ListFormat:()=>ti,LogLevel:()=>Qe,MapCode:()=>Vfe,MemberOverrideStatus:()=>Xr,ModifierFlags:()=>Rr,ModuleDetectionKind:()=>In,ModuleInstanceState:()=>aL,ModuleKind:()=>k3,ModuleResolutionKind:()=>An,ModuleSpecifierEnding:()=>Lm,NavigateTo:()=>dY,NavigationBar:()=>kY,NewLineKind:()=>Bn,NodeBuilderFlags:()=>en,NodeCheckFlags:()=>un,NodeFactoryFlags:()=>Dg,NodeFlags:()=>jr,NodeResolutionFeatures:()=>aO,ObjectFlags:()=>gn,OperationCanceledException:()=>Vr,OperatorPrecedence:()=>Qu,OrganizeImports:()=>Gfe,OrganizeImportsMode:()=>wW,OuterExpressionKinds:()=>Zn,OutliningElementsCollector:()=>fme,OutliningSpanKind:()=>jW,OutputFileType:()=>RW,PackageJsonAutoImportPreference:()=>SW,PackageJsonDependencyGroup:()=>xW,PatternMatchKind:()=>hQ,PollingInterval:()=>ci,PollingWatchKind:()=>jn,PragmaKindFlags:()=>ri,PrivateIdentifierKind:()=>Sh,ProcessLevel:()=>HR,ProgramUpdateLevel:()=>NB,QuotePreference:()=>aG,RegularExpressionFlags:()=>Jr,RelationComparisonResult:()=>Br,Rename:()=>kme,ScriptElementKind:()=>JW,ScriptElementKindModifier:()=>zW,ScriptKind:()=>Jn,ScriptSnapshot:()=>hW,ScriptTarget:()=>zn,SemanticClassificationFormat:()=>CW,SemanticMeaning:()=>WW,SemicolonPreference:()=>FW,SignatureCheckMode:()=>tj,SignatureFlags:()=>kn,SignatureHelp:()=>Dme,SignatureInfo:()=>XJ,SignatureKind:()=>Sn,SmartSelectionRange:()=>zme,SnippetKind:()=>Kn,StatisticType:()=>dV,StructureIsReused:()=>Gr,SymbolAccessibility:()=>nn,SymbolDisplay:()=>Hme,SymbolDisplayPartKind:()=>OW,SymbolFlags:()=>cn,SymbolFormatFlags:()=>rn,SyntaxKind:()=>Lr,SyntheticSymbolKind:()=>an,Ternary:()=>Dn,ThrottledCancellationToken:()=>qre,TokenClass:()=>BW,TokenFlags:()=>zr,TransformFlags:()=>Hn,TypeFacts:()=>YL,TypeFlags:()=>mn,TypeFormatFlags:()=>tn,TypeMapKind:()=>Cn,TypePredicateKind:()=>on,TypeReferenceSerializationKind:()=>sn,UnionReduction:()=>Qr,UpToDateStatusType:()=>Xq,VarianceFlags:()=>hn,Version:()=>Tr,VersionRange:()=>Ot,WatchDirectoryFlags:()=>Un,WatchDirectoryKind:()=>Ln,WatchFileKind:()=>On,WatchLogLevel:()=>jB,WatchType:()=>Oq,accessPrivateIdentifier:()=>xR,addDisposableResourceHelper:()=>e0,addEmitFlags:()=>Hg,addEmitHelper:()=>lh,addEmitHelpers:()=>_h,addInternalEmitFlags:()=>Gg,addNodeFactoryPatcher:()=>Pg,addObjectAllocatorPatcher:()=>gf,addRange:()=>BT,addRelatedInfo:()=>JD,addSyntheticLeadingComment:()=>RE,addSyntheticTrailingComment:()=>ah,addToSeen:()=>sf,advancedAsyncSuperHelper:()=>n0,affectsDeclarationPathOptionDeclarations:()=>L4,affectsEmitOptionDeclarations:()=>O4,allKeysStartWithDot:()=>OO,altDirectorySeparator:()=>Ui,and:()=>g3,append:()=>Q4,appendIfUnique:()=>zT,arrayFrom:()=>ZT,arrayIsEqualTo:()=>hr,arrayIsHomogeneous:()=>YD,arrayIsSorted:()=>w,arrayOf:()=>YT,arrayReverseIterator:()=>P,arrayToMap:()=>Q,arrayToMultiMap:()=>e3,arrayToNumericMap:()=>Y,arraysEqual:()=>CT,assertType:()=>He,assign:()=>U,assignHelper:()=>Fh,asyncDelegator:()=>Oh,asyncGeneratorHelper:()=>Ih,asyncSuperHelper:()=>r0,asyncValues:()=>Lh,attachFileToDiagnostics:()=>Sf,awaitHelper:()=>Ah,awaiterHelper:()=>Rh,base64decode:()=>yp,base64encode:()=>hp,binarySearch:()=>XT,binarySearchKey:()=>j,bindSourceFile:()=>uL,breakIntoCharacterSpans:()=>AQ,breakIntoWordSpans:()=>IQ,buildLinkParts:()=>UG,buildOpts:()=>V4,buildOverload:()=>U0e,bundlerModuleNameResolver:()=>sO,canBeConvertedToAsync:()=>tY,canHaveDecorators:()=>m9,canHaveExportModifier:()=>uE,canHaveFlowNode:()=>sw,canHaveIllegalDecorators:()=>u9,canHaveIllegalModifiers:()=>d9,canHaveIllegalType:()=>jy,canHaveIllegalTypeParameters:()=>Ry,canHaveJSDoc:()=>cw,canHaveLocals:()=>_7,canHaveModifiers:()=>f9,canHaveSymbol:()=>l7,canIncludeBindAndCheckDiagnsotics:()=>WD,canJsonReportNoInputFiles:()=>RA,canProduceDiagnostics:()=>wM,canUsePropertyAccess:()=>pE,canWatchAffectingLocation:()=>Zz,canWatchAtTypes:()=>Xz,canWatchDirectoryOrFile:()=>$z,cartesianProduct:()=>b3,cast:()=>s3,chainBundle:()=>Gj,chainDiagnosticMessages:()=>gD,changeAnyExtension:()=>ha,changeCompilerHostLikeToUseCache:()=>KB,changeExtension:()=>Vm,changeFullExtension:()=>ya,changesAffectModuleResolution:()=>_l,changesAffectingProgramStructure:()=>dl,characterToRegularExpressionFlag:()=>Ya,childIsDecorated:()=>V_,classElementOrClassElementParameterIsDecorated:()=>m8,classHasClassThisAssignment:()=>LR,classHasDeclaredOrExplicitlyAssignedName:()=>qR,classHasExplicitlyAssignedName:()=>zR,classOrConstructorParameterIsDecorated:()=>f8,classPrivateFieldGetHelper:()=>Qh,classPrivateFieldInHelper:()=>Zh,classPrivateFieldSetHelper:()=>Yh,classicNameResolver:()=>YO,classifier:()=>mne,cleanExtendedConfigCache:()=>PB,clear:()=>DT,clearMap:()=>Zp,clearSharedExtendedConfigFileWatcher:()=>EB,climbPastPropertyAccess:()=>aH,climbPastPropertyOrElementAccess:()=>oH,clone:()=>ee,cloneCompilerOptions:()=>EK,closeFileWatcher:()=>$p,closeFileWatcherOf:()=>BB,codefix:()=>hne,collapseTextChangeRangesAcrossMultipleVersions:()=>ns,collectExternalModuleInfo:()=>Yj,combine:()=>A,combinePaths:()=>E3,commandLineOptionOfCustomType:()=>q4,commentPragmas:()=>ni,commonOptionsWithBuild:()=>D4,commonPackageFolders:()=>nm,compact:()=>je,compareBooleans:()=>Fe,compareDataObjects:()=>Yp,compareDiagnostics:()=>yD,compareDiagnosticsSkipRelatedInformation:()=>Cf,compareEmitHelpers:()=>Th,compareNumberOfDirectorySeparators:()=>Jm,comparePaths:()=>F3,comparePathsCaseInsensitive:()=>Sa,comparePathsCaseSensitive:()=>xa,comparePatternKeys:()=>jO,compareProperties:()=>Pe,compareStringsCaseInsensitive:()=>be,compareStringsCaseInsensitiveEslintCompatible:()=>xe,compareStringsCaseSensitive:()=>Se,compareStringsCaseSensitiveUI:()=>Ee,compareTextSpans:()=>ye,compareValues:()=>l3,compileOnSaveCommandLineOption:()=>k4,compilerOptionsAffectDeclarationPath:()=>Kf,compilerOptionsAffectEmit:()=>Hf,compilerOptionsAffectSemanticDiagnostics:()=>Wf,compilerOptionsDidYouMeanDiagnostics:()=>O9,compilerOptionsIndicateEsModules:()=>ZK,compose:()=>me,computeCommonSourceDirectoryOfFilenames:()=>qB,computeLineAndCharacterOfPosition:()=>no,computeLineOfPosition:()=>io,computeLineStarts:()=>Za,computePositionOfLineAndCharacter:()=>to,computeSignature:()=>Lz,computeSignatureWithDiagnostics:()=>Oz,computeSuggestionDiagnostics:()=>WQ,computedOptions:()=>Of,concatenate:()=>LT,concatenateDiagnosticMessageChains:()=>hD,configDirTemplateSubstitutionOptions:()=>J4,configDirTemplateSubstitutionWatchOptions:()=>z4,consumesNodeCoreModules:()=>G$,contains:()=>TT,containsIgnoredPath:()=>lg,containsObjectRestOrSpread:()=>Tv,containsParseError:()=>z7,containsPath:()=>ka,convertCompilerOptionsForTelemetry:()=>uI,convertCompilerOptionsFromJson:()=>qA,convertJsonOption:()=>XA,convertToBase64:()=>gp,convertToJson:()=>uA,convertToObject:()=>_A,convertToOptionsWithAbsolutePaths:()=>xA,convertToRelativePath:()=>Na,convertToTSConfig:()=>pA,convertTypeAcquisitionFromJson:()=>UA,copyComments:()=>d$,copyEntries:()=>M7,copyLeadingComments:()=>h$,copyProperties:()=>re,copyTrailingAsLeadingComments:()=>v$,copyTrailingComments:()=>y$,couldStartTrivia:()=>fo,countWhere:()=>wT,createAbstractBuilder:()=>Hz,createAccessorPropertyBackingField:()=>yv,createAccessorPropertyGetRedirector:()=>vv,createAccessorPropertySetRedirector:()=>bv,createBaseNodeFactory:()=>xg,createBinaryExpressionTrampoline:()=>p9,createBindingHelper:()=>Hh,createBuildInfo:()=>fB,createBuilderProgram:()=>jz,createBuilderProgramUsingProgramBuildInfo:()=>zz,createBuilderStatusReporter:()=>iU,createCacheWithRedirects:()=>zI,createCacheableExportInfoMap:()=>NX,createCachedDirectoryStructureHost:()=>wB,createClassNamedEvaluationHelperBlock:()=>BR,createClassThisAssignmentBlock:()=>IR,createClassifier:()=>LX,createCommentDirectivesMap:()=>Rl,createCompilerDiagnostic:()=>mD,createCompilerDiagnosticForInvalidCustomType:()=>C9,createCompilerDiagnosticFromMessageChain:()=>kf,createCompilerHost:()=>UB,createCompilerHostFromProgramHost:()=>jq,createCompilerHostWorker:()=>HB,createDetachedDiagnostic:()=>dD,createDiagnosticCollection:()=>iN,createDiagnosticForFileFromMessageChain:()=>b5,createDiagnosticForNode:()=>aT,createDiagnosticForNodeArray:()=>h5,createDiagnosticForNodeArrayFromMessageChain:()=>v5,createDiagnosticForNodeFromMessageChain:()=>y5,createDiagnosticForNodeInSourceFile:()=>c_,createDiagnosticForRange:()=>u_,createDiagnosticMessageChainFromDiagnostic:()=>x5,createDiagnosticReporter:()=>_q,createDocumentPositionMapper:()=>Uj,createDocumentRegistry:()=>sQ,createDocumentRegistryInternal:()=>cQ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>Wz,createEmitHelperFactory:()=>kh,createEmptyExports:()=>i9,createEvaluator:()=>PE,createExpressionForJsxElement:()=>iy,createExpressionForJsxFragment:()=>ay,createExpressionForObjectLiteralElementLike:()=>_y,createExpressionForPropertyName:()=>ly,createExpressionFromEntityName:()=>cy,createExternalHelpersImportDeclarationIfNeeded:()=>ky,createFileDiagnostic:()=>pD,createFileDiagnosticFromMessageChain:()=>__,createFlowNode:()=>lL,createForOfBindingStatement:()=>oy,createFutureSourceFile:()=>TX,createGetCanonicalFileName:()=>ze,createGetIsolatedDeclarationErrors:()=>EM,createGetSourceFile:()=>VB,createGetSymbolAccessibilityDiagnosticForNode:()=>DM,createGetSymbolAccessibilityDiagnosticForNodeName:()=>NM,createGetSymbolWalker:()=>hL,createIncrementalCompilerHost:()=>Hq,createIncrementalProgram:()=>Kq,createJsxFactoryExpression:()=>ny,createLanguageService:()=>Wre,createLanguageServiceSourceFile:()=>Mre,createMemberAccessForPropertyName:()=>ey,createModeAwareCache:()=>HI,createModeAwareCacheKey:()=>WI,createModuleNotFoundChain:()=>J7,createModuleResolutionCache:()=>QI,createModuleResolutionLoader:()=>vJ,createModuleResolutionLoaderUsingGlobalCache:()=>sq,createModuleSpecifierResolutionHost:()=>eG,createMultiMap:()=>n3,createNameResolver:()=>IE,createNodeConverters:()=>Tg,createNodeFactory:()=>Fg,createOptionNameMap:()=>S9,createOverload:()=>q0e,createPackageJsonImportFilter:()=>K$,createPackageJsonInfo:()=>H$,createParenthesizerRules:()=>Sg,createPatternMatcher:()=>vQ,createPrinter:()=>SB,createPrinterWithDefaults:()=>yB,createPrinterWithRemoveComments:()=>vB,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>bB,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>xB,createProgram:()=>BJ,createProgramHost:()=>Bq,createPropertyNameNodeForIdentifierOrLiteral:()=>cE,createQueue:()=>ae,createRange:()=>wp,createRedirectedBuilderProgram:()=>Uz,createResolutionCache:()=>cq,createRuntimeTypeSerializer:()=>eM,createScanner:()=>M3,createSemanticDiagnosticsBuilderProgram:()=>Vz,createSet:()=>oe,createSolutionBuilder:()=>cU,createSolutionBuilderHost:()=>oU,createSolutionBuilderWithWatch:()=>lU,createSolutionBuilderWithWatchHost:()=>sU,createSortedArray:()=>x,createSourceFile:()=>Qv,createSourceMapGenerator:()=>Cj,createSourceMapSource:()=>qg,createSuperAccessVariableStatement:()=>iM,createSymbolTable:()=>I7,createSymlinkCache:()=>Xf,createSyntacticTypeNodeBuilder:()=>$V,createSystemWatchFunctions:()=>Mi,createTextChange:()=>zK,createTextChangeFromStartLength:()=>JK,createTextChangeRange:()=>ts,createTextRangeFromNode:()=>RK,createTextRangeFromSpan:()=>BK,createTextSpan:()=>Qo,createTextSpanFromBounds:()=>Yo,createTextSpanFromNode:()=>LK,createTextSpanFromRange:()=>MK,createTextSpanFromStringLiteralLikeContent:()=>jK,createTextWriter:()=>cN,createTokenRange:()=>Ap,createTypeChecker:()=>lj,createTypeReferenceDirectiveResolutionCache:()=>YI,createTypeReferenceResolutionLoader:()=>SJ,createWatchCompilerHost:()=>Gq,createWatchCompilerHostOfConfigFile:()=>qq,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Uq,createWatchFactory:()=>Lq,createWatchHost:()=>Iq,createWatchProgram:()=>$q,createWatchStatusReporter:()=>fq,createWriteFileMeasuringIO:()=>WB,declarationNameToString:()=>d5,decodeMappings:()=>Oj,decodedTextSpanIntersectsWith:()=>Go,decorateHelper:()=>wh,deduplicate:()=>RT,defaultIncludeSpec:()=>NA,defaultInitCompilerOptions:()=>T9,defaultMaximumTruncationLength:()=>E7,diagnosticCategoryName:()=>Fn,diagnosticToString:()=>hX,diagnosticsEqualityComparer:()=>wf,directoryProbablyExists:()=>Sp,directorySeparator:()=>qi,displayPart:()=>EG,displayPartsToString:()=>Ire,disposeEmitNodes:()=>Vg,disposeResourcesHelper:()=>t0,documentSpansEqual:()=>vG,dumpTracingLegend:()=>Or,elementAt:()=>Re,elideNodes:()=>pv,emitComments:()=>Kd,emitDetachedComments:()=>Gd,emitFiles:()=>pB,emitFilesAndReportErrors:()=>Eq,emitFilesAndReportErrorsAndGetExitStatus:()=>Pq,emitModuleKindIsNonNodeESM:()=>ED,emitNewLineBeforeLeadingCommentOfPosition:()=>Hd,emitNewLineBeforeLeadingComments:()=>Vd,emitNewLineBeforeLeadingCommentsOfPosition:()=>Wd,emitResolverSkipsTypeChecking:()=>dB,emitSkippedWithNoDiagnostics:()=>JJ,emptyArray:()=>H4,emptyFileSystemEntries:()=>Qm,emptyMap:()=>p,emptyOptions:()=>TW,emptySet:()=>s,endsWith:()=>u3,ensurePathIsNonModuleName:()=>ga,ensureScriptKind:()=>ym,ensureTrailingDirectorySeparator:()=>ma,entityNameToString:()=>g5,enumerateInsertsAndDeletes:()=>Ke,equalOwnProperties:()=>X,equateStringsCaseInsensitive:()=>xr,equateStringsCaseSensitive:()=>Sr,equateValues:()=>c3,esDecorateHelper:()=>Eh,escapeJsxAttributeString:()=>gd,escapeLeadingUnderscores:()=>$3,escapeNonAsciiString:()=>ud,escapeSnippetText:()=>ug,escapeString:()=>aN,escapeTemplateSubstitution:()=>td,evaluatorResult:()=>EE,every:()=>vT,executeCommandLine:()=>EV,expandPreOrPostfixIncrementOrDecrementExpression:()=>uy,explainFiles:()=>kq,explainIfFileIsRedirectAndImpliedFormat:()=>Tq,exportAssignmentIsAlias:()=>Aw,exportStarHelper:()=>Xh,expressionResultIsUnused:()=>rE,extend:()=>te,extendsHelper:()=>Mh,extensionFromPath:()=>$m,extensionIsTS:()=>Gm,extensionsNotSupportingExtensionlessResolution:()=>Pm,externalHelpersModuleNameText:()=>D7,factory:()=>cT,fileExtensionIs:()=>w3,fileExtensionIsOneOf:()=>N3,fileIncludeReasonToDiagnostics:()=>Nq,fileShouldUseJavaScriptRequire:()=>SX,filter:()=>NT,filterMutate:()=>d,filterSemanticDiagnostics:()=>qJ,find:()=>bT,findAncestor:()=>tT,findBestPatternMatch:()=>p3,findChildOfKind:()=>MH,findComputedPropertyNameCacheAssignment:()=>xv,findConfigFile:()=>JB,findConstructorDeclaration:()=>AE,findContainingList:()=>BH,findDiagnosticForNode:()=>Q$,findFirstNonJsxWhitespaceToken:()=>eK,findIndex:()=>ST,findLast:()=>xT,findLastIndex:()=>kT,findListItemInfo:()=>jH,findMap:()=>_,findModifier:()=>mG,findNextToken:()=>rK,findPackageJson:()=>V$,findPackageJsons:()=>U$,findPrecedingMatchingToken:()=>pK,findPrecedingToken:()=>nK,findSuperStatementIndexPath:()=>sR,findTokenOnLeftOfPosition:()=>tK,findUseStrictPrologue:()=>a9,first:()=>WT,firstDefined:()=>yT,firstDefinedIterator:()=>gr,firstIterator:()=>HT,firstOrOnly:()=>rX,firstOrUndefined:()=>UT,firstOrUndefinedIterator:()=>VT,fixupCompilerOptions:()=>uY,flatMap:()=>FT,flatMapIterator:()=>f,flatMapToMutable:()=>y,flatten:()=>PT,flattenCommaList:()=>kv,flattenDestructuringAssignment:()=>CR,flattenDestructuringBinding:()=>DR,flattenDiagnosticMessageText:()=>lJ,forEach:()=>G4,forEachAncestor:()=>fl,forEachAncestorDirectory:()=>Pa,forEachChild:()=>h9,forEachChildRecursively:()=>y9,forEachEmittedFile:()=>KM,forEachEnclosingBlockScopeContainer:()=>u5,forEachEntry:()=>j7,forEachExternalModuleToImportFrom:()=>EX,forEachImportClauseDeclaration:()=>_u,forEachKey:()=>R7,forEachLeadingCommentRange:()=>So,forEachNameInAccessChainWalkingLeft:()=>uf,forEachNameOfDefaultExport:()=>OX,forEachPropertyAssignment:()=>L_,forEachResolvedProjectReference:()=>TJ,forEachReturnStatement:()=>L5,forEachRight:()=>O,forEachTrailingCommentRange:()=>ko,forEachTsConfigPropArray:()=>B_,forEachUnique:()=>xG,forEachYieldExpression:()=>j5,forSomeAncestorDirectory:()=>nf,formatColorAndReset:()=>aJ,formatDiagnostic:()=>XB,formatDiagnostics:()=>$B,formatDiagnosticsWithColorAndContext:()=>cJ,formatGeneratedName:()=>hv,formatGeneratedNamePart:()=>mv,formatLocation:()=>sJ,formatMessage:()=>fD,formatStringFromArgs:()=>yf,formatting:()=>Dge,fullTripleSlashAMDReferencePathRegEx:()=>D_,fullTripleSlashReferencePathRegEx:()=>C_,generateDjb2Hash:()=>ai,generateTSConfig:()=>bA,generatorHelper:()=>Wh,getAdjustedReferenceLocation:()=>GH,getAdjustedRenameLocation:()=>$H,getAliasDeclarationFromName:()=>Pw,getAllAccessorDeclarations:()=>qd,getAllDecoratorsOfClass:()=>fR,getAllDecoratorsOfClassElement:()=>mR,getAllJSDocTags:()=>pC,getAllJSDocTagsOfKind:()=>qs,getAllKeys:()=>z,getAllProjectOutputs:()=>lB,getAllSuperTypeNodes:()=>Cu,getAllowJSCompilerOption:()=>Jf,getAllowSyntheticDefaultImports:()=>TD,getAncestor:()=>Bw,getAnyExtensionFromPath:()=>ia,getAreDeclarationMapsEnabled:()=>Bf,getAssignedExpandoInitializer:()=>j8,getAssignedName:()=>hs,getAssignedNameOfIdentifier:()=>RR,getAssignmentDeclarationKind:()=>V8,getAssignmentDeclarationPropertyAccessKind:()=>$8,getAssignmentTargetKind:()=>hw,getAutomaticTypeDirectiveNames:()=>RI,getBaseFileName:()=>ra,getBinaryOperatorPrecedence:()=>Zu,getBuildInfo:()=>gB,getBuildInfoFileVersionMap:()=>qz,getBuildInfoText:()=>mB,getBuildOrderFromAnyBuildOrder:()=>nU,getBuilderCreationParameters:()=>Az,getBuilderFileEmit:()=>uz,getCanonicalDiagnostic:()=>S5,getCheckFlags:()=>tD,getClassExtendsHeritageElement:()=>jw,getClassLikeDeclarationOfSymbol:()=>oD,getCombinedLocalAndExportSymbolFlags:()=>nD,getCombinedModifierFlags:()=>W3,getCombinedNodeFlags:()=>H3,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>cs,getCommentRange:()=>th,getCommonSourceDirectory:()=>sB,getCommonSourceDirectoryOfConfig:()=>cB,getCompilerOptionValue:()=>Gf,getCompilerOptionsDiffValue:()=>yA,getConditions:()=>LI,getConfigFileParsingDiagnostics:()=>LJ,getConstantValue:()=>sh,getContainerFlags:()=>mL,getContainerNode:()=>bH,getContainingClass:()=>Q5,getContainingClassExcludingClassDecorators:()=>e8,getContainingClassStaticBlock:()=>Y5,getContainingFunction:()=>X5,getContainingFunctionDeclaration:()=>J_,getContainingFunctionOrClassStaticBlock:()=>Z5,getContainingNodeArray:()=>_g,getContainingObjectLiteralElement:()=>Kre,getContextualTypeFromParent:()=>S$,getContextualTypeFromParentOrAncestorTypeNode:()=>UH,getCurrentTime:()=>tU,getDeclarationDiagnostics:()=>PM,getDeclarationEmitExtensionForPath:()=>Ed,getDeclarationEmitOutputFilePath:()=>Nd,getDeclarationEmitOutputFilePathWorker:()=>Dd,getDeclarationFileExtension:()=>f4,getDeclarationFromName:()=>Su,getDeclarationModifierFlagsFromSymbol:()=>rD,getDeclarationOfKind:()=>F7,getDeclarationsOfKind:()=>A7,getDeclaredExpandoInitializer:()=>L8,getDecorators:()=>rC,getDefaultCompilerOptions:()=>Ore,getDefaultFormatCodeSettings:()=>AW,getDefaultLibFileName:()=>zo,getDefaultLibFilePath:()=>$re,getDefaultLikeExportInfo:()=>AX,getDefaultLikeExportNameFromDeclaration:()=>oX,getDiagnosticText:()=>z9,getDiagnosticsWithinSpan:()=>Y$,getDirectoryPath:()=>D3,getDirectoryToWatchFailedLookupLocation:()=>eq,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>nq,getDocumentPositionMapper:()=>qQ,getDocumentSpansEqualityComparer:()=>bG,getESModuleInterop:()=>kD,getEditsForFileRename:()=>uQ,getEffectiveBaseTypeNode:()=>Lw,getEffectiveConstraintOfTypeParameter:()=>gC,getEffectiveContainerForJSDocTemplateTag:()=>_w,getEffectiveImplementsTypeNodes:()=>Rw,getEffectiveInitializer:()=>O8,getEffectiveJSDocHost:()=>pw,getEffectiveModifierFlags:()=>ON,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Zd,getEffectiveModifierFlagsNoCache:()=>np,getEffectiveReturnTypeNode:()=>yN,getEffectiveSetAccessorTypeAnnotationNode:()=>bN,getEffectiveTypeAnnotationNode:()=>hN,getEffectiveTypeParameterDeclarations:()=>mC,getEffectiveTypeRoots:()=>EI,getElementOrPropertyAccessArgumentExpressionOrName:()=>iu,getElementOrPropertyAccessName:()=>G8,getElementsOfBindingOrAssignmentPattern:()=>Oy,getEmitDeclarations:()=>wD,getEmitFlags:()=>$7,getEmitHelpers:()=>dh,getEmitModuleDetectionKind:()=>Lf,getEmitModuleKind:()=>bD,getEmitModuleResolutionKind:()=>xD,getEmitScriptTarget:()=>vD,getEmitStandardClassFields:()=>AD,getEnclosingBlockScopeContainer:()=>_5,getEnclosingContainer:()=>l5,getEncodedSemanticClassifications:()=>JX,getEncodedSyntacticClassifications:()=>VX,getEndLinePosition:()=>Tl,getEntityNameFromTypeNode:()=>u8,getEntrypointsFromPackageJsonInfo:()=>wO,getErrorCountForSummary:()=>gq,getErrorSpanForNode:()=>C5,getErrorSummaryText:()=>bq,getEscapedTextOfIdentifierOrLiteral:()=>Gw,getEscapedTextOfJsxAttributeName:()=>bE,getEscapedTextOfJsxNamespacedName:()=>SE,getExpandoInitializer:()=>R8,getExportAssignmentExpression:()=>Iw,getExportInfoMap:()=>FX,getExportNeedsImportStarHelper:()=>$j,getExpressionAssociativity:()=>Ku,getExpressionPrecedence:()=>$u,getExternalHelpersModuleName:()=>xy,getExternalModuleImportEqualsDeclarationExpression:()=>S8,getExternalModuleName:()=>ew,getExternalModuleNameFromDeclaration:()=>Td,getExternalModuleNameFromPath:()=>Cd,getExternalModuleNameLiteral:()=>wy,getExternalModuleRequireArgument:()=>k8,getFallbackOptions:()=>MB,getFileEmitOutput:()=>GJ,getFileMatcherPatterns:()=>mm,getFileNamesFromConfigSpecs:()=>nI,getFileWatcherEventKind:()=>Ei,getFilesInErrorForSummary:()=>hq,getFirstConstructorWithBody:()=>_N,getFirstIdentifier:()=>VN,getFirstNonSpaceCharacterPosition:()=>r$,getFirstProjectOutput:()=>uB,getFixableErrorSpanExpression:()=>eX,getFormatCodeSettingsForWriting:()=>yX,getFullWidth:()=>ml,getFunctionFlags:()=>zw,getHeritageClause:()=>wu,getHostSignatureFromJSDoc:()=>dw,getIdentifierAutoGenerate:()=>bh,getIdentifierGeneratedImportReference:()=>JE,getIdentifierTypeArguments:()=>BE,getImmediatelyInvokedFunctionExpression:()=>o8,getImpliedNodeFormatForFile:()=>jJ,getImpliedNodeFormatForFileWorker:()=>RJ,getImportNeedsImportDefaultHelper:()=>Qj,getImportNeedsImportStarHelper:()=>Xj,getIndentSize:()=>vd,getIndentString:()=>yd,getInferredLibraryNameResolveFrom:()=>NJ,getInitializedVariables:()=>Hp,getInitializerOfBinaryExpression:()=>X8,getInitializerOfBindingOrAssignmentElement:()=>Dy,getInterfaceBaseTypeNodes:()=>Mw,getInternalEmitFlags:()=>Vl,getInvokedExpression:()=>d8,getIsolatedModules:()=>SD,getJSDocAugmentsTag:()=>ks,getJSDocClassTag:()=>oC,getJSDocCommentRanges:()=>T_,getJSDocCommentsAndTags:()=>fu,getJSDocDeprecatedTag:()=>sC,getJSDocDeprecatedTagNoCache:()=>Os,getJSDocEnumTag:()=>cC,getJSDocHost:()=>fw,getJSDocImplementsTags:()=>Ts,getJSDocOverloadTags:()=>uw,getJSDocOverrideTagNoCache:()=>Is,getJSDocParameterTags:()=>iC,getJSDocParameterTagsNoCache:()=>vs,getJSDocPrivateTag:()=>Ns,getJSDocPrivateTagNoCache:()=>Ds,getJSDocProtectedTag:()=>Es,getJSDocProtectedTagNoCache:()=>Ps,getJSDocPublicTag:()=>Cs,getJSDocPublicTagNoCache:()=>ws,getJSDocReadonlyTag:()=>Fs,getJSDocReadonlyTagNoCache:()=>As,getJSDocReturnTag:()=>Ls,getJSDocReturnType:()=>Ms,getJSDocRoot:()=>mw,getJSDocSatisfiesExpressionType:()=>yE,getJSDocSatisfiesTag:()=>Rs,getJSDocTags:()=>dC,getJSDocTagsNoCache:()=>Js,getJSDocTemplateTag:()=>js,getJSDocThisTag:()=>lC,getJSDocType:()=>uC,getJSDocTypeAliasName:()=>Ly,getJSDocTypeAssertionType:()=>c9,getJSDocTypeParameterDeclarations:()=>vN,getJSDocTypeParameterTags:()=>xs,getJSDocTypeParameterTagsNoCache:()=>Ss,getJSDocTypeTag:()=>_C,getJSXImplicitImportBase:()=>OD,getJSXRuntimeImport:()=>LD,getJSXTransformEnabled:()=>ID,getKeyForCompilerOptions:()=>JI,getLanguageVariant:()=>Ef,getLastChild:()=>of,getLeadingCommentRanges:()=>No,getLeadingCommentRangesOfNode:()=>k_,getLeftmostAccessExpression:()=>_D,getLeftmostExpression:()=>df,getLibraryNameFromLibFileName:()=>DJ,getLineAndCharacterOfPosition:()=>O3,getLineInfo:()=>Ej,getLineOfLocalPosition:()=>Md,getLineOfLocalPositionFromLineMap:()=>Bd,getLineStartPositionForPosition:()=>TH,getLineStarts:()=>ro,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Vp,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Up,getLinesBetweenPositions:()=>ao,getLinesBetweenRangeEndAndRangeStart:()=>Mp,getLinesBetweenRangeEndPositions:()=>Bp,getLiteralText:()=>Hl,getLocalNameForExternalImport:()=>Cy,getLocalSymbolForExportDefault:()=>fp,getLocaleSpecificMessage:()=>xf,getLocaleTimeString:()=>pq,getMappedContextSpan:()=>CG,getMappedDocumentSpan:()=>TG,getMappedLocation:()=>kG,getMatchedFileSpec:()=>Cq,getMatchedIncludeSpec:()=>wq,getMeaningFromDeclaration:()=>HW,getMeaningFromLocation:()=>KW,getMembersOfDeclaration:()=>M5,getModeForFileReference:()=>_J,getModeForResolutionAtIndex:()=>uJ,getModeForUsageLocation:()=>pJ,getModifiedTime:()=>_i,getModifiers:()=>nC,getModuleInstanceState:()=>oL,getModuleNameStringLiteralAt:()=>KJ,getModuleSpecifierEndingPreference:()=>Rm,getModuleSpecifierResolverHost:()=>tG,getNameForExportedSymbol:()=>iX,getNameFromImportAttribute:()=>DE,getNameFromIndexInfo:()=>p5,getNameFromPropertyName:()=>XK,getNameOfAccessExpression:()=>lf,getNameOfCompilerOptionValue:()=>mA,getNameOfDeclaration:()=>tC,getNameOfExpando:()=>B8,getNameOfJSDocTypedef:()=>ms,getNameOfScriptTarget:()=>Vf,getNameOrArgument:()=>nu,getNameTable:()=>Hre,getNamesForExportedSymbol:()=>nX,getNamespaceDeclarationNode:()=>tw,getNewLineCharacter:()=>Cp,getNewLineKind:()=>gX,getNewLineOrDefaultFromHost:()=>WG,getNewTargetContainer:()=>i8,getNextJSDocCommentLocation:()=>gu,getNodeChildren:()=>Q1,getNodeForGeneratedName:()=>fv,getNodeId:()=>oj,getNodeKind:()=>xH,getNodeModifiers:()=>xK,getNodeModulePathParts:()=>dg,getNonAssignedNameOfDeclaration:()=>gs,getNonAssignmentOperatorForCompoundAssignment:()=>aR,getNonAugmentationDeclaration:()=>a5,getNonDecoratorTokenPosOfNode:()=>Bl,getNormalizedAbsolutePath:()=>P3,getNormalizedAbsolutePathWithoutRoot:()=>da,getNormalizedPathComponents:()=>_a,getObjectFlags:()=>sT,getOperator:()=>Xu,getOperatorAssociativity:()=>Gu,getOperatorPrecedence:()=>Yu,getOptionFromName:()=>j9,getOptionsForLibraryResolution:()=>ZI,getOptionsNameMap:()=>k9,getOrCreateEmitNode:()=>Ug,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Ty,getOrUpdate:()=>IT,getOriginalNode:()=>K3,getOriginalNodeId:()=>Wj,getOriginalSourceFile:()=>Wu,getOutputDeclarationFileName:()=>eB,getOutputDeclarationFileNameWorker:()=>tB,getOutputExtension:()=>YM,getOutputFileNames:()=>_B,getOutputJSFileNameWorker:()=>nB,getOutputPathsFor:()=>XM,getOutputPathsForBundle:()=>$M,getOwnEmitOutputFilePath:()=>wd,getOwnKeys:()=>J,getOwnValues:()=>q,getPackageJsonInfo:()=>PO,getPackageJsonTypesVersionsPaths:()=>DI,getPackageJsonsVisibleToFile:()=>W$,getPackageNameFromTypesPackageName:()=>$O,getPackageScopeForPath:()=>DO,getParameterSymbolFromJSDoc:()=>lw,getParameterTypeNode:()=>pg,getParentNodeInSpan:()=>fG,getParseTreeNode:()=>G3,getParsedCommandLineOfConfigFile:()=>q9,getPathComponents:()=>aa,getPathComponentsRelativeTo:()=>Ca,getPathFromPathComponents:()=>oa,getPathUpdater:()=>dQ,getPathsBasePath:()=>Fd,getPatternFromSpec:()=>dm,getPendingEmitKind:()=>dz,getPositionOfLineAndCharacter:()=>eo,getPossibleGenericSignatures:()=>gK,getPossibleOriginalInputExtensionForExtension:()=>Pd,getPossibleTypeArgumentsInfo:()=>hK,getPreEmitDiagnostics:()=>GB,getPrecedingNonSpaceCharacterPosition:()=>n$,getPrivateIdentifier:()=>vR,getProperties:()=>cR,getProperty:()=>M,getPropertyArrayElementValue:()=>j_,getPropertyAssignmentAliasLikeExpression:()=>Ow,getPropertyNameForPropertyNameNode:()=>Ww,getPropertyNameForUniqueESSymbol:()=>Bu,getPropertyNameFromType:()=>CE,getPropertyNameOfBindingOrAssignmentElement:()=>Fy,getPropertySymbolFromBindingElement:()=>pG,getPropertySymbolsFromContextualType:()=>Gre,getQuoteFromPreference:()=>cG,getQuotePreference:()=>sG,getRangesWhere:()=>at,getRefactorContextSpan:()=>Z$,getReferencedFileLocation:()=>IJ,getRegexFromPattern:()=>gm,getRegularExpressionForWildcard:()=>lm,getRegularExpressionsForWildcards:()=>_m,getRelativePathFromDirectory:()=>wa,getRelativePathFromFile:()=>Da,getRelativePathToDirectoryOrUrl:()=>Ea,getRenameLocation:()=>g$,getReplacementSpanForContextToken:()=>OK,getResolutionDiagnostic:()=>WJ,getResolutionModeOverride:()=>mJ,getResolveJsonModule:()=>CD,getResolvePackageJsonExports:()=>jf,getResolvePackageJsonImports:()=>Rf,getResolvedExternalModuleName:()=>Sd,getRestIndicatorOfBindingOrAssignmentElement:()=>Py,getRestParameterElementType:()=>R5,getRightMostAssignedExpression:()=>Z_,getRootDeclaration:()=>eN,getRootDirectoryOfResolutionCache:()=>iq,getRootLength:()=>ta,getRootPathSplitLength:()=>aq,getScriptKind:()=>ZG,getScriptKindFromFileName:()=>vm,getScriptTargetFeatures:()=>X7,getSelectedEffectiveModifierFlags:()=>IN,getSelectedSyntacticModifierFlags:()=>Qd,getSemanticClassifications:()=>MX,getSemanticJsxChildren:()=>nN,getSetAccessorTypeAnnotationNode:()=>Jd,getSetAccessorValueParameter:()=>uN,getSetExternalModuleIndicator:()=>If,getShebang:()=>Eo,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>du,getSingleVariableOfVariableStatement:()=>ow,getSnapshotText:()=>KK,getSnippetElement:()=>fh,getSourceFileOfModule:()=>q7,getSourceFileOfNode:()=>iT,getSourceFilePathInNewDir:()=>Od,getSourceFilePathInNewDirWorker:()=>Ld,getSourceFileVersionAsHashFromText:()=>Rq,getSourceFilesToEmit:()=>Ad,getSourceMapRange:()=>$g,getSourceMapper:()=>zQ,getSourceTextOfNodeFromSourceFile:()=>Jl,getSpanOfTokenAtPosition:()=>k5,getSpellingSuggestion:()=>_3,getStartPositionOfLine:()=>Sl,getStartPositionOfRange:()=>qp,getStartsOnNewLine:()=>Zg,getStaticPropertiesAndClassStaticBlock:()=>_R,getStrictOptionValue:()=>FD,getStringComparer:()=>ke,getSubPatternFromSpec:()=>pm,getSuperCallFromStatement:()=>oR,getSuperContainer:()=>a8,getSupportedCodeFixes:()=>Lre,getSupportedExtensions:()=>Fm,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Am,getSwitchedType:()=>N$,getSymbolId:()=>sj,getSymbolNameForPrivateIdentifier:()=>$w,getSymbolParentOrFail:()=>sX,getSymbolTarget:()=>e$,getSyntacticClassifications:()=>UX,getSyntacticModifierFlags:()=>ep,getSyntacticModifierFlagsNoCache:()=>ip,getSynthesizedDeepClone:()=>i$,getSynthesizedDeepCloneWithReplacements:()=>a$,getSynthesizedDeepClones:()=>s$,getSynthesizedDeepClonesWithReplacements:()=>c$,getSyntheticLeadingComments:()=>rh,getSyntheticTrailingComments:()=>nh,getTargetLabel:()=>sH,getTargetOfBindingOrAssignmentElement:()=>Ey,getTemporaryModuleResolutionState:()=>NO,getTextOfConstantValue:()=>Kl,getTextOfIdentifierOrLiteral:()=>Kw,getTextOfJSDocComment:()=>fC,getTextOfJsxAttributeName:()=>xE,getTextOfJsxNamespacedName:()=>gg,getTextOfNode:()=>K7,getTextOfNodeFromSourceText:()=>ql,getTextOfPropertyName:()=>m5,getThisContainer:()=>t8,getThisParameter:()=>dN,getTokenAtPosition:()=>YH,getTokenPosOfNode:()=>Ml,getTokenSourceMapRange:()=>Qg,getTouchingPropertyName:()=>XH,getTouchingToken:()=>QH,getTrailingCommentRanges:()=>Do,getTrailingSemicolonDeferringWriter:()=>lN,getTransformFlagsSubtreeExclusions:()=>Mg,getTransformers:()=>RM,getTsBuildInfoEmitOutputFilePath:()=>GM,getTsConfigObjectLiteralExpression:()=>R_,getTsConfigPropArrayElementValue:()=>M_,getTypeAnnotationNode:()=>Ud,getTypeArgumentOrTypeParameterList:()=>SK,getTypeKeywordOfTypeOnlyImport:()=>hG,getTypeNode:()=>yh,getTypeNodeIfAccessible:()=>E$,getTypeParameterFromJsDoc:()=>gw,getTypeParameterOwner:()=>is,getTypesPackageName:()=>KO,getUILocale:()=>Ne,getUniqueName:()=>m$,getUniqueSymbolId:()=>t$,getUseDefineForClassFields:()=>DD,getWatchErrorSummaryDiagnosticMessage:()=>yq,getWatchFactory:()=>RB,group:()=>t3,groupBy:()=>Z,guessIndentation:()=>ol,handleNoEmitOptions:()=>zJ,handleWatchOptionsConfigDirTemplateSubstitution:()=>EA,hasAbstractModifier:()=>DN,hasAccessorModifier:()=>PN,hasAmbientModifier:()=>EN,hasChangesInResolutions:()=>xl,hasChildOfKind:()=>RH,hasContextSensitiveParameters:()=>nE,hasDecorators:()=>AN,hasDocComment:()=>vK,hasDynamicName:()=>Uw,hasEffectiveModifier:()=>kN,hasEffectiveModifiers:()=>xN,hasEffectiveReadonlyModifier:()=>FN,hasExtension:()=>C3,hasIndexSignature:()=>w$,hasInferredType:()=>OE,hasInitializer:()=>b7,hasInvalidEscape:()=>nd,hasJSDocNodes:()=>y7,hasJSDocParameterTags:()=>aC,hasJSFileExtension:()=>Im,hasJsonModuleEmitEnabled:()=>PD,hasOnlyExpressionInitializer:()=>x7,hasOverrideModifier:()=>NN,hasPossibleExternalModuleReference:()=>c5,hasProperty:()=>Si,hasPropertyAccessExpressionWithName:()=>cH,hasQuestionToken:()=>rw,hasRecordedExternalHelpers:()=>Sy,hasResolutionModeOverride:()=>NE,hasRestParameter:()=>C7,hasScopeMarker:()=>i7,hasStaticModifier:()=>wN,hasSyntacticModifier:()=>TN,hasSyntacticModifiers:()=>SN,hasTSFileExtension:()=>Om,hasTabstop:()=>fg,hasTrailingDirectorySeparator:()=>Yi,hasType:()=>v7,hasTypeArguments:()=>hu,hasZeroOrOneAsteriskCharacter:()=>$f,helperString:()=>Ch,hostGetCanonicalFileName:()=>xd,hostUsesCaseSensitiveFileNames:()=>bd,idText:()=>rT,identifierIsThisKeyword:()=>zd,identifierToKeywordKind:()=>Q3,identity:()=>Ti,identitySourceMapConsumer:()=>Vj,ignoreSourceNewlines:()=>gh,ignoredPaths:()=>Pi,importDefaultHelper:()=>$h,importFromModuleSpecifier:()=>su,importStarHelper:()=>Gh,indexOfAnyCharCode:()=>u,indexOfNode:()=>G7,indicesOf:()=>jT,inferredTypesContainingFile:()=>wJ,injectClassNamedEvaluationHelperBlockIfMissing:()=>UR,injectClassThisAssignmentIfMissing:()=>jR,insertImports:()=>gG,insertLeadingStatement:()=>sy,insertSorted:()=>B,insertStatementAfterCustomPrologue:()=>Ol,insertStatementAfterStandardPrologue:()=>Il,insertStatementsAfterCustomPrologue:()=>Al,insertStatementsAfterStandardPrologue:()=>Fl,intersperse:()=>c,intrinsicTagNameToString:()=>kE,introducesArgumentsExoticObject:()=>W5,inverseJsxOptionMap:()=>T4,isAbstractConstructorSymbol:()=>rf,isAbstractModifier:()=>E0,isAccessExpression:()=>lD,isAccessibilityModifier:()=>DK,isAccessor:()=>UC,isAccessorModifier:()=>F0,isAliasSymbolDeclaration:()=>Tu,isAliasableExpression:()=>Fw,isAmbientModule:()=>Z7,isAmbientPropertyDeclaration:()=>Zl,isAnonymousFunctionDefinition:()=>Uu,isAnyDirectorySeparator:()=>Hi,isAnyImportOrBareOrAccessedRequire:()=>i_,isAnyImportOrReExport:()=>o_,isAnyImportOrRequireStatement:()=>a_,isAnyImportSyntax:()=>n_,isAnySupportedFileExtension:()=>Xm,isApplicableVersionedTypesKey:()=>BO,isArgumentExpressionOfElementAccess:()=>mH,isArray:()=>i3,isArrayBindingElement:()=>kc,isArrayBindingOrAssignmentElement:()=>Pc,isArrayBindingOrAssignmentPattern:()=>Ec,isArrayBindingPattern:()=>CP,isArrayLiteralExpression:()=>NP,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>PK,isArrayTypeNode:()=>L0,isArrowFunction:()=>LP,isAsExpression:()=>G0,isAssertClause:()=>p1,isAssertEntry:()=>f1,isAssertionExpression:()=>r7,isAssertsKeyword:()=>C0,isAssignmentDeclaration:()=>I8,isAssignmentExpression:()=>zN,isAssignmentOperator:()=>BN,isAssignmentPattern:()=>$C,isAssignmentTarget:()=>yw,isAsteriskToken:()=>g0,isAsyncFunction:()=>Ru,isAsyncModifier:()=>T0,isAutoAccessorPropertyDeclaration:()=>VC,isAwaitExpression:()=>RP,isAwaitKeyword:()=>w0,isBigIntLiteral:()=>a0,isBinaryExpression:()=>pT,isBinaryOperatorToken:()=>Gy,isBindableObjectDefinePropertyCall:()=>W8,isBindableStaticAccessExpression:()=>ru,isBindableStaticElementAccessExpression:()=>H8,isBindableStaticNameExpression:()=>K8,isBindingElement:()=>wP,isBindingElementOfBareOrAccessedRequire:()=>F8,isBindingName:()=>fc,isBindingOrAssignmentElement:()=>Cc,isBindingOrAssignmentPattern:()=>wc,isBindingPattern:()=>GC,isBlock:()=>KP,isBlockLike:()=>kX,isBlockOrCatchScoped:()=>Q7,isBlockScope:()=>e_,isBlockScopedContainerTopLevel:()=>r5,isBooleanLiteral:()=>BC,isBreakOrContinueStatement:()=>$s,isBreakStatement:()=>n1,isBuild:()=>DV,isBuildInfoFile:()=>HM,isBuilderProgram:()=>xq,isBundle:()=>N1,isCallChain:()=>yC,isCallExpression:()=>PP,isCallExpressionTarget:()=>$W,isCallLikeExpression:()=>ZC,isCallLikeOrFunctionLikeExpression:()=>YC,isCallOrNewExpression:()=>e7,isCallOrNewExpressionTarget:()=>QW,isCallSignatureDeclaration:()=>iP,isCallToHelper:()=>i0,isCaseBlock:()=>u1,isCaseClause:()=>C1,isCaseKeyword:()=>I0,isCaseOrDefaultClause:()=>tl,isCatchClause:()=>PF,isCatchClauseVariableDeclaration:()=>aE,isCatchClauseVariableDeclarationOrBindingElement:()=>Y7,isCheckJsEnabledForFile:()=>BD,isChildOfNodeWithKind:()=>A_,isCircularBuildOrder:()=>rU,isClassDeclaration:()=>nF,isClassElement:()=>zC,isClassExpression:()=>JP,isClassInstanceProperty:()=>WC,isClassLike:()=>qC,isClassMemberModifier:()=>pc,isClassNamedEvaluationHelperBlock:()=>JR,isClassOrTypeElement:()=>xc,isClassStaticBlockDeclaration:()=>eP,isClassThisAssignmentBlock:()=>OR,isCollapsedRange:()=>Fp,isColonToken:()=>v0,isCommaExpression:()=>hy,isCommaListExpression:()=>Q0,isCommaSequence:()=>o9,isCommaToken:()=>p0,isComment:()=>kK,isCommonJsExportPropertyAssignment:()=>U5,isCommonJsExportedExpression:()=>q5,isCompoundAssignment:()=>iR,isComputedNonLiteralName:()=>f5,isComputedPropertyName:()=>HE,isConciseBody:()=>Bc,isConditionalExpression:()=>W0,isConditionalTypeNode:()=>gP,isConstAssertion:()=>FE,isConstTypeReference:()=>kC,isConstructSignatureDeclaration:()=>aP,isConstructorDeclaration:()=>tP,isConstructorTypeNode:()=>lP,isContextualKeyword:()=>Pu,isContinueStatement:()=>r1,isCustomPrologue:()=>v_,isDebuggerStatement:()=>_1,isDeclaration:()=>u7,isDeclarationBindingElement:()=>Tc,isDeclarationFileName:()=>x9,isDeclarationName:()=>Dw,isDeclarationNameOfEnumOrNamespace:()=>Wp,isDeclarationReadonly:()=>P5,isDeclarationStatement:()=>Gc,isDeclarationWithTypeParameterChildren:()=>r_,isDeclarationWithTypeParameters:()=>t_,isDecorator:()=>$E,isDecoratorTarget:()=>ZW,isDefaultClause:()=>w1,isDefaultImport:()=>lu,isDefaultModifier:()=>k0,isDefaultedExpandoInitializer:()=>M8,isDeleteExpression:()=>q0,isDeleteTarget:()=>ww,isDeprecatedDeclaration:()=>fX,isDestructuringAssignment:()=>up,isDiagnosticWithLocation:()=>X$,isDiskPathRoot:()=>$i,isDoStatement:()=>e1,isDocumentRegistryEntry:()=>oQ,isDotDotDotToken:()=>d0,isDottedName:()=>WN,isDynamicName:()=>Vw,isESSymbolIdentifier:()=>zu,isEffectiveExternalModule:()=>o5,isEffectiveModuleDeclaration:()=>Xl,isEffectiveStrictModeSourceFile:()=>Yl,isElementAccessChain:()=>Ws,isElementAccessExpression:()=>EP,isEmittedFileOfProgram:()=>LB,isEmptyArrayLiteral:()=>pp,isEmptyBindingElement:()=>os,isEmptyBindingPattern:()=>as,isEmptyObjectLiteral:()=>dp,isEmptyStatement:()=>Z0,isEmptyStringLiteral:()=>W_,isEntityName:()=>OC,isEntityNameExpression:()=>UN,isEnumConst:()=>E5,isEnumDeclaration:()=>oF,isEnumMember:()=>OF,isEqualityOperatorKind:()=>T$,isEqualsGreaterThanToken:()=>x0,isExclamationToken:()=>h0,isExcludedFile:()=>iI,isExclusivelyTypeOnlyImportOrExport:()=>dJ,isExpandoPropertyDeclaration:()=>wE,isExportAssignment:()=>gF,isExportDeclaration:()=>hF,isExportModifier:()=>S0,isExportName:()=>fy,isExportNamespaceAsDefaultDeclaration:()=>zl,isExportOrDefaultModifier:()=>uv,isExportSpecifier:()=>vF,isExportsIdentifier:()=>z8,isExportsOrModuleExportsOrAlias:()=>fL,isExpression:()=>nT,isExpressionNode:()=>h8,isExpressionOfExternalModuleImportEqualsDeclaration:()=>vH,isExpressionOfOptionalChainRoot:()=>xC,isExpressionStatement:()=>$P,isExpressionWithTypeArguments:()=>qP,isExpressionWithTypeArgumentsInClassExtendsClause:()=>qN,isExternalModule:()=>b9,isExternalModuleAugmentation:()=>i5,isExternalModuleImportEqualsDeclaration:()=>x8,isExternalModuleIndicator:()=>o7,isExternalModuleNameRelative:()=>B3,isExternalModuleReference:()=>bF,isExternalModuleSymbol:()=>L7,isExternalOrCommonJsModule:()=>N5,isFileLevelReservedGeneratedIdentifier:()=>_c,isFileLevelUniqueName:()=>Cl,isFileProbablyExternalModule:()=>Dv,isFirstDeclarationOfSymbolParameter:()=>wG,isFixablePromiseHandler:()=>$Q,isForInOrOfStatement:()=>s7,isForInStatement:()=>YP,isForInitializer:()=>zc,isForOfStatement:()=>ZP,isForStatement:()=>QP,isFullSourceFile:()=>H_,isFunctionBlock:()=>O_,isFunctionBody:()=>Jc,isFunctionDeclaration:()=>rF,isFunctionExpression:()=>OP,isFunctionExpressionOrArrowFunction:()=>oE,isFunctionLike:()=>jC,isFunctionLikeDeclaration:()=>MC,isFunctionLikeKind:()=>gc,isFunctionLikeOrClassStaticBlockDeclaration:()=>RC,isFunctionOrConstructorTypeNode:()=>Sc,isFunctionOrModuleBlock:()=>JC,isFunctionSymbol:()=>ou,isFunctionTypeNode:()=>cP,isFutureReservedKeyword:()=>Au,isGeneratedIdentifier:()=>PC,isGeneratedPrivateIdentifier:()=>lc,isGetAccessor:()=>h7,isGetAccessorDeclaration:()=>rP,isGetOrSetAccessorDeclaration:()=>hC,isGlobalDeclaration:()=>dX,isGlobalScopeAugmentation:()=>n5,isGlobalSourceFile:()=>w5,isGrammarError:()=>wl,isHeritageClause:()=>EF,isHoistedFunction:()=>b_,isHoistedVariableStatement:()=>S_,isIdentifier:()=>uT,isIdentifierANonContextualKeyword:()=>Ou,isIdentifierName:()=>ku,isIdentifierOrThisTypeNode:()=>By,isIdentifierPart:()=>Fo,isIdentifierStart:()=>Po,isIdentifierText:()=>R3,isIdentifierTypePredicate:()=>G5,isIdentifierTypeReference:()=>QD,isIfStatement:()=>XP,isIgnoredFileFromWildCardWatching:()=>IB,isImplicitGlob:()=>um,isImportAttribute:()=>m1,isImportAttributeName:()=>cc,isImportAttributes:()=>pF,isImportCall:()=>A5,isImportClause:()=>dF,isImportDeclaration:()=>uF,isImportEqualsDeclaration:()=>_F,isImportKeyword:()=>VE,isImportMeta:()=>h_,isImportOrExportSpecifier:()=>NC,isImportOrExportSpecifierName:()=>YG,isImportSpecifier:()=>mF,isImportTypeAssertionContainer:()=>d1,isImportTypeNode:()=>kP,isImportableFile:()=>DX,isInComment:()=>yK,isInCompoundLikeAssignment:()=>vw,isInExpressionContext:()=>y8,isInJSDoc:()=>N8,isInJSFile:()=>oT,isInJSXText:()=>uK,isInJsonFile:()=>w8,isInNonReferenceComment:()=>AK,isInReferenceComment:()=>FK,isInRightSideOfInternalImportEqualsDeclaration:()=>GW,isInString:()=>sK,isInTemplateString:()=>_K,isInTopLevelContext:()=>n8,isInTypeQuery:()=>mN,isIncrementalCompilation:()=>Mf,isIndexSignatureDeclaration:()=>O0,isIndexedAccessTypeNode:()=>bP,isInferTypeNode:()=>M0,isInfinityOrNaNString:()=>iE,isInitializedProperty:()=>uR,isInitializedVariable:()=>Kp,isInsideJsxElement:()=>dK,isInsideJsxElementOrAttribute:()=>cK,isInsideNodeModules:()=>$$,isInsideTemplateLiteral:()=>NK,isInstanceOfExpression:()=>YN,isInstantiatedModule:()=>cj,isInterfaceDeclaration:()=>iF,isInternalDeclaration:()=>cl,isInternalModuleImportEqualsDeclaration:()=>T8,isInternalName:()=>dy,isIntersectionTypeNode:()=>R0,isIntrinsicJsxName:()=>sN,isIterationStatement:()=>n7,isJSDoc:()=>A1,isJSDocAllType:()=>BF,isJSDocAugmentsTag:()=>GF,isJSDocAuthorTag:()=>I1,isJSDocCallbackTag:()=>$F,isJSDocClassTag:()=>O1,isJSDocCommentContainingNode:()=>rl,isJSDocConstructSignature:()=>nw,isJSDocDeprecatedTag:()=>J1,isJSDocEnumTag:()=>q1,isJSDocFunctionType:()=>VF,isJSDocImplementsTag:()=>H1,isJSDocImportTag:()=>n9,isJSDocIndexSignature:()=>D8,isJSDocLikeText:()=>Nv,isJSDocLink:()=>D1,isJSDocLinkCode:()=>E1,isJSDocLinkLike:()=>T7,isJSDocLinkPlain:()=>P1,isJSDocMemberName:()=>MF,isJSDocNameReference:()=>RF,isJSDocNamepathType:()=>F1,isJSDocNamespaceBody:()=>Vc,isJSDocNode:()=>m7,isJSDocNonNullableType:()=>qF,isJSDocNullableType:()=>zF,isJSDocOptionalParameter:()=>fE,isJSDocOptionalType:()=>UF,isJSDocOverloadTag:()=>XF,isJSDocOverrideTag:()=>B1,isJSDocParameterTag:()=>QF,isJSDocPrivateTag:()=>j1,isJSDocPropertyLikeTag:()=>TC,isJSDocPropertyTag:()=>t9,isJSDocProtectedTag:()=>R1,isJSDocPublicTag:()=>L1,isJSDocReadonlyTag:()=>M1,isJSDocReturnTag:()=>U1,isJSDocSatisfiesExpression:()=>hE,isJSDocSatisfiesTag:()=>r9,isJSDocSeeTag:()=>z1,isJSDocSignature:()=>KF,isJSDocTag:()=>nl,isJSDocTemplateTag:()=>ZF,isJSDocThisTag:()=>YF,isJSDocThrowsTag:()=>K1,isJSDocTypeAlias:()=>iw,isJSDocTypeAssertion:()=>s9,isJSDocTypeExpression:()=>jF,isJSDocTypeLiteral:()=>HF,isJSDocTypeTag:()=>V1,isJSDocTypedefTag:()=>e9,isJSDocUnknownTag:()=>W1,isJSDocUnknownType:()=>JF,isJSDocVariadicType:()=>WF,isJSXTagName:()=>g8,isJsonEqual:()=>eg,isJsonSourceFile:()=>D5,isJsxAttribute:()=>CF,isJsxAttributeLike:()=>p7,isJsxAttributeName:()=>mg,isJsxAttributes:()=>wF,isJsxChild:()=>Zc,isJsxClosingElement:()=>x1,isJsxClosingFragment:()=>k1,isJsxElement:()=>xF,isJsxExpression:()=>T1,isJsxFragment:()=>S1,isJsxNamespacedName:()=>DF,isJsxOpeningElement:()=>kF,isJsxOpeningFragment:()=>TF,isJsxOpeningLikeElement:()=>f7,isJsxOpeningLikeElementTagName:()=>eH,isJsxSelfClosingElement:()=>SF,isJsxSpreadAttribute:()=>NF,isJsxTagNameExpression:()=>Yc,isJsxText:()=>o0,isJumpStatementTarget:()=>lH,isKeyword:()=>Nu,isKeywordOrPunctuation:()=>Eu,isKnownSymbol:()=>Xw,isLabelName:()=>uH,isLabelOfLabeledStatement:()=>_H,isLabeledStatement:()=>s1,isLateVisibilityPaintedStatement:()=>s5,isLeftHandSideExpression:()=>t7,isLeftHandSideOfAssignment:()=>_p,isLet:()=>g_,isLineBreak:()=>L3,isLiteralComputedPropertyDeclarationName:()=>Ew,isLiteralExpression:()=>CC,isLiteralExpressionOfObject:()=>wC,isLiteralImportTypeNode:()=>I5,isLiteralKind:()=>rc,isLiteralLikeAccess:()=>eu,isLiteralLikeElementAccess:()=>tu,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>yH,isLiteralTypeLikeExpression:()=>Uy,isLiteralTypeLiteral:()=>jc,isLiteralTypeNode:()=>SP,isLocalName:()=>py,isLogicalOperator:()=>op,isLogicalOrCoalescingAssignmentExpression:()=>cp,isLogicalOrCoalescingAssignmentOperator:()=>sp,isLogicalOrCoalescingBinaryExpression:()=>MN,isLogicalOrCoalescingBinaryOperator:()=>RN,isMappedTypeNode:()=>xP,isMemberName:()=>Us,isMetaProperty:()=>WP,isMethodDeclaration:()=>ZE,isMethodOrAccessor:()=>hc,isMethodSignature:()=>YE,isMinusToken:()=>m0,isMissingDeclaration:()=>y1,isMissingPackageJsonInfo:()=>BI,isModifier:()=>IC,isModifierKind:()=>uc,isModifierLike:()=>vc,isModuleAugmentationExternal:()=>Ql,isModuleBlock:()=>cF,isModuleBody:()=>qc,isModuleDeclaration:()=>sF,isModuleExportsAccessExpression:()=>U8,isModuleIdentifier:()=>q8,isModuleName:()=>qy,isModuleOrEnumDeclaration:()=>c7,isModuleReference:()=>Qc,isModuleSpecifierLike:()=>uG,isModuleWithStringLiteralName:()=>e5,isNameOfFunctionDeclaration:()=>hH,isNameOfModuleDeclaration:()=>gH,isNamedClassElement:()=>yc,isNamedDeclaration:()=>eC,isNamedEvaluation:()=>Vu,isNamedEvaluationSource:()=>Qw,isNamedExportBindings:()=>Xs,isNamedExports:()=>yF,isNamedImportBindings:()=>Wc,isNamedImports:()=>h1,isNamedImportsOrExports:()=>_f,isNamedTupleMember:()=>pP,isNamespaceBody:()=>Uc,isNamespaceExport:()=>fF,isNamespaceExportDeclaration:()=>lF,isNamespaceImport:()=>g1,isNamespaceReexportDeclaration:()=>b8,isNewExpression:()=>FP,isNewExpressionTarget:()=>XW,isNoSubstitutionTemplateLiteral:()=>c0,isNode:()=>Qs,isNodeArray:()=>tc,isNodeArrayMultiLine:()=>Jp,isNodeDescendantOf:()=>Nw,isNodeKind:()=>Ys,isNodeLikeSystem:()=>Xe,isNodeModulesDirectory:()=>Fa,isNodeWithPossibleHoistedDeclaration:()=>bu,isNonContextualKeyword:()=>Fu,isNonExportDefaultModifier:()=>dv,isNonGlobalAmbientModule:()=>$l,isNonGlobalDeclaration:()=>pX,isNonNullAccess:()=>gE,isNonNullChain:()=>Gs,isNonNullExpression:()=>VP,isNonStaticMethodOrAccessorWithPrivateName:()=>dR,isNotEmittedOrPartiallyEmittedNode:()=>Rc,isNotEmittedStatement:()=>v1,isNullishCoalesce:()=>Hs,isNumber:()=>ce,isNumericLiteral:()=>zE,isNumericLiteralName:()=>sE,isObjectBindingElementWithoutPropertyName:()=>dG,isObjectBindingOrAssignmentElement:()=>Dc,isObjectBindingOrAssignmentPattern:()=>Nc,isObjectBindingPattern:()=>TP,isObjectLiteralElement:()=>il,isObjectLiteralElementLike:()=>HC,isObjectLiteralExpression:()=>DP,isObjectLiteralMethod:()=>H5,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>K5,isObjectTypeDeclaration:()=>cf,isOctalDigit:()=>po,isOmittedExpression:()=>zP,isOptionalChain:()=>vC,isOptionalChainRoot:()=>bC,isOptionalDeclaration:()=>mE,isOptionalJSDocPropertyLikeTag:()=>dE,isOptionalTypeNode:()=>fP,isOuterExpression:()=>yy,isOutermostOptionalChain:()=>SC,isOverrideModifier:()=>P0,isPackageJsonInfo:()=>MI,isPackedArrayLiteral:()=>cg,isParameter:()=>GE,isParameterPropertyDeclaration:()=>U3,isParameterPropertyModifier:()=>dc,isParenthesizedExpression:()=>IP,isParenthesizedTypeNode:()=>hP,isParseTreeNode:()=>ds,isPartOfParameterDeclaration:()=>Zw,isPartOfTypeNode:()=>O5,isPartOfTypeQuery:()=>v8,isPartiallyEmittedExpression:()=>X0,isPatternMatch:()=>We,isPinnedComment:()=>jl,isPlainJsFile:()=>U7,isPlusToken:()=>f0,isPossiblyTypeArgumentPosition:()=>mK,isPostfixUnaryExpression:()=>V0,isPrefixUnaryExpression:()=>MP,isPrimitiveLiteralValue:()=>vg,isPrivateIdentifier:()=>UE,isPrivateIdentifierClassElementDeclaration:()=>FC,isPrivateIdentifierPropertyAccessExpression:()=>AC,isPrivateIdentifierSymbol:()=>Ju,isProgramBundleEmitBuildInfo:()=>Ez,isProgramUptoDate:()=>OJ,isPrologueDirective:()=>y_,isPropertyAccessChain:()=>Vs,isPropertyAccessEntityNameExpression:()=>HN,isPropertyAccessExpression:()=>dT,isPropertyAccessOrQualifiedName:()=>QC,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>XC,isPropertyAssignment:()=>FF,isPropertyDeclaration:()=>QE,isPropertyName:()=>LC,isPropertyNameLiteral:()=>Hw,isPropertySignature:()=>XE,isProtoSetter:()=>qu,isPrototypeAccess:()=>GN,isPrototypePropertyAssignment:()=>Q8,isPunctuation:()=>Du,isPushOrUnshiftIdentifier:()=>Yw,isQualifiedName:()=>WE,isQuestionDotToken:()=>b0,isQuestionOrExclamationToken:()=>My,isQuestionOrPlusOrMinusToken:()=>zy,isQuestionToken:()=>y0,isRawSourceMap:()=>Aj,isReadonlyKeyword:()=>N0,isReadonlyKeywordOrPlusOrMinusToken:()=>Jy,isRecognizedTripleSlashComment:()=>Ll,isReferenceFileLocation:()=>AJ,isReferencedFile:()=>FJ,isRegularExpressionLiteral:()=>s0,isRequireCall:()=>E8,isRequireVariableStatement:()=>Q_,isRestParameter:()=>w7,isRestTypeNode:()=>mP,isReturnStatement:()=>i1,isReturnStatementWithFixablePromiseHandler:()=>GQ,isRightSideOfAccessExpression:()=>XN,isRightSideOfInstanceofExpression:()=>ZN,isRightSideOfPropertyAccess:()=>fH,isRightSideOfQualifiedName:()=>pH,isRightSideOfQualifiedNameOrPropertyAccess:()=>$N,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>QN,isRootedDiskPath:()=>Gi,isSameEntityName:()=>J8,isSatisfiesExpression:()=>UP,isScopeMarker:()=>Mc,isSemicolonClassElement:()=>Y0,isSetAccessor:()=>g7,isSetAccessorDeclaration:()=>nP,isShebangTrivia:()=>vo,isShiftOperatorOrHigher:()=>Vy,isShorthandAmbientModuleSymbol:()=>t5,isShorthandPropertyAssignment:()=>AF,isSignedNumericLiteral:()=>Mu,isSimpleCopiableExpression:()=>rR,isSimpleInlineableExpression:()=>nR,isSimpleParameter:()=>SR,isSimpleParameterList:()=>kR,isSingleOrDoubleQuote:()=>A8,isSourceFile:()=>LF,isSourceFileFromLibrary:()=>bX,isSourceFileJS:()=>C8,isSourceFileNotJS:()=>K_,isSourceFileNotJson:()=>G_,isSourceMapping:()=>jj,isSpecialPropertyDeclaration:()=>au,isSpreadAssignment:()=>IF,isSpreadElement:()=>BP,isStatement:()=>d7,isStatementButNotDeclaration:()=>$c,isStatementOrBlock:()=>Xc,isStatementWithLocals:()=>V7,isStatic:()=>CN,isStaticModifier:()=>D0,isString:()=>a3,isStringAKeyword:()=>Iu,isStringANonContextualKeyword:()=>Jw,isStringAndEmptyAnonymousObjectIntersection:()=>wK,isStringDoubleQuoted:()=>Y_,isStringLiteral:()=>qE,isStringLiteralLike:()=>k7,isStringLiteralOrJsxExpression:()=>el,isStringLiteralOrTemplate:()=>C$,isStringOrNumericLiteralLike:()=>qw,isStringOrRegularExpressionOrTemplateLiteral:()=>TK,isStringTextContainingNode:()=>sc,isSuperCall:()=>F5,isSuperKeyword:()=>A0,isSuperOrSuperProperty:()=>z_,isSuperProperty:()=>s8,isSupportedSourceFileName:()=>Mm,isSwitchStatement:()=>o1,isSyntaxList:()=>G1,isSyntheticExpression:()=>$0,isSyntheticReference:()=>b1,isTagName:()=>dH,isTaggedTemplateExpression:()=>AP,isTaggedTemplateTag:()=>YW,isTemplateExpression:()=>H0,isTemplateHead:()=>l0,isTemplateLiteral:()=>Fc,isTemplateLiteralKind:()=>nc,isTemplateLiteralToken:()=>ic,isTemplateLiteralTypeNode:()=>J0,isTemplateLiteralTypeSpan:()=>B0,isTemplateMiddle:()=>_0,isTemplateMiddleOrTemplateTail:()=>ac,isTemplateSpan:()=>HP,isTemplateTail:()=>u0,isTextWhiteSpaceLike:()=>SG,isThis:()=>SH,isThisContainerOrFunctionBlock:()=>r8,isThisIdentifier:()=>fN,isThisInTypeQuery:()=>gN,isThisInitializedDeclaration:()=>l8,isThisInitializedObjectBindingExpression:()=>_8,isThisProperty:()=>c8,isThisTypeNode:()=>yP,isThisTypeParameter:()=>lE,isThisTypePredicate:()=>$5,isThrowStatement:()=>c1,isToken:()=>ec,isTokenKind:()=>Zs,isTraceEnabled:()=>fI,isTransientSymbol:()=>O7,isTrivia:()=>Lu,isTryStatement:()=>l1,isTupleTypeNode:()=>dP,isTypeAlias:()=>aw,isTypeAliasDeclaration:()=>aF,isTypeAssertionExpression:()=>z0,isTypeDeclaration:()=>_E,isTypeElement:()=>bc,isTypeKeyword:()=>UK,isTypeKeywordToken:()=>VK,isTypeKeywordTokenOrIdentifier:()=>WK,isTypeLiteralNode:()=>uP,isTypeNode:()=>KC,isTypeNodeKind:()=>cD,isTypeOfExpression:()=>jP,isTypeOnlyExportDeclaration:()=>oc,isTypeOnlyImportDeclaration:()=>DC,isTypeOnlyImportOrExportDeclaration:()=>EC,isTypeOperatorNode:()=>vP,isTypeParameterDeclaration:()=>KE,isTypePredicateNode:()=>oP,isTypeQueryNode:()=>_P,isTypeReferenceNode:()=>sP,isTypeReferenceType:()=>S7,isTypeUsableAsPropertyName:()=>TE,isUMDExportSymbol:()=>sD,isUnaryExpression:()=>Ic,isUnaryExpressionWithWrite:()=>Lc,isUnicodeIdentifierStart:()=>Ka,isUnionTypeNode:()=>j0,isUrl:()=>Ki,isValidBigIntString:()=>$D,isValidESSymbolDeclaration:()=>V5,isValidTypeOnlyAliasUseSite:()=>XD,isValueSignatureDeclaration:()=>bw,isVarAwaitUsing:()=>d_,isVarConst:()=>f_,isVarConstLike:()=>m_,isVarUsing:()=>p_,isVariableDeclaration:()=>eF,isVariableDeclarationInVariableStatement:()=>z5,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>P8,isVariableDeclarationInitializedToRequire:()=>$_,isVariableDeclarationList:()=>tF,isVariableLike:()=>B5,isVariableLikeOrAccessor:()=>J5,isVariableStatement:()=>GP,isVoidExpression:()=>U0,isWatchSet:()=>Gp,isWhileStatement:()=>t1,isWhiteSpaceLike:()=>oo,isWhiteSpaceSingleLine:()=>so,isWithStatement:()=>a1,isWriteAccess:()=>aD,isWriteOnlyAccess:()=>iD,isYieldExpression:()=>K0,jsxModeNeedsExplicitImport:()=>vX,keywordPart:()=>FG,last:()=>GT,lastOrUndefined:()=>KT,length:()=>K4,libMap:()=>w4,libs:()=>C4,lineBreakPart:()=>HG,linkNamePart:()=>zG,linkPart:()=>qG,linkTextPart:()=>JG,listFiles:()=>Sq,loadModuleFromGlobalCache:()=>tL,loadWithModeAwareCache:()=>kJ,makeIdentifierFromModuleName:()=>Gl,makeImport:()=>nG,makeStringLiteral:()=>iG,mangleScopedPackageName:()=>GO,map:()=>$4,mapAllOrFail:()=>T,mapDefined:()=>AT,mapDefinedEntries:()=>h,mapDefinedIterator:()=>g,mapEntries:()=>C,mapIterator:()=>k,mapOneOrMany:()=>tX,mapToDisplayParts:()=>KG,matchFiles:()=>hm,matchPatternOrExact:()=>Ym,matchedText:()=>Ue,matchesExclude:()=>oI,maybeBind:()=>r3,maybeSetLocalizedDiagnosticMessages:()=>bf,memoize:()=>Ci,memoizeCached:()=>fe,memoizeOne:()=>wi,memoizeWeak:()=>pe,metadataHelper:()=>Nh,min:()=>ve,minAndMax:()=>zD,missingFileModifiedTime:()=>li,modifierToFlag:()=>jN,modifiersToFlags:()=>LN,moduleOptionDeclaration:()=>P4,moduleResolutionIsEqualTo:()=>hl,moduleResolutionNameAndModeGetter:()=>yJ,moduleResolutionOptionDeclarations:()=>j4,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Uf,moduleResolutionUsesNodeModules:()=>rG,moduleSpecifierToValidIdentifier:()=>lX,moduleSpecifiers:()=>yL,moduleSymbolToValidIdentifier:()=>cX,moveEmitHelpers:()=>ph,moveRangeEnd:()=>Np,moveRangePastDecorators:()=>Ep,moveRangePastModifiers:()=>Pp,moveRangePos:()=>Dp,moveSyntheticComments:()=>oh,mutateMap:()=>tf,mutateMapSkippingNewValues:()=>ef,needsParentheses:()=>x$,needsScopeMarker:()=>a7,newCaseClauseTracker:()=>xX,newPrivateEnvironment:()=>yR,noEmitNotification:()=>qM,noEmitSubstitution:()=>zM,noTransformers:()=>jM,noTruncationMaximumTruncationLength:()=>P7,nodeCanBeDecorated:()=>p8,nodeHasName:()=>Z3,nodeIsDecorated:()=>q_,nodeIsMissing:()=>W7,nodeIsPresent:()=>H7,nodeIsSynthesized:()=>rN,nodeModuleNameResolver:()=>cO,nodeModulesPathPart:()=>fO,nodeNextJsonConfigResolver:()=>lO,nodeOrChildIsDecorated:()=>U_,nodeOverlapsWithStartEnd:()=>AH,nodePosToString:()=>kl,nodeSeenTracker:()=>HK,nodeStartsNewLexicalEnvironment:()=>tN,nodeToDisplayParts:()=>QG,noop:()=>yr,noopFileWatcher:()=>Fq,normalizePath:()=>ua,normalizeSlashes:()=>sa,not:()=>y3,notImplemented:()=>de,notImplementedResolver:()=>hB,nullNodeConverters:()=>wg,nullParenthesizerRules:()=>kg,nullTransformationContext:()=>VM,objectAllocator:()=>uD,operatorPart:()=>IG,optionDeclarations:()=>A4,optionMapToObject:()=>fA,optionsAffectingProgramStructure:()=>M4,optionsForBuild:()=>U4,optionsForWatch:()=>N4,optionsHaveChanges:()=>pl,optionsHaveModuleResolutionChanges:()=>ul,or:()=>h3,orderedRemoveItem:()=>Oe,orderedRemoveItemAt:()=>d3,packageIdToPackageName:()=>yl,packageIdToString:()=>vl,paramHelper:()=>Dh,parameterIsThisKeyword:()=>pN,parameterNamePart:()=>OG,parseBaseNodeFactory:()=>Cv,parseBigInt:()=>tg,parseBuildCommand:()=>J9,parseCommandLine:()=>L9,parseCommandLineWorker:()=>F9,parseConfigFileTextToJson:()=>V9,parseConfigFileWithSystem:()=>mq,parseConfigHostFromCompilerHostLike:()=>UJ,parseCustomTypeOption:()=>N9,parseIsolatedEntityName:()=>v9,parseIsolatedJSDocComment:()=>e2,parseJSDocTypeExpressionForTests:()=>t2,parseJsonConfigFileContent:()=>SA,parseJsonSourceFileConfigFileContent:()=>kA,parseJsonText:()=>Yv,parseListTypeOption:()=>D9,parseNodeFactory:()=>g9,parseNodeModuleFromPath:()=>gO,parsePackageName:()=>IO,parsePseudoBigInt:()=>HD,parseValidBigInt:()=>GD,pasteEdits:()=>O0e,patchWriteFileEnsuringDirectory:()=>Bi,pathContainsNodeModules:()=>mO,pathIsAbsolute:()=>Xi,pathIsBareSpecifier:()=>Qi,pathIsRelative:()=>T3,patternText:()=>qe,perfLogger:()=>er,performIncrementalCompilation:()=>Vq,performance:()=>tr,plainJSErrors:()=>MJ,positionBelongsToNode:()=>OH,positionIsASICandidate:()=>L$,positionIsSynthesized:()=>Km,positionsAreOnSameLine:()=>zp,preProcessFile:()=>BQ,probablyUsesSemicolons:()=>j$,processCommentPragmas:()=>m4,processPragmasIntoFields:()=>g4,processTaggedTemplateExpression:()=>KR,programContainsEsModules:()=>YK,programContainsModules:()=>QK,projectReferenceIsEqualTo:()=>gl,propKeyHelper:()=>qh,propertyNamePart:()=>LG,pseudoBigIntToString:()=>KD,punctuationPart:()=>AG,pushIfUnique:()=>JT,quote:()=>k$,quotePreferenceFromString:()=>oG,rangeContainsPosition:()=>NH,rangeContainsPositionExclusive:()=>DH,rangeContainsRange:()=>CH,rangeContainsRangeExclusive:()=>wH,rangeContainsStartEnd:()=>PH,rangeEndIsOnSameLineAsRangeStart:()=>Rp,rangeEndPositionsAreOnSameLine:()=>Lp,rangeEquals:()=>qT,rangeIsOnSingleLine:()=>Ip,rangeOfNode:()=>qD,rangeOfTypeParameters:()=>UD,rangeOverlapsWithStartEnd:()=>FH,rangeStartIsOnSameLineAsRangeEnd:()=>jp,rangeStartPositionsAreOnSameLine:()=>Op,readBuilderProgram:()=>Wq,readConfigFile:()=>U9,readHelper:()=>Jh,readJson:()=>bp,readJsonConfigFile:()=>W9,readJsonOrUndefined:()=>vp,reduceEachLeadingCommentRange:()=>To,reduceEachTrailingCommentRange:()=>Co,reduceLeft:()=>QT,reduceLeftIterator:()=>m,reducePathComponents:()=>ca,refactor:()=>uZ,regExpEscape:()=>em,regularExpressionFlagToCharacter:()=>Qa,relativeComplement:()=>MT,removeAllComments:()=>Wg,removeEmitHelper:()=>uh,removeExtension:()=>jD,removeFileExtension:()=>qm,removeIgnoredPath:()=>Kz,removeMinAndVersionNumbers:()=>Ie,removeOptionality:()=>fK,removePrefix:()=>m3,removeSuffix:()=>kr,removeTrailingDirectorySeparator:()=>fa,repeatString:()=>GK,replaceElement:()=>$T,replaceFirstStar:()=>yg,resolutionExtensionIsTSOrJson:()=>RD,resolveConfigFileProjectName:()=>Qq,resolveJSModule:()=>iO,resolveLibrary:()=>eO,resolveModuleName:()=>rO,resolveModuleNameFromCache:()=>tO,resolvePackageNameToPackageJson:()=>jI,resolvePath:()=>la,resolveProjectReferencePath:()=>VJ,resolveTripleslashReference:()=>zB,resolveTypeReferenceDirective:()=>II,resolvingEmptyArray:()=>N7,restHelper:()=>jh,returnFalse:()=>vr,returnNoopFileWatcher:()=>Aq,returnTrue:()=>ki,returnUndefined:()=>le,returnsPromise:()=>KQ,runInitializersHelper:()=>Ph,sameFlatMap:()=>bi,sameMap:()=>ET,sameMapping:()=>Lj,scanShebangTrivia:()=>bo,scanTokenAtPosition:()=>T5,scanner:()=>VW,screenStartingMessageCodes:()=>dq,semanticDiagnosticsOptionDeclarations:()=>I4,serializeCompilerOptions:()=>gA,server:()=>V0e,servicesVersion:()=>vre,setCommentRange:()=>LE,setConfigFileInOptions:()=>TA,setConstantValue:()=>ch,setEachParent:()=>ag,setEmitFlags:()=>_T,setFunctionNameHelper:()=>Uh,setGetSourceFileAsHashVersioned:()=>Mq,setIdentifierAutoGenerate:()=>vh,setIdentifierGeneratedImportReference:()=>xh,setIdentifierTypeArguments:()=>ME,setInternalEmitFlags:()=>Kg,setLocalizedDiagnosticMessages:()=>vf,setModuleDefaultHelper:()=>Kh,setNodeChildren:()=>Y1,setNodeFlags:()=>eE,setObjectAllocator:()=>hf,setOriginalNode:()=>lT,setParent:()=>tE,setParentRecursive:()=>og,setPrivateIdentifier:()=>bR,setSnippetElement:()=>mh,setSourceMapRange:()=>Xg,setStackTraceLimit:()=>oi,setStartsOnNewLine:()=>eh,setSyntheticLeadingComments:()=>jE,setSyntheticTrailingComments:()=>ih,setSys:()=>zi,setSysLog:()=>Ii,setTextRange:()=>fT,setTextRangeEnd:()=>ng,setTextRangePos:()=>rg,setTextRangePosEnd:()=>ZD,setTextRangePosWidth:()=>ig,setTokenSourceMapRange:()=>Yg,setTypeNode:()=>hh,setUILocale:()=>De,setValueDeclaration:()=>Y8,shouldAllowImportingTsExtension:()=>eL,shouldPreserveConstEnums:()=>ND,shouldUseUriStyleNodeCoreModules:()=>mX,showModuleSpecifier:()=>af,signatureHasLiteralTypes:()=>fj,signatureHasRestParameter:()=>pj,signatureToDisplayParts:()=>XG,single:()=>F,singleElementArray:()=>v3,singleIterator:()=>v,singleOrMany:()=>Me,singleOrUndefined:()=>xi,skipAlias:()=>Xp,skipAssertions:()=>vy,skipConstraint:()=>$K,skipOuterExpressions:()=>l9,skipParentheses:()=>Cw,skipPartiallyEmittedExpressions:()=>Ks,skipTrivia:()=>j3,skipTypeChecking:()=>VD,skipTypeParentheses:()=>Tw,skipWhile:()=>$e,sliceAfter:()=>Zm,some:()=>X4,sort:()=>E,sortAndDeduplicate:()=>S,sortAndDeduplicateDiagnostics:()=>Jo,sourceFileAffectingCompilerOptions:()=>R4,sourceFileMayBeEmitted:()=>Id,sourceMapCommentRegExp:()=>Nj,sourceMapCommentRegExpDontCareLineStart:()=>wj,spacePart:()=>PG,spanMap:()=>Le,spreadArrayHelper:()=>zh,stableSort:()=>dn,startEndContainsRange:()=>EH,startEndOverlapsWithStartEnd:()=>IH,startOnNewLine:()=>by,startTracing:()=>Ir,startsWith:()=>f3,startsWithDirectory:()=>Ta,startsWithUnderscore:()=>uX,startsWithUseStrict:()=>gy,stringContainsAt:()=>_X,stringToToken:()=>$a,stripQuotes:()=>oN,supportedDeclarationExtensions:()=>Dm,supportedJSExtensions:()=>Tm,supportedJSExtensionsFlat:()=>Cm,supportedLocaleDirectories:()=>_s,supportedTSExtensions:()=>bm,supportedTSExtensionsFlat:()=>xm,supportedTSImplementationExtensions:()=>Em,suppressLeadingAndTrailingTrivia:()=>l$,suppressLeadingTrivia:()=>_$,suppressTrailingTrivia:()=>u$,symbolEscapedNameNoDefault:()=>_G,symbolName:()=>Y3,symbolNameNoDefault:()=>lG,symbolPart:()=>DG,symbolToDisplayParts:()=>$G,syntaxMayBeASICandidate:()=>O$,syntaxRequiresTrailingSemicolonOrASI:()=>I$,sys:()=>Ji,sysLog:()=>Ai,tagNamesAreEquivalent:()=>x4,takeWhile:()=>Ge,targetOptionDeclaration:()=>E4,templateObjectHelper:()=>Bh,testFormatSettings:()=>IW,textChangeRangeIsUnchanged:()=>es,textChangeRangeNewSpan:()=>Zo,textChanges:()=>I,textOrKeywordPart:()=>jG,textPart:()=>RG,textRangeContainsPositionInclusive:()=>q3,textSpanContainsPosition:()=>z3,textSpanContainsTextSpan:()=>Uo,textSpanEnd:()=>J3,textSpanIntersection:()=>Xo,textSpanIntersectsWith:()=>Ko,textSpanIntersectsWithPosition:()=>$o,textSpanIntersectsWithTextSpan:()=>Ho,textSpanIsEmpty:()=>qo,textSpanOverlap:()=>Wo,textSpanOverlapsWith:()=>Vo,textSpansEqual:()=>yG,textToKeywordObj:()=>Oa,timestamp:()=>$t,toArray:()=>se,toBuilderFileEmit:()=>Bz,toBuilderStateFileInfoForMultiEmit:()=>Mz,toEditorSettings:()=>Fre,toFileNameLowerCase:()=>br,toLowerCase:()=>_e,toPath:()=>pa,toProgramEmitPending:()=>Jz,tokenIsIdentifierOrKeyword:()=>Aa,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Ia,tokenToString:()=>I3,trace:()=>pI,tracing:()=>Z4,tracingEnabled:()=>nr,transform:()=>Xre,transformClassFields:()=>YR,transformDeclarations:()=>AM,transformECMAScriptModule:()=>TM,transformES2015:()=>vM,transformES2016:()=>hM,transformES2017:()=>nM,transformES2018:()=>aM,transformES2019:()=>oM,transformES2020:()=>sM,transformES2021:()=>cM,transformESDecorators:()=>rM,transformESNext:()=>lM,transformGenerators:()=>bM,transformJsx:()=>mM,transformLegacyDecorators:()=>tM,transformModule:()=>xM,transformNamedEvaluation:()=>WR,transformNodeModule:()=>CM,transformNodes:()=>UM,transformSystemModule:()=>kM,transformTypeScript:()=>QR,transpile:()=>_Y,transpileDeclaration:()=>iY,transpileModule:()=>nY,transpileOptionValueCompilerOptions:()=>B4,tryAddToSet:()=>OT,tryAndIgnoreErrors:()=>z$,tryCast:()=>o3,tryDirectoryExists:()=>J$,tryExtractTSExtension:()=>eD,tryFileExists:()=>B$,tryGetClassExtendingExpressionWithTypeArguments:()=>lp,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>JN,tryGetDirectories:()=>R$,tryGetExtensionFromPath:()=>MD,tryGetImportFromModuleSpecifier:()=>cu,tryGetJSDocSatisfiesTypeNode:()=>vE,tryGetModuleNameFromFile:()=>Ny,tryGetModuleSpecifierFromDeclaration:()=>Z8,tryGetNativePerformanceHooks:()=>Gt,tryGetPropertyAccessOrIdentifierToString:()=>KN,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Ay,tryGetSourceMappingURL:()=>Pj,tryGetTextOfPropertyName:()=>s_,tryIOAndConsumeErrors:()=>q$,tryParseJson:()=>xp,tryParsePattern:()=>Wm,tryParsePatterns:()=>Hm,tryParseRawSourceMap:()=>Ij,tryReadDirectory:()=>M$,tryReadFile:()=>H9,tryRemoveDirectoryPrefix:()=>Yf,tryRemoveExtension:()=>Um,tryRemovePrefix:()=>Ve,tryRemoveSuffix:()=>Ae,typeAcquisitionDeclarations:()=>W4,typeAliasNamePart:()=>MG,typeDirectiveIsEqualTo:()=>bl,typeKeywords:()=>qK,typeParameterNamePart:()=>BG,typeToDisplayParts:()=>GG,unchangedPollThresholds:()=>fi,unchangedTextChangeRange:()=>rs,unescapeLeadingUnderscores:()=>X3,unmangleScopedPackageName:()=>XO,unorderedRemoveItem:()=>Je,unorderedRemoveItemAt:()=>Be,unreachableCodeIsError:()=>zf,unsetNodeChildren:()=>Z1,unusedLabelIsError:()=>qf,unwrapInnermostStatementOfLabel:()=>I_,unwrapParenthesizedExpression:()=>bg,updateErrorForNoInputFiles:()=>MA,updateLanguageServiceSourceFile:()=>Bre,updateMissingFilePathsWatch:()=>FB,updateResolutionField:()=>kI,updateSharedExtendedConfigFileWatcher:()=>DB,updateSourceFile:()=>Zv,updateWatchingWildcardDirectories:()=>AB,usesExtensionsOnImports:()=>jm,usingSingleLineStringWriter:()=>B7,utf16EncodeAsString:()=>Lo,validateLocaleAndSetLanguage:()=>us,valuesHelper:()=>Vh,version:()=>L,versionMajorMinor:()=>mr,visitArray:()=>gj,visitCommaListElements:()=>Sj,visitEachChild:()=>hT,visitFunctionBody:()=>bj,visitIterationBody:()=>xj,visitLexicalEnvironment:()=>yj,visitNode:()=>mT,visitNodes:()=>gT,visitParameterList:()=>vj,walkUpBindingElementsAndPatterns:()=>V3,walkUpLexicalEnvironments:()=>hR,walkUpOuterExpressions:()=>_9,walkUpParenthesizedExpressions:()=>Sw,walkUpParenthesizedTypes:()=>xw,walkUpParenthesizedTypesAndGetParentAndChild:()=>kw,whitespaceOrMapCommentRegExp:()=>Dj,writeCommentRange:()=>$d,writeFile:()=>jd,writeFileEnsuringDirectories:()=>Rd,zipWith:()=>l}),!0);function J0e(e,t,r,n,i){var a=t?"DeprecationError: ":"DeprecationWarning: ";return(a+=`'${e}' `)+(n?"has been deprecated since v"+n:"is deprecated")+(t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".")+(i?" "+yf(i,[e]):"")}function z0e(t,r={}){var e="string"==typeof r.typeScriptVersion?new Tr(r.typeScriptVersion):r.typeScriptVersion??(R0e=R0e??new Tr(L)),n="string"==typeof r.errorAfter?new Tr(r.errorAfter):r.errorAfter,i="string"==typeof r.warnAfter?new Tr(r.warnAfter):r.warnAfter,a="string"==typeof r.since?new Tr(r.since):r.since??i,o=r.error||n&&0<=e.compareTo(n),e=!i||0<=e.compareTo(i);if(o){var i=t,o=n,s=a,c=r.message;let e=J0e(i,!0,o,s,c);return()=>{throw new TypeError(e)}}if(e){var l=t,_=n,u=a,d=r.message;let e=!1;return()=>{B0e&&!e&&(Y4.log.warn(J0e(l,!1,_,u,d)),e=!0)}}return yr}function q0e(e,r,t,n){if(Object.defineProperty(c,"name",{...Object.getOwnPropertyDescriptor(c,"name"),value:e}),n)for(var i of Object.keys(n)){i=+i;!isNaN(i)&&Si(r,""+i)&&(r[i]=function(e,t){var r,n,t=z0e((null==t?void 0:t.name)??Y4.getFunctionName(e),t);return r=t,n=e,function(){return r(),n.apply(this,arguments)}}(r[i],{...n[i],name:e}))}o=r,s=t;let a=t=>{for(let e=0;Si(o,""+e)&&Si(s,""+e);e++)if((0,s[e])(t))return e};var o,s;return c;function c(...e){var t=a(e),t=void 0!==t?r[t]:void 0;if("function"==typeof t)return t(...e);throw new TypeError("Invalid arguments")}}function U0e(n){return{overload:r=>({bind:t=>({finish:()=>q0e(n,r,t),deprecate:e=>({finish:()=>q0e(n,r,t,e)})})})}}var V0e={},W0e=(r(V0e,{ActionInvalidate:()=>ZV,ActionPackageInstalled:()=>eW,ActionSet:()=>YV,ActionWatchTypingLocations:()=>aW,Arguments:()=>XV,AutoImportProviderProject:()=>q1e,AuxiliaryProject:()=>J1e,CharRangeSection:()=>Tve,CloseFileWatcherEvent:()=>cye,CommandNames:()=>nve,ConfigFileDiagEvent:()=>rye,ConfiguredProject:()=>U1e,ConfiguredProjectLoadKind:()=>Dye,CreateDirectoryWatcherEvent:()=>sye,CreateFileWatcherEvent:()=>oye,Errors:()=>Q0e,EventBeginInstallTypes:()=>rW,EventEndInstallTypes:()=>nW,EventInitializationFailed:()=>iW,EventTypesRegistry:()=>tW,ExternalProject:()=>V1e,GcTimer:()=>d1e,InferredProject:()=>B1e,LargeFileReferencedEvent:()=>tye,LineIndex:()=>Pve,LineLeaf:()=>Ave,LineNode:()=>Fve,LogLevel:()=>Y0e,Msg:()=>e1e,OpenFileInfoTelemetryEvent:()=>aye,Project:()=>M1e,ProjectInfoTelemetryEvent:()=>iye,ProjectKind:()=>A1e,ProjectLanguageServiceStateEvent:()=>nye,ProjectLoadingFinishEvent:()=>eye,ProjectLoadingStartEvent:()=>Z1e,ProjectService:()=>Hye,ProjectsUpdatedInBackgroundEvent:()=>Y1e,ScriptInfo:()=>D1e,ScriptVersionCache:()=>Dve,Session:()=>hve,TextStorage:()=>w1e,ThrottledOperations:()=>u1e,TypingsCache:()=>F1e,TypingsInstallerAdapter:()=>Ove,allFilesAreJsOrDts:()=>L1e,allRootFilesAreJsOrDts:()=>O1e,asNormalizedPath:()=>i1e,convertCompilerOptions:()=>gye,convertFormatOptions:()=>mye,convertScriptKindName:()=>bye,convertTypeAcquisition:()=>yye,convertUserPreferences:()=>xye,convertWatchOptions:()=>hye,countEachFileTypes:()=>I1e,createInstallTypingsRequest:()=>t1e,createModuleSpecifierCache:()=>$ye,createNormalizedPathMap:()=>a1e,createPackageJsonCache:()=>Xye,createSortedArray:()=>_1e,emptyArray:()=>Z0e,findArgument:()=>sW,forEachResolvedProjectReferenceProject:()=>Eye,formatDiagnosticToProtocol:()=>rve,formatMessage:()=>ive,getBaseConfigFileName:()=>p1e,getLocationInNewDocument:()=>xve,hasArgument:()=>oW,hasNoTypeScriptSource:()=>j1e,indent:()=>_W,isBackgroundProject:()=>G1e,isConfigFile:()=>Kye,isConfiguredProject:()=>H1e,isDynamicFileName:()=>N1e,isExternalProject:()=>K1e,isInferredProject:()=>W1e,isInferredProjectName:()=>o1e,isProjectDeferredClose:()=>$1e,makeAutoImportProviderProjectName:()=>c1e,makeAuxiliaryProjectName:()=>l1e,makeInferredProjectName:()=>s1e,maxFileSize:()=>Q1e,maxProgramSizeForNonTsFiles:()=>X1e,normalizedPathToPath:()=>n1e,nowString:()=>cW,nullCancellationToken:()=>Qye,nullTypingsInstaller:()=>E1e,protocol:()=>m1e,removeSorted:()=>f1e,stringifyIndented:()=>uW,toEvent:()=>ove,toNormalizedPath:()=>r1e,tryConvertScriptKindName:()=>vye,typingsInstaller:()=>W0e,updateProjectIfDirty:()=>jye}),{}),H0e=(r(W0e,{TypingsInstaller:()=>$0e,getNpmCommandForInstallation:()=>G0e,installNpmPackages:()=>function(t,r,n,i){let a=!1;for(let e=n.length;0X0e}),{isEnabled:()=>!1,writeLine:yr});function K0e(t,r,e,n){try{var i=rO(r,E3(t,"index.d.ts"),{moduleResolution:2},e);return i.resolvedModule&&i.resolvedModule.resolvedFileName}catch(e){n.isEnabled()&&n.writeLine(`Failed to resolve ${r} in folder '${t}': `+e.message)}}function G0e(e,t,r,n){var i=r.length-n;let a,o=n;for(;;){if((a=`${e} install --ignore-scripts ${(o===r.length?r:r.slice(i,i+o)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`).length<8e3)break;o-=Math.floor(o/2)}return{command:a,remaining:n-o}}var $0e=class{constructor(e,t,r,n,i,a=H0e){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=n,this.throttleLimit=i,this.log=a,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 '${r}', types map path `+n),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let r={};this.typesRegistry.forEach((e,t)=>{r[t]=e});var t={kind:tW,typesRegistry:r};this.sendResponse(t);break}case"installPackage":this.installPackage(e);break;default:Y4.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:aW,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"+uW(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();var t=QV.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){let{fileName:t,packageName:r,projectName:n,projectRootPath:i,id:a}=e;var e=Pa(D3(t),e=>{if(this.installTypingHost.fileExists(E3(e,"package.json")))return e})||i;e?this.installWorker(-1,[r],e,e=>{var t=e?`Package ${r} installed.`:`There was an error installing ${r}.`,e={kind:eW,projectName:n,id:a,success:e,message:t};this.sendResponse(e)}):(e={kind:eW,projectName:n,id:a,success:!1,message:"Could not determine a project root path."},this.sendResponse(e))}initializeSafeList(){if(this.typesMapLocation){var e=QV.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=QV.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");else{var t=E3(e,"package.json"),r=E3(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){var n=JSON.parse(this.installTypingHost.readFile(t)),i=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':`+uW(n)),this.log.writeLine(`Loaded content of '${r}':`+uW(i))),n.devDependencies&&i.dependencies)for(var a in n.devDependencies)if(Si(i.dependencies,a)){var o=ra(a);if(o){var s=K0e(e,o,this.installTypingHost,this.log);if(s){var c=this.packageNameToTypingLocation.get(o);if(c){if(c.typingLocation===s)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${o} from '${s}' conflicts with existing typing file '${c}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${o}' => '${s}'`);var c=M(i.dependencies,a),a=c&&c.version;a&&(c={typingLocation:s,version:new Tr(a)},this.packageNameToTypingLocation.set(o,c))}else this.missingTypingsSet.add(o)}}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}}filterTypings(e){return AT(e,e=>{var t=GO(e);if(this.missingTypingsSet.has(t))this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`);else{var r=QV.validatePackageName(e);if(r!==QV.NameValidationResult.Ok)this.missingTypingsSet.add(t),this.log.isEnabled()&&this.log.writeLine(QV.renderPackageNameValidationFailure(r,e));else if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!QV.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){var t=E3(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(l,_,u,e){this.log.isEnabled()&&this.log.writeLine("Installing typings "+JSON.stringify(e));let d=this.filterTypings(e);if(0===d.length)this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(l,u));else{this.ensurePackageDirectoryExists(_);let s=this.installRunCount,c=(this.installRunCount++,this.sendResponse({kind:rW,eventId:s,typingsInstallerVersion:L,projectName:l.projectName}),d.map(X0e));this.installTypingsAsync(s,c,_,e=>{try{if(e){this.log.isEnabled()&&this.log.writeLine("Installed typings "+JSON.stringify(c));var t,r=[];for(t of d){var n,i,a=K0e(_,t,this.installTypingHost,this.log);a?(n=this.typesRegistry.get(t),i={typingLocation:a,version:new Tr(n["ts"+mr]||n[this.latestDistTag])},this.packageNameToTypingLocation.set(t,i),r.push(a)):this.missingTypingsSet.add(t)}this.log.isEnabled()&&this.log.writeLine("Installed typing files "+JSON.stringify(r)),this.sendResponse(this.createSetTypings(l,u.concat(r)))}else{this.log.isEnabled()&&this.log.writeLine("install request failed, marking packages as missing to prevent repeated requests: "+JSON.stringify(d));for(var o of d)this.missingTypingsSet.add(o)}}finally{e={kind:nW,eventId:s,projectName:l.projectName,packagesToInstall:c,installSuccess:e,typingsInstallerVersion:L};this.sendResponse(e)}})}}ensureDirectoryExists(e,t){var r=D3(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,n){if(n.length){let t=this.projectWatchers.get(e),r=new Set(n);!t||R7(r,e=>!t.has(e))||R7(t,e=>!r.has(e))?(this.projectWatchers.set(e,r),this.sendResponse({kind:aW,projectName:e,files:n})):this.sendResponse({kind:aW,projectName:e,files:void 0})}else this.closeWatchers(e)}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:YV}}installTypingsAsync(e,t,r,n){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:n}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,t.onRequestCompleted(e),this.executeWithThrottling()})}}};function X0e(e){return`@types/${e}@ts`+mr}var Q0e,Y0e=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Y0e||{}),Z0e=[],e1e=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(e1e||{});function t1e(e,t,r,n){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:n,kind:"discover"}}function r1e(e){return ua(e)}function n1e(e,t,r){return r(Gi(e)?e:P3(e,t))}function i1e(e){return e}function a1e(){let r=new Map;return{get(e){return r.get(e)},set(e,t){r.set(e,t)},contains(e){return r.has(e)},remove(e){r.delete(e)}}}function o1e(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function s1e(e){return`/dev/null/inferredProject${e}*`}function c1e(e){return`/dev/null/autoImportProviderProject${e}*`}function l1e(e){return`/dev/null/auxiliaryProject${e}*`}function _1e(){return[]}(At=Q0e=Q0e||{}).ThrowNoProject=function(){throw new Error("No Project.")},At.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},At.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)};var u1e=class Uve{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(e,t,r){var n=this.pendingTimeouts.get(e);n&&this.host.clearTimeout(n),this.pendingTimeouts.set(e,this.host.setTimeout(Uve.run,t,e,this,r)),this.logger&&this.logger.info("Scheduled: "+e+(n?", Cancelled earlier one":""))}cancel(e){var t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}static run(e,t,r){null!=er&&er.logStartScheduledOperation(e),t.pendingTimeouts.delete(e),t.logger&&t.logger.info("Running: "+e),r(),null!=er&&er.logStopScheduledOperation()}},d1e=class Vve{constructor(e,t,r){this.host=e,this.delay=t,this.logger=r}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(Vve.run,this.delay,this))}static run(e){e.timerId=void 0,null!=er&&er.logStartScheduledOperation("GC collect");var t=e.logger.hasLevel(2),r=t&&e.host.getMemoryUsage();e.host.gc(),t&&(t=e.host.getMemoryUsage(),e.logger.perftrc(`GC::before ${r}, after `+t)),null!=er&&er.logStopScheduledOperation()}};function p1e(e){e=ra(e);return"tsconfig.json"===e||"jsconfig.json"===e?e:void 0}function f1e(e,t,r){e&&0!==e.length&&(e[0]===t?e.splice(0,1):0<=(t=XT(e,t,Ti,r))&&e.splice(t,1))}var m1e={},g1e=(r(m1e,{ClassificationType:()=>UW,CommandTypes:()=>g1e,CompletionTriggerKind:()=>NW,IndentStyle:()=>b1e,JsxEmit:()=>x1e,ModuleKind:()=>S1e,ModuleResolutionKind:()=>k1e,NewLineKind:()=>T1e,OrganizeImportsMode:()=>wW,PollingWatchKind:()=>v1e,ScriptTarget:()=>C1e,SemicolonPreference:()=>FW,WatchDirectoryKind:()=>y1e,WatchFileKind:()=>h1e}),(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.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))(g1e||{})),h1e=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(h1e||{}),y1e=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(y1e||{}),v1e=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(v1e||{}),b1e=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(b1e||{}),x1e=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(x1e||{}),S1e=(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))(S1e||{}),k1e=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(k1e||{}),T1e=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(T1e||{}),C1e=(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.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(C1e||{}),w1e=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||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,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return Y4.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=KK(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),!(this.ownFileText=!1))}reloadWithFileText(e){var{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},t=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===li.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||li).getTime()),t}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize||(this.text?this.text.length:(this.svc||this).getSnapshot().getLength())}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=hW.fromString(Y4.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){var t=this.tryUseScriptVersionCache();return t?t.getAbsolutePositionAndLineText(e):e<=(t=this.getLineMap()).length?{absolutePosition:t[e-1],lineText:this.text.substring(t[e-1],t[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){var t=this.tryUseScriptVersionCache();return t?t.lineToTextSpan(e):Yo((t=this.getLineMap())[e],e+1void 0===t?t=this.host.readFile(r)||"":t;if(!Om(this.info.fileName)){var n=this.host.getFileSize?this.host.getFileSize(r):e().length;if(Q1et.getLineCount(),getLineText:e=>t.getAbsolutePositionAndLineText(e+1).lineText}:(e=this.getLineMap(),Ej(this.text,e))}};function N1e(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===ra(e)[0]||e.includes(":^")&&!e.includes(qi)}var D1e=class{constructor(e,t,r,n,i,a){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=n,this.path=i,this.containingProjects=[],this.isDynamic=N1e(t),this.textStorage=new w1e(e,this,a),(n||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||vm(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(){var e,t;void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)&&(Y4.assert(!!this.containingProjects.length),e=this.containingProjects[0],t=this.host.realpath(this.path))&&(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){var 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 TT(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:Oe(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(var e of this.containingProjects){H1e(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);var t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!W1e(e)&&e.addMissingFileRoot(t.fileName)}DT(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Q0e.ThrowNoProject();case 1:return $1e(this.containingProjects[0])||G1e(this.containingProjects[0])?Q0e.ThrowNoProject():this.containingProjects[0];default:let t,r,n,i;for(let e=0;e!e.isOrphan())}isContainedByBackgroundProject(){return X4(this.containingProjects,G1e)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){t=e,Y4.assert("number"==typeof t,`Expected position ${t} to be a number.`),Y4.assert(0<=t,"Expected position to be non-negative.");var t=this.textStorage.positionToLineOffset(e);return e=t,Y4.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),Y4.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),Y4.assert(0(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))(A1e||{});function I1e(e,t=!1){var r,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(r of e){var i=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=i;break;case 2:n.jsx+=1,n.jsxSize+=i;break;case 3:x9(r.fileName)?(n.dts+=1,n.dtsSize+=i):(n.ts+=1,n.tsSize+=i);break;case 4:n.tsx+=1,n.tsxSize+=i;break;case 7:n.deferred+=1,n.deferredSize+=i}}return n}function O1e(e){e=I1e(e.getRootScriptInfos());return 0===e.ts&&0===e.tsx}function L1e(e){e=I1e(e.getScriptInfos());return 0===e.ts&&0===e.tsx}function j1e(e){return!e.some(e=>w3(e,".ts")&&!x9(e)||w3(e,".tsx"))}function R1e(e){return void 0!==e.generatedFilePath}var M1e=class Wve{constructor(e,t,r,n,i,a,o,s,c,l,_){switch(this.projectKind=t,this.projectService=r,this.documentRegistry=n,this.compilerOptions=o,this.compileOnSaveEnabled=s,this.watchOptions=c,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.isInitialLoadPending=vr,this.dirty=!1,this.typingFiles=Z0e,this.moduleSpecifierCache=$ye(this),this.createHash=r3(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=QV.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=e,this.directoryStructureHost=l,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(_),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new qre(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(i||Jf(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=Ore(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),r.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:Y4.assertNever(r.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let u=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):u.trace&&(this.trace=e=>u.trace(e)),this.realpath=r3(u,u.realpath),this.resolutionCache=cq(this,this.currentDirectory,!0),this.languageService=Wre(this,this.documentRegistry,this.projectService.serverMode),a&&this.disableLanguageService(a),this.markAsDirty(),G1e(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(e){}isNonTsProject(){return jye(this),L1e(this)}isJsOnlyProject(){return jye(this),0<(e=I1e((e=this).getScriptInfos())).js&&0===e.ts&&0===e.tsx;var e}static resolveModule(e,t,r,n){return Wve.importServicePluginSync({name:e},[t],r,n).resolvedModule}static importServicePluginSync(e,t,r,n){Y4.assertIsDefined(r.require);let i,a;for(var o of t){var s=sa(r.resolvePath(E3(o,"node_modules"))),o=(n(`Loading ${e.name} from ${o} (resolved to ${s})`),r.require(s,e.name));if(!o.error){a=o.module;break}o=o.error.stack||o.error.message||JSON.stringify(o.error);(i=i??[]).push(`Failed to load module '${e.name}' from ${s}: `+o)}return{pluginConfigEntry:e,resolvedModule:a,errorLogs:i}}static async importServicePluginAsync(e,t,r,n){Y4.assertIsDefined(r.importPlugin);let i,a;for(var o of t){var s=E3(o,"node_modules");n(`Dynamically importing ${e.name} from ${o} (resolved to ${s})`);let t;try{t=await r.importPlugin(s,e.name)}catch(e){t={module:void 0,error:e}}if(!t.error){a=t.module;break}o=t.error.stack||t.error.message||JSON.stringify(t.error);(i=i??[]).push(`Failed to dynamically import module '${e.name}' from ${s}: `+o)}return{pluginConfigEntry:e,resolvedModule:a,errorLogs:i}}isKnownTypesPackageName(e){return this.typingsCache.isKnownTypesPackageName(e)}installPackage(e){return this.typingsCache.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=Xf(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 H4;let t;return this.rootFilesMap.forEach(e=>{(this.languageServiceEnabled||e.info&&e.info.isScriptOpen())&&(t=t||[]).push(e.fileName)}),BT(t,this.typingFiles)||H4}getOrCreateScriptInfoAndAttachToProject(e){var t,e=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return e&&((t=this.rootFilesMap.get(e.path))&&t.info!==e&&(t.info=e),e.attachToProject(this)),e}getScriptKind(e){e=this.projectService.getScriptInfoForPath(this.toPath(e));return e&&e.scriptKind}getScriptVersion(e){e=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return e&&e.getLatestVersion()}getScriptSnapshot(e){e=this.getOrCreateScriptInfoAndAttachToProject(e);if(e)return e.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return E3(D3(ua(this.projectService.getExecutingFilePath())),zo(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,r,n,i){return this.directoryStructureHost.readDirectory(e,t,r,n,i)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){var t=this.toPath(e);return!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,r,n,i,a){return this.resolutionCache.resolveModuleNameLiterals(e,t,r,n,i,a)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,r,n,i,a){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,r,n,i,a)}resolveLibrary(e,t,r,n){return this.resolutionCache.resolveLibrary(e,t,r,n)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return pa(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,r){return this.projectService.watchFactory.watchDirectory(e,t,r,this.projectService.getWatchOptions(this),Oq.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),Oq.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,r){return this.projectService.watchFactory.watchDirectory(e,t,r,this.projectService.getWatchOptions(this),Oq.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}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 NT(this.projectErrors,e=>!e.file)||Z0e}getAllProjectErrors(){return this.projectErrors||Z0e}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&jye(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?(jye(this),this.builderState=$J.create(this.program,this.builderState,!0),AT($J.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:Z0e};var{emitSkipped:r,diagnostics:n,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!r){for(var a of i)t(P3(a.name,this.currentDirectory),a.text,a.writeByteOrderMark);this.builderState&&wD(this.compilerOptions)&&1===(i=i.filter(e=>x9(e.name))).length&&(e=this.program.getSourceFile(e.fileName),i=this.projectService.host.createHash?this.projectService.host.createHash(i[0].text):ai(i[0].text),$J.updateSignatureOfFile(this.builderState,i,e.resolvedPath))}return{emitSkipped:r,diagnostics:n}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(var 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&&(Y4.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&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(t){return E(FT(this.plugins,e=>{if("function"==typeof e.module.getExternalFiles)try{return e.module.getExternalFiles(this,t||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){var t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),G4(this.externalFiles,e=>this.detachScriptInfoIfNotRoot(e)),this.rootFilesMap.forEach(e=>{return null==(e=e.info)?void 0:e.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&&(Zp(this.missingFilesMap,$p),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){e=this.projectService.getScriptInfo(e);e&&!this.isRoot(e)&&e.detachFromProject(this)}isClosed(){return void 0===this.rootFilesMap}hasRoots(){var e;return!(null==(e=this.rootFilesMap)||!e.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&ZT(g(this.rootFilesMap.values(),e=>{return null==(e=e.info)?void 0:e.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return ZT(g(this.rootFilesMap.values(),e=>e.info))}getScriptInfos(){return this.languageServiceEnabled?$4(this.program.getSourceFiles(),e=>{var t=this.projectService.getScriptInfoForPath(e.resolvedPath);return Y4.assert(!!t,"getScriptInfo",()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`),t}):this.getRootScriptInfos()}getExcludedFiles(){return Z0e}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();return this.compilerOptions&&(i=$re(this.compilerOptions))&&(e=e||[]).push(i),e}var r,n=[];for(r of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(r)||n.push(r.fileName);if(!t){var i=this.program.getCompilerOptions().configFile;if(i&&(n.push(i.fileName),i.extendedSourceFiles))for(var a of i.extendedSourceFiles)n.push(a)}return n}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(e=>({fileName:e,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(e)}))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){var t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(var r of t.extendedSourceFiles)if(e===r)return!0}}return!1}containsScriptInfo(e){var t;return!!this.isRoot(e)||!!this.program&&!!(t=this.program.getSourceFileByPath(e.path))&&t.resolvedPath===e.path}containsFile(e,t){e=this.projectService.getScriptInfoForNormalizedPath(e);return!(!e||!e.isScriptOpen()&&t)&&this.containsScriptInfo(e)}isRoot(e){var t;return(null==(t=null==(t=this.rootFilesMap)?void 0:t.get(e.path))?void 0:t.info)===e}addRoot(e,t){Y4.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){var t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,r){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),r&&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(){var e;!1===this.autoImportProviderHost?this.autoImportProviderHost=void 0:null!=(e=this.autoImportProviderHost)&&e.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){jye(this)}updateGraph(){null!=Z4&&Z4.push(Z4.Phase.Session,"updateGraph",{name:this.projectName,kind:A1e[this.projectKind]}),null!=er&&er.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();var e,t=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles,n=(this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Z0e);for(e of n)this.cachedUnresolvedImportsPerFile.delete(e);this.languageServiceEnabled&&0===this.projectService.serverMode&&!this.isOrphan()?((t||n.length)&&(this.lastCachedUnresolvedImportsList=function(r,a){var e;let t=r.getSourceFiles(),o=(null!=(e=Z4)&&e.push(Z4.Phase.Session,"getUnresolvedImports",{count:t.length}),r.getTypeChecker().getAmbientModules().map(e=>oN(e.getName()))),n=S(FT(t,e=>{return t=r,n=e,i=o,IT(a,n.path,()=>{let r;return t.forEachResolvedModule(({resolvedModule:e},t)=>{e&&RD(e.extension)||B3(t)||i.some(e=>e===t)||(r=Q4(r,IO(t).packageName))},n),r||Z0e});var t,n,i}));return null==(e=Z4)||e.pop(),n}(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,r)):this.lastCachedUnresolvedImportsList=void 0;n=0===this.projectProgramVersion&&t;return t&&this.projectProgramVersion++,r&&this.markAutoImportProviderAsDirty(),n&&this.getPackageJsonAutoImportProvider(),null!=er&&er.logStopUpdateGraph(),null!=Z4&&Z4.pop(),!t}updateTypingFiles(e){Ke(e,this.typingFiles,ke(!this.useCaseSensitiveFileNames()),yr,e=>this.detachScriptInfoFromProject(e))&&(this.typingFiles=e,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&Zp(this.typingWatchers,$p),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:ZV})}watchTypingLocations(e){if(e)if(e.length){let n=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;var t,r=(e,t)=>{var r=this.toPath(e);n.delete(r),this.typingWatchers.has(r)||this.typingWatchers.set(r,"FileWatcher"===t?this.projectService.watchFactory.watchFile(e,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),Oq.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(e,e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):w3(e,".json")?F3(e,E3(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),Oq.TypingInstallerLocationDirectory,this))};for(t of e){var i=ra(t);"package.json"===i||"bower.json"===i?r(t,"FileWatcher"):ka(this.currentDirectory,t,this.currentDirectory,!this.useCaseSensitiveFileNames())?r(-1!==(i=t.indexOf(qi,this.currentDirectory.length+1))?t.substr(0,i):t,"DirectoryWatcher"):ka(this.projectService.typingsInstaller.globalTypingsCacheLocation,t,this.currentDirectory,!this.useCaseSensitiveFileNames())?r(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):r(t,"DirectoryWatcher")}n.forEach((e,t)=>{e.close(),this.typingWatchers.delete(t)})}else this.closeWatchingTypingLocations();else this.typingWatchers.isInvoked=!1}getCurrentProgram(){return this.program}removeExistingTypings(e){let t=RI(this.getCompilerOptions(),this.directoryStructureHost);return e.filter(e=>!t.includes(e))}updateGraphWorker(){let r=this.languageService.getCurrentProgram();Y4.assert(r===this.program),Y4.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog("Starting updateGraphWorker: Project: "+this.getProjectName());var e=$t(),{hasInvalidatedResolutions:t,hasInvalidatedLibResolutions:n}=this.resolutionCache.createHasInvalidatedResolutions(vr,vr);this.hasInvalidatedResolutions=t,this.hasInvalidatedLibResolutions=n,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,null!=Z4&&Z4.push(Z4.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,r),null!=Z4&&Z4.pop(),Y4.assert(void 0===r||void 0!==this.program);let i=!1;if(this.program&&(!r||this.program!==r&&2!==this.program.structureIsReused)){if(i=!0,r){for(var a of r.getSourceFiles()){var o=this.program.getSourceFileByPath(a.resolvedPath);o&&(a.resolvedPath!==a.path||o.resolvedPath===a.path)||this.detachScriptInfoFromProject(a.fileName,!!this.program.getSourceFileByPath(a.path),!0)}r.forEachResolvedProjectReference(e=>{this.program.getResolvedProjectReferenceByPath(e.sourceFile.path)||this.detachScriptInfoFromProject(e.sourceFile.fileName,void 0,!0)})}this.rootFilesMap.forEach((e,t)=>{var r,t=this.program.getSourceFileByPath(t),n=e.info;t&&(null==(r=e.info)?void 0:r.path)!==t.resolvedPath&&(e.info=this.projectService.getScriptInfo(t.fileName),Y4.assert(e.info.isAttached(this)),null!=n)&&n.detachFromProject(this)}),FB(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(e,t)=>this.addMissingFileWatcher(e,t)),this.generatedFilesMap&&(t=this.compilerOptions.outFile,R1e(this.generatedFilesMap)?t&&this.isValidGeneratedFileWatcher(qm(t)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():t?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((e,t)=>{var r=this.program.getSourceFileByPath(t);r&&r.resolvedPath===t&&this.isValidGeneratedFileWatcher(Dd(r.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),e)||(BB(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||r&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&r&&this.program&&R7(this.changedFilesForExportMapCache,e=>{var t=r.getSourceFileByPath(e),e=this.program.getSourceFileByPath(e);return t&&e?this.exportMapCache.onFileChanged(t,e,!!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());n=this.externalFiles||Z0e,this.externalFiles=this.getExternalFiles(),Ke(this.externalFiles,n,ke(!this.useCaseSensitiveFileNames()),e=>{e=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);null!=e&&e.attachToProject(this)},e=>this.detachScriptInfoFromProject(e)),t=$t()-e;return this.sendPerformanceEvent("UpdateGraph",t),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${i}${this.program?" structureIsReused:: "+Gr[this.program.structureIsReused]:""} Elapsed: ${t}ms`),this.projectService.logger.isTestLogger?this.program!==r?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==r&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),i}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t,r){e=this.projectService.getScriptInfo(e);e&&(e.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(e.path,r))}addMissingFileWatcher(r,e){if(H1e(this)){var t=this.projectService.configFileExistenceInfoCache.get(r);if(null!=(t=null==t?void 0:t.config)&&t.projects.has(this.canonicalConfigFilePath))return Fq}let n=this.projectService.watchFactory.watchFile(P3(e,this.currentDirectory),(e,t)=>{H1e(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(e,r,t),0===t&&this.missingFilesMap.has(r)&&(this.missingFilesMap.delete(r),n.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),Oq.MissingFile,this);return n}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{t=this.toPath(t);if(this.generatedFilesMap){if(R1e(this.generatedFilesMap))return void Y4.fail(this.projectName+" Expected to not have --out watcher for generated file with options: "+JSON.stringify(this.compilerOptions));if(this.generatedFilesMap.has(t))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(t,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),Oq.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(R1e(this.generatedFilesMap)?BB(this.generatedFilesMap):Zp(this.generatedFilesMap,BB),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){var t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?Q0e.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,r){if(this.isInitialLoadPending())return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";var n=this.program.getSourceFiles();let i=` Files (${n.length}) +`;if(e){for(var a of n)i+=` ${a.fileName}${r?` ${a.version} `+JSON.stringify(a.text):""} +`;t&&(i+="\n\n",kq(this.program,e=>i+=` ${e} +`))}return i}print(e,t,r){this.writeLog(`Project '${this.projectName}' (${A1e[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),null!=(e=this.noDtsResolutionProject)&&e.print(!1,!1,!1)}setCompilerOptions(e){var t,r;e&&(e.allowNonTsExtensions=!0,r=this.compilerOptions,this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null!=(t=this.noDtsResolutionProject)&&t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),_l(r,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,s){var t=s?e=>ZT(e.entries(),([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t})):e=>ZT(e.keys()),c=(this.isInitialLoadPending()||jye(this),{projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:W1e(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize}),l=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!l)return{info:c,projectErrors:this.getGlobalProjectErrors()};let r=this.lastReportedFileNames;var e=(null==(e=this.externalFiles)?void 0:e.map(e=>({fileName:r1e(e),isSourceOfProjectReferenceRedirect:!1})))||Z0e;let n=Q(this.getFileNamesWithRedirectInfo(!!s).concat(e),e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),i=new Map,a=new Map;e=l?ZT(l.keys()):[];let o=[];return j7(n,(e,t)=>{r.has(t)?s&&e!==r.get(t)&&o.push({fileName:t,isSourceOfProjectReferenceRedirect:e}):i.set(t,e)}),j7(r,(e,t)=>{n.has(t)||a.set(t,e)}),this.lastReportedFileNames=n,this.lastReportedVersion=this.projectProgramVersion,{info:c,changes:{added:t(i),removed:t(a),updated:s?e.map(e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)})):e,updatedRedirects:s?o:void 0},projectErrors:this.getGlobalProjectErrors()}}return l=this.getFileNamesWithRedirectInfo(!!s),e=(null==(t=this.externalFiles)?void 0:t.map(e=>({fileName:r1e(e),isSourceOfProjectReferenceRedirect:!1})))||Z0e,t=l.concat(e),this.lastReportedFileNames=Q(t,e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:c,files:s?t:t.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,E3(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(this.projectService.globalPlugins.length){var t=this.projectService.host;if(t.require||t.importPlugin){var r=this.getGlobalPluginSearchPaths();for(let 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},r))}else this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if("function"!=typeof e)this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);else{var r,n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},i=e({typescript:M0e}),a=i.create(n);for(r of Object.keys(this.languageService))r in a||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${r} in created LS. Patching.`),a[r]=this.languageService[r]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=a,this.plugins.push({name:t.name,module:i})}}catch(e){this.projectService.logger.info("Plugin activation failed: "+e)}}onPluginConfigurationChanged(t,r){this.plugins.filter(e=>e.name===t).forEach(e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return 0!==this.projectService.serverMode?Z0e:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(E3(this.currentDirectory,wJ),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=NX(this))}clearCachedExportInfoMap(){var e;null!=(e=this.exportMapCache)&&e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!$$(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e;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==(e=this.projectService.host.trace)?void 0:e.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){if(!1!==this.autoImportProviderHost)if(0!==this.projectService.serverMode)this.autoImportProviderHost=!1;else{if(this.autoImportProviderHost)return jye(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();var e=this.includePackageJsonAutoImports();if(e){null!=Z4&&Z4.push(Z4.Phase.Session,"getPackageJsonAutoImportProvider");var t=$t();if(this.autoImportProviderHost=q1e.create(e,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return jye(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",$t()-t),null!=Z4&&Z4.pop(),this.autoImportProviderHost.getCurrentProgram();null!=Z4&&Z4.pop()}}}isDefaultProjectForOpenFiles(){return!!j7(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 Y4.assert(0===this.projectService.serverMode),this.noDtsResolutionProject||(this.noDtsResolutionProject=new J1e(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,t,r){var n,i,a=this.program,o=Y4.checkDefined(null==(o=this.program)?void 0:o.getSourceFile(e),"Expected file to be part of program"),o=Y4.checkDefined(o.getText());null!=(i=this.getScriptInfo(e))&&i.editContent(0,o.length,t),this.updateGraph();try{r(this.program,a,null==(n=this.program)?void 0:n.getSourceFile(e))}finally{null!=(i=this.getScriptInfo(e))&&i.editContent(0,this.program.getSourceFile(e).getText().length,o)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:H4,lib:H4,noLib:!0}}},B1e=class extends M1e{constructor(e,t,r,n,i,a,o){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,n,e.host,a),this._isJsInferredProject=!1,this.typeAcquisition=o,this.projectRootPath=i&&e.toCanonicalFileName(i),i||e.useSingleInferredProject||(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){(e||this.getCompilationSettings())&&(e=EK(e||this.getCompilationSettings()),this._isJsInferredProject&&"number"!=typeof e.maxNodeModuleJsDepth?e.maxNodeModuleJsDepth=2:this._isJsInferredProject||(e.maxNodeModuleJsDepth=void 0),e.allowJs=!0,super.setCompilerOptions(e))}addRoot(e){Y4.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()&&vT(this.getRootScriptInfos(),e=>!e.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){G4(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:O1e(this),include:H4,exclude:H4}}},J1e=class extends M1e{constructor(e,t,r,n){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,n)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},z1e=class z1e extends M1e{constructor(e,t,r,n){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,r,!1,void 0,n,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=r3(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=r3(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,o,s,c){var t;if(!e)return H4;let n=o.getCurrentProgram();if(!n)return H4;var r=$t();let i,a;var l,_=E3(o.currentDirectory,wJ);for(l of o.getPackageJsonsForAutoImport(E3(o.currentDirectory,_)))null!=(t=l.dependencies)&&t.forEach((e,t)=>g(t)),null!=(t=l.peerDependencies)&&t.forEach((e,t)=>g(t));let u=0;if(i){let r=o.getSymlinkCache();for(let t of ZT(i.keys())){if(2===e&&u>this.maxDependencies)return o.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),H4;var d=jI(t,o.currentDirectory,c,s,n.getModuleResolutionCache());if(d){var p=h(d,n,r);if(p){u+=m(p);continue}}G4([o.currentDirectory,o.getGlobalTypingsCacheLocation()],e=>{if(e){var e=jI("@types/"+t,e,c,s,n.getModuleResolutionCache());if(e)return e=h(e,n,r),u+=m(e),!0}})||d&&c.allowJs&&c.maxNodeModuleJsDepth&&(p=h(d,n,r,!0),u+=m(p))}}_=n.getResolvedProjectReferences();let f=0;return null!=_&&_.length&&o.projectService.getHostPreferences().includeCompletionsForModuleExports&&_.forEach(r=>{if(null!=r&&r.commandLine.options.outFile)f+=m(y([Vm(r.commandLine.options.outFile,".d.ts")]));else if(r){let t=Ci(()=>cB(r.commandLine,!o.useCaseSensitiveFileNames()));f+=m(y(AT(r.commandLine.fileNames,e=>x9(e)||w3(e,".json")||n.getSourceFile(e)?void 0:eB(e,r.commandLine,!o.useCaseSensitiveFileNames(),t))))}}),null!=a&&a.size&&o.log(`AutoImportProviderProject: found ${a.size} root files in ${u} dependencies ${f} referenced projects in ${$t()-r} ms`),a?ZT(a.values()):H4;function m(e){return null!=e&&e.length?(a=a??new Set,e.forEach(e=>a.add(e)),1):0}function g(e){f3(e,"@types/")||(i=i||new Set).add(e)}function h(r,e,n,i){e=wO(r,c,s,e.getModuleResolutionCache(),i);if(e){let t=null==(i=s.realpath)?void 0:i.call(s,r.packageDirectory);var i=t?o.toPath(t):void 0,a=i&&i!==o.toPath(r.packageDirectory);return a&&n.setSymlinkedDirectory(r.packageDirectory,{real:ma(t),realPath:ma(i)}),y(e,a?e=>e.replace(r.packageDirectory,t):void 0)}}function y(e,r){return AT(e,e=>{var t=r?r(e):e;if(!(n.getSourceFile(t)||r&&n.getSourceFile(e)))return t})}}static create(e,t,r,n){if(0!==e){var i={...t.getCompilerOptions(),...this.compilerOptionsOverrides},e=this.getRootFileNames(e,t,r,i);if(e.length)return new z1e(t,e,n,i)}}isEmpty(){return!X4(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let e=this.rootFileNames;e=e||z1e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings()),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,e),this.rootFileNames=e;var t=this.getCurrentProgram(),r=super.updateGraph();return t&&t!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!(null==(e=this.rootFileNames)||!e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||H4}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()}},q1e=(z1e.maxDependencies=10,z1e.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:H4,lib:H4,noLib:!0},z1e),U1e=class extends M1e{constructor(e,t,r,n,i,a){super(e,1,r,n,!1,void 0,{},!1,void 0,i,D3(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.isInitialLoadPending=ki,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=a}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){var e=ua(e),t=this.projectService.toCanonicalFileName(e);let r=this.projectService.configFileExistenceInfoCache.get(t);return r||this.projectService.configFileExistenceInfoCache.set(t,r={exists:this.projectService.host.fileExists(e)}),this.projectService.ensureParsedConfigUptoDate(e,t,r,this),this.languageServiceEnabled&&0===this.projectService.serverMode&&this.projectService.watchWildcards(e,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(ua(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;var e=this.dirty,t=(this.isInitialLoadPending=vr,this.pendingUpdateLevel);this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();var n=Y4.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,n),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),2!==t&&(!r||e&&this.triggerFileForConfigFileDiag&&2!==this.getCurrentProgram().structureIsReused)?this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1):this.triggerFileForConfigFileDiag=void 0,r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){Y4.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){var t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){if(this.plugins.length=0,null!=(t=e.plugins)&&t.length||this.projectService.globalPlugins.length){var t=this.projectService.host;if(t.require||t.importPlugin){var r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads&&(t=D3(this.canonicalConfigFilePath),this.projectService.logger.info(`Local plugin loading enabled; adding ${t} to search paths`),r.unshift(t)),e.plugins)for(var n of e.plugins)this.enablePlugin(n,r);return this.enableGlobalPlugins(e)}this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}}getGlobalProjectErrors(){return NT(this.projectErrors,e=>!e.file)||Z0e}getAllProjectErrors(){return this.projectErrors||Z0e}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()}isSolution(){return 0===this.getRootFilesMap().size&&!this.canConfigFileJsonReportNoInputFiles}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return EI(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){MA(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},V1e=class extends M1e{constructor(e,t,r,n,i,a,o,s){super(e,2,t,r,!0,i,n,a,s,t.host,D3(o||sa(e))),this.externalProjectName=e,this.compileOnSaveEnabled=a,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){var e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function W1e(e){return 0===e.projectKind}function H1e(e){return 1===e.projectKind}function K1e(e){return 2===e.projectKind}function G1e(e){return 3===e.projectKind||4===e.projectKind}function $1e(e){return H1e(e)&&!!e.deferredClose}var X1e=20971520,Q1e=4194304,Y1e="projectsUpdatedInBackground",Z1e="projectLoadingStart",eye="projectLoadingFinish",tye="largeFileReferenced",rye="configFileDiag",nye="projectLanguageServiceState",iye="projectInfo",aye="openFileInfo",oye="createFileWatcher",sye="createDirectoryWatcher",cye="closeFileWatcher",lye="*ensureProjectForOpenFiles*";function _ye(e){var t,r,n=new Map;for(t of e)"object"==typeof t.type&&((r=t.type).forEach(e=>{Y4.assert("number"==typeof e)}),n.set(t.name,r));return n}var uye=_ye(A4),dye=_ye(N4),pye=new Map(Object.entries({none:0,block:1,smart:2})),fye={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 mye(e){return a3(e.indentStyle)&&(e.indentStyle=pye.get(e.indentStyle.toLowerCase()),Y4.assert(void 0!==e.indentStyle)),e}function gye(n){return uye.forEach((e,t)=>{var r=n[t];a3(r)&&(n[t]=e.get(r.toLowerCase()))}),n}function hye(n,i){let a,o;return N4.forEach(e=>{var t,r=n[e.name];void 0!==r&&(t=dye.get(e.name),(a=a||{})[e.name]=t?a3(r)?t.get(r.toLowerCase()):r:XA(e,r,i||"",o=o||[]))}),a&&{watchOptions:a,errors:o}}function yye(r){let n;return W4.forEach(e=>{var t=r[e.name];void 0!==t&&((n=n||{})[e.name]=t)}),n}function vye(e){return a3(e)?bye(e):e}function bye(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function xye(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}var Sye={getFileName:e=>e,getScriptKind:(e,r)=>{let n;if(r){let t=ia(e);t&&X4(r,e=>e.extension===t&&(n=e.scriptKind,!0))}return n},hasMixedContent:(t,e)=>X4(e,e=>e.isMixedContent&&w3(t,e.extension))},kye={getFileName:e=>e.fileName,getScriptKind:e=>vye(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function Tye(e,t){for(var r of t)if(r.getProjectName()===e)return r}var Cye={close:yr};function wye(e,t){if(t&&!Nye(e))return t.get(e.path)}function Nye(e){return e.configFileInfo}var Dye=(e=>(e[e.Find=0]="Find",e[e.Create=1]="Create",e[e.Reload=2]="Reload",e))(Dye||{});function Eye(n,e,i,a,o,s,c,l){var t=null==(t=n.getCurrentProgram())?void 0:t.getResolvedProjectReferences();if(t){let r=e?n.getResolvedProjectReferenceToRedirect(e):void 0;if(r){e=r1e(r.sourceFile.fileName),e=n.projectService.findConfiguredProjectByProjectName(e,s);if(e){e=u(e);if(e)return e}else if(0!==a){e=Pye(t,n.getCompilerOptions(),(e,t)=>r===e?_(e,t):void 0,a,n.projectService);if(e)return e}}return Pye(t,n.getCompilerOptions(),(e,t)=>r!==e?_(e,t):void 0,a,n.projectService);function _(e,t){e=n.projectService.findCreateOrReloadConfiguredProject(r1e(e.sourceFile.fileName),t,o,s,c,l);return e&&(t===a?i(e.project,e.sentConfigFileDiag):u(e.project))}function u(e){let t=!1;switch(a){case 1:t=Mye(e,c);break;case 2:t=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,o,l);break;case 0:break;default:Y4.assertNever(a)}var r=i(e,t);if(r)return r}}}function Pye(e,t,n,r,i,a){let o=t.disableReferencedProjectLoad?0:r;return G4(e,e=>{if(e){var t=r1e(e.sourceFile.fileName),t=i.toCanonicalFileName(t),r=null==a?void 0:a.get(t);if(!(void 0!==r&&r>=o))return n(e,o)||((a=a||new Map).set(t,o),e.references&&Pye(e.references,e.commandLine.options,n,o,i,a))}})}function Fye(e,t){return e.potentialProjectReferences&&R7(e.potentialProjectReferences,t)}function Aye(e,t,r){e=r&&e.projectService.configuredProjects.get(r);return e&&t(e)}function Iye(t,r){return n=e=>Aye(t,r,e.sourceFile.path),i=e=>Aye(t,r,t.toPath(VJ(e))),a=e=>Aye(t,r,e),(e=t).getCurrentProgram()?e.forEachResolvedProjectReference(n):e.isInitialLoadPending()?Fye(e,a):G4(e.getProjectReferences(),i);var e,n,i,a}function Oye(e,t){return`${a3(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: `+e}function Lye(e){return!e.isScriptOpen()&&void 0!==e.mTime}function jye(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function Rye(e,t,r){var n;if(r||(e.invalidateResolutionsOfFailedLookupLocations(),e.dirty))return e.triggerFileForConfigFileDiag=t,n=e.pendingUpdateLevel,e.updateGraph(),e.triggerFileForConfigFileDiag||r?(t=e.projectService.sendConfigFileDiagEvent(e,t,r),e.triggerFileForConfigFileDiag=void 0,t):2===n}function Mye(e,t){if(t){if(Rye(e,t,!1))return!0}else jye(e);return!1}function Bye(e){return`Creating possible configured project for ${e.fileName} to open`}function Jye(e){return"User requested reload projects: "+e}function zye(e){H1e(e)&&(e.projectOptions=!0)}function qye(e){let t=1;return()=>e(t++)}function Uye(){return{idToCallbacks:new Map,pathToId:new Map}}function Vye(l,e){if(e&&l.eventHandler&&l.session){let n=Uye(),i=Uye(),a=Uye(),c=1;return l.session.addProtocolHandler("watchChange",e=>{return i3(e=e.arguments)?e.forEach(t):t(e),{responseRequired:!1}}),{watchFile:function(t,e){return o(n,t,e,e=>({eventName:oye,data:{id:e,path:t}}))},watchDirectory:function(t,e,r){return o(r?a:i,t,e,e=>({eventName:sye,data:{id:e,path:t,recursive:!!r,ignoreUpdate:!t.endsWith("/node_modules")||void 0}}))},getCurrentDirectory:()=>l.host.getCurrentDirectory(),useCaseSensitiveFileNames:l.host.useCaseSensitiveFileNames};function o({pathToId:t,idToCallbacks:r},e,n,i){let a=l.toPath(e),o=t.get(a),s=(o||t.set(a,o=c++),r.get(o));return s||(r.set(o,s=new Set),l.eventHandler(i(o))),s.add(n),{close(){var e=r.get(o);null!=e&&e.delete(n)&&!e.size&&(r.delete(o),t.delete(a),l.eventHandler({eventName:cye,data:{id:o}}))}}}function t({id:e,created:t,deleted:r,updated:n}){s(e,t,0),s(e,r,2),s(e,n,1)}function s(e,t,r){null!=t&&t.length&&(_(n,e,t,(e,t)=>e(t,r)),_(i,e,t,(e,t)=>e(t)),_(a,e,t,(e,t)=>e(t)))}function _(e,t,r,n){null!=(e=e.idToCallbacks.get(t))&&e.forEach(t=>{r.forEach(e=>n(t,sa(e)))})}}}var Wye=class Wye{constructor(e){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=qye(s1e),this.newAutoImportProviderProjectName=qye(c1e),this.newAuxiliaryProjectName=qye(l1e),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=fye,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=yr,this.verifyDocumentRegistry=yr,this.verifyProgram=yr,this.onProjectCreation=yr,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||E1e,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||Z0e,this.pluginProbeLocations=e.pluginProbeLocations||Z0e,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?E3(D3(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=n3()),this.currentDirectory=r1e(this.host.getCurrentDirectory()),this.toCanonicalFileName=ze(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?ma(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new u1e(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new F1e(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:AW(this.host.newLine),preferences:TW,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=cQ(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);var t=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!=t?e=>this.logger.info(e):yr;this.packageJsonCache=Xye(this),this.watchFactory=0!==this.serverMode?{watchFile:Aq,watchDirectory:Aq}:RB(Vye(this,e.canUseWatchEvents)||this.host,t,r,Oye),null!=(t=e.incrementalVerifier)&&t.call(e,this)}toPath(e){return pa(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return P3(e,this.host.getCurrentDirectory())}setDocument(e,t,r){Y4.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:r}}getDocument(e,t){t=this.getScriptInfoForPath(t);return t&&t.cacheSourceFile&&t.cacheSourceFile.key===e?t.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){this.eventHandler&&this.eventHandler({eventName:nye,data:{project:e,languageServiceEnabled:t}})}loadTypesMap(){try{var e=this.host.readFile(this.typesMapLocation);if(void 0===e)this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);else{var t,r,n=JSON.parse(e);for(t of Object.keys(n.typesMap))n.typesMap[t].match=new RegExp(n.typesMap[t].match,"i");for(r in this.safelist=n.typesMap,n.simpleMap)Si(n.simpleMap,r)&&this.legacySafelist.set(r,n.simpleMap[r].toLowerCase())}}catch(e){this.logger.info("Error loading types map: "+e),this.safelist=fye,this.legacySafelist.clear()}}updateTypingsForProject(e){var t=this.findProject(e.projectName);if(t)switch(e.kind){case YV:return void t.updateTypingFiles(this.typingsCache.updateTypingsForProject(e.projectName,e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings));case ZV:return void this.typingsCache.enqueueInstallTypingsForProject(t,t.lastCachedUnresolvedImportsList,!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(lye,2500,()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(!$1e(t)&&(t.markAsDirty(),!G1e(t))){let e=t.getProjectName();this.pendingProjectUpdates.set(e,t),this.throttledOperations.schedule(e,250,()=>{this.pendingProjectUpdates.delete(e)&&jye(t)})}}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){var e;this.eventHandler&&(e={eventName:Y1e,data:{openFiles:ZT(this.openFiles.keys(),e=>this.getScriptInfoForPath(e).fileName)}},this.eventHandler(e))}sendLargeFileReferencedEvent(e,t){this.eventHandler&&this.eventHandler({eventName:tye,data:{file:e,fileSize:t,maxFileSize:Q1e}})}sendProjectLoadingStartEvent(e,t){this.eventHandler&&(e.sendLoadingProjectFinish=!0,this.eventHandler({eventName:Z1e,data:{project:e,reason:t}}))}sendProjectLoadingFinishEvent(e){this.eventHandler&&e.sendLoadingProjectFinish&&(e.sendLoadingProjectFinish=!1,this.eventHandler({eventName:eye,data:{project:e}}))}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(var r of e)t&&r.clearSourceMapperCache(),this.delayUpdateProjectGraph(r);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){Y4.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");var r,n=gye(e),i=hye(e,t),a=yye(e),o=(n.allowNonTsExtensions=!0,t&&this.toCanonicalFileName(t));o?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(o,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(o,i||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(o,a)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=i,this.typeAcquisitionForInferredProjects=a);for(r of this.inferredProjects)(o?r.projectRootPath!==o:r.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(r.projectRootPath))||(r.setCompilerOptions(n),r.setTypeAcquisition(a),r.setWatchOptions(null==i?void 0:i.watchOptions),r.setProjectErrors(null==i?void 0:i.errors),r.compileOnSaveEnabled=n.compileOnSave,r.markAsDirty(),this.delayUpdateProjectGraph(r));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return o1e(e)?Tye(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(r1e(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(t){this.forEachProject(e=>{!e.isOrphan()&&e.languageServiceEnabled&&t(e)})}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){e=a3(e)?this.getScriptInfoForNormalizedPath(e):e;return e&&!e.isOrphan()?e.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){var t,e=a3(e)?this.getScriptInfoForNormalizedPath(e):e;if(e)return null!=(t=this.pendingOpenFileProjectUpdates)&&t.delete(e.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,1),e.isOrphan())&&this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path)),this.tryGetDefaultProjectForFile(e)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();var t=a3(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(a3(e)?e:e.fileName),Q0e.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();var e=e=>{t=jye(e)||t};this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){e=this.getScriptInfoForNormalizedPath(e);return e&&e.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){e=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...e&&e.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){Y4.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){var t;e.sourceMapFilePath&&(a3(e.sourceMapFilePath)?(t=this.getScriptInfoForPath(e.sourceMapFilePath),this.delayUpdateSourceInfoProjects(null==t?void 0:t.sourceInfos)):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){e=this.getScriptInfoForPath(e);e&&this.delayUpdateProjectGraphs(e.containingProjects,!0)}handleDeletedFile(e,t){Y4.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),t?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(r,e,a,o){let t=this.watchFactory.watchDirectory(r,e=>{let n=this.toPath(e);var t=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(e,n);"package.json"===ra(n)&&!$$(n)&&(t&&t.fileExists||!t&&this.host.fileExists(e))&&(t=this.getNormalizedAbsolutePath(e),this.logger.info(`Config: ${a} Detected new package.json: `+t),this.packageJsonCache.addOrUpdate(t,n),this.watchPackageJsonFile(t,n,s));let i=this.findConfiguredProjectByProjectName(a);IB({watchedDirPath:this.toPath(r),fileOrDirectory:e,fileOrDirectoryPath:n,configFileName:a,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:(null==i?void 0:i.getCurrentProgram())||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:i?e=>i.getScriptKind(e):void 0})||(2!==o.updateLevel&&(o.updateLevel=1),o.projects.forEach((e,r)=>{if(e){e=this.getConfiguredProjectByCanonicalConfigFilePath(r);if(e){if(i!==e&&this.getHostPreferences().includeCompletionsForModuleExports){let t=this.toPath(a);bT(null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),e=>(null==e?void 0:e.sourceFile.path)===t)&&e.markAutoImportProviderAsDirty()}var t,r=i===e?1:0;e.pendingUpdateLevel>r||(this.openFiles.has(n)&&Y4.checkDefined(this.getScriptInfoForPath(n)).isAttached(e)?(t=Math.max(r,e.openFileWatchTriggered.get(n)||0),e.openFileWatchTriggered.set(n,t)):(e.pendingUpdateLevel=r,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e)))}}}))},e,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions,D3(a)),Oq.WildcardDirectory,a),s={packageJsonWatches:void 0,close(){var e;t&&(t.close(),t=void 0,null!=(e=s.packageJsonWatches)&&e.forEach(e=>{e.projects.delete(s),e.close()}),s.packageJsonWatches=void 0)}};return s}delayUpdateProjectsFromParsedConfigOnConfigFileChange(i,t){var e=this.configFileExistenceInfoCache.get(i);if(null==e||!e.config)return!1;let a=!1;return e.config.updateLevel=2,e.config.projects.forEach((e,r)=>{var n=this.getConfiguredProjectByCanonicalConfigFilePath(r);if(n)if(a=!0,r===i)n.isInitialLoadPending()||(n.pendingUpdateLevel=2,n.pendingUpdateReason=t,this.delayUpdateProjectGraph(n),n.markAutoImportProviderAsDirty());else{let t=this.toPath(i);n.resolutionCache.removeResolutionsFromProjectReferenceRedirects(t),this.delayUpdateProjectGraph(n),this.getHostPreferences().includeCompletionsForModuleExports&&bT(null==(r=n.getCurrentProgram())?void 0:r.getResolvedProjectReferences(),e=>(null==e?void 0:e.sourceFile.path)===t)&&n.markAutoImportProviderAsDirty()}}),a}onConfigFileChanged(a,e,t){let o=this.configFileExistenceInfoCache.get(e);var r=this.getConfiguredProjectByCanonicalConfigFilePath(e),n=null==r?void 0:r.deferredClose;2===t?(o.exists=!1,r&&(r.deferredClose=!0)):(o.exists=!0,n&&(r.deferredClose=void 0,r.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,"Change in config file detected");let s=new Set(r?[r]:void 0);this.openFiles.forEach((e,t)=>{var r,n,i=this.configFileForOpenFiles.get(t);null!=(r=o.openFilesImpactedByConfigFile)&&r.has(t)&&(this.configFileForOpenFiles.delete(t),r=this.getScriptInfoForPath(t),n=this.getConfigFileNameForFile(r,!1))&&(n=this.findConfiguredProjectByProjectName(n)??this.createConfiguredProject(n,`Change in config file ${a} detected, `+Bye(r)),null!=(r=this.pendingOpenFileProjectUpdates)&&r.has(t)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(t,i),OT(s,n))&&n.isInitialLoadPending()&&this.delayUpdateProjectGraph(n)}),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),Y4.shouldAssert(1)&&this.filenameToScriptInfo.forEach(e=>Y4.assert(!e.isAttached(t),"Found script Info still attached to project",()=>t.projectName+": ScriptInfos still attached: "+JSON.stringify(ZT(g(this.filenameToScriptInfo.values(),e=>e.isAttached(t)?{fileName:e.fileName,projects:e.containingProjects.map(e=>e.projectName),hasMixedContent:e.hasMixedContent}:void 0)),void 0," "))),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:Je(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:Je(this.inferredProjects,t)}}assignOrphanScriptInfoToInferredProject(e,t){Y4.assert(e.isOrphan());var r=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:D3(Gi(e.fileName)?e.fileName:P3(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(r.addRoot(e),e.containingProjects[0]!==r&&(Oe(e.containingProjects,r),e.containingProjects.unshift(r)),r.updateGraph(),!this.useSingleInferredProject&&!r.projectRootPath)for(var n of this.inferredProjects)if(n!==r&&!n.isOrphan()){let t=n.getRootScriptInfos();Y4.assert(1===t.length||!!n.projectRootPath),1===t.length&&G4(t[0].containingProjects,e=>e!==t[0].containingProjects[0]&&!e.isOrphan())&&n.removeFile(t[0],!0,!0)}return r}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((e,t)=>{t=this.getScriptInfoForPath(t);t.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(t,e)})}closeOpenFile(e,t){var r,n,i=!e.isDynamic&&this.host.fileExists(e.fileName),a=(e.close(i),this.stopWatchingConfigFilesForScriptInfo(e),this.toCanonicalFileName(e.fileName));this.openFilesWithNonRootedDiskPath.get(a)===e&&this.openFilesWithNonRootedDiskPath.delete(a);let o=!1;for(r of e.containingProjects)H1e(r)?(e.hasMixedContent&&e.registerFileUpdate(),void 0!==(n=r.openFileWatchTriggered.get(e.path))&&(r.openFileWatchTriggered.delete(e.path),r.pendingUpdateLevelthis.onConfigFileChanged(r,n,t),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(i=null==(i=null==t?void 0:t.config)?void 0:i.parsedCommandLine)?void 0:i.watchOptions,D3(r)),Oq.ConfigFile,e)),t.config.projects);i.set(e.canonicalConfigFilePath,i.get(e.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,t){var r,n=this.configFileExistenceInfoCache.get(e);null==(r=n.config)||!r.projects.delete(t.canonicalConfigFilePath)||null!=(r=n.config)&&r.projects.size||(n.config=void 0,EB(e,this.sharedExtendedConfigFileWatchers),Y4.checkDefined(n.watcher),null!=(t=n.openFilesImpactedByConfigFile)&&t.size?n.inferredProjectRoots?$z(aa(D3(e)))||(n.watcher.close(),n.watcher=Cye):(n.watcher.close(),n.watcher=void 0):(n.watcher.close(),this.configFileExistenceInfoCache.delete(e)))}stopWatchingConfigFilesForScriptInfo(a){if(0===this.serverMode){let n=this.rootOfInferredProjects.delete(a),i=a.isScriptOpen();i&&!n||this.forEachConfigFileLocation(a,e=>{var t,r=this.configFileExistenceInfoCache.get(e);if(r){if(i){if(null==(t=null==r?void 0:r.openFilesImpactedByConfigFile)||!t.has(a.path))return}else if(null==(t=r.openFilesImpactedByConfigFile)||!t.delete(a.path))return;n&&(r.inferredProjectRoots--,!r.watcher||r.config||r.inferredProjectRoots||(r.watcher.close(),r.watcher=void 0)),null!=(t=r.openFilesImpactedByConfigFile)&&t.size||r.config||(Y4.assert(!r.watcher),this.configFileExistenceInfoCache.delete(e))}})}}startWatchingConfigFilesForInferredProjectRoot(t){0===this.serverMode&&(Y4.assert(t.isScriptOpen()),this.rootOfInferredProjects.add(t),this.forEachConfigFileLocation(t,(r,n)=>{let e=this.configFileExistenceInfoCache.get(r);e?e.inferredProjectRoots=(e.inferredProjectRoots??0)+1:(e={exists:this.host.fileExists(n),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(r,e)),(e.openFilesImpactedByConfigFile??(e.openFilesImpactedByConfigFile=new Set)).add(t.path),e.watcher||(e.watcher=$z(aa(D3(r)))?this.watchFactory.watchFile(n,(e,t)=>this.onConfigFileChanged(n,r,t),2e3,this.hostConfiguration.watchOptions,Oq.ConfigFileForInferredRoot):Cye)}))}forEachConfigFileLocation(n,i){if(0===this.serverMode){Y4.assert(!n.containingProjects||this.openFiles.has(n.path));let r=this.openFiles.get(n.path);var e=Y4.checkDefined(this.getScriptInfo(n.path));if(!e.isDynamic){let e=D3(n.fileName);var a=()=>ka(r,e,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!r||!a();let t=!Nye(n);do{if(t){var s=n1e(e,this.currentDirectory,this.toCanonicalFileName),c=E3(e,"tsconfig.json");if(i(E3(s,"tsconfig.json"),c))return c;c=E3(e,"jsconfig.json");if(i(E3(s,"jsconfig.json"),c))return c;if(Fa(s))break}c=D3(e);if(c===e)break;e=c,t=!0}while(o||a())}}}findDefaultConfiguredProject(e){return!e.isScriptOpen()||null==(e=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,0))?void 0:e.defaultProject}getConfigFileNameForFileFromCache(e,t){if(t){t=wye(e,this.pendingOpenFileProjectUpdates);if(void 0!==t)return t}return wye(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){!this.openFiles.has(e.path)||Nye(e)||this.configFileForOpenFiles.set(e.path,t||!1)}getConfigFileNameForFile(r,e){var t=this.getConfigFileNameForFileFromCache(r,e);return void 0!==t?t||void 0:e?void 0:(t=this.forEachConfigFileLocation(r,(e,t)=>this.configFileExists(t,e,r)),this.logger.info(`getConfigFileNameForFile:: File: ${r.fileName} ProjectRootPath: ${this.openFiles.get(r.path)}:: Result: `+t),this.setConfigFileNameForFileInCache(r,t),t)}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Gye),this.configuredProjects.forEach(Gye),this.inferredProjects.forEach(Gye),this.logger.info("Open files: "),this.openFiles.forEach((e,t)=>{t=this.getScriptInfoForPath(t);this.logger.info(` FileName: ${t.fileName} ProjectRootPath: `+e),this.logger.info(` Projects: `+t.containingProjects.map(e=>e.getProjectName()))}),this.logger.endGroup())}findConfiguredProjectByProjectName(e,t){e=this.toCanonicalFileName(e),e=this.getConfiguredProjectByCanonicalConfigFilePath(e);return!t&&null!=e&&e.deferredClose?void 0:e}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return Tye(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(r,e,n,i){if(!(e&&e.disableSizeLimit||!this.host.getFileSize)){let t=X1e,e=(this.projectToSizeMap.set(r,0),this.projectToSizeMap.forEach(e=>t-=e||0),0);for(var a of n){var o,a=i.getFileName(a);if(!Om(a))if((e+=this.host.getFileSize(a))>X1e||e>t)return o=n.map(e=>i.getFileName(e)).filter(e=>!Om(e)).map(e=>({name:e,size:this.host.getFileSize(e)})).sort((e,t)=>t.size-e.size).slice(0,5),this.logger.info(`Non TS file size exceeded limit (${e}). Largest files: `+o.map(e=>e.name+":"+e.size).join(", ")),a}this.projectToSizeMap.set(r,e)}}createExternalProject(e,t,r,n,i){var a=gye(r),o=hye(r,D3(sa(e))),e=new V1e(e,this,this.documentRegistry,a,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,a,t,kye),void 0===r.compileOnSave||r.compileOnSave,void 0,null==o?void 0:o.watchOptions);return e.setProjectErrors(null==o?void 0:o.errors),e.excludedFiles=i,this.addFilesToNonInferredProject(e,t,kye,n),this.externalProjects.push(e),e}sendProjectTelemetry(e){var t,r,n,i;!this.seenProjects.has(e.projectName)&&(this.seenProjects.set(e.projectName,!0),this.eventHandler)&&this.host.createSHA256Hash?(t=H1e(e)?e.projectOptions:void 0,zye(e),r={projectId:this.host.createSHA256Hash(e.projectName),fileStats:I1e(e.getScriptInfos(),!0),compilerOptions:uI(e.getCompilationSettings()),typeAcquisition:({enable:r,include:n,exclude:i}=[e.getTypeAcquisition()][0],{enable:r,include:void 0!==n&&0!==n.length,exclude:void 0!==i&&0!==i.length}),extends:t&&t.configHasExtendsProperty,files:t&&t.configHasFilesProperty,include:t&&t.configHasIncludeProperty,exclude:t&&t.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:H1e(e)&&p1e(e.getConfigFilePath())||"other",projectType:e instanceof V1e?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:L},this.eventHandler({eventName:iye,data:r})):zye(e)}addFilesToNonInferredProject(e,t,r,n){this.updateNonInferredProjectFiles(e,t,r),e.setTypeAcquisition(n),e.markAsDirty()}createConfiguredProject(e,t){null!=Z4&&Z4.instant(Z4.Phase.Session,"createConfiguredProject",{configFilePath:e}),this.logger.info("Creating configuration project "+e);var r=this.toCanonicalFileName(e);let n=this.configFileExistenceInfoCache.get(r);n?n.exists=!0:this.configFileExistenceInfoCache.set(r,n={exists:!0}),n.config||(n.config={cachedDirectoryStructureHost:wB(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});t=new U1e(e,r,this,this.documentRegistry,n.config.cachedDirectoryStructureHost,t);return Y4.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,t),this.createConfigFileWatcherForParsedConfig(e,r,t),t}loadConfiguredProject(r,e){null!=Z4&&Z4.push(Z4.Phase.Session,"loadConfiguredProject",{configFilePath:r.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(r,e);var e=ua(r.getConfigFilePath()),t=this.ensureParsedConfigUptoDate(e,r.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(r.canonicalConfigFilePath),r),n=t.config.parsedCommandLine,i=(Y4.assert(!!n.fileNames),n.options),a=(r.projectOptions||(r.projectOptions={configHasExtendsProperty:void 0!==n.raw.extends,configHasFilesProperty:void 0!==n.raw.files,configHasIncludeProperty:void 0!==n.raw.include,configHasExcludeProperty:void 0!==n.raw.exclude}),r.canConfigFileJsonReportNoInputFiles=RA(n.raw),r.setProjectErrors(n.options.configFile.parseDiagnostics),r.updateReferences(n.projectReferences),this.getFilenameForExceededTotalSizeLimitForNonTsFiles(r.canonicalConfigFilePath,i,n.fileNames,Sye)),a=(a?(r.disableLanguageService(a),this.configFileExistenceInfoCache.forEach((e,t)=>this.stopWatchingWildCards(t,r))):(r.setCompilerOptions(i),r.setWatchOptions(n.watchOptions),r.enableLanguageService(),this.watchWildcards(e,t,r)),r.enablePluginsWithOptions(i),n.fileNames.concat(r.getExternalFiles(2)));this.updateRootAndOptionsOfNonInferredProject(r,a,Sye,i,n.typeAcquisition,n.compileOnSave,n.watchOptions),null!=Z4&&Z4.pop()}ensureParsedConfigUptoDate(e,t,r,n){if(r.config){if(!r.config.updateLevel)return r;if(1===r.config.updateLevel)return this.reloadFileNamesOfParsedConfig(e,r.config),r}var i=(null==(i=r.config)?void 0:i.cachedDirectoryStructureHost)||wB(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),a=H9(e,e=>this.host.readFile(e)),o=Yv(e,a3(a)?a:""),s=o.parseDiagnostics,a=(a3(a)||s.push(a),D3(e)),o=kA(o,i,a,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache),s=(o.errors.length&&s.push(...o.errors),this.logger.info(`Config: ${e} : `+JSON.stringify({rootNames:o.fileNames,options:o.options,watchOptions:o.watchOptions,projectReferences:o.projectReferences},void 0," ")),null==(s=r.config)?void 0:s.parsedCommandLine);return r.config?(r.config.parsedCommandLine=o,r.config.watchedDirectoriesStale=!0,r.config.updateLevel=void 0):r.config={parsedCommandLine:o,cachedDirectoryStructureHost:i,projects:new Map},s||eg(this.getWatchOptionsFromProjectWatchOptions(void 0,a),this.getWatchOptionsFromProjectWatchOptions(o.watchOptions,a))||(null!=(i=r.watcher)&&i.close(),r.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,n),DB(t,o.options,this.sharedExtendedConfigFileWatchers,(r,n)=>this.watchFactory.watchFile(r,()=>{var e;PB(this.extendedConfigCache,n,e=>this.toPath(e));let t=!1;null!=(e=this.sharedExtendedConfigFileWatchers.get(n))&&e.projects.forEach(e=>{t=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${r} detected`)||t}),t&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Oq.ExtendedConfigFile,e),e=>this.toPath(e)),r}watchWildcards(r,{exists:e,config:n},t){n.projects.set(t.canonicalConfigFilePath,!0),e?n.watchedDirectories&&!n.watchedDirectoriesStale||(n.watchedDirectoriesStale=!1,AB(n.watchedDirectories||(n.watchedDirectories=new Map),n.parsedCommandLine.wildcardDirectories,(e,t)=>this.watchWildcardDirectory(e,t,r,n))):(n.watchedDirectoriesStale=!1,n.watchedDirectories&&(Zp(n.watchedDirectories,BB),n.watchedDirectories=void 0))}stopWatchingWildCards(e,t){e=this.configFileExistenceInfoCache.get(e);e.config&&e.config.projects.get(t.canonicalConfigFilePath)&&(e.config.projects.set(t.canonicalConfigFilePath,!1),j7(e.config.projects,Ti)||(e.config.watchedDirectories&&(Zp(e.config.watchedDirectories,BB),e.config.watchedDirectories=void 0),e.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(r,e,t){let n,i=r.getRootFilesMap(),a=new Map;for(var o of e){var s=t.getFileName(o),c=r1e(s);let e;N1e(c)||r.fileExists(s)?(s=t.getScriptKind(o,this.hostConfiguration.extraFileExtensions),o=t.hasMixedContent(o,this.hostConfiguration.extraFileExtensions),s=Y4.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(c,r.currentDirectory,s,o,r.directoryStructureHost,!1)),e=s.path,(o=i.get(e))&&o.info===s?o.fileName=c:(r.addRoot(s,c),s.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(s))):(e=n1e(c,this.currentDirectory,this.toCanonicalFileName),(o=i.get(e))?((null==(n=o.info)?void 0:n.path)===e&&(r.removeFile(o.info,!1,!0),o.info=void 0),o.fileName=c):i.set(e,{fileName:c})),a.set(e,!0)}i.size>a.size&&i.forEach((e,t)=>{a.has(t)||(e.info?r.removeFile(e.info,r.fileExists(e.info.fileName),!0):i.delete(t))})}updateRootAndOptionsOfNonInferredProject(e,t,r,n,i,a,o){e.setCompilerOptions(n),e.setWatchOptions(o),void 0!==a&&(e.compileOnSaveEnabled=a),this.addFilesToNonInferredProject(e,t,r,i)}reloadFileNamesOfConfiguredProject(e){var t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.concat(e.getExternalFiles(1)),Sye),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine.fileNames;Y4.assert(1===t.updateLevel);e=nI(t.parsedCommandLine.options.configFile.configFileSpecs,D3(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:e},e}setFileNamesOfAutpImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,Sye)}reloadConfiguredProjectClearingSemanticCache(e,t,r){return!!OT(r,e)&&(this.clearSemanticCache(e),this.reloadConfiguredProject(e,Jye(t)),!0)}reloadConfiguredProject(e,t){e.isInitialLoadPending=vr,e.pendingUpdateReason=void 0,e.pendingUpdateLevel=0,e.getCachedDirectoryStructureHost().clearCache(),this.loadConfiguredProject(e,t),Rye(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,r){var n;return!(!this.eventHandler||this.suppressDiagnosticEvents||((n=e.getLanguageService().getCompilerOptionsDiagnostics()).push(...e.getAllProjectErrors()),!r&&n.length===(e.configDiagDiagnosticsReported??0))||(e.configDiagDiagnosticsReported=n.length,this.eventHandler({eventName:rye,data:{configFileName:e.getConfigFilePath(),diagnostics:n,triggerFile:t??e.getConfigFilePath()}}),0))}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(this.useInferredProjectPerProjectRoot&&(!t.isDynamic||void 0!==r)){if(r){var n,i=this.toCanonicalFileName(r);for(n of this.inferredProjects)if(n.projectRootPath===i)return n;return this.createInferredProject(r,!1,r)}let e;for(var a of this.inferredProjects)!a.projectRootPath||!ka(a.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)||e&&e.projectRootPath.length>a.projectRootPath.length||(e=a);return e}}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return 0e[1].deferredDelete?void 0:e),([e,t])=>({path:e,fileName:t.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(e)}. +All files are: `+JSON.stringify(t),"Err")}getSymlinkedProjects(e){let t;var r;return this.realpathToScriptInfos&&((r=e.getRealpathIfDifferent())&&G4(this.realpathToScriptInfos.get(r),n),G4(this.realpathToScriptInfos.get(e.path),n)),t;function n(n){if(n!==e)for(let r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?j7(t,(e,t)=>t!==n.path&&TT(e,r))||t.add(n.path,r):(t=n3()).add(n.path,r))}}watchClosedScriptInfo(r){var e;Y4.assert(!r.fileWatcher),r.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&f3(r.path,this.globalCacheLocationDirectoryPath)||(e=r.fileName.indexOf("/node_modules/"),this.host.getModifiedTime&&-1!==e?(r.mTime=this.getModifiedTime(r),r.fileWatcher=this.watchClosedScriptInfoInNodeModules(r.fileName.substring(0,e))):r.fileWatcher=this.watchFactory.watchFile(r.fileName,(e,t)=>this.onSourceFileChanged(r,t),500,this.hostConfiguration.watchOptions,Oq.ClosedScriptInfo))}createNodeModulesWatcher(e,n){let t=this.watchFactory.watchDirectory(e,e=>{var t,r,e=Kz(this.toPath(e));e&&(t=ra(e),null==(r=i.affectedModuleSpecifierCacheProjects)||!r.size||"package.json"!==t&&"node_modules"!==t||i.affectedModuleSpecifierCacheProjects.forEach(e=>{null!=(e=e.getModuleSpecifierCache())&&e.clear()}),i.refreshScriptInfoRefCount)&&(n===e?this.refreshScriptInfosInDirectory(n):(r=this.filenameToScriptInfo.get(e))?Lye(r)&&this.refreshScriptInfo(r):C3(e)||this.refreshScriptInfosInDirectory(e))},1,this.hostConfiguration.watchOptions,Oq.NodeModules),i={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var e;!t||i.refreshScriptInfoRefCount||null!=(e=i.affectedModuleSpecifierCacheProjects)&&e.size||(t.close(),t=void 0,this.nodeModulesWatchers.delete(n))}};return this.nodeModulesWatchers.set(n,i),i}watchPackageJsonsInNodeModules(e,t){var r=this.toPath(e);let n=this.nodeModulesWatchers.get(r)||this.createNodeModulesWatcher(e,r);return Y4.assert(!(null!=(e=n.affectedModuleSpecifierCacheProjects)&&e.has(t))),(n.affectedModuleSpecifierCacheProjects||(n.affectedModuleSpecifierCacheProjects=new Set)).add(t),{close:()=>{var e;null!=(e=n.affectedModuleSpecifierCacheProjects)&&e.delete(t),n.close()}}}watchClosedScriptInfoInNodeModules(e){var e=e+"/node_modules",t=this.toPath(e);let r=this.nodeModulesWatchers.get(t)||this.createNodeModulesWatcher(e,t);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||li).getTime()}refreshScriptInfo(e){var t,r=this.getModifiedTime(e);r!==e.mTime&&(t=Ei(e.mTime,r),e.mTime=r,this.onSourceFileChanged(e,t))}refreshScriptInfosInDirectory(t){t+=qi,this.filenameToScriptInfo.forEach(e=>{Lye(e)&&f3(e.path,t)&&this.refreshScriptInfo(e)})}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,r,n,i,a){return Gi(e)||N1e(e)?this.getOrCreateScriptInfoWorker(e,t,!1,void 0,r,!!n,i,a):this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||void 0}getOrCreateScriptInfoForNormalizedPath(e,t,r,n,i,a){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,r,n,!!i,a,!1)}getOrCreateScriptInfoWorker(e,t,r,n,i,a,o,s){Y4.assert(void 0===n||r,"ScriptInfo needs to be opened by client to be able to set its user defined content");var c=n1e(e,t,this.toCanonicalFileName);let l=this.filenameToScriptInfo.get(c);if(l){if(l.deferredDelete){if(Y4.assert(!l.isDynamic),!r&&!(o||this.host).fileExists(e))return s?l:void 0;l.deferredDelete=void 0}}else{s=N1e(e);if(Y4.assert(Gi(e)||s||r,"",()=>JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:ZT(this.openFilesWithNonRootedDiskPath.keys())})+` +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),Y4.assert(!Gi(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",()=>JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:ZT(this.openFilesWithNonRootedDiskPath.keys())})+` +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),Y4.assert(!s||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",()=>JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:ZT(this.openFilesWithNonRootedDiskPath.keys())})+` +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!r&&!s&&!(o||this.host).fileExists(e))return;l=new D1e(this.host,e,i,a,c,this.filenameToScriptInfoVersion.get(c)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),r?Gi(e)||s&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}return r&&(this.stopWatchingScriptInfo(l),l.open(n),a)&&l.registerFileUpdate(),l}getScriptInfoForNormalizedPath(e){return!Gi(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(n1e(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){e=this.filenameToScriptInfo.get(e);return e&&e.deferredDelete?void 0:e}getDocumentPositionMapper(n,e,i){let a=this.getOrCreateScriptInfoNotOpenedByClient(e,n.currentDirectory,this.host,!1);if(a){if(a.getSnapshot(),a3(a.sourceMapFilePath)){var o=this.getScriptInfoForPath(a.sourceMapFilePath);if(o&&(o.getSnapshot(),void 0!==o.documentPositionMapper))return o.sourceInfos=this.addSourceInfoToSourceMap(i,n,o.sourceInfos),o.documentPositionMapper||void 0;a.sourceMapFilePath=void 0}else{if(a.sourceMapFilePath)return void(a.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,n,a.sourceMapFilePath.sourceInfos));if(void 0!==a.sourceMapFilePath)return}let r;let t=n.projectName;o=qQ({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,t,a)},a.fileName,a.textStorage.getLineInfo(),(e,t)=>{e=this.getOrCreateScriptInfoNotOpenedByClient(e,n.currentDirectory,this.host,!0);if(r=e||t,e&&!e.deferredDelete)return t=e.getSnapshot(),void 0!==e.documentPositionMapper?e.documentPositionMapper:KK(t)});return r?a3(r)?a.sourceMapFilePath={watcher:this.addMissingSourceMapFile(n.currentDirectory===this.currentDirectory?r:P3(r,n.currentDirectory),a.path),sourceInfos:this.addSourceInfoToSourceMap(i,n)}:(a.sourceMapFilePath=r.path,r.declarationInfoPath=a.path,r.deferredDelete||(r.documentPositionMapper=o||!1),r.sourceInfos=this.addSourceInfoToSourceMap(i,n,r.sourceInfos)):a.sourceMapFilePath=!1,o}i&&n.addGeneratedFileWatch(e,i)}addSourceInfoToSourceMap(e,t,r){return e&&(e=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost,!1),(r=r||new Set).add(e.path)),r}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,()=>{var e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!a3(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Oq.MissingSourceMapFile)}getSourceFileLike(e,t,r){t=t.projectName?t:this.findProject(t);if(t){var n=t.toPath(e),i=t.getSourceFile(n);if(i&&i.resolvedPath===n)return i}let a=this.getOrCreateScriptInfoNotOpenedByClient(e,(t||this).currentDirectory,t?t.directoryStructureHost:this.host,!1);if(a)return r&&a3(r.sourceMapFilePath)&&a!==r&&(n=this.getScriptInfoForPath(r.sourceMapFilePath))&&(n.sourceInfos??(n.sourceInfos=new Set)).add(a.path),a.cacheSourceFile?a.cacheSourceFile.sourceFile:(a.sourceFileLike||(a.sourceFileLike={get text(){return Y4.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{e=a.positionToLineOffset(e);return{line:e.line-1,character:e.offset-1}},getPositionOfLineAndCharacter:(e,t,r)=>a.lineOffsetToPosition(e+1,t+1,r)}),a.sourceFileLike)}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){var t,r,n;e.file?(t=this.getScriptInfoForNormalizedPath(r1e(e.file)))&&(t.setOptions(mye(e.formatOptions),e.preferences),this.logger.info("Host configuration update for file "+e.file)):(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info("Host information "+e.hostInfo)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...mye(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences&&({lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:r,includeCompletionsForModuleExports:n}=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()})),r===e.preferences.includePackageJsonAutoImports&&!!n==!!e.preferences.includeCompletionsForModuleExports||this.forEachProject(e=>{e.onAutoImportProviderSettingsChanged()})),e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions&&(n=EA(r=null==(t=hye(e.watchOptions))?void 0:t.watchOptions,this.currentDirectory),this.hostConfiguration.watchOptions=n,this.hostConfiguration.beforeSubstitution=n===r?void 0:r,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){t=this.hostConfiguration.beforeSubstitution?EA(this.hostConfiguration.beforeSubstitution,t):this.hostConfiguration.watchOptions;return e&&t?{...t,...e}:e||t}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(e=>{this.openFiles.has(e.path)||e.fileWatcher&&this.onSourceFileChanged(e,this.host.fileExists(e.fileName)?e.deferredDelete?0:1:2)}),this.pendingProjectUpdates.forEach((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)}),this.throttledOperations.cancel(lye),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(e=>{e.config&&(e.config.updateLevel=2)}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(e=>{this.clearSemanticCache(e),e.updateGraph()});let n=new Set,i=new Set;this.externalProjectToConfiguredProjectMap.forEach((e,t)=>{let r="Reloading configured project in external project: "+t;e.forEach(e=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?(e.isInitialLoadPending()||(this.clearSemanticCache(e),e.pendingUpdateLevel=2,e.pendingUpdateReason=Jye(r)),i.add(e)):this.reloadConfiguredProjectClearingSemanticCache(e,r,n)})}),this.openFiles.forEach((e,t)=>{t=this.getScriptInfoForPath(t);bT(t.containingProjects,K1e)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,2,n,i)}),i.forEach(e=>n.add(e)),this.inferredProjects.forEach(e=>this.clearSemanticCache(e)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(n,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){Y4.assert(0e!==t&&!e.isOrphan())&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();var e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,null!=e&&e.forEach((e,t)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(t),1)),this.openFiles.forEach((e,t)=>{t=this.getScriptInfoForPath(t);t.isOrphan()?this.assignOrphanScriptInfoToInferredProject(t,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(t)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(jye),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,r,n){return this.openClientFileWithNormalizedPath(r1e(e),t,r,!1,n?r1e(n):void 0)}getOriginalLocationEnsuringConfiguredProject(n,i){var a=n.isSourceOfProjectReferenceRedirect(i.fileName),o=a?i:n.getSourceMapper().tryGetSourcePosition(i);if(o){let r=o["fileName"];var s=this.getScriptInfo(r);if(s||this.host.fileExists(r)){var c={fileName:r1e(r),path:this.toPath(r)},l=this.getConfigFileNameForFile(c,!1);if(l){let e=this.findConfiguredProjectByProjectName(l);if(!e){if(n.getCompilerOptions().disableReferencedProjectLoad)return!a&&null!=s&&s.containingProjects.length?o:i;e=this.createConfiguredProject(l,"Creating project for original file: "+c.fileName+(i!==o?" for location: "+i.fileName:""))}jye(e);let t=e=>{var t=this.getScriptInfo(r);return t&&e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)};if(e.isSolution()||!t(e)){if(!(e=Eye(e,r,e=>t(e)?e:void 0,1,`Creating project referenced in solution ${e.projectName} to find possible configured project for original file: `+c.fileName+(i!==o?" for location: "+i.fileName:""))))return;if(e===n)return o}_(e);a=this.getScriptInfo(r);if(a&&a.containingProjects.length)return a.containingProjects.forEach(e=>{H1e(e)&&_(e)}),o;function _(e){(n.originalConfiguredProjects??(n.originalConfiguredProjects=new Set)).add(e.canonicalConfigFilePath)}}}}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(t){return bT(this.externalProjects,e=>(jye(e),e.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(e,t,r,n,i){e=this.getOrCreateScriptInfoWorker(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,!0,t,r,!!n,void 0,!0);return this.openFiles.set(e.path,i),e}assignProjectToOpenedScriptInfo(t){let e,r;var n=this.findExternalProjectContainingOpenScriptInfo(t);let i,a;return n||0!==this.serverMode||(n=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,1))&&(i=n.seenProjects,a=n.sentConfigDiag,n.defaultProject)&&(e=n.defaultProject.getConfigFilePath(),r=n.defaultProject.getAllProjectErrors()),t.containingProjects.forEach(jye),t.isOrphan()&&(null!=i&&i.forEach(e=>{a.has(e)||this.sendConfigFileDiagEvent(e,t.fileName,!0)}),Y4.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),Y4.assert(!t.isOrphan()),{configFileName:e,configFileErrors:r,retainProjects:i}}findCreateOrReloadConfiguredProject(e,t,r,n,i,a,o,s){let c=this.findConfiguredProjectByProjectName(e,n),l=!1;switch(t){case 0:if(c)break;return;case 1:c=c??this.createConfiguredProject(e,r),l=!o&&Mye(c,i);break;case 2:c=c??this.createConfiguredProject(e,Jye(r)),l=!s&&this.reloadConfiguredProjectClearingSemanticCache(c,r,a),!s||s.has(c)||a.has(c)||(c.pendingUpdateLevel=2,c.pendingUpdateReason=Jye(r),s.add(c));break;default:Y4.assertNever(t)}return{project:c,sentConfigFileDiag:l}}tryFindDefaultConfiguredProjectForOpenScriptInfo(o,e,t,s){var c=this.getConfigFileNameForFile(o,0===e);if(c){var c=this.findCreateOrReloadConfiguredProject(c,e,Bye(o),t,o.fileName,s);if(c){let r=new Set,n=new Set(c.sentConfigFileDiag?[c.project]:void 0),i,a;if(l(c=c.project))i;else Eye(c,o.path,(e,t)=>(t&&n.add(e),l(e)),e,`Creating project referenced in solution ${c.projectName} to find possible configured project for ${o.fileName} to open`,t,o.fileName,s);return{defaultProject:i??a,sentConfigDiag:n,seenProjects:r};function l(e){var t;if(OT(r,e))return(t=e.containsScriptInfo(o))&&!e.isSourceOfProjectReferenceRedirect(o.path)?i=e:void(a=a??(t?e:void 0))}}}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(r,n,i,a){var o=0===n,s=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(r,n,o,i);if(s){let{defaultProject:e,seenProjects:t}=s;return e&&function(e,t,r,n,i,a,o,s){for(;;){if(!t.isInitialLoadPending()&&(!t.getCompilerOptions().composite||t.getCompilerOptions().disableSolutionSearching))return;var c=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0},0===n);if(!c)return;c=t.projectService.findCreateOrReloadConfiguredProject(c,n,i,a,void 0,o,!0,s);if(!c)return;c.project.isInitialLoadPending()&&t.getCompilerOptions().composite&&c.project.setPotentialProjectReference(t.canonicalConfigFilePath);var l=r(c.project);if(l)return;t=c.project}}(r,e,e=>{t.add(e)},n,`Creating project possibly referencing default composite project ${e.getProjectName()} of open file `+r.fileName,o,i,a),s}}loadAncestorProjectTree(t){t=t||h(this.configuredProjects,(e,t)=>t.isInitialLoadPending()?void 0:[e,!0]);var e,r=new Set;for(e of ZT(this.configuredProjects.values()))Fye(e,e=>t.has(e))&&jye(e),this.ensureProjectChildren(e,t,r)}ensureProjectChildren(e,t,r){if(OT(r,e.canonicalConfigFilePath)&&!e.getCompilerOptions().disableReferencedProjectLoad){var n,i=null==(i=e.getCurrentProgram())?void 0:i.getResolvedProjectReferences();if(i)for(var a of i)a&&(n=TJ(a.references,e=>t.has(e.sourceFile.path)?e:void 0))&&(a=r1e(a.sourceFile.fileName),jye(a=this.findConfiguredProjectByProjectName(a)??this.createConfiguredProject(a,`Creating project referenced by : ${e.projectName} as it references project `+n.sourceFile.fileName)),this.ensureProjectChildren(a,t,r))}}cleanupConfiguredProjects(e,t,r){this.getOrphanConfiguredProjects(e,r,t).forEach(e=>this.removeProject(e))}cleanupProjectsAndScriptInfos(e,t,r){this.cleanupConfiguredProjects(e,r,t);for(var n of this.inferredProjects.slice())n.isOrphan()&&this.removeProject(n);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(e,t,r,n,i){e=this.getOrCreateOpenScriptInfo(e,t,r,n,i);let{retainProjects:a,...o}=this.assignProjectToOpenedScriptInfo(e);return this.cleanupProjectsAndScriptInfos(a,new Set([e.path]),void 0),this.telemetryOnOpenFile(e),this.printProjects(),o}getOrphanConfiguredProjects(e,r,n){let t=new Set(this.configuredProjects.values()),i=e=>{!e.originalConfiguredProjects||!H1e(e)&&e.isOrphan()||e.originalConfiguredProjects.forEach((e,t)=>{t=this.getConfiguredProjectByCanonicalConfigFilePath(t);return t&&s(t)})};return null!=e&&e.forEach(s),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.externalProjectToConfiguredProjectMap.forEach((e,t)=>{null!=n&&n.has(t)||e.forEach(s)}),this.openFiles.forEach((e,t)=>{null!=r&&r.has(t)||bT((t=this.getScriptInfoForPath(t)).containingProjects,K1e)||null!=(t=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,0))&&t.defaultProject&&null!=t&&t.seenProjects.forEach(s)}),this.configuredProjects.forEach(e=>{t.has(e)&&(o(e)||Iye(e,a))&&s(e)}),t;function a(e){return!t.has(e)||o(e)}function o(e){return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!(null==(e=null==(e=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath))?void 0:e.openFilesImpactedByConfigFile)||!e.size)}function s(e){t.delete(e)&&(i(e),Iye(e,s))}}removeOrphanScriptInfos(){let n=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!t.isContainedByBackgroundProject()){if(!t.sourceMapFilePath)return;let e;if(!(e=a3(t.sourceMapFilePath)?null==(r=this.filenameToScriptInfo.get(t.sourceMapFilePath))?void 0:r.sourceInfos:t.sourceMapFilePath.sourceInfos))return;if(!R7(e,e=>{e=this.getScriptInfoForPath(e);return!!e&&(e.isScriptOpen()||!e.isOrphan())}))return}if(n.delete(t.path),t.sourceMapFilePath){let e;var r;(e=a3(t.sourceMapFilePath)?(null!=(r=this.filenameToScriptInfo.get(t.sourceMapFilePath))&&r.deferredDelete?t.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,t.path),sourceInfos:r.sourceInfos}:n.delete(t.sourceMapFilePath),null==r?void 0:r.sourceInfos):t.sourceMapFilePath.sourceInfos)&&e.forEach((e,t)=>n.delete(t))}}}),n.forEach(e=>this.deleteScriptInfo(e))}telemetryOnOpenFile(e){var t;0===this.serverMode&&this.eventHandler&&e.isJavaScript()&&sf(this.allJsFilesForOpenFileTelemetry,e.path)&&(t=this.ensureDefaultProjectForFile(e)).languageServiceEnabled&&(e=!!(t=t.getSourceFile(e.path))&&!!t.checkJsDirective,this.eventHandler({eventName:aye,data:{info:{checkJs:e}}}))}closeClientFile(e,t){e=this.getScriptInfoForNormalizedPath(r1e(e)),e=!!e&&this.closeOpenFile(e,t);return t||this.printProjects(),e}collectChanges(e,r,n,i){for(let t of r){var a=bT(e,e=>e.projectName===t.getProjectName());i.push(t.getChangesSinceVersion(a&&a.version,n))}}synchronizeProjectList(e,t){var r=[];return this.collectChanges(e,this.externalProjects,t,r),this.collectChanges(e,g(this.configuredProjects.values(),e=>e.deferredClose?void 0:e),t,r),this.collectChanges(e,this.inferredProjects,t,r),r}applyChangesInOpenFiles(e,t,r){let n,i=!1;if(e)for(var a of e){a=this.getOrCreateOpenScriptInfo(r1e(a.fileName),a.content,vye(a.scriptKind),a.hasMixedContent,a.projectRootPath?r1e(a.projectRootPath):void 0);(n=n||[]).push(a)}if(t)for(var o of t){var s=this.getScriptInfo(o.fileName);Y4.assert(!!s),this.applyChangesToFile(s,o.changes)}if(r)for(var c of r)i=this.closeClientFile(c,!0)||i;let l;null!=n&&n.forEach(e=>{return null==(e=this.assignProjectToOpenedScriptInfo(e).retainProjects)?void 0:e.forEach(e=>(l=l??new Set).add(e))}),i&&this.assignOrphanScriptInfosToInferredProject(),n?(this.cleanupProjectsAndScriptInfos(l,new Set(n.map(e=>e.path)),void 0),n.forEach(e=>this.telemetryOnOpenFile(e)),this.printProjects()):K4(r)&&this.printProjects()}applyChangesToFile(e,t){for(var r of t)e.editContent(r.span.start,r.span.start+r.span.length,r.newText)}closeExternalProject(e,t){var r=r1e(e);this.externalProjectToConfiguredProjectMap.get(r)?this.externalProjectToConfiguredProjectMap.delete(r):(r=this.findExternalProjectByProjectName(e))&&this.removeProject(r),t&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){let r=new Set(this.externalProjects.map(e=>e.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((e,t)=>r.add(t));for(var t of e)this.openExternalProject(t,!1),r.delete(t.projectFileName);r.forEach(e=>this.closeExternalProject(e,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=fye}applySafeList(e){var t=e.typeAcquisition,e=(Y4.assert(!!t,"proj.typeAcquisition should be set by now"),this.applySafeListWorker(e,e.rootFiles,t));return(null==e?void 0:e.excludedFiles)??[]}applySafeListWorker(e,i,a){if(!1!==a.enable&&!a.disableFilenameBasedTypeAcquisition){var o=a.include||(a.include=[]),s=[];let n=i.map(e=>sa(e.fileName));for(let r of Object.keys(this.safelist)){var c,l=this.safelist[r];for(c of n)if(l.match.test(c)){if(this.logger.info(`Excluding files based on rule ${r} matching file '${c}'`),l.types)for(var _ of l.types)o.includes(_)||o.push(_);if(l.exclude)for(let e of l.exclude){var u=c.replace(l.match,(...t)=>e.map(e=>"number"==typeof e?a3(t[e])?Wye.escapeFilenameForRegex(t[e]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${r} - not enough groups`),"\\*"):e).join(""));s.includes(u)||s.push(u)}else{var d=Wye.escapeFilenameForRegex(c);s.includes(d)||s.push(d)}}}var p=s.map(e=>new RegExp(e,"i"));let r,t;for(let t=0;te.test(n[t])))g(t);else{if(a.enable){var f=ra(br(n[t]));if(w3(f,"js")){var f=Ie(qm(f)),m=this.legacySafelist.get(f);if(void 0!==m){this.logger.info(`Excluded '${n[t]}' because it matched ${f} from the legacy safelist`),g(t),o.includes(m)||o.push(m);continue}}}/^.+[.-]min\.js$/.test(n[t])?g(t):null!=r&&r.push(i[t])}return t?{rootFiles:r,excludedFiles:t}:void 0;function g(e){t||(Y4.assert(!r),r=i.slice(0,e),t=[]),t.push(n[e])}}}openExternalProject(t,e){var r,n,i,a,o,s,c=this.findExternalProjectByProjectName(t.projectFileName);let l,_=[];for(r of t.rootFiles){var u=r1e(r.fileName);if(p1e(u)){if(0===this.serverMode&&this.host.fileExists(u)){let e=this.findConfiguredProjectByProjectName(u);e||(e=this.createConfiguredProject(u,"Creating configured project in external project: "+t.projectFileName),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject)||e.updateGraph(),(l=l??new Set).add(e),Y4.assert(!e.isClosed())}}else _.push(r)}l?(this.externalProjectToConfiguredProjectMap.set(t.projectFileName,l),c&&this.removeProject(c)):(this.externalProjectToConfiguredProjectMap.delete(t.projectFileName),(n=t.typeAcquisition||{}).include=n.include||[],n.exclude=n.exclude||[],void 0===n.enable&&(n.enable=j1e(_.map(e=>e.fileName))),i=(null==(a=this.applySafeListWorker(t,_,n))?void 0:a.excludedFiles)??[],_=(null==a?void 0:a.rootFiles)??_,(c?(c.excludedFiles=i,a=gye(t.options),o=hye(t.options,c.getCurrentDirectory()),(s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,a,_,kye))?c.disableLanguageService(s):c.enableLanguageService(),c.setProjectErrors(null==o?void 0:o.errors),this.updateRootAndOptionsOfNonInferredProject(c,_,kye,a,n,t.options.compileOnSave,null==o?void 0:o.watchOptions),c):this.createExternalProject(t.projectFileName,_,t.options,n,i)).updateGraph()),e&&(this.cleanupConfiguredProjects(l,new Set(t.projectFileName)),this.printProjects())}hasDeferredExtension(){for(var e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(t,r,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: `+n.join(",")),!r.name||B3(r.name)||/[\\/]\.\.?($|[\\/])/.test(r.name))this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);else if(this.host.importPlugin){var i=M1e.importServicePluginAsync(r,n,this.host,e=>this.logger.info(e));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let e=this.pendingPluginEnablements.get(t);e||this.pendingPluginEnablements.set(t,e=[]),void e.push(i)}else this.endEnablePlugin(t,M1e.importServicePluginSync(r,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:r,errorLogs:n}){var i,a;r?((i=null==(i=this.currentPluginConfigOverrides)?void 0:i.get(t.name))&&(a=t.name,(t=i).name=a),e.enableProxy(r,t)):(G4(n,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(){var e;this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),this.pendingPluginEnablements&&(e=ZT(this.pendingPluginEnablements.entries()),this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise)}async enableRequestedPluginsWorker(e){Y4.assert(void 0===this.currentPluginEnablementPromise);let n=!1;await Promise.all($4(e,async([e,t])=>{t=await Promise.all(t);if(e.isClosed()||$1e(e))this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is `+(e.isClosed()?"closed":"deferred close"));else{n=!0;for(var r of t)this.endEnablePlugin(e,r);this.delayUpdateProjectGraph(e)}})),this.currentPluginEnablementPromise=void 0,n&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(t){this.forEachEnabledProject(e=>e.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(e,r,t){let n=this.packageJsonCache,i=t&&this.toPath(t),a=[],o=e=>{switch(n.directoryHasPackageJson(e)){case 3:return n.searchDirectoryAndAncestors(e),o(e);case-1:var t=E3(e,"package.json"),t=(this.watchPackageJsonFile(t,this.toPath(t),r),n.getInDirectory(e));t&&a.push(t)}if(i&&i===e)return!0};return Pa(D3(e),o),a}getNearestAncestorDirectoryWithPackageJson(e){return Pa(e,e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(E3(e,"package.json"))?e:void 0}})}watchPackageJsonFile(e,r,t){Y4.assert(void 0!==t);let n=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!n){let t=this.watchFactory.watchFile(e,(e,t)=>{switch(t){case 0:case 1:this.packageJsonCache.addOrUpdate(e,r),this.onPackageJsonChange(n);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(n),n.projects.clear(),n.close()}},250,this.hostConfiguration.watchOptions,Oq.PackageJson);n={projects:new Set,close:()=>{var e;!n.projects.size&&t&&(t.close(),t=void 0,null!=(e=this.packageJsonFilesMap)&&e.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,n)}n.projects.add(t),(t.packageJsonWatches??(t.packageJsonWatches=new Set)).add(n)}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 t;return{get(){return t},set(e){t=e},clear(){t=void 0}}}())}},Hye=(Wye.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,Wye);function Kye(e){return void 0!==e.kind}function Gye(e){e.print(!1,!1,!1)}function $ye(l){let _,i,a,n={get(e,t,r,n){if(i&&a===o(e,r,n))return i.get(t)},set(e,t,r,n,i,a,o){if(u(e,r,n).set(t,d(i,a,o,!1)),o)for(var s of a){var c;s.isInNodeModules&&(s=s.path.substring(0,s.path.indexOf(fO)+fO.length-1),c=l.toPath(s),null!=_&&_.has(c)||(_=_||new Map).set(c,l.watchNodeModulesForPackageJsonChanges(s)))}},setModulePaths(e,t,r,n,i){e=u(e,r,n),r=e.get(t);r?r.modulePaths=i:e.set(t,d(void 0,i,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,r,n,i){e=u(e,r,n),r=e.get(t);r?r.isBlockedByPackageJsonDependencies=i:e.set(t,d(void 0,void 0,void 0,i))},clear(){null!=_&&_.forEach($p),null!=i&&i.clear(),null!=_&&_.clear(),a=void 0},count(){return i?i.size:0}};return Y4.isDebugging&&Object.defineProperty(n,"__cache",{get:()=>i}),n;function u(e,t,r){e=o(e,t,r);return i&&a!==e&&n.clear(),a=e,i=i||new Map}function o(e,t,r){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},`+r.overrideImportMode}function d(e,t,r,n){return{kind:e,modulePaths:t,moduleSpecifiers:r,isBlockedByPackageJsonDependencies:n}}}function Xye(r){let n=new Map,i=new Map;return{addOrUpdate:a,invalidate:function(e){n.delete(e),i.delete(D3(e))},delete:e=>{n.delete(e),i.set(D3(e),!0)},getInDirectory:e=>n.get(r.toPath(E3(e,"package.json")))||void 0,directoryHasPackageJson:e=>o(r.toPath(e)),searchDirectoryAndAncestors:e=>{Pa(e,e=>{var t=r.toPath(e);if(3!==o(t))return!0;e=E3(e,"package.json");B$(r,e)?a(e,E3(t,"package.json")):i.set(t,!0)})}};function a(e,t){e=Y4.checkDefined(H$(e,r.host));n.set(t,e),i.delete(D3(t))}function o(e){return n.has(E3(e,"package.json"))?-1:i.has(e)?0:3}}var Qye={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Yye(e,t){if((W1e(e)||K1e(e))&&e.isJsOnlyProject())return(e=e.getScriptInfoForNormalizedPath(t))&&!e.isJavaScript()}function Zye(e,t,r){t=t.getScriptInfoForNormalizedPath(e);return{start:t.positionToLineOffset(r.start),end:t.positionToLineOffset(r.start+r.length),text:lJ(r.messageText,"\n"),code:r.code,category:Fn(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:$4(r.relatedInformation,eve)}}function eve(e){return e.file?{span:{start:tve(O3(e.file,e.start)),end:tve(O3(e.file,e.start+e.length)),file:e.file.fileName},message:lJ(e.messageText,"\n"),category:Fn(e),code:e.code}:{message:lJ(e.messageText,"\n"),category:Fn(e),code:e.code}}function tve(e){return{line:e.line+1,offset:e.character+1}}function rve(e,t){var{code:r,source:n}=e,r={start:e.file&&tve(O3(e.file,e.start)),end:e.file&&tve(O3(e.file,e.start+e.length)),text:lJ(e.messageText,"\n"),code:r,category:Fn(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:n,relatedInformation:$4(e.relatedInformation,eve)};return t?{...r,fileName:e.file&&e.file.fileName}:r}var nve=g1e;function ive(e,t,r,n){var i=t.hasLevel(3),a=JSON.stringify(e),i=(i&&t.info(e.type+":"+uW(e)),r(a,"utf8"));return`Content-Length: ${1+i}\r +\r +`+a+n}var ave=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.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){let r=this.requestId;Y4.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){let n=this.requestId;Y4.assert(n===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(r))},t,e))}executeAction(e){let t=!1;try{this.operationHost.isCancellationRequested()?(t=!0,null!=Z4&&Z4.instant(Z4.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null!=Z4&&Z4.push(Z4.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null!=Z4&&Z4.pop())}catch(e){null!=Z4&&Z4.popAll(),t=!0,e instanceof Vr?null!=Z4&&Z4.instant(Z4.Phase.Session,"stepCanceled",{seq:this.requestId}):(null!=Z4&&Z4.instant(Z4.Phase.Session,"stepError",{seq:this.requestId,message:e.message}),this.operationHost.logError(e,"delayed processing of request "+this.requestId))}!t&&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 ove(e,t){return{seq:0,type:"event",event:e,body:t}}function sve(e){return oe(({textSpan:e})=>e.start+100003*e.length,bG(e))}function cve(e,t,r,o,n){var a=_ve(e,t,r,!1,(e,t)=>(n.info(`Finding references to ${t.fileName} position ${t.pos} in project `+e.getProjectName()),e.getLanguageService().findReferences(t.fileName,t.pos)),(e,t)=>{t(dve(e.definition));for(var r of e.references)t(dve(r))});if(i3(a))return a;e=a.get(t);if(void 0===(null==(t=null==(r=null==e?void 0:e[0])?void 0:r.references[0])?void 0:t.isDefinition))a.forEach(e=>{for(var t of e)for(var r of t.references)delete r.isDefinition});else{let n=sve(o);for(var s of e)for(var c of s.references)if(c.isDefinition){n.add(c);break}let i=new Set;for(;;){let r=!1;if(a.forEach((e,t)=>{i.has(t)||t.getLanguageService().updateIsDefinitionOfReferencedSymbols(e,n)&&(i.add(t),r=!0)}),!r)break}a.forEach((e,t)=>{if(!i.has(t))for(var r of e)for(var n of r.references)n.isDefinition=!1})}let l=[],_=sve(o);return a.forEach((e,r)=>{for(var n of e){var i,a=pve(dve(n.definition),r);let t=void 0===a?n.definition:{...n.definition,textSpan:Qo(a.pos,n.definition.textSpan.length),fileName:a.fileName,contextSpan:function(e,t){return CG(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}(n.definition,r)},e=bT(l,e=>vG(e.definition,t,o));e||(e={definition:t,references:[]},l.push(e));for(i of n.references)_.has(i)||pve(dve(i),r)||(_.add(i),e.references.push(i))}}),l.filter(e=>0!==e.references.length)}function lve(e,t,n){for(var r of i3(e)?e:e.projects)n(r,t);!i3(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((e,t)=>{for(var r of e)n(r,t)})}function _ve(e,t,r,n,i,a){let o=new Map,s=ae(),c=(s.enqueue({project:t,location:r}),lve(e,r.fileName,(e,t)=>{t={fileName:t,pos:r.pos};s.enqueue({project:e,location:t})}),t.projectService),l=t.getCancellationToken(),_=(e=r,n=n,u=(u=t).getLanguageService().getDefinitionAtPosition(e.fileName,e.pos,!1,n),(e=u&&UT(u))&&!e.isLocal?{fileName:e.fileName,pos:e.textSpan.start}:void 0);var u;let d=Ci(()=>t.isSourceOfProjectReferenceRedirect(_.fileName)?_:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(_)),p=Ci(()=>t.isSourceOfProjectReferenceRedirect(_.fileName)?_:t.getLanguageService().getSourceMapper().tryGetSourcePosition(_));var f=new Set;e:for(;!s.isEmpty();){for(;!s.isEmpty();){if(l.isCancellationRequested())break e;var{project:m,location:g}=s.dequeue();o.has(m)||uve(m,g)||(jye(m),m.containsFile(r1e(g.fileName))&&(g=function(r,e){e=i(r,e);if(e){for(var t of e)a(t,e=>{let n=c.getOriginalLocationEnsuringConfiguredProject(r,e);if(n){var t,e=c.getScriptInfo(n.fileName);for(t of e.containingProjects)t.isOrphan()||o.has(t)||s.enqueue({project:t,location:n});e=c.getSymlinkedProjects(e);e&&e.forEach((e,t)=>{for(var r of e)r.isOrphan()||o.has(r)||s.enqueue({project:r,location:{fileName:t,pos:n.pos}})})}});return e}}(m,g),o.set(m,g??Z0e),f.add(H1e(g=m)?g.canonicalConfigFilePath:g.getProjectName())))}_&&(c.loadAncestorProjectTree(f),c.forEachEnabledProject(e=>{var t;l.isCancellationRequested()||o.has(e)||(t=function(e,t,r,n){if(t.containsFile(r1e(e.fileName))&&!uve(t,e))return e;e=r();if(e&&t.containsFile(r1e(e.fileName)))return e;r=n();return r&&t.containsFile(r1e(r.fileName))?r:void 0}(_,e,d,p))&&s.enqueue({project:e,location:t})}))}return 1===o.size?HT(o.values()):o}function uve(e,t){if(t){var r=e.getLanguageService().getProgram();if(r)return(r=r.getSourceFile(t.fileName))&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}}function dve({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function pve(e,t){return kG(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}function fve(e,t){return TG(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}var mve=["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"],gve=[...mve,"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"],hve=class Hve{constructor(e){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{return this.requiredResponse({version:L})},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=>{var t,e=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);return e.some(e=>e.projectErrors&&0!==e.projectErrors.length)?(t=$4(e,e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e),this.requiredResponse(t)):this.requiredResponse(e)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&k(e.arguments.openFiles,e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath})),e.arguments.changedFiles&&k(e.arguments.changedFiles,n=>({fileName:n.fileName,changes:g(P(n.textChanges),e=>{var t=Y4.checkDefined(this.projectService.getScriptInfo(n.fileName)),r=t.lineOffsetToPosition(e.start.line,e.start.offset),t=t.lineOffsetToPosition(e.end.line,e.end.offset);return 0<=r?{span:{start:r,length:t-r},newText:e.newText}:void 0})})),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&k(e.arguments.changedFiles,e=>({fileName:e.fileName,changes:P(e.changes)})),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),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(r1e(e.arguments.file),e.arguments.fileContent,bye(e.arguments.scriptKindName),e.arguments.projectRootPath?r1e(e.arguments.projectRootPath):void 0),this.notRequired()),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:t=>(this.errorCheck.startNew(e=>this.getDiagnostics(e,t.arguments.delay,t.arguments.files)),this.notRequired()),geterrForProject:t=>(this.errorCheck.startNew(e=>this.getDiagnosticsForProject(e,t.arguments.delay,t.arguments.file)),this.notRequired()),change:e=>(this.change(e.arguments),this.notRequired()),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.doOutput(void 0,"configure",e.seq,!0),this.notRequired()),reload:e=>(this.reload(e.arguments,e.seq),this.requiredResponse({reloadFinished:!0})),saveto:e=>{e=e.arguments;return this.saveToTmp(e.file,e.tmpfile),this.notRequired()},close:e=>{e=e.arguments;return this.closeClientFile(e.file),this.notRequired()},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:()=>(this.projectService.reloadProjects(),this.notRequired()),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)),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.doOutput(void 0,"configurePlugin",e.seq,!0),this.notRequired()),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))})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||E1e,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;var t=e["throttleWaitMilliseconds"],r=(this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0,{executeWithRequestId:(e,t)=>this.executeWithRequestId(e,t),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:e=>this.sendRequestCompletedEvent(e),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()}),r=(this.errorCheck=new ave(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 Hye(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new d1e(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:mve.forEach(e=>this.handlers.set(e,e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:gve.forEach(e=>this.handlers.set(e,e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:Y4.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e){this.event({request_seq:e},"requestCompleted")}addPerformanceData(e,t){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+t}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 Y1e:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case Z1e:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case eye:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case tye:case oye:case sye:case cye:this.event(e.data,e.eventName);break;case rye:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:$4(e.data.diagnostics,e=>rve(e,!0))},e.eventName);break;case nye:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case iye:this.event({telemetryEventName:e.eventName,payload:e.data},"telemetry")}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info("got projects updated in background "+t),t.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||(this.projectService.logger.info("Queueing diagnostics update for "+t),this.errorCheck.startNew(e=>this.updateErrorCheck(e,t,100,!0))),this.event({openFiles:t},Y1e))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,r,t){let n="Exception on executing command "+r;if(e.message&&(n+=":\n"+_W(e.message),e.stack)&&(n+="\n"+_W(e.stack)),this.logger.hasLevel(3)){if(t)try{var i,{file:a,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(a);s&&(i=KK(s.getSnapshot()),n+=` + +File text of ${t.file}:${_W(i)} +`)}catch{}if(e.ProgramFiles){n=n+` + +Program files: ${JSON.stringify(e.ProgramFiles)} +`+` + +Projects:: +`;let t=0;r=e=>{n=(n+=` +Project '${e.projectName}' (${A1e[e.projectKind]}) ${t} +`)+e.filesToString(!0)+"\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(r),this.projectService.configuredProjects.forEach(r),this.projectService.inferredProjects.forEach(r)}}this.logger.msg(n,"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: "+uW(e))}writeMessage(e){e=ive(e,this.logger,this.byteLength,this.host.newLine);null!=er&&er.logEvent("Response message size: "+e.length),this.host.write(e)}event(e,t){this.send(ove(t,e))}doOutput(n,i,e,t,r){i={seq:0,type:"response",command:i,request_seq:e,success:t,performanceData:this.performanceData};if(t){let r;if(i3(n))i.body=n,r=n.metadata,delete n.metadata;else if("object"==typeof n)if(n.metadata){let{metadata:e,...t}=n;i.body=t,r=e}else i.body=n;else i.body=n;r&&(i.metadata=r)}else Y4.assert(void 0===n);r&&(i.message=r),this.send(i)}semanticCheck(e,t){null!=Z4&&Z4.push(Z4.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});var r=Yye(t,e)?Z0e:t.getLanguageService().getSemanticDiagnostics(e).filter(e=>!!e.file);this.sendDiagnosticsEvent(e,t,r,"semanticDiag"),null!=Z4&&Z4.pop()}syntacticCheck(e,t){null!=Z4&&Z4.push(Z4.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag"),null!=Z4&&Z4.pop()}suggestionCheck(e,t){null!=Z4&&Z4.push(Z4.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag"),null!=Z4&&Z4.pop()}sendDiagnosticsEvent(t,r,e,n){try{this.event({file:t,diagnostics:e.map(e=>Zye(t,r,e))},n)}catch(e){this.logError(e,n)}}updateErrorCheck(n,e,t,i=!0){Y4.assert(!this.suppressDiagnosticEvents);let a=this.changeSeq,r=Math.min(t,200),o=0,s=()=>{o++,e.length>o&&n.delay("checkOne",r,c)},c=()=>{if(this.changeSeq===a){let r=e[o];if(a3(r)&&!(r=this.toPendingErrorCheck(r)))s();else{let{fileName:e,project:t}=r;jye(t),t.containsFile(e,i)&&(this.syntacticCheck(e,t),this.changeSeq===a)&&(0!==t.projectService.serverMode?s():n.immediate("semanticCheck",()=>{this.semanticCheck(e,t),this.changeSeq===a&&(this.getPreferences(e).disableSuggestions?s():n.immediate("suggestionCheck",()=>{this.suggestionCheck(e,t),s()}))}))}}};e.length>o&&this.changeSeq===a&&n.delay("checkOne",t,c)}cleanProjects(e,t){if(t){this.logger.info("cleaning "+e);for(var r of t)r.getLanguageService(!1).cleanupSemanticCache(),r.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",ZT(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e);return r.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){var{file:t,project:r}=this.getFileAndProject(e),n="2020"===e.format?"2020":"original";return r.getLanguageService().getEncodedSemanticClassifications(t,e,n)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){var t=this.getProject(e.projectFileName),e=r1e(e.file);return{configFile:t&&t.hasConfigFile(e)?e:void 0,project:t}}getConfigFileDiagnostics(t,e,r){e=NT(LT(e.getAllProjectErrors(),e.getLanguageService().getCompilerOptionsDiagnostics()),e=>!!e.file&&e.file.fileName===t);return r?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(e):$4(e,e=>rve(e,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map(e=>({message:lJ(e.messageText,this.host.newLine),start:e.start,length:e.length,category:Fn(e),code:e.code,source:e.source,startLocation:e.file&&tve(O3(e.file,e.start)),endLocation:e.file&&tve(O3(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:$4(e.relatedInformation,eve)}))}getCompilerOptionsDiagnostics(e){e=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(NT(e.getLanguageService().getCompilerOptionsDiagnostics(),e=>!e.file),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map(e=>({message:lJ(e.messageText,this.host.newLine),start:e.start,length:e.length,category:Fn(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:$4(e.relatedInformation,eve)}))}getDiagnosticsWorker(e,t,r,n){let{project:i,file:a}=this.getFileAndProject(e);return t&&Yye(i,a)?Z0e:(e=i.getScriptInfoForNormalizedPath(a),t=r(i,a),n?this.convertToDiagnosticsWithLinePosition(t,e):t.map(e=>Zye(a,i,e)))}getDefinition(e,t){var{file:r,project:n}=this.getFileAndProject(e),e=this.getPositionInFile(e,r),r=this.mapDefinitionInfoLocations(n.getLanguageService().getDefinitionAtPosition(r,e)||Z0e,n);return t?this.mapDefinitionInfo(r,n):r.map(Hve.mapToOriginalLocation)}mapDefinitionInfoLocations(e,r){return e.map(e=>{var t=fve(e,r);return t?{...t,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e})}getDefinitionAndBoundSpan(e,t){var{file:r,project:n}=this.getFileAndProject(e),e=this.getPositionInFile(e,r),i=Y4.checkDefined(n.getScriptInfo(r)),r=n.getLanguageService().getDefinitionAndBoundSpan(r,e);return r&&r.definitions?(e=this.mapDefinitionInfoLocations(r.definitions,n),r=r["textSpan"],t?{definitions:this.mapDefinitionInfo(e,n),textSpan:yve(r,i)}:{definitions:e.map(Hve.mapToOriginalLocation),textSpan:r}):{definitions:Z0e,textSpan:void 0}}findSourceDefinition(e){let r,{file:i,project:c}=this.getFileAndProject(e),a=this.getPositionInFile(e,i);e=c.getLanguageService().getDefinitionAtPosition(i,a);let n=this.mapDefinitionInfoLocations(e||Z0e,c).slice();if(0===this.projectService.serverMode&&(!X4(n,e=>r1e(e.fileName)!==i&&!e.isAmbient)||X4(n,e=>!!e.failedAliasResolution))){let t=oe(e=>e.textSpan.start,bG(this.host.useCaseSensitiveFileNames));null!=n&&n.forEach(e=>t.add(e));var o=c.getNoDtsResolutionProject(i),s=o.getLanguageService(),e=null==(r=s.getDefinitionAtPosition(i,a,!0,!1))?void 0:r.filter(e=>r1e(e.fileName)!==i);if(X4(e))for(var l of e){if(l.unverified){var _=function(e,t,r){e=r.getSourceFile(e.fileName);if(e){var n=XH(t.getSourceFile(i),a),t=t.getTypeChecker().getSymbolAtLocation(n),n=t&&F7(t,276);if(n)return g((null==(t=n.propertyName)?void 0:t.text)||n.name.text,e,r)}}(l,c.getLanguageService().getProgram(),s.getProgram());if(X4(_)){for(var u of _)t.add(u);continue}}t.add(l)}else{var d,e=n.filter(e=>r1e(e.fileName)!==i&&e.isAmbient);for(d of X4(e)?e:function(){let t=c.getLanguageService(),e=t.getProgram(),r=XH(e.getSourceFile(i),a);if((k7(r)||uT(r))&&lD(r.parent))return uf(r,e=>{return e!==r&&X4(e=null==(e=t.getDefinitionAtPosition(i,e.getStart(),!0,!1))?void 0:e.filter(e=>r1e(e.fileName)!==i&&e.isAmbient).map(e=>({fileName:e.fileName,name:Kw(r)})))?e:void 0})||Z0e;return Z0e}()){var p=function(e,r,n){var i=dg(e);if(i&&e.lastIndexOf(fO)===i.topLevelNodeModulesIndex){var a=e.substring(0,i.packageRootIndex),o=null==(o=c.getModuleResolutionCache())?void 0:o.getPackageJsonInfoCache(),s=c.getCompilationSettings(),a=DO(P3(a+"/package.json",c.getCurrentDirectory()),NO(o,c,s));if(!a)return;var o=wO(a,{moduleResolution:2},c,c.getModuleResolutionCache()),s=$O(XO(e.substring(i.topLevelPackageNameIndex+1,i.packageRootIndex)));let t=c.toPath(e);return o&&X4(o,e=>c.toPath(e)===t)?null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(s,r).resolvedModule)?void 0:a.resolvedFileName:(o=e.substring(i.packageRootIndex+1),a=s+"/"+qm(o),null==(e=n.resolutionCache.resolveSingleModuleNameWithoutWatching(a,r).resolvedModule)?void 0:e.resolvedFileName)}}(d.fileName,i,o);if(p){var f=this.projectService.getOrCreateScriptInfoNotOpenedByClient(p,o.currentDirectory,o.directoryStructureHost,!1);if(f){o.containsScriptInfo(f)||(o.addRoot(f),o.updateGraph());var m,f=s.getProgram(),p=Y4.checkDefined(f.getSourceFile(p));for(m of g(d.name,p,f))t.add(m)}}}}n=ZT(t.values())}return n=n.filter(e=>!e.isAmbient&&!e.failedAliasResolution),this.mapDefinitionInfo(n,c);function g(e,t,r){return AT(ope.Core.getTopMostDeclarationNamesInFile(e,t),e=>{var t=r.getTypeChecker().getSymbolAtLocation(e),e=Su(e);if(t&&e)return mfe.createDefinitionInfo(e,r.getTypeChecker(),t,e,!0)})}}getEmitOutput(e){var{file:t,project:r}=this.getFileAndProject(e);return r.shouldEmitFile(r.getScriptInfo(t))?(r=r.getLanguageService().getEmitOutput(t),e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map(e=>rve(e,!0))}:r):{emitSkipped:!0,outputFiles:[],diagnostics:[]}}mapJSDocTagInfo(e,t,r){return e?e.map(e=>{return{...e,text:r?this.mapDisplayParts(e.text,t):null==(e=e.text)?void 0:e.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,r){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,r)}))}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?(Y4.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,r){var r=r.getLanguageService(),n=r.toLineColumnOffset(e,t.start),r=r.toLineColumnOffset(e,J3(t));return{file:e,start:{line:n.line+1,offset:n.character+1},end:{line:r.line+1,offset:r.character+1}}}toFileSpanWithContext(e,t,r,n){t=this.toFileSpan(e,t,n),e=r&&this.toFileSpan(e,r,n);return e?{...t,contextStart:e.start,contextEnd:e.end}:t}getTypeDefinition(e){var{file:t,project:r}=this.getFileAndProject(e),e=this.getPositionInFile(e,t),t=this.mapDefinitionInfoLocations(r.getLanguageService().getTypeDefinitionAtPosition(t,e)||Z0e,r);return this.mapDefinitionInfo(t,r)}mapImplementationLocations(e,r){return e.map(e=>{var t=fve(e,r);return t?{...t,kind:e.kind,displayParts:e.displayParts}:e})}getImplementation(e,t){let{file:r,project:n}=this.getFileAndProject(e);e=this.getPositionInFile(e,r),e=this.mapImplementationLocations(n.getLanguageService().getImplementationAtPosition(r,e)||Z0e,n);return t?e.map(({fileName:e,textSpan:t,contextSpan:r})=>this.toFileSpanWithContext(e,t,r,n)):e.map(Hve.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){var t=this.getConfigFileAndProject(e)["configFile"];return t?Z0e:this.getDiagnosticsWorker(e,!1,(e,t)=>e.getLanguageService().getSyntacticDiagnostics(t),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){var{configFile:t,project:r}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,r,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter(e=>!!e.file),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){var t=this.getConfigFileAndProject(e)["configFile"];return t?Z0e:this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSuggestionDiagnostics(t),!!e.includeLinePosition)}getJsxClosingTag(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),e=this.getPositionInFile(e,t),r=r.getJsxClosingTagAtPosition(t,e);return void 0===r?void 0:{newText:r.newText,caretOffset:0}}getLinkedEditingRange(e){var t,{file:r,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),e=this.getPositionInFile(e,r),n=n.getLinkedEditingRangeAtPosition(r,e),e=this.projectService.getScriptInfoForNormalizedPath(r);if(void 0!==e&&void 0!==n)return t=e,e=(r=n).ranges.map(e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)})),r.wordPattern?{ranges:e,wordPattern:r.wordPattern}:{ranges:e}}getDocumentHighlights(e,t){let{file:r,project:i}=this.getFileAndProject(e);var n=this.getPositionInFile(e,r),n=i.getLanguageService().getDocumentHighlights(r,n,e.filesToSearch);return n?t?n.map(({fileName:e,highlightSpans:t})=>{let n=i.getScriptInfo(e);return{file:e,highlightSpans:t.map(({textSpan:e,kind:t,contextSpan:r})=>({...vve(e,r,n),kind:t}))}}):n:Z0e}provideInlayHints(e){var{file:t,project:r}=this.getFileAndProject(e);let n=this.projectService.getScriptInfoForNormalizedPath(t);return r.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map(e=>{var{position:t,displayParts:r}=e;return{...e,position:n.positionToLineOffset(t),displayParts:null==r?void 0:r.map(({text:e,span:t,file:r})=>{var n;return t?(Y4.assertIsDefined(r,"Target file should be defined together with its span."),{text:e,span:{start:(n=this.projectService.getScriptInfo(r)).positionToLineOffset(t.start),end:n.positionToLineOffset(t.start+t.length),file:r}}):{text:e}})}})}mapCode(e){var t=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e);let a=this.projectService.getScriptInfoForNormalizedPath(n);var o=null==(o=e.mapping.focusLocations)?void 0:o.map(e=>e.map(e=>{var t=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-t}})),i=i.mapCode(n,e.mapping.contents,o,t,r);return this.mapTextChangesToCodeEdits(i)}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,!1)}getProjectInfoWorker(e,t,r,n){e=this.getFileAndProjectWorker(e,t).project,jye(e),t={configFileName:e.getProjectName(),languageServiceDisabled:!e.languageServiceEnabled,fileNames:r?e.getFileNames(!1,n):void 0};return t}getRenameInfo(e){var{file:t,project:r}=this.getFileAndProject(e),e=this.getPositionInFile(e,t),n=this.getPreferences(t);return r.getLanguageService().getRenameInfo(t,e,n)}getProjects(e,t,r){let n,i;if(e.projectFileName){var a=this.getProject(e.projectFileName);a&&(n=[a])}else{a=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!a)return r?Z0e:(this.projectService.logErrorForScriptInfoNotFound(e.file),Q0e.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(a),n=a.containingProjects,i=this.projectService.getSymlinkedProjects(a)}return n=NT(n,e=>e.languageServiceEnabled&&!e.isOrphan()),r||n&&n.length||i?i?{projects:n,symLinkedProjects:i}:n:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),Q0e.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){var t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return Q0e.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){var r=r1e(e.file),n=this.getPositionInFile(e,r),i=this.getProjects(e),a=this.getDefaultProject(e),o=this.getPreferences(r),r=this.mapRenameInfo(a.getLanguageService().getRenameInfo(r,n,o),Y4.checkDefined(this.projectService.getScriptInfo(r)));return r.canRename?(i=function(e,t,r,n,i,a,o){if(i3(e=_ve(e,t,r,!0,(e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,n,i,a),(e,t)=>t(dve(e)))))return e;let s=[],c=sve(o);return e.forEach((e,t)=>{for(var r of e)c.has(r)||pve(dve(r),t)||(s.push(r),c.add(r))}),s}(i,a,{fileName:e.file,pos:n},!!e.findInStrings,!!e.findInComments,o,this.host.useCaseSensitiveFileNames),t?{info:r,locs:this.toSpanGroups(i)}:i):t?{info:r,locs:[]}:[]}mapRenameInfo(e,t){var r,n,i,a,o,s,c;return e.canRename?({canRename:r,fileToRename:n,displayName:i,fullDisplayName:a,kind:o,kindModifiers:s,triggerSpan:c}=e,{canRename:r,fileToRename:n,displayName:i,fullDisplayName:a,kind:o,kindModifiers:s,triggerSpan:yve(c,t)}):e}toSpanGroups(e){var t,r,n,i,a,o,s,c=new Map;for({fileName:t,textSpan:r,contextSpan:n,originalContextSpan:i,originalTextSpan:a,originalFileName:o,...s}of e){let e=c.get(t);e||c.set(t,e={file:t,locs:[]});var l=Y4.checkDefined(this.projectService.getScriptInfo(t));e.locs.push({...vve(r,n,l),...s})}return ZT(c.values())}getReferences(e,t){var r=r1e(e.file),n=this.getProjects(e),i=this.getPositionInFile(e,r),n=cve(n,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return n;let a=this.getPreferences(r);t=this.getDefaultProject(e),e=t.getScriptInfoForNormalizedPath(r),t=t.getLanguageService().getQuickInfoAtPosition(r,i),r=t?Ire(t.displayParts):"",i=t&&t.textSpan,t=i?e.positionToLineOffset(i.start).offset:0,e=i?e.getSnapshot().getText(i.start,J3(i)):"";return{refs:FT(n,e=>e.references.map(e=>Sve(this.projectService,e,a))),symbolName:e,symbolStartOffset:t,symbolDisplayString:r}}getFileReferences(e,t){var r=this.getProjects(e);let n=e.file,i=this.getPreferences(r1e(n)),a=[],o=sve(this.host.useCaseSensitiveFileNames);return lve(r,void 0,e=>{if(!e.getCancellationToken().isCancellationRequested()){e=e.getLanguageService().getFileReferences(n);if(e)for(var t of e)o.has(t)||(a.push(t),o.add(t))}}),t?{refs:a.map(e=>Sve(this.projectService,e,i)),symbolName:`"${e.file}"`}:a}openClientFile(e,t,r,n){this.projectService.openClientFileWithNormalizedPath(e,t,r,!1,n)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){t=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,t)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){var{file:e,project:t}=this.getFileAndProject(e);return{file:e,languageService:t.getLanguageService(!1)}}getFileAndProjectWorker(e,t){e=r1e(e);return{file:e,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(e)}}getOutliningSpans(e,t){var{file:e,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=r.getOutliningSpans(e);if(t){let t=this.projectService.getScriptInfoForNormalizedPath(e);return r.map(e=>({textSpan:yve(e.textSpan,t),hintSpan:yve(e.hintSpan,t),bannerText:e.bannerText,autoCollapse:e.autoCollapse,kind:e.kind}))}return r}getTodoComments(e){var{file:t,project:r}=this.getFileAndProject(e);return r.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),e=this.getPositionInFile(e,t);return r.getDocCommentTemplateAtPosition(t,e,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),n=e.onlyMultiLine,e=this.getPositionInFile(e,t);return r.getSpanOfEnclosingComment(t,e,n)}getIndentation(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),n=this.getPositionInFile(e,t),e=e.options?mye(e.options):this.getFormatOptions(t);return{position:n,indentation:r.getIndentationAtPosition(t,n,e)}}getBreakpointStatement(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),e=this.getPositionInFile(e,t);return r.getBreakpointStatementAtPosition(t,e)}getNameOrDottedNameSpan(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),e=this.getPositionInFile(e,t);return r.getNameOrDottedNameSpan(t,e,e)}isValidBraceCompletion(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),n=this.getPositionInFile(e,t);return r.isValidBraceCompletionAtPosition(t,n,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){var{file:r,project:n}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(r),e=n.getLanguageService().getQuickInfoAtPosition(r,this.getPosition(e,i));if(e)return r=!!this.getPreferences(r).displayPartsForJSDoc,t?(t=Ire(e.displayParts),{kind:e.kind,kindModifiers:e.kindModifiers,start:i.positionToLineOffset(e.textSpan.start),end:i.positionToLineOffset(J3(e.textSpan)),displayString:t,documentation:r?this.mapDisplayParts(e.documentation,n):Ire(e.documentation),tags:this.mapJSDocTagInfo(e.tags,n,r)}):r?e:{...e,tags:this.mapJSDocTagInfo(e.tags,n,!1)}}getFormattingEditsForRange(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e);let n=this.projectService.getScriptInfoForNormalizedPath(t);var i=n.lineOffsetToPosition(e.line,e.offset),e=n.lineOffsetToPosition(e.endLine,e.endOffset),r=r.getFormattingEditsForRange(t,i,e,this.getFormatOptions(t));if(r)return r.map(e=>this.convertTextChangeToCodeEdit(e,n))}getFormattingEditsForRangeFull(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),n=e.options?mye(e.options):this.getFormatOptions(t);return r.getFormattingEditsForRange(t,e.position,e.endPosition,n)}getFormattingEditsForDocumentFull(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),e=e.options?mye(e.options):this.getFormatOptions(t);return r.getFormattingEditsForDocument(t,e)}getFormattingEditsAfterKeystrokeFull(e){var{file:t,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),n=e.options?mye(e.options):this.getFormatOptions(t);return r.getFormattingEditsAfterKeystroke(t,e.position,e.key,n)}getFormattingEditsAfterKeystroke(n){var{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(n);let t=this.projectService.getScriptInfoForNormalizedPath(i);var r,o=t.lineOffsetToPosition(n.line,n.offset),s=this.getFormatOptions(i),c=a.getFormattingEditsAfterKeystroke(i,o,n.key,s);if("\n"===n.key&&(!c||0===c.length||(r=o,c.every(e=>J3(e.span)({start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(J3(e.span)),newText:e.newText||""}))}getCompletions(e,t){var{file:r,project:n}=this.getFileAndProject(e);let h=this.projectService.getScriptInfoForNormalizedPath(r);var i=this.getPosition(e,h);let y=n.getLanguageService().getCompletionsAtPosition(r,i,{...xye(this.getPreferences(r)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},n.projectService.getFormatCodeOptions(r));if(void 0!==y){if("completions-full"===t)return y;let g=e.prefix||"";i=AT(y.entries,e=>{var t,r,n,i,a,o,s,c,l,_,u,d,p,f,m;if(y.isMemberCompletion||f3(e.name.toLowerCase(),g.toLowerCase()))return{name:e,kind:t,kindModifiers:r,sortText:n,insertText:i,filterText:a,replacementSpan:o,hasAction:s,source:c,sourceDisplay:l,labelDetails:_,isSnippet:u,isRecommended:d,isPackageJsonImport:p,isImportStatementCompletion:f,data:m}=e,{name:e,kind:t,kindModifiers:r,sortText:n,insertText:i,filterText:a,replacementSpan:o?yve(o,h):void 0,isSnippet:u,hasAction:s||void 0,source:c,sourceDisplay:l,labelDetails:_,isRecommended:d,isPackageJsonImport:p,isImportStatementCompletion:f,data:m}});return"completions"===t?(y.metadata&&(i.metadata=y.metadata),i):{...y,optionalReplacementSpan:y.optionalReplacementSpan&&yve(y.optionalReplacementSpan,h),entries:i}}}getCompletionEntryDetails(e,t){let{file:n,project:i}=this.getFileAndProject(e);var r=this.projectService.getScriptInfoForNormalizedPath(n);let a=this.getPosition(e,r),o=i.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc;r=AT(e.entryNames,e=>{var{name:e,source:t,data:r}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return i.getLanguageService().getCompletionEntryDetails(n,a,e,o,t,this.getPreferences(n),r?s3(r,kve):void 0)});return t?s?r:r.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,i,!1)})):r.map(e=>({...e,codeActions:$4(e.codeActions,e=>this.mapCodeAction(e)),documentation:this.mapDisplayParts(e.documentation,i),tags:this.mapJSDocTagInfo(e.tags,i,s)}))}getCompileOnSaveAffectedFileList(e){var t=this.getProjects(e,!0,!0),e=this.projectService.getScriptInfo(e.file);if(e){var r=e;var i=e=>this.projectService.getScriptInfoForPath(e);e=t;var a=(e,t)=>{if(e.compileOnSaveEnabled&&e.languageServiceEnabled&&!e.isOrphan()){var r,n=e.getCompilationSettings();if(!n.noEmit&&(!x9(t.fileName)||wD(r=n)||r.emitDecoratorMetadata))return{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}}};let n=y(i3(e)?e:e.projects,e=>a(e,r));return!i3(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((e,t)=>{let r=i(t);n.push(...FT(e,e=>a(e,r)))}),RT(n,c3)}return Z0e}emitFile(e){var{file:t,project:r}=this.getFileAndProject(e);return r||Q0e.ThrowNoProject(),r.languageServiceEnabled?(t=r.getScriptInfo(t),{emitSkipped:r,diagnostics:t}=r.emitFile(t,(e,t,r)=>this.host.writeFile(e,t,r)),e.richResponse?{emitSkipped:r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(t):t.map(e=>rve(e,!0))}:!r):!!e.richResponse&&{emitSkipped:!0,diagnostics:[]}}getSignatureHelpItems(e,t){let{file:r,project:n}=this.getFileAndProject(e);var i=this.projectService.getScriptInfoForNormalizedPath(r),a=this.getPosition(e,i),a=n.getLanguageService().getSignatureHelpItems(r,a,e),e=!!this.getPreferences(r).displayPartsForJSDoc;return a&&t?(t=a.applicableSpan,{...a,applicableSpan:{start:i.positionToLineOffset(t.start),end:i.positionToLineOffset(t.start+t.length)},items:this.mapSignatureHelpItems(a.items,n,e)}):e||!a?a:{...a,items:a.items.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,n,!1)}))}}toPendingErrorCheck(e){var e=r1e(e),t=this.projectService.tryGetDefaultProjectForFile(e);return t&&{fileName:e,project:t}}getDiagnostics(e,t,r){this.suppressDiagnosticEvents||0({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>yve(e,t)),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent}))}getNavigationBarItems(e,t){var{file:e,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=r.getNavigationBarItems(e);return r?t?this.mapLocationNavigationBarItems(r,this.projectService.getScriptInfoForNormalizedPath(e)):r:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>yve(e,t)),nameSpan:e.nameSpan&&yve(e.nameSpan,t),childItems:$4(e.childItems,e=>this.toLocationNavigationTree(e,t))}}getNavigationTree(e,t){var{file:e,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=r.getNavigationTree(e);return r?t?this.toLocationNavigationTree(r,this.projectService.getScriptInfoForNormalizedPath(e)):r:void 0}getNavigateToItems(e,t){e=this.getFullNavigateToItems(e);return FT(e,t?({project:r,navigateToItems:e})=>e.map(e=>{var t=r.getScriptInfo(e.fileName),t={name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,isCaseSensitive:e.isCaseSensitive,matchKind:e.matchKind,file:e.fileName,start:t.positionToLineOffset(e.textSpan.start),end:t.positionToLineOffset(J3(e.textSpan))};return e.kindModifiers&&""!==e.kindModifiers&&(t.kindModifiers=e.kindModifiers),e.containerName&&0e)}getFullNavigateToItems(e){let{currentFileOnly:t,searchValue:r,maxResultCount:n,projectFileName:i}=e;var a,o;if(t)return Y4.assertIsDefined(e.file),{file:a,project:o}=this.getFileAndProject(e),[{project:o,navigateToItems:o.getLanguageService().getNavigateToItems(r,n,a)}];let s=this.getHostPreferences(),c=[],l=new Map;return e.file||i?lve(this.getProjects(e),void 0,e=>_(e)):(this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>_(e))),c;function _(t){var e=NT(t.getLanguageService().getNavigateToItems(r,n,void 0,t.isNonTsProject(),s.excludeLibrarySymbolsInNavTo),e=>function(e){var t=e.name;if(l.has(t)){var r,n=l.get(t);for(r of n)if(function(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}(r,e))return!1;n.push(e)}else l.set(t,[e]);return!0}(e)&&!pve(dve(e),t));e.length&&c.push({project:t,navigateToItems:e})}}getSupportedCodeFixes(e){var t,r;return e?e.file?({file:t,project:r}=this.getFileAndProject(e),r.getLanguageService().getSupportedCodeFixes(t)):((r=this.getProject(e.projectFileName))||Q0e.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()):Lre()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let r,n;var i;return this.isLocation(e)?r=void 0!==(i=e).position?i.position:t.lineOffsetToPosition(i.line,i.offset):n=this.getRange(e,t),Y4.checkDefined(void 0===r?n:r)}getRange(e,t){var{startPosition:e,endPosition:t}=this.getStartAndEndPosition(e,t);return{pos:e,end:t}}getApplicableRefactors(e){var{file:t,project:r}=this.getFileAndProject(e),n=r.getScriptInfoForNormalizedPath(t);return r.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,n),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map(e=>({...e,actions:e.actions.map(e=>({...e,range:e.range?{start:tve({line:e.range.start.line,character:e.range.start.offset}),end:tve({line:e.range.end.line,character:e.range.end.offset})}:void 0}))}))}getEditsForRefactor(t,r){var{file:n,project:i}=this.getFileAndProject(t),a=i.getScriptInfoForNormalizedPath(n),a=i.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(t,a),t.refactor,t.action,this.getPreferences(n),t.interactiveRefactorArguments);if(void 0===a)return{edits:[]};if(r){var{renameFilename:n,renameLocation:t,edits:r}=a;let e;return void 0!==n&&void 0!==t&&(i=i.getScriptInfoForNormalizedPath(r1e(n)),e=xve(KK(i.getSnapshot()),n,t,r)),{renameLocation:e,renameFilename:n,edits:this.mapTextChangesToCodeEdits(r),notApplicableReason:a.notApplicableReason}}return a}getMoveToRefactoringFileSuggestions(e){var{file:t,project:r}=this.getFileAndProject(e),n=r.getScriptInfoForNormalizedPath(t);return r.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,n),this.getPreferences(t))}getPasteEdits(t){let{file:r,project:n}=this.getFileAndProject(t);var e=t.copiedFrom?{file:t.copiedFrom.file,range:t.copiedFrom.spans.map(e=>this.getRange({file:t.copiedFrom.file,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(r1e(t.copiedFrom.file))))}:void 0,e=n.getLanguageService().getPasteEdits({targetFile:r,pastedText:t.pastedText,pasteLocations:t.pasteLocations.map(e=>this.getRange({file:r,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(r))),copiedFrom:e,preferences:this.getPreferences(r)},this.getFormatOptions(r));return e&&this.mapPasteEditsAction(e)}organizeImports(e,t){Y4.assert("file"===e.scope.type);var{file:r,project:n}=this.getFileAndProject(e.scope.args),n=n.getLanguageService().organizeImports({fileName:r,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(r),this.getPreferences(r));return t?this.mapTextChangesToCodeEdits(n):n}getEditsForFileRename(e,t){let i=r1e(e.oldFilePath),a=r1e(e.newFilePath),o=this.getHostFormatOptions(),s=this.getHostPreferences(),c=new Set,l=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>{var t,r,n=[];for(t of e.getLanguageService().getEditsForFileRename(i,a,o,s))c.has(t.fileName)||(l.push(t),n.push(t.fileName));for(r of n)c.add(r)}),t?l.map(e=>this.mapTextChangeToCodeEdit(e)):l}getCodeFixes(r,e){var{file:n,project:i}=this.getFileAndProject(r),a=i.getScriptInfoForNormalizedPath(n);let{startPosition:o,endPosition:s}=this.getStartAndEndPosition(r,a),t;try{t=i.getLanguageService().getCodeFixesAtPosition(n,o,s,r.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(e){a=i.getLanguageService();let t=[...a.getSyntacticDiagnostics(n),...a.getSemanticDiagnostics(n),...a.getSuggestionDiagnostics(n)].map(e=>Go(o,s-o,e.start,e.length)&&e.code);i=r.errorCodes.find(e=>!t.includes(e));throw void 0!==i&&(e.message=`BADCLIENT: Bad error code, ${i} not found in range ${o}..${s} (found: ${t.join(", ")}); could have caused this error: +`+e.message),e}return e?t.map(e=>this.mapCodeFixAction(e)):t}getCombinedCodeFix({scope:e,fixId:t},r){Y4.assert("file"===e.type);var{file:e,project:n}=this.getFileAndProject(e.args),n=n.getLanguageService().getCombinedCodeFix({type:"file",fileName:e},t,this.getFormatOptions(e),this.getPreferences(e));return r?{changes:this.mapTextChangesToCodeEdits(n.changes),commands:n.commands}:n}applyCodeActionCommand(e){var t;for(t of se(e.command)){var{file:r,project:n}=this.getFileAndProject(t);n.getLanguageService().applyCodeActionCommand(t,this.getFormatOptions(r)).then(e=>{},e=>{})}return{}}getStartAndEndPosition(e,t){let r,n;return void 0!==e.startPosition?r=e.startPosition:(r=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=r),void 0!==e.endPosition?n=e.endPosition:(n=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=n),{startPosition:r,endPosition:n}}mapCodeAction({description:e,changes:t,commands:r}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:r}}mapCodeFixAction({fixName:e,description:t,changes:r,commands:n,fixId:i,fixAllDescription:a}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(r),commands:n,fixId:i,fixAllDescription:a}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map(e=>this.mapTextChangeToCodeEdit(e))}mapTextChangeToCodeEdit(e){let r=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(e.fileName),Y4.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!r}))),r?{fileName:e.fileName,textChanges:e.textChanges.map(e=>{return e=e,{start:bve(t=r,e.span.start),end:bve(t,J3(e.span)),newText:e.newText};var t})}:(e=e,Y4.assert(1===e.textChanges.length),t=WT(e.textChanges),Y4.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}]});var t}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText||""}}getBraceMatching(e,t){var{file:r,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);let i=this.projectService.getScriptInfoForNormalizedPath(r);e=this.getPosition(e,i),n=n.getBraceMatchingAtPosition(r,e);return n?t?n.map(e=>yve(e,i)):n:void 0}getDiagnosticsForProject(e,r,n){if(!this.suppressDiagnosticEvents){var{fileNames:i,languageServiceDisabled:a}=this.getProjectInfoWorker(n,void 0,!0,!0);if(!a){a=i.filter(e=>!e.includes("lib.d.ts"));if(0!==a.length){var o,s=[],c=[],l=[],_=[],i=r1e(n);let t=this.projectService.ensureDefaultProjectForFile(i);for(o of a)(this.getCanonicalFileName(o)===this.getCanonicalFileName(n)?s:this.projectService.getScriptInfo(o).isScriptOpen()?c:x9(o)?_:l).push(o);i=[...s,...c,...l,..._].map(e=>({fileName:e,project:t}));this.updateErrorCheck(e,i,r,!1)}}}}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){var r=e["locations"];let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=Y4.checkDefined(this.projectService.getScriptInfo(n));return $4(r,e=>{e=this.getPosition(e,a),e=i.getSmartSelectionRange(n,e);return t?this.mapSelectionRange(e,a):e})}toggleLineComment(e,t){var{file:r,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(r),e=this.getRange(e,i),i=n.toggleLineComment(r,e);if(t){let t=this.projectService.getScriptInfoForNormalizedPath(r);return i.map(e=>this.convertTextChangeToCodeEdit(e,t))}return i}toggleMultilineComment(e,t){var{file:r,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(r),e=this.getRange(e,i),i=n.toggleMultilineComment(r,e);if(t){let t=this.projectService.getScriptInfoForNormalizedPath(r);return i.map(e=>this.convertTextChangeToCodeEdit(e,t))}return i}commentSelection(e,t){var{file:r,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(r),e=this.getRange(e,i),i=n.commentSelection(r,e);if(t){let t=this.projectService.getScriptInfoForNormalizedPath(r);return i.map(e=>this.convertTextChangeToCodeEdit(e,t))}return i}uncommentSelection(e,t){var{file:r,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(r),e=this.getRange(e,i),i=n.uncommentSelection(r,e);if(t){let t=this.projectService.getScriptInfoForNormalizedPath(r);return i.map(e=>this.convertTextChangeToCodeEdit(e,t))}return i}mapSelectionRange(e,t){var r={textSpan:yve(e.textSpan,t)};return e.parent&&(r.parent=this.mapSelectionRange(e.parent,t)),r}getScriptInfoFromProjectService(e){var e=r1e(e),t=this.projectService.getScriptInfoForNormalizedPath(e);return t||(this.projectService.logErrorForScriptInfoNotFound(e),Q0e.ThrowNoProject())}toProtocolCallHierarchyItem(e){var t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:yve(e.span,t),selectionSpan:yve(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){let t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map(e=>yve(e,t))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map(e=>yve(e,t))}}prepareCallHierarchy(e){var{file:t,project:r}=this.getFileAndProject(e),n=this.projectService.getScriptInfoForNormalizedPath(t);if(n)return e=this.getPosition(e,n),(n=r.getLanguageService().prepareCallHierarchy(t,e))&&tX(n,e=>this.toProtocolCallHierarchyItem(e))}provideCallHierarchyIncomingCalls(e){var{file:t,project:r}=this.getFileAndProject(e),n=this.getScriptInfoFromProjectService(t);return r.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,n)).map(e=>this.toProtocolCallHierarchyIncomingCall(e))}provideCallHierarchyOutgoingCalls(e){var{file:t,project:r}=this.getFileAndProject(e);let n=this.getScriptInfoFromProjectService(t);return r.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,n)).map(e=>this.toProtocolCallHierarchyOutgoingCall(e,n))}getCanonicalFileName(e){return ua(this.host.useCaseSensitiveFileNames?e:br(e))}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(e){return{response:e,responseRequired:!0}}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){Y4.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){Y4.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t){try{return this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e)}}executeCommand(e){let t=this.handlers.get(e.command);var r;return t?(r=this.executeWithRequestId(e.seq,()=>t(e)),this.projectService.enableRequestedPlugins(),r):(this.logger.msg("Unrecognized JSON command:"+uW(e),"Err"),this.doOutput(void 0,"unknown",e.seq,!1,"Unrecognized JSON command: "+e.command),{responseRequired:!1})}onMessage(t){var e;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let r;this.logger.hasLevel(2)&&(r=this.hrtime(),this.logger.hasLevel(3))&&this.logger.info("request:"+_W(this.toStringMessage(t)));let n,i;try{n=this.parseMessage(t),i=n.arguments&&n.arguments.file?n.arguments:void 0,null!=Z4&&Z4.instant(Z4.Phase.Session,"request",{seq:n.seq,command:n.command}),null!=er&&er.logStartCommand(""+n.command,this.toStringMessage(t).substring(0,100)),null!=Z4&&Z4.push(Z4.Phase.Session,"executeCommand",{seq:n.seq,command:n.command},!0);var a,{response:o,responseRequired:s}=this.executeCommand(n);null!=Z4&&Z4.pop(),this.logger.hasLevel(2)&&(a=((1e9*(e=this.hrtime(r))[0]+e[1])/1e6).toFixed(4),s?this.logger.perftrc(`${n.seq}::${n.command}: elapsed time (in milliseconds) `+a):this.logger.perftrc(`${n.seq}::${n.command}: async elapsed time (in milliseconds) `+a)),null!=er&&er.logStopCommand(""+n.command,"Success"),null!=Z4&&Z4.instant(Z4.Phase.Session,"response",{seq:n.seq,command:n.command,success:!!o}),o?this.doOutput(o,n.command,n.seq,!0):s&&this.doOutput(void 0,n.command,n.seq,!1,"No content available.")}catch(e){null!=Z4&&Z4.popAll(),e instanceof Vr?(null!=er&&er.logStopCommand(""+(n&&n.command),"Canceled: "+e),null!=Z4&&Z4.instant(Z4.Phase.Session,"commandCanceled",{seq:null==n?void 0:n.seq,command:null==n?void 0:n.command}),this.doOutput({canceled:!0},n.command,n.seq,!0)):(this.logErrorWorker(e,this.toStringMessage(t),i),null!=er&&er.logStopCommand(""+(n&&n.command),"Error: "+e),null!=Z4&&Z4.instant(Z4.Phase.Session,"commandError",{seq:null==n?void 0:n.seq,command:null==n?void 0:n.command,message:e.message}),this.doOutput(void 0,n?n.command:"unknown",n?n.seq:0,!1,"Error processing request. "+e.message+"\n"+e.stack))}}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 yve(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(J3(e))}}function vve(e,t,r){e=yve(e,r),t=t&&yve(t,r);return t?{...e,contextStart:t.start,contextEnd:t.end}:e}function bve(e,t){return Kye(e)?{line:(r=e.getLineAndCharacterOfPosition(t)).line+1,offset:r.character+1}:e.positionToLineOffset(t);var r}function xve(e,t,r,n){var{line:e,character:t}=no(Za(function(t,e,r){for(var{fileName:n,textChanges:i}of r)if(n===e)for(let e=i.length-1;0<=e;e--){var{newText:a,span:{start:o,length:s}}=i[e];t=t.slice(0,o)+a+t.slice(o+s)}return t}(e,t,n)),r);return{line:e+1,offset:t+1}}function Sve(e,{fileName:t,textSpan:r,contextSpan:n,isWriteAccess:i,isDefinition:a},{disableLineTextInReferences:o}){e=Y4.checkDefined(e.getScriptInfo(t)),r=vve(r,n,e),n=o?void 0:function(e,t){t=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(t.start,J3(t)).replace(/\r|\n/g,"")}(e,r);return{file:t,...r,lineText:n,isWriteAccess:i,isDefinition:a}}function kve(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 Tve=(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))(Tve||{}),Cve=class{constructor(){this.goSubtree=!0,this.lineIndex=new Pve,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new Fve,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,i){i&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;var a=Pve.linesFromText(e).lines;1this.currentVersion))return e%Nve.maxVersions}currentVersionToIndex(){return this.currentVersion%Nve.maxVersions}edit(e,t,r){this.changes.push(new wve(e,t,r)),(this.changes.length>Nve.changeNumberThreshold||t>Nve.changeLengthThreshold||r&&r.length>Nve.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(0=Nve.maxVersions&&(this.minVersion=this.currentVersion-Nve.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){var t=this._getSnapshot().index,{lineText:r,absolutePosition:n}=t.lineNumberToInfo(e+1);return Qo(n,void 0!==r?r.length:t.absolutePositionOfStartOfLine(e+2)-n)}getTextChangesBetweenVersions(t,r){if(!(t=this.minVersion){var n,i=[];for(let e=t+1;e<=r;e++)for(n of this.versions[this.versionToIndex(e)].changesSincePreviousVersion)i.push(n.getTextChangeRange());return ns(i)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(e){var t=new Nve,r=new Eve(0,t,new Pve),e=(t.versions[t.currentVersion]=r,Pve.linesFromText(e));return r.index.load(e.lines),t}},Dve=(Nve.changeNumberThreshold=8,Nve.changeLengthThreshold=256,Nve.maxVersions=8,Nve),Eve=class Kve{constructor(e,t,r,n=Z0e){this.version=e,this.cache=t,this.index=r,this.changesSincePreviousVersion=n}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(e){if(e instanceof Kve&&this.cache===e.cache)return this.version<=e.version?rs:this.cache.getTextChangesBetweenVersions(e.version,this.version)}},Pve=class Gve{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){var{oneBasedLine:e,zeroBasedColumn:t}=this.root.charOffsetToLineInfo(1,e);return{line:e,offset:t+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){var t;return e<=this.getLineCount()?({position:e,leaf:t}=this.root.lineNumberToInfo(e,0),{absolutePosition:e,lineText:t&&t.text}):{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(0{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(n,e,t){t=t||this.root.charCount();var r={goSubtree:!0,done:!1,leaf(e,t,r){n(r,e,t)||(this.done=!0)}};return this.walk(e,t-e,r),!r.done}edit(r,n,i){if(0!==this.root.charCount()){let e;this.checkEdits&&(s=this.getText(0,this.root.charCount()),e=s.slice(0,r)+i+s.slice(r+n));var a,o,s=new Cve;let t=!1;return r>=this.root.charCount()?(r=this.root.charCount()-1,o=this.getText(r,1),i=i?o+i:o,n=0,t=!0):0=a;)this.skipChild(o,r,i,n,0),o-=a,i++,a=this.children[i].charCount();if(o+r<=a){if(this.execWalk(o,r,n,i,2))return}else{if(this.execWalk(o,a-o,n,i,1))return;let e=r-(a-o);i++;t=this.children[i];for(a=t.charCount();e>a;){if(this.execWalk(0,a,n,i,3))return;e-=a,i++,a=this.children[i].charCount()}if(0t)return r.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:r.text}:r.charOffsetToLineInfo(e,t);t-=r.charCount(),e+=r.lineCount()}var n=this.lineCount();return 0===n?{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0}:{oneBasedLine:n,zeroBasedColumn:Y4.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(var r of this.children){var n=r.lineCount();if(e<=n)return r.isLeaf()?{position:t,leaf:r}:r.lineNumberToInfo(e,t);e-=n,t+=r.charCount()}return{position:t,leaf:void 0}}splitAfter(e){let t;var r=this.children.length,n=++e;if(e{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})});return this.installer.send(e),t}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,r){e=t1e(e,t,r);this.logger.hasLevel(3)&&this.logger.info("TIAdapter:: Scheduling throttled operation:"+uW(e)),this.activeRequestCount{this.logger.hasLevel(3)&&this.logger.info("TIAdapter:: Sending request:"+uW(e)),this.installer.send(e)},Ive.requestDelayMillis,e.projectName+"::"+e.kind)}},Ove=(Ive.requestDelayMillis=100,Ive),Lve={};r(Lve,{ActionInvalidate:()=>ZV,ActionPackageInstalled:()=>eW,ActionSet:()=>YV,ActionWatchTypingLocations:()=>aW,Arguments:()=>XV,AutoImportProviderProject:()=>q1e,AuxiliaryProject:()=>J1e,CharRangeSection:()=>Tve,CloseFileWatcherEvent:()=>cye,CommandNames:()=>nve,ConfigFileDiagEvent:()=>rye,ConfiguredProject:()=>U1e,ConfiguredProjectLoadKind:()=>Dye,CreateDirectoryWatcherEvent:()=>sye,CreateFileWatcherEvent:()=>oye,Errors:()=>Q0e,EventBeginInstallTypes:()=>rW,EventEndInstallTypes:()=>nW,EventInitializationFailed:()=>iW,EventTypesRegistry:()=>tW,ExternalProject:()=>V1e,GcTimer:()=>d1e,InferredProject:()=>B1e,LargeFileReferencedEvent:()=>tye,LineIndex:()=>Pve,LineLeaf:()=>Ave,LineNode:()=>Fve,LogLevel:()=>Y0e,Msg:()=>e1e,OpenFileInfoTelemetryEvent:()=>aye,Project:()=>M1e,ProjectInfoTelemetryEvent:()=>iye,ProjectKind:()=>A1e,ProjectLanguageServiceStateEvent:()=>nye,ProjectLoadingFinishEvent:()=>eye,ProjectLoadingStartEvent:()=>Z1e,ProjectService:()=>Hye,ProjectsUpdatedInBackgroundEvent:()=>Y1e,ScriptInfo:()=>D1e,ScriptVersionCache:()=>Dve,Session:()=>hve,TextStorage:()=>w1e,ThrottledOperations:()=>u1e,TypingsCache:()=>F1e,TypingsInstallerAdapter:()=>Ove,allFilesAreJsOrDts:()=>L1e,allRootFilesAreJsOrDts:()=>O1e,asNormalizedPath:()=>i1e,convertCompilerOptions:()=>gye,convertFormatOptions:()=>mye,convertScriptKindName:()=>bye,convertTypeAcquisition:()=>yye,convertUserPreferences:()=>xye,convertWatchOptions:()=>hye,countEachFileTypes:()=>I1e,createInstallTypingsRequest:()=>t1e,createModuleSpecifierCache:()=>$ye,createNormalizedPathMap:()=>a1e,createPackageJsonCache:()=>Xye,createSortedArray:()=>_1e,emptyArray:()=>Z0e,findArgument:()=>sW,forEachResolvedProjectReferenceProject:()=>Eye,formatDiagnosticToProtocol:()=>rve,formatMessage:()=>ive,getBaseConfigFileName:()=>p1e,getLocationInNewDocument:()=>xve,hasArgument:()=>oW,hasNoTypeScriptSource:()=>j1e,indent:()=>_W,isBackgroundProject:()=>G1e,isConfigFile:()=>Kye,isConfiguredProject:()=>H1e,isDynamicFileName:()=>N1e,isExternalProject:()=>K1e,isInferredProject:()=>W1e,isInferredProjectName:()=>o1e,isProjectDeferredClose:()=>$1e,makeAutoImportProviderProjectName:()=>c1e,makeAuxiliaryProjectName:()=>l1e,makeInferredProjectName:()=>s1e,maxFileSize:()=>Q1e,maxProgramSizeForNonTsFiles:()=>X1e,normalizedPathToPath:()=>n1e,nowString:()=>cW,nullCancellationToken:()=>Qye,nullTypingsInstaller:()=>E1e,protocol:()=>m1e,removeSorted:()=>f1e,stringifyIndented:()=>uW,toEvent:()=>ove,toNormalizedPath:()=>r1e,tryConvertScriptKindName:()=>vye,typingsInstaller:()=>W0e,updateProjectIfDirty:()=>jye}),"undefined"!=typeof console&&(Y4.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)}}})}.call(this)}.call(this,t2e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t2e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/typescript/lib/typescript.js","/node_modules/typescript/lib")},{_process:45,buffer:2,crypto:2,fs:2,inspector:2,os:2,path:2,perf_hooks:2,"source-map-support":2}],47:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),console.log("starting nosql plugin");let d=e("@funktechno/little-mermaid-2-the-sql/lib/src/generate-sql-ddl"),M=e("core-types-json-schema"),B=e("core-types-ts/dist/lib/ts-to-core-types");Draw.loadPlugin(function(C){console.log("loading nosql plugin");let w="0.0.3";var e=document.createElement("div");e.style.userSelect="none",e.style.overflow="hidden",e.style.padding="10px",e.style.height="100%";let n=document.createElement("textarea"),t=(n.style.height="200px",n.style.width="100%","-- click a database type button");n.value=t,mxUtils.br(e),e.appendChild(n);var r=C.menus.get("exportAs");let i="tonosql=To NoSQL",a=(r&&!window.VsCodeApi||(i="tonosql=Export As NoSQL"),mxResources.parse(i),new mxWindow(mxResources.get("tonosql"),e,document.body.offsetWidth-480,140,320,320,!0,!0));function N(){var e={Start:'"',End:'"'};return e.Start="`",e.End="`",e}function D(e,t){e=e,(n=document.createElement("div")).innerHTML=e,e=n.textContent||n.innerText||"",n.remove();let r=e;var n=(r=r.toString().replace(/\s+/g," "))[0]==t.Start&&-1!==r.indexOf(t.End+" ")?r.indexOf(t.End+" "):r.indexOf(" "),e=r.substring(n+1).trim();return{attributeName:v(r.substring(0,n+1)),attributeType:e}}function v(e){return e.replace(/\[|\]|\(|\"|\'|\`/g,"").trim()}function o(e){var t=function(){var e,t=C.editor.graph.getModel(),n={},i=[];for(e in t.cells)if(Object.hasOwnProperty.call(t.cells,e)){var r=t.cells[e];if(-1!==r.mxObjectId.indexOf("mxCell")&&r.style&&r.style.trim().startsWith("swimlane;")){var a={name:v(r.value),attributes:[]};for(let e=0;e-1!==["FK","PK"].findIndex(e=>e==t.value.toUpperCase())||-1!=t.value.toUpperCase().indexOf("PK,"));if(l&&(c.attributeKeyType=l.value,"PK"!=c.attributeKeyType)&&-1!=c.attributeKeyType.indexOf("PK")&&(c.attributeKeyType="PK"),a.attributes.push(c),o.edges&&o.edges.length)for(let e=0;e-1!=t.toLocaleLowerCase().indexOf(e)),u=r&&-1!=u.findIndex(e=>-1!=r.toLocaleLowerCase().indexOf(e));if(!u&&!d||u&&d){if(u&&d){(m=D(p=_.source.value,s)).attributeKeyType="PK",p=m.attributeName;g=v(_.source.parent.value),y=((h=D(f=_.target.value,s)).attributeKeyType="PK",f=h.attributeName,v(_.target.parent.value)),u={name:v(g)+"_"+v(y),attributes:[m,h]};n[u.name]||(n[u.name]=u);let t={entityA:g,entityB:u.name,relSpec:{cardA:"ZERO_OR_MORE",cardB:"ONLY_ONE",relType:"IDENTIFYING"},roleA:`[${g}.${p}] to [${u.name}.${p}]`},r=(-1==i.findIndex(e=>e.entityA==t.entityA&&e.entityB==t.entityB&&e.roleA==t.roleA)&&i.push(t),{entityA:y,entityB:u.name,relSpec:{cardA:"ZERO_OR_MORE",cardB:"ONLY_ONE",relType:"IDENTIFYING"},roleA:`[${y}.${f}] to [${u.name}.${f}]`});-1==i.findIndex(e=>e.entityA==r.entityA&&e.entityB==r.entityB&&e.roleA==r.roleA)&&i.push(r)}}else{var p,f,m=D(p=_.source.value,s),g=(p=m.attributeName,v(_.source.parent.value)),h=D(f=_.target.value,s),y=(f=h.attributeName,v(_.target.parent.value));let t={entityA:d?g:y,entityB:d?y:g,relSpec:{cardA:"ZERO_OR_MORE",cardB:"ONLY_ONE",relType:"IDENTIFYING"},roleA:d?`[${g}.${p}] to [${y}.${f}]`:`[${y}.${f}] to [${g}.${p}]`};-1==i.findIndex(e=>e.entityA==t.entityA&&e.entityB==t.entityB&&e.roleA==t.roleA)&&i.push(t)}}}}}if(n[a.name]){let e=2;for(;n[a.name+e.toString()];)e++;n[a.name+e.toString()]=a}else n[a.name]=a}}return new class{constructor(e,t){this.entities=e,this.relationships=t}getEntities(){return this.entities}getRelationships(){return this.relationships}}(n,i)}();let r=new d.DbParser(e,t).getSQLDataDefinition();r=(r=`/* + Generated in drawio + Database: ${e} + Plugin: nosql + Version: ${w} +*/ + +`+r).trim(),n.value=r;C.editor.graph.getSelectionModel()}a.destroyOnClose=!1,a.setMaximizable(!1),a.setResizable(!1),a.setClosable(!0),mxUtils.br(e);var s=mxUtils.button(mxResources.get("reset"),function(){n.value=t}),s=(s.style.marginTop="8px",s.style.marginRight="4px",s.style.padding="4px",e.appendChild(s),mxUtils.button("TS",function(){o("ts")}));s.style.marginTop="8px",s.style.padding="4px",e.appendChild(s),C.actions.addAction("tonosql",function(){a.setVisible(!a.isVisible()),a.isVisible()&&n.focus()});let E=[],P=[],F=[],A=[],I=null,O=null,L=0,j=0;e=document.createElement("div");e.style.userSelect="none",e.style.overflow="hidden",e.style.padding="10px",e.style.height="100%",C.editor.graph;let c=document.createElement("textarea"),l=(c.style.height="200px",c.style.width="100%",`/* + Drawio default value + Plugin: nosql + Version: ${w} +*/ + + +export interface WeatherForecast { + /** @format date-time */ + date?: string; + /** @format int32 */ + temperatureC?: number; + /** @format int32 */ + temperatureF?: number; + summary?: string | null; + nestedProp: string[]; + children?: Child[]; +} + +export interface Child { + name: string +} + `);w;c.value=l,mxUtils.br(e),e.appendChild(c);C.editor.graph;mxResources.parse("fromNoSql=From NoSQL");let R=new mxWindow(mxResources.get("fromNoSql"),e,document.body.offsetWidth-480,140,320,320,!0,!0);function _(t,r){var n,i,a;A=[],I=null,O=null;try{let e=null;var o,s,c,l,_,u={title:"nosql default options",version:w},d=("openapi"==r?(o=JSON.parse(t),s=(0,M.convertOpenApiToCoreTypes)(o)["data"],c=(0,M.convertCoreTypesToJsonSchema)(s)["data"],e=(0,M.jsonSchemaDocumentToOpenApi)(c,u)):"ts"==r&&(l=(0,B.convertTypeScriptToCoreTypes)(t)["data"],_=(0,M.convertCoreTypesToJsonSchema)(l)["data"],e=(0,M.jsonSchemaDocumentToOpenApi)(_,u)),null==(n=null===e||void 0===e?void 0:e.components)?void 0:n.schemas);if(d){var p,f,m={Dialect:"nosql",TableList:[],PrimaryKeyList:[],ForeignKeyList:[]};for(p in d)if(Object.prototype.hasOwnProperty.call(d,p)){var g,h=d[p],y={Name:p,Properties:[]};for(g in h.properties)if(Object.prototype.hasOwnProperty.call(h.properties,g)){var v,b=h.properties[g],x=function(e,t,r){let n,i=(null!==(n=r.type)&&void 0!==n?n:"object").toString();r.nullable&&(i+=" nullable");r={Name:t,IsPrimaryKey:!1,IsForeignKey:!1,ColumnProperties:i,TableName:e,ForeignKey:[]};return r}(p,g,b);if(y.Properties.push(x),x.ColumnProperties.includes("object")||x.ColumnProperties.includes("array")){let e=null;b.$ref?e=b.$ref.split("/").pop():b.items&&"object"==typeof b.items&&(e=null==(i=b.items.$ref)?void 0:i.split("/").pop()),e&&(v={ReferencesTableName:p,PrimaryKeyTableName:e,ReferencesPropertyName:g,PrimaryKeyName:"",IsDestination:!0},m.ForeignKeyList.push(v))}}m.TableList.push(y)}for(let e=0;ee.Name==t.PrimaryKeyTableName))?void 0:a.Properties[0])&&(m.ForeignKeyList[e].PrimaryKeyName=f.Name)}if(E=m.ForeignKeyList,P=m.PrimaryKeyList,F=m.TableList,j=F.length,F.forEach(function(r){var e,t=100+r.Name.length;(I=new mxCell(r.Name,new mxGeometry(L,0,t,26),"swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=26;fillColor=default;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;marginBottom=0;swimlaneFillColor=default;align=center;")).vertex=!0,O&&null!==(e=C.editor.graph.getPreferredSizeForCell(O))&&(I.geometry.width=e.width+t),A.push(I),r.Properties.forEach(function(e){var t;e=e,r.Name,t=e.Name+(e.ColumnProperties?" "+e.ColumnProperties:""),(O=new mxCell(t,new mxGeometry(0,0,90,26),"shape=partialRectangle;top=0;left=0;right=0;bottom=0;align=left;verticalAlign=top;spacingTop=-2;fillColor=none;spacingLeft=64;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;dropTarget=0;")).vertex=!0,t=e.IsPrimaryKey&&e.IsForeignKey?"PK | FK":e.IsPrimaryKey?"PK":e.IsForeignKey?"FK":"",(e=sb.cloneCell(O,t)).connectable=!1,e.style="shape=partialRectangle;top=0;left=0;bottom=0;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=180;points=[];portConstraint=eastwest;part=1;",e.geometry.width=54,e.geometry.height=26,O.insert(e),t=C.editor.graph.getPreferredSizeForCell(O),I&&(null!==t&&I.geometry.width { - // debugger; - // const models: any | null = null; - - // if(models){ - // foreignKeyList = models.ForeignKeyList; - // primaryKeyList = models.PrimaryKeyList; - // tableList = models.TableList; - // exportedTables = tableList.length; - // } - - // //Create Table in UI - // CreateTableUI(type); - // }); try { let openApi: PartialOpenApiSchema|null = null; const openApiOptions: JsonSchemaDocumentToOpenApiOptions = { - title: "nosql", + title: "nosql default options", version: pluginVersion }; if(type == "openapi"){ + // should already be a json, but going to serialize to openapi for validation const data = JSON.parse(text); const { data: doc } = convertOpenApiToCoreTypes( data ); const { data: jsonSchema } = convertCoreTypesToJsonSchema( doc ); - openApi = jsonSchemaDocumentToOpenApi( jsonSchema, openApiOptions ); } else if(type == "ts"){ - + // serialize typescript classes to openapi spec const { data: doc } = convertTypeScriptToCoreTypes( text ); - - const { data: jsonSchema } = convertCoreTypesToJsonSchema( doc ); - openApi = jsonSchemaDocumentToOpenApi( jsonSchema, openApiOptions ); } - debugger; const schemas = openApi?.components?.schemas; if(schemas){ - - const stringOpen = JSON.stringify(openApi, null, 2); const models: DatabaseModel = { Dialect: "nosql", TableList: [], @@ -613,7 +582,8 @@ export interface Child { const propertyModel: PropertyModel = GeneratePropertyModel(key, propertyKey, property); tableModel.Properties.push(propertyModel); - if(propertyModel.ColumnProperties.includes("object")) { + if(propertyModel.ColumnProperties.includes("object") || + propertyModel.ColumnProperties.includes("array")) { let refName: string| null | undefined= null; if(property.$ref) { refName = property.$ref.split("/").pop(); @@ -622,11 +592,11 @@ export interface Child { } if(refName) { const foreignKeyModel: ForeignKeyModel = { - PrimaryKeyTableName: key, - ReferencesTableName: refName, - PrimaryKeyName: propertyKey, + ReferencesTableName: key, + PrimaryKeyTableName: refName, + ReferencesPropertyName: propertyKey, // should just point to first property in uml table - ReferencesPropertyName: "", + PrimaryKeyName: "", IsDestination: true }; models.ForeignKeyList.push(foreignKeyModel); @@ -638,7 +608,17 @@ export interface Child { models.TableList.push(tableModel); } } - debugger; + for (let i = 0; i < models.ForeignKeyList.length; i++) { + const fk = models.ForeignKeyList[i]; + if(!fk.PrimaryKeyName){ + // match to first entry + const property = models.TableList.find(t => t.Name == fk.PrimaryKeyTableName)?.Properties[0]; + if(property){ + models.ForeignKeyList[i].PrimaryKeyName = property.Name; + } + } + + } foreignKeyList = models.ForeignKeyList; primaryKeyList = models.PrimaryKeyList; tableList = models.TableList; @@ -761,7 +741,7 @@ export interface Child { mxUtils.br(divFromNOSQL); - const resetBtnFromNOSQL = mxUtils.button(mxResources.get("reset"), function() { + const resetBtnFromNOSQL = mxUtils.button(mxResources.get("Reset TS"), function() { sqlInputFromNOSQL.value = defaultReset; }); @@ -770,7 +750,7 @@ export interface Child { resetBtnFromNOSQL.style.padding = "4px"; divFromNOSQL.appendChild(resetBtnFromNOSQL); - const resetOpenAPIBtnFromNOSQL = mxUtils.button(mxResources.get("resetOpenAPI"), function() { + const resetOpenAPIBtnFromNOSQL = mxUtils.button("Reset OpenAPI", function() { sqlInputFromNOSQL.value = defaultResetOpenApi; });